/* The site pages around the player (index.html, references.html, about.html): header, footer, buttons, sections.
   Colours come from theme.css; nothing here is used by play.html.
   Day mode: the same monochrome rules inverted. The head script on each page sets <html data-theme> from the saved
   choice, else from the system setting, before the first paint; the header button flips it (site.js). */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#fbfbfc; --panel:#f2f2f4; --panel2:#ffffff; --line:#e2e2e6; --edge:#8e8e96;
  --ink:#111113; --dim:#5f5f67; --accent:#111113; --on-accent:#fbfbfc;
  --ok:#1f7a55; --bad:#b4473a; --warn:#8a6512;
  --card-glass:rgba(255,255,255,.94); --card-shadow:0 18px 40px rgba(17,17,19,.16);
}
:root { --card-glass:rgba(17,17,19,.94); --card-shadow:0 24px 48px rgba(0,0,0,.5); }
.wrap { max-width:1120px; margin:0 auto; padding:0 max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left)); }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.foot { padding-bottom:max(48px, calc(env(safe-area-inset-bottom) + 72px)) !important; }   /* clear of the floating Feedback button and the home bar */
.narrow { max-width:760px; }

/* header: the mark on the left, the page links on the right */
.top { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:72px; }
.mark { display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:600; letter-spacing:.32em; text-transform:uppercase; color:var(--ink); text-decoration:none; }
.mark .logo { flex:none; display:block; height:20px; aspect-ratio:2000/772; }   /* the site logo (assets/site/logo.svg), drawn in the page so it takes the text colour by day and by night */
@media (max-width:619px) { .mark .wordmark { display:none; } .mark .logo { height:22px; } }   /* no room for the logo and the name beside the links: the logo stands alone */
.nav { display:flex; align-items:center; gap:4px; margin-right:-10px; }
.nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; color:var(--dim); font-size:15px; text-decoration:none; border-radius:8px; }
.nav a:hover { color:var(--ink); }
.nav a[aria-current="page"] { color:var(--ink); }
.mode { display:inline-grid; place-items:center; width:44px; height:44px; margin-left:4px; border:0; border-radius:10px; background:none; color:var(--dim); cursor:pointer; }
.mode:hover { color:var(--ink); background:var(--panel); }
.mode svg { width:18px; height:18px; }
:root[data-theme="light"] .mode .sun, .mode .moon { display:none; }
:root[data-theme="light"] .mode .moon { display:block; }
@media (max-width:560px) { .nav .wide-only { display:none; } .nav a { padding:0 8px; font-size:14px; } .mode { margin-left:0; width:40px; } }
@media (max-width:440px) { .nav .mid-only { display:none; } }

/* buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 22px; border-radius:999px; font-size:16px; font-weight:600; text-decoration:none; white-space:nowrap; cursor:pointer; border:1px solid transparent; }
.btn.primary { background:var(--accent); color:var(--on-accent); }
.btn.primary:hover { opacity:.86; }
.btn.ghost { color:var(--ink); border-color:var(--edge); background:none; }
.btn.ghost:hover { border-color:var(--ink); }
.btn svg { width:16px; height:16px; }

/* sections */
.section { padding:clamp(56px, 9vh, 96px) 0 0; }
.kicker { margin:0 0 10px; font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); }
.h2 { margin:0; font-size:clamp(28px, 3.4vw, 40px); line-height:1.08; letter-spacing:-.03em; font-weight:600; max-width:22ch; }
.sub { margin:14px 0 0; color:var(--dim); font-size:18px; max-width:60ch; }
a.inline { color:var(--ink); text-underline-offset:4px; }

/* footer */
.foot { margin-top:clamp(64px, 10vh, 112px); border-top:1px solid var(--line); padding:28px 0 48px; color:var(--dim); font-size:14px; }
.foot .cols { display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px 40px; }
.foot p { margin:0; max-width:56ch; }
.foot nav { display:flex; flex-wrap:wrap; gap:4px 20px; }
.foot nav a { color:var(--ink); text-decoration:none; min-height:32px; display:inline-flex; align-items:center; }
.foot nav a:hover { text-decoration:underline; text-underline-offset:4px; }
.foot .fine { margin-top:18px; font-size:13px; }

.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

