/* The status page in the front page's look (DESIGN_LANGUAGE.md): a white bar, a quiet page on paper, the night footer with the triad's accent bar.
   An eyebrow, a heading that states the platform's state, a line, then one row to each capability on a hairline. State is words; the square
   beside a row is filled when the capability is not operational and hollow when it is, and carries no colour. Square corners, hairlines of 1 px,
   no shadow, no status colour. The fonts are the website's three, served from this site. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mozilla Text';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/mozilla-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tinos';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/tinos-italic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b2844;
  --ink-2: #46536f;
  --hair: rgb(27 40 68 / .22);
  --hair-2: rgb(27 40 68 / .1);
  --night: #0b1224;
  --brand-1: #f1a006;
  --brand-2: #8269eb;
  --brand-3: #10b981;
  --display: "Mozilla Text", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --padding: max(10vw, (100vw - 1600px) / 2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font: 300 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (height: 100svh) { body { min-height: 100svh; } }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the wordmark: five letters, each underlined, the triad's order */
.lg { text-decoration: underline; }
.lg-1 { text-decoration-color: var(--brand-1); }
.lg-2 { text-decoration-color: var(--brand-2); }
.lg-3 { text-decoration-color: var(--brand-3); }
.lg-4, .lg-5 { text-decoration-color: currentColor; }

/* the bar */
.bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; padding: 0 var(--padding); border-bottom: 1px solid var(--hair-2); background: #fff; }
.brand { display: inline-block; margin-top: -10px; font: italic 700 2.6rem/1 'Tinos', serif; letter-spacing: normal; color: var(--ink); }
.brand .lg { text-underline-offset: 4px; text-decoration-thickness: 3px; }
.bar-link { font: 400 14px/1.2 var(--display); color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--hair); transition: border-color .2s ease; }
.bar-link:hover, .bar-link:focus-visible { border-bottom-color: currentColor; }

/* the page */
.st { flex: 1 0 auto; }
.st-wrap { padding: clamp(56px, 10vh, 104px) var(--padding) clamp(72px, 12vh, 140px); }
.st-head { margin-bottom: clamp(36px, 7vh, 64px); }
.st-eyebrow { margin: 0 0 14px; font: 500 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.st-title { margin: 0 0 12px; font: 500 clamp(30px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.05em; color: var(--ink); text-wrap: balance; }
.st-lead { margin: 12px 0 0; max-width: 52ch; font: 400 17px/1.5 var(--body); color: var(--ink-2); }
.st-lead a { color: var(--ink); padding-bottom: 1px; border-bottom: 1px solid var(--hair); transition: border-color .2s ease; }
.st-lead a:hover, .st-lead a:focus-visible { border-bottom-color: currentColor; }

/* the rows: a hairline above the first and under each, a square, the name, the state in words, the hour it was checked */
.st-list { list-style: none; margin: 0; padding: 0; max-width: 62rem; border-top: 1px solid var(--hair); }
.st-row { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto 8.5rem; align-items: center; column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.st-mark { width: 11px; height: 11px; box-sizing: border-box; background: #fff; border: 1.5px solid var(--ink); }
.st-name { font: 500 17px/1.3 var(--body); color: var(--ink); }
.st-state { font: 500 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.st-time { font: 400 12.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-2); text-align: right; white-space: nowrap; }
.st-row[data-state="degraded"] .st-mark, .st-row[data-state="down"] .st-mark { background: var(--ink); }
.st-row[data-state="degraded"] .st-state, .st-row[data-state="down"] .st-state { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.st-row[data-state="down"] .st-state { text-decoration-thickness: 2px; }
.st-note { margin: 28px 0 0; font: 400 14.5px/1.4 var(--body); color: var(--ink-2); }

@media (max-width: 720px) {
  .st-row { grid-template-columns: 11px minmax(0, 1fr) auto; row-gap: 6px; }
  .st-time { grid-column: 2 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 580px) {
  .bar, .st-wrap, .foot-inner, .foot-bottom { padding-left: 5vw; padding-right: 5vw; }
  .brand { font-size: 2.1rem; }
}

/* the footer: night, the triad's bar, the front page's words */
.foot { flex: none; background: var(--night); color: #c3cde2; }
.foot-accent { display: flex; height: 6px; }
.foot-accent span { flex: 1; }
.foot-accent span:nth-child(1) { background: var(--brand-1); }
.foot-accent span:nth-child(2) { background: var(--brand-2); }
.foot-accent span:nth-child(3) { background: var(--brand-3); }
.foot-inner { display: grid; grid-template-columns: 1.2fr repeat(2, 1fr); gap: 32px; padding: 40px var(--padding) 28px; }
.foot-logo { display: inline-block; font: italic 700 2.2rem/1 'Tinos', serif; color: #fff; }
.foot-logo .lg { text-underline-offset: 4px; text-decoration-thickness: 3px; }
.foot-logo .lg-4, .foot-logo .lg-5 { text-decoration-color: #fff; }
.foot p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.foot .foot-h { margin: 0 0 10px; font: 300 13px/1.5 var(--display); text-transform: uppercase; letter-spacing: .12em; color: #fff; }
.foot nav a { display: block; padding: 3px 0; font-size: 14px; color: #c3cde2; }
.foot nav a:hover, .foot nav a:focus-visible { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px var(--padding) 24px; border-top: 1px solid #2d3f66; font-size: 13px; }
.foot-bottom strong, .foot-bottom b { font-weight: 600; color: #fff; }
@media (max-width: 1100px) {
  .foot-inner { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .st-head > *, .st-list { animation: st-in .8s cubic-bezier(.22, .8, .24, 1) both; }
  .st-title { animation-delay: .05s; }
  .st-lead { animation-delay: .1s; }
  .st-list { animation-delay: .2s; }
}
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } }
