/*
  Fonts are served from this site, not from Google.

  ⚠️ They used to come from fonts.googleapis.com, which meant the privacy policy — the page
  that says "no tracking of any kind" and named Apple as the only company involved — sent
  every reader's IP address and User-Agent to a third party the moment it loaded. Both
  faces are OFL 1.1 and were already in the repository; the licences sit beside them in
  /fonts/, which is what the licence requires.
*/
@font-face { font-family: Chivo; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/fonts/chivo-400.woff2") format("woff2"); }
@font-face { font-family: Chivo; font-style: normal; font-weight: 700; font-display: swap;
             src: url("/fonts/chivo-700.woff2") format("woff2"); }
@font-face { font-family: Chivo; font-style: normal; font-weight: 900; font-display: swap;
             src: url("/fonts/chivo-900.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/fonts/jetbrainsmono-400.woff2") format("woff2"); }

/*
  The site is the app, on the web. Same tokens, copied from the asset catalog rather than
  approximated: if the accent is #FFB020 in the app it is #FFB020 here.
*/
:root {
  --surface: #F4F5F6; --raised: #FFFFFF; --sunk: #E9EBEC; --rule: #D6DADD;
  --ink: #0E1113; --ink-muted: #5C666C; --ink-faint: #697175;
  --accent: #FFB020; --accent-ink: #A85E00; --on-accent: #1A1200; --accent-wash: #FFF7E8;
  --pass-ink: #146B41; --err-ink: #B03318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0E1113; --raised: #171B1E; --sunk: #1E2427; --rule: #2A3034;
    --ink: #F2F4F5; --ink-muted: #9AA3A8; --ink-faint: #6E777C;
    --accent: #FFB020; --accent-ink: #FFB020; --on-accent: #1A1200; --accent-wash: #2A1F06;
    --pass-ink: #7FDCA8; --err-ink: #FF8E77;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Chivo, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
code, .mono, .eyebrow { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header.site { padding: 32px 0 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  background: var(--accent); position: relative; overflow: hidden;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 10px 7px;
  background: repeating-linear-gradient(90deg, var(--on-accent) 0 2px, transparent 2px 5px);
}
.brand b { font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }

h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; margin: 40px 0 12px; text-wrap: pretty; }
h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; margin: 36px 0 8px; text-wrap: pretty; }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
p { margin: 0 0 14px; text-wrap: pretty; }
.lead { font-size: 20px; color: var(--ink-muted); margin-bottom: 28px; }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 7px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

.card { background: var(--raised); border: 1px solid var(--rule); padding: 18px 20px; margin: 0 0 16px; }
.card.accent { border: 2px solid var(--accent); background: var(--accent-wash); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  font-weight: 900; font-size: 17px; padding: 14px 22px; border-radius: 3px;
  text-decoration: none; margin: 8px 0;
}
.meta { color: var(--ink-faint); font-size: 14px; }

footer.site { border-top: 1px solid var(--rule); margin-top: 56px; padding: 24px 0 48px; color: var(--ink-muted); font-size: 14px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

table.plain { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-weight: 700; color: var(--ink-muted); font-size: 13px; }

[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] table.plain th, [dir="rtl"] table.plain td { text-align: right; }
