/* Hallmark · shape: shared chrome of every page (the homepage's own parts are in home.css) · genre: editorial · theme: brand · redesign: full
 * paper: oklch(98.6% 0.004 20) · accent: oklch(55% 0.195 20) · display: Google Sans Flex · body: Google Sans Flex · hero: see home.css · nav: edge-aligned, the wordmark and the site's pages with Download as the action word · footer: index columns (the site's real links) over a colophon line · signature: see home.css
 * axes: light/geometric-sans/chromatic-coral · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · waive 42 · footer: index columns, named in the stamp · the site's real link groups (Get it, Help, Join in) as intertune.app has had them */
/* What every page of intertune.app shares (18 Nov 2026, the redesign Mel picked: direction A, "Light, the app first"):
   the colours and type, the Keep Android Open strip, the top bar, the footer, the theme buttons and the Ask box.
   Light by default, dark derived from it; one coral from the icon; hairlines and space instead of glass, glows and
   gradients. The homepage and the download page add home.css; the releases, wiki, settings, report and 404 pages
   add doc.css (written by tools/site/build.py). The old variable names (--ink, --muted, --hair...) still work: they
   point at the new colours, so every page-specific style follows the redesign. */

/* Google Sans Flex, kept on this site so that no visitor's browser asks Google for it (SIL Open Font
   License 1.1: assets/fonts/OFL.txt). Latin and Latin Extended; anything else falls back to the system's. */
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 1 1000; font-stretch: 100% 150%; font-display: swap;
  src: url(fonts/google-sans-flex-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 1 1000; font-stretch: 100% 150%; font-display: swap;
  src: url(fonts/google-sans-flex-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 {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(98.6% 0.004 20); --color-paper-2: oklch(96.2% 0.007 20); --color-paper-3: oklch(93.4% 0.01 20);
  --color-ink: oklch(22% 0.014 20); --color-ink-2: oklch(36% 0.014 20); --color-muted: oklch(48% 0.014 20);
  --color-rule: oklch(89.5% 0.008 20);
  --color-accent: oklch(55% 0.195 20); --color-accent-ink: oklch(99% 0.003 20); --color-focus: oklch(55% 0.2 20);
  --color-brand: oklch(64.6% 0.176 17.6); --color-qr-bg: oklch(99.4% 0.003 20); --color-qr-ink: oklch(18% 0.02 15);
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --font-display: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif; --font-body: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius-card: 14px; --radius-pill: 999px;
  --tracking-display: -0.025em; --display-weight: 620;
  /* The old names, for the styles written before the redesign: they follow the new colours. */
  --bg: var(--color-paper); --ink: var(--color-ink); --muted: var(--color-muted); --faint: var(--color-muted); --hair: var(--color-rule);
  --accent: var(--color-accent); --brand: var(--color-accent); --chip: var(--color-paper-2); --pic: var(--color-paper-2); --pic-ink: var(--color-ink);
  --glass: var(--color-paper); --glass-hi: var(--color-paper); --edge: var(--color-rule); --shade: transparent; --grad: var(--color-accent);
  --low: var(--color-accent); --high: var(--color-accent); --b1: var(--color-accent); --b2: var(--color-accent); --b3: var(--color-accent); --b4: var(--color-accent);
  --dot: transparent; --blob: 0; --phone: oklch(15% 0.008 20);
  /* A major version's card on the releases page: its release cover's colours (Mel's pick of 25 Oct 2026). */
  --cov: linear-gradient(150deg, #ee5b7c 0%, #c556b6 52%, #875ce2 100%); --color-on-cov: oklch(99% 0.003 20); --color-cov-ink: oklch(42% 0.15 330);
  --kao-h: 37px; /* the strip's height, measured by assets/kao.js */
  color-scheme: light;
}
/* Dark, derived from the light one (never inverted): the same hue, the paper near black, the coral lighter. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-paper: oklch(17% 0.01 20); --color-paper-2: oklch(21% 0.012 20); --color-paper-3: oklch(25% 0.014 20);
    --color-ink: oklch(95% 0.006 20); --color-ink-2: oklch(84% 0.01 20); --color-muted: oklch(72% 0.012 20);
    --color-rule: oklch(30% 0.012 20);
    --color-accent: oklch(72% 0.15 18); --color-accent-ink: oklch(17% 0.02 20); --color-focus: oklch(75% 0.15 18);
    --color-error: oklch(74% 0.15 27); --color-success: oklch(78% 0.14 150);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-paper: oklch(17% 0.01 20); --color-paper-2: oklch(21% 0.012 20); --color-paper-3: oklch(25% 0.014 20);
  --color-ink: oklch(95% 0.006 20); --color-ink-2: oklch(84% 0.01 20); --color-muted: oklch(72% 0.012 20);
  --color-rule: oklch(30% 0.012 20);
  --color-accent: oklch(72% 0.15 18); --color-accent-ink: oklch(17% 0.02 20); --color-focus: oklch(75% 0.15 18);
  --color-error: oklch(74% 0.15 27); --color-success: oklch(78% 0.14 150);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-xl); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); } h2 { font-size: var(--text-section); } h3 { font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.i { width: 1em; height: 1em; flex: none; fill: currentColor; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* Keep Android Open: one quiet line over every page, closed for a month by its button (assets/kao.js). */
.kao { display: flex; align-items: center; gap: var(--space-md); background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule);
  padding: var(--space-xs) max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); font-size: var(--text-sm); color: var(--color-ink-2); }
.kao p { flex: 1; min-width: 0; max-width: none; margin: 0; }
.kao .dot, .kao .short { display: none; }
.kao a { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.kao a svg { display: inline-block; width: 0.7em; height: 0.7em; margin-left: var(--space-3xs); vertical-align: 0.05em; }
.kao .left { margin-left: var(--space-xs); color: var(--color-muted); white-space: nowrap; }
.kao .x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--color-muted); cursor: pointer; }
.kao .x svg { width: 18px; height: 18px; }
.kao .x:hover { color: var(--color-ink); background: var(--color-paper-3); }
.kao .x:active { transform: scale(0.94); }
html.kao-off .kao { display: none; }

/* The top bar: the name on the left, the site's pages on the right, Download as the one coloured word. */
.topbar { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); margin-right: auto; font-weight: 650; font-size: 1.125rem; text-decoration: none; color: var(--color-ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav a { color: var(--color-ink-2); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; padding-block: var(--space-xs); }
.nav a:hover { color: var(--color-ink); }
.nav a[aria-current="page"] { color: var(--color-ink); font-weight: 650; }
.nav a.act { color: var(--color-accent); font-weight: 650; }

/* The footer: what InterTune is, the site's link groups, then one small line and the theme. */
.foot { margin-top: var(--section-gap); border-top: 1px solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); }
.foot .cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--gap-columns); }
.fme { display: grid; gap: var(--space-xs); align-content: start; color: var(--color-muted); font-size: 0.9375rem; }
.fme .brand { margin: 0 0 var(--space-xs); }
.fme a { color: var(--color-ink-2); }
.fcol { display: grid; gap: var(--space-xs); align-content: start; font-size: 0.9375rem; }
.fcol .fh { font-weight: 650; color: var(--color-ink); margin-bottom: var(--space-2xs); }
.fcol a { color: var(--color-ink-2); text-decoration: none; }
.fcol a:hover { color: var(--color-accent); }
.fline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.fline a { color: var(--color-muted); }
.theme { display: flex; gap: var(--space-2xs); margin-left: auto; }
.theme button { min-height: 44px; padding: 0 var(--space-sm); border: 1px solid transparent; border-radius: 8px; background: none; color: var(--color-muted); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.theme button:hover { color: var(--color-ink); }
.theme button[aria-pressed="true"] { border-color: var(--color-rule); color: var(--color-ink); background: var(--color-paper-2); }

/* Ask: the question box (assets/ask.js sends it to /api/ask), on the homepage, the download page, the wiki's
   questions and the page for a wrong address. */
.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); max-width: 64ch; position: relative; }
.ask .row { display: flex; gap: var(--space-xs); }
.ask input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: 12px; background: var(--color-paper); color: var(--color-ink); font: inherit; font-size: 16px; text-overflow: ellipsis; }
.ask input::placeholder { color: var(--color-muted); opacity: 1; }
.ask input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.ask button { min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: 12px; background: var(--color-paper); color: var(--color-ink); font: inherit; font-weight: 650; cursor: pointer; }
.ask button:hover { background: var(--color-paper-2); }
.ask button:active { transform: translateY(1px); }
.ask button[disabled] { opacity: 0.55; cursor: not-allowed; }
.ask .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .small { font-size: var(--text-sm); color: var(--color-muted); margin: 0; line-height: 1.45; }
.ask .answer { padding: var(--space-md); border-radius: 12px; background: var(--color-paper-2); font-size: 16px; line-height: 1.55; }
.ask .answer.bad { outline: 1px solid color-mix(in oklab, var(--color-accent) 55%, transparent); outline-offset: -1px; }
.ask .answer p { margin: 0 0 var(--space-xs); }
.ask .answer > p:last-child { margin-bottom: 0; }
.ask .answer a, .ask .from a, .near a { color: var(--color-accent); font-weight: 600; }
.ask .from { font-size: var(--text-sm); color: var(--color-muted); }
ul.near { display: grid; gap: var(--space-2xs); margin: var(--space-xs) 0 0; padding: 0; list-style: none; }
ul.near li { margin: 0; }
.near-head { margin: var(--space-lg) 0 var(--space-xs); }

@media (max-width: 60rem) {
  .nav .wide { display: none; }
  .foot .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fme { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .topbar .brand span { display: none; }
  .nav { gap: var(--space-md); }
  .kao .long { display: none; }
  .kao .short { display: inline; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme { margin-left: 0; }
}
