/* Sordino site, shared by every page. Tokens are the app's (.interface-design/system.md, Hum):
   night first, day when the system asks for light. Pear acts, sky holds, coral is the one
   that matters, mint is opened. Width rule: one container (.shell, 1120px + gutters) on every
   page; nothing inside caps a column narrower than its grid track with empty space beside it. */

/* An element marked hidden stays hidden whatever display a component class gives it (rows, chips, cards toggled by script). */
[hidden] { display: none !important; }

@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/fonts/mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #0E141E; --surface: #181E2A; --surface2: #212835; --surface3: #29313F;
  --ink: #F1EFE6; --muted: #AFB4BF; --faint: #868C99; --line: rgba(241,239,230,.09);
  --pear: #F4CE23; --pear-deep: #B48300; --pear-ink: #12171B;
  --sky: #38B8F6; --sky-soft: #163347; --sky-ink: #71C9FA;
  --coral: #FF6474; --coral-soft: #4D2527; --coral-ink: #FF8C93;
  --mint: #4FBF6E; --mint-soft: #213625; --mint-ink: #89DA9B;
  --quiet: rgba(22,48,69,.8); --bead: rgba(241,239,230,.24);
  --shadow: 0 10px 26px -18px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.8);
  /* The night palette stays night on a light page too (quiet-hours band, the phone's shade). */
  --n-paper: #0B1019; --n-surface: #161D29; --n-surface2: #1F2734; --n-ink: #F1EFE6; --n-muted: #AFB4BF; --n-faint: #868C99;
  --f: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px; --section: 72px; --nav-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --paper: #F7F5EC; --surface: #FEFDF9; --surface2: #EFECE0; --surface3: #E5E1D3;
    --ink: #12171B; --muted: #4E5359; --faint: #6B7076; --line: rgba(18,23,27,.09);
    --pear: #F6CE00; --pear-deep: #CE9D00;
    --sky: #009FEF; --sky-soft: #CFEDFF; --sky-ink: #005E9B;
    --coral: #FF3A5D; --coral-soft: #FFDBDB; --coral-ink: #C50037;
    --mint: #2F9A52; --mint-soft: #D1F2D7; --mint-ink: #197037;
    --quiet: rgba(210,236,252,.75); --bead: rgba(18,23,27,.22);
    --shadow: 0 10px 26px -16px rgba(18,23,27,.24);
    --shadow-lg: 0 40px 90px -44px rgba(18,23,27,.45);
    color-scheme: light;
  }
}
@media (min-width: 600px) { :root { --gutter: 24px; --section: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section: 120px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f); font-feature-settings: "lnum"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sky-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pear); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.shell { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--pear); color: var(--pear-ink); padding: 10px 14px; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header: lockup left, links right, on every page. */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .shell { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.lockup img { width: 30px; height: 30px; display: block; }
.lockup span { font: 800 23px/1 var(--f); letter-spacing: -.04em; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font: 600 15px/1 var(--f); padding: 10px 12px; border-radius: 99px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: var(--surface2); }
.top nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 719px) { .top nav .wide { display: none; } .top nav a { padding: 10px 9px; font-size: 14px; } }

/* Type */
h1 { font: 800 clamp(40px, 7.2vw, 76px)/1.02 var(--f); letter-spacing: -.045em; }
h2 { font: 800 clamp(28px, 3.6vw, 42px)/1.1 var(--f); letter-spacing: -.035em; }
h3 { font: 700 19px/1.3 var(--f); letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.meta { color: var(--faint); font: 500 13px/1.4 var(--mono); }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* Push button (Hum primary): pear face on a pear-deep edge. */
.push { display: inline-flex; align-items: center; gap: 10px; background: var(--pear); color: var(--pear-ink); font: 700 16px/1 var(--f); padding: 15px 22px; border-radius: 99px; box-shadow: 0 4px 0 0 var(--pear-deep); text-decoration: none; white-space: nowrap; }
a.push { transition: transform 70ms, box-shadow 70ms; }
a.push:hover { transform: translateY(-1px); box-shadow: 0 5px 0 0 var(--pear-deep); }
a.push:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--pear-deep); }
span.push { cursor: default; }

/* Chips: dot + label. pass coral, hold sky, block hollow ring, ok mint. */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--f); padding: 7px 11px; border-radius: 99px; white-space: nowrap; background: var(--surface2); color: var(--muted); }
.chip i { width: 7px; height: 7px; border-radius: 50%; display: block; flex: none; background: var(--faint); }
.chip.pass { background: var(--coral-soft); color: var(--coral-ink); } .chip.pass i { background: var(--coral); }
.chip.hold { background: var(--sky-soft); color: var(--sky-ink); } .chip.hold i { background: var(--sky); }
.chip.ok { background: var(--mint-soft); color: var(--mint-ink); } .chip.ok i { background: var(--mint); }
.chip.block i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

.card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }

/* Footer: wordmark, one line on what Sordino is, links, contact. */
.foot { margin-top: var(--section); border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot-top { display: grid; gap: 20px 48px; align-items: end; }
.foot .lockup img { width: 56px; height: 56px; }
.foot .lockup span { font-size: clamp(48px, 7vw, 72px); }
.foot-top p { color: var(--muted); font-size: 15px; }
.foot-links { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links .mail { margin-left: auto; font: 500 13px/1 var(--mono); color: var(--sky-ink); }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 599px) { .foot-links .mail { margin-left: 0; flex-basis: 100%; } }

/* Documents (privacy, terms): contents rail on a wide screen, the text in the rest of the track. */
.doc { display: grid; gap: 40px; padding-block: 48px 0; }
.doc-head h1 { font-size: clamp(36px, 5.6vw, 60px); }
.doc-head .meta { margin-top: 14px; }
.doc-rail { display: none; }
.doc-body { font-size: 18px; line-height: 1.7; }
.doc-body h2 { font-size: 22px; letter-spacing: -.02em; margin: 44px 0 10px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--muted); margin-bottom: 14px; }
.doc-body strong { color: var(--ink); }
@media (min-width: 960px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 32px 64px; padding-top: 72px; }
  .doc-head { grid-column: 2; }
  .doc-rail { display: block; grid-column: 1; grid-row: 2; }
  .doc-rail nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
  .doc-rail .tag { margin-bottom: 10px; }
  .doc-rail a { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; padding: 7px 12px; margin-left: -12px; border-radius: 10px; }
  .doc-rail a:hover { background: var(--surface2); color: var(--ink); }
  .doc-body { grid-column: 2; grid-row: 2; }
}

/* 404 */
.lost { padding-block: 96px 0; display: grid; gap: 20px; justify-items: start; }
.lost .beads { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.lost .beads b { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); }
.lost .beads b.p { width: 16px; height: 16px; background: var(--coral); box-shadow: none; }
