/* The website's one stylesheet, linked by the four pages in this folder. The test page at
   /test keeps its own sheet in src/probeStyle.ts, because src/testPage.test.ts reads its
   rules there.

   Small text that tells you something is the secondary grey at 12px or more. The tertiary
   and quaternary greys are for rules and decoration only. #999999 on the light page is
   2.61:1, and WCAG 2.2 asks 4.5:1 of text this size. Every link is the link blue,
   Theme.link in the app. */

@font-face {
  font-family: "SoAnnoying Doto";
  src: url("/fonts/Doto-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "SoAnnoying Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SoAnnoying Mono";
  src: url("/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #F5F5F3;
  --surface: #EBEBE9;
  --divider: #DEDEDC;
  --text-quaternary: #AAAAAA;
  --text-tertiary: #999999;
  --text-secondary: #666666;
  --text-primary: #1A1A1A;
  --text-display: #111111;
  --accent: #D71921;
  --success: #2E7D3A;
  --link: #0066D6;
  --pill-bg: #111111;
  --pill-text: #F5F5F3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --surface: #161616;
    --divider: #212121;
    --text-quaternary: #444444;
    --text-tertiary: #666666;
    --text-secondary: #999999;
    --text-primary: #E8E8E8;
    --text-display: #F2F2F0;
    --success: #3E9B4F;
    --link: #5B9BF6;
    --pill-bg: #F2F2F0;
    --pill-text: #0E0E0E;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  font-family: "SoAnnoying Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}
.mono {
  font-family: "SoAnnoying Mono", ui-monospace, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 14px) 16px
           calc(env(safe-area-inset-bottom) + 32px);
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 500px) {
  main { padding-left: 24px; padding-right: 24px; }
}
header { font-size: 13px; color: var(--text-secondary); }
h1 {
  font-family: "SoAnnoying Doto", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 14vw, 72px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-display);
  margin-top: 40px;
  overflow-wrap: anywhere;
}
#hero { margin-top: auto; }
.status {
  font-family: "SoAnnoying Mono", ui-monospace, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
}
.status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  margin-right: 8px;
  vertical-align: 1px;
}
.lede { font-size: 16px; line-height: 1.5; margin-top: 20px; max-width: 30em; }
h2 {
  font-family: "SoAnnoying Mono", ui-monospace, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
h3 {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text-display);
  margin-top: 28px;
  max-width: 30em;
}
h3 + p { margin-top: 8px; }
h2[id], h3[id] { scroll-margin-top: 24px; }
.contents { margin-top: 20px; }
.contents a { display: inline-block; padding: 4px 0; }
p, ul, ol { font-size: 15px; line-height: 1.55; margin-top: 12px; max-width: 34em; }
ul { list-style: none; }
ul li { padding-left: 16px; position: relative; }
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--text-tertiary);
}
ol { list-style: none; counter-reset: step; }
ol li { display: flex; align-items: baseline; gap: 14px; padding: 4px 0; counter-increment: step; }
ol li::before {
  content: counter(step);
  flex: none;
  width: 10px;
  font-family: "SoAnnoying Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
/* Links keep the underline wherever words that are not links sit beside them. The dark blue
   is only 2.30:1 against the text around it and the light one 3.21:1, and WCAG 2.2 wants a
   cue besides colour below 3:1. The footer is links alone, so it goes without. */
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
code {
  font-family: "SoAnnoying Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 12px;
  text-decoration: none;
  max-width: 320px;
  margin-top: 32px;
}
footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}
