/* avette.eu's one stylesheet (Amos, 2026-10-09: one website, one layout, one header): the
   site's pages, the store's (sign-in, account, admin) and the corpus's, all in
   pages/layout.html. Served at /assets/avette.css?h=<hash> (html.rs).

   Light and dark are one palette: every themeable colour is a light-dark() pair and the
   page follows the system. The tokens are the handmade brand's (Amos's brand board, 2026-10-11;
   labs brand/avette-handmade): snow bunny #FCFCFC, pavement #1A1A1A, graphite #323232,
   yolk #EEAF22, fairy dust #F5F0E8. Light: pavement on fairy dust, snow bunny panels;
   dark: snow bunny on pavement, graphite panels; yolk the one accent (ink on it: pavement).
   The steps between are derived here, each at the contrast its role needs (text AA 4.5:1). One typeface, Open Sans
   (Amos, 2026-10-08), self-hosted at /assets/fonts/; headings differ by weight and size. */

/* Open Sans: Copyright 2020 The Open Sans Project Authors, SIL Open Font License 1.1
   (/assets/fonts/OFL-OpenSans.txt). */
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/OpenSans-italic-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: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/OpenSans-italic-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; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/OpenSans-normal-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: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/assets/fonts/OpenSans-normal-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; }

/* Solo's review page is a static bundle that can't load this file: frontend/src/solo-review/site.css
   carries a byte-for-byte copy of each `mirror(solo-review)` block, and
   frontend/src/solo-review/mirror.test.ts fails when one differs. Change both. */
/* mirror(solo-review): tokens */
:root {
  color-scheme: light dark;
  --ink: light-dark(#1A1A1A, #FCFCFC);          /* text: pavement / snow bunny */
  --muted: light-dark(#5C5C5C, #A8A8A8);        /* text-2 (5.9:1 on fairy dust, 5.4:1 on graphite) */
  --faint: light-dark(#6B6B6B, #9A9A9A);        /* text-3 (4.7:1, 4.6:1) */
  --bg: light-dark(#F5F0E8, #1A1A1A);           /* background: fairy dust / pavement */
  --panel: light-dark(#FCFCFC, #323232);        /* surface: snow bunny / graphite */
  --accent: #EEAF22;                            /* yolk, the same in both */
  --accent-ink: #1A1A1A;                        /* pavement ON yolk (8.9:1) */
  --link: light-dark(#7A5600, #EEAF22);         /* deep yolk (5.9:1; Amos to decide) / yolk (8.9:1) */
  --wash: light-dark(#FBEBC4, #3A2F14);         /* yolk wash */
  --border: light-dark(#D9D6D0, #454545);       /* line */
  --border-hover: light-dark(#C5C1BA, #575757); /* line, one step further */
  --code-bg: light-dark(#EAE5DD, #272727);      /* well: inputs, inline code, key chips */
  --blue: #0a84ff;                              /* macOS marked-text blue (depicts macOS) */
  --blue-bg: light-dark(#d9ecff, #11324f);      /* marked-text highlight fill */
  --honey-ink: light-dark(#7A5600, #EEAF22);    /* yolk as text: deep yolk (5.9:1 on fairy dust, 6.5:1 on snow bunny) / yolk (8.9:1 on pavement, 6.6:1 on graphite) */
  --on-app: light-dark(#FCFCFC, #1A1A1A);       /* text ON an app's accent: snow bunny / pavement (ratios at each accent) */
  /* The apps' accents (body.shell-*: --app, --wash), ours, from the brand's warm greys (no
     framework palette: Amos, 2026-11-12). Ratios: light on fairy dust / snow bunny / the wash,
     dark on pavement / graphite / the wash. */
  --night: light-dark(#3C3975, #AEACD7);        /* Solo: night, a desaturated indigo (9.1 / 10.1 / 8.1:1; 8.0 / 5.9 / 7.0:1); snow bunny on it 10.1:1, pavement on the dark 8.0:1 */
  --night-wash: light-dark(#E6E2EC, #252437);   /* night wash, warmed toward the beige (pavement on it 13.6:1, snow bunny 14.8:1) */
  --lagoon: light-dark(#27605B, #8CC0B9);       /* Chorus: lagoon, a deep muted teal (6.4 / 7.0 / 5.7:1; 8.6 / 6.3 / 7.1:1); snow bunny on it 7.0:1, pavement on the dark 8.6:1 */
  --lagoon-wash: light-dark(#DCE8E2, #1A2D2B);  /* lagoon wash, warmed toward the beige (pavement on it 13.8:1, snow bunny 14.1:1) */
  --sage: light-dark(#4D7C5A, #9CCBA8);         /* Translations: sage, text only on the bar (4.7:1 on snow bunny; 7.0:1 on graphite) */
  --sage-wash: light-dark(#DDEBDF, #213328);    /* sage wash (never under sage text: 3.9:1) */
  /* How a word was said (Chorus's review and recorder: stress, shout, quote, code, aside) and the
     recording light; text, so AA on fairy dust / snow bunny and pavement / graphite. */
  --rust: light-dark(#A34D16, #E49F75);         /* stress (5.1 / 5.6:1; 7.9 / 5.8:1) */
  --brick: light-dark(#A5342B, #EC928B);        /* shout, recording (5.9 / 6.5:1; 7.5 / 5.5:1); snow bunny on it 6.5:1, pavement on the dark 7.5:1 */
  --plum: light-dark(#6E4188, #C3A2D9);         /* quote (6.7 / 7.4:1; 7.9 / 5.8:1) */
  --dusk: light-dark(#345A98, #94B2E4);         /* aside (6.0 / 6.7:1; 8.1 / 6.0:1); code is --lagoon */
  /* A take's waveform by density (@avette/review Waveform.tsx), interpolated in OKLab between two
     ends of equal lightness (OKLab L 0.53 light, 0.75 dark), so neither reads as louder.
     Graphics: 3:1 needed, on snow bunny / graphite. */
  --ember: light-dark(#AA4A37, #E69783);        /* dense (5.5:1; 5.6:1) */
  --tide: light-dark(#486AAB, #91AEE4);         /* sparse (5.2:1; 5.7:1) */
  /* The store's and the corpus's names for the same roles. */
  --card: var(--panel);
  --text: var(--ink);
  --row: light-dark(rgba(26, 26, 26, .035), rgba(252, 252, 252, .04));
  --honey: var(--accent);
  --on-honey: var(--accent-ink);
  --danger: light-dark(#b3261e, #f2b8b5);
  --ok: light-dark(#2e7d32, #a5d6a7);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-copy: var(--font);
  --font-wordmark: var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --maxw: 1080px;
}
/* end mirror */

/* mirror(solo-review): base */
* { box-sizing: border-box; }

/* Fluid type: the root size grows from 15px (phones) to 17px (big screens),
   so every rem-based size, text and spacing alike, scales smoothly. */
html { scroll-behavior: smooth; font-size: clamp(15px, 14.2px + 0.25vw, 17px); }

/* Header, main, footer: the main area takes what is left (the corpus recorder fills it). */
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  /* The gallery's side clips reach past the window; never a sideways scroll. */
  overflow-x: clip;
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.015em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--wash); color: var(--ink); }
/* end mirror */

/* ── The header: the same on every page ────────────── */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem;
  max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
/* Amos's full logo, as drawn (light or dark page). */
.brand-logo { display: block; height: 2rem; width: auto; }
/* Hierarchy (Amos, 2026-10-09): the wordmark and Download carry the weight; the reading links
   are quiet; nothing else is bold. Left: Docs and one "Updates" menu. Right: Download, then
   "Sign in" or one account menu. */
.site-nav { display: flex; align-items: center; gap: .25rem 1.1rem; flex: 1; font-size: .95rem; }
.site-nav a, .site-nav summary { color: var(--muted); font-weight: 500; }
.site-nav a:hover, .site-nav summary:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current], .site-nav .current > summary { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: .9rem; }
.nav-cta {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: .35rem .9rem; border-radius: 8px;
}
.nav-cta:hover { color: var(--accent-ink); text-decoration: none; filter: brightness(0.97); }
/* mirror(solo-review): menus */
.who { display: flex; align-items: center; font-size: .95rem; }
.who .signin { color: var(--muted); font-weight: 500; }
.who .signin:hover { color: var(--ink); text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* The header's menus: a <details> (no script needed), its list under the summary. */
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 6px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: ""; width: .38em; height: .38em; margin-top: -.2em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .7;
}
.menu[open] > summary::after { transform: rotate(-135deg); margin-top: .2em; }
.menu > summary:focus-visible, .site-header a:focus-visible, .who button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.menu-list {
  position: absolute; top: calc(100% + .5rem); left: -.75rem; z-index: 20; min-width: 11rem;
  display: flex; flex-direction: column; padding: .35rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px light-dark(rgba(26, 26, 26, .10), rgba(0, 0, 0, .45));
}
.menu-list a, .menu-list button {
  display: block; width: 100%; text-align: left; padding: .4rem .65rem; border-radius: 6px;
  color: var(--ink); font: inherit; font-weight: 400;
}
.menu-list a:hover, .menu-list button:hover { background: var(--row); color: var(--ink); text-decoration: none; }
.menu-list form { margin: 0; border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .3rem; }
.menu-list button { margin: 0; border: 0; background: none; cursor: pointer; color: var(--muted); }
.account .menu-list { left: auto; right: 0; min-width: 14rem; max-width: min(20rem, calc(100vw - 2rem)); }
.menu-label {
  margin: 0 0 .3rem; padding: .35rem .65rem .55rem; border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); line-height: 1.4;
}
.menu-label .email { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--wash); color: var(--ink); font-weight: 600; font-size: .9rem;
  border: 1px solid var(--border);
}
.account > summary { color: var(--muted); }
.account > summary:hover, .account[open] > summary { color: var(--ink); }
/* end mirror */
/* A section's own navigation (the admin panel, the corpus), under the header. */
.subnav { border-top: 1px solid var(--border); background: var(--panel); }
.subnav .site-bar { padding-top: .45rem; padding-bottom: .45rem; gap: .25rem 1.1rem; font-size: .92rem; }
.subnav .label { font-weight: 600; color: var(--ink); }
.subnav a { color: var(--muted); font-weight: 500; }
.subnav a:hover, .subnav a[aria-current] { color: var(--ink); text-decoration: none; }
/* Phones: the brand, Download and the account on one line, Docs and Updates under them. */
@media (max-width: 640px) {
  .site-bar { gap: .5rem 1rem; padding: .7rem 1rem; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-actions { margin-left: auto; gap: .75rem; }
  .site-nav .menu-list { left: -.5rem; }
}

/* ── The machine-translation notice, just above the footer (src/i18n.rs) ── */
.machine-notice {
  width: 100%; max-width: var(--maxw); margin: 3rem auto -2rem; padding: 0 1.5rem;
  color: var(--muted); font-size: .85rem; text-align: center;
}
.machine-notice p { margin: 0 0 .25rem; }
.machine-notice a { color: var(--muted); text-decoration: underline; }

/* ── The footer ─────────────────────────────────────── */
.site-footer {
  width: 100%; max-width: var(--maxw); margin: 4rem auto 0; padding: 2rem 1.5rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; text-align: center;
}
.site-footer p { margin: 0 0 .5rem; }
.site-footer .languages a { margin: 0 .35rem; }
.site-footer .languages a[aria-current] { font-weight: 700; text-decoration: none; color: inherit; }
.site-footer .price-country select { font: inherit; color: inherit; background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: .1rem .3rem; }
.site-footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-hover); }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-quip { opacity: 0.8; }
/* The marketing footer's links (pages/layout.html), in three groups: learning Avette, your
   licence and talking to us, the legal pages. Columns from tablets up, centred rows on phones.
   Scoped to .footer-nav: checkout and the apps keep their own one-line footers. */
.footer-nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: center;
  gap: 1.25rem clamp(2rem, 7vw, 5rem); margin: 0 auto 1.5rem; text-align: left;
}
.footer-group { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.footer-group a { display: inline-block; padding: .3rem 0; line-height: 1.4; }
.footer-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.site-footer .footer-copyright { margin-bottom: .25rem; }
@media (max-width: 640px) {
  .footer-nav { grid-template-columns: 1fr; gap: .5rem; text-align: center; }
  .footer-group { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
  .footer-group + .footer-group { border-top: 1px solid var(--border); padding-top: .5rem; }
  .footer-group a { padding: .55rem 0; }
}

/* ── The store's and the corpus's pages (main.app): cards, tables, forms ── */
main.app { max-width: 64rem; margin: 0 auto; padding: 24px 16px 64px; font-size: 15px; line-height: 1.55; }
main.app.narrow { max-width: 28rem; padding-top: 10vh; }
.app h1 { margin: 0 0 16px; font-size: 1.5rem; }
.app h2 { margin: 28px 0 10px; font-size: 1.1rem; }
.app p { margin: 0 0 12px; }
.app .muted, .app .fine { color: var(--muted); }
.app .fine { font-size: .88em; }
.app a { color: var(--link); }
.app .card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.app .table-wrap { overflow-x: auto; }
.app table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app th, .app td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.app th { font-weight: 600; color: var(--muted); font-size: .85em; }
.app tbody tr:nth-child(even) { background: var(--row); }
.app td.num, .app th.num { text-align: right; }
.app dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.app dt { color: var(--muted); }
.app dd { margin: 0; overflow-wrap: anywhere; }
.app code, .app .key { font-family: var(--mono); font-size: .95em; }
.app h1.key { font-size: 1.3rem; letter-spacing: .03em; }
.app form.inline { display: inline; }
.app label { display: block; font-weight: 600; margin: 12px 0 4px; }
.app input[type=email], .app input[type=text], .app input[type=search] {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
}
.app input:focus-visible, .app select:focus-visible, .app textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.app label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.app .row { display: flex; gap: 8px; align-items: center; }
.app .row input { flex: 1; }
.app button, .app .button {
  display: inline-block; margin-top: 14px; padding: 9px 16px; font: inherit; font-weight: 600;
  border: 0; border-radius: 9px; background: var(--honey); color: var(--on-honey); cursor: pointer;
  text-decoration: none;
}
.app .row button { margin-top: 0; }
.app button.secondary, .app .button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.app button.danger { background: var(--danger); color: light-dark(#fff, #1A1A1A); }
.app .notice { border-left: 3px solid var(--honey); padding: 8px 12px; background: var(--row); margin-bottom: 16px; }
.app .notice.error { border-color: var(--danger); }
.app .notice.ok { border-color: var(--ok); }
.app .pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .82em; border: 1px solid var(--border); }
.app .pill.paid, .app .pill.active { color: var(--ok); }
.app .pill.refunded, .app .pill.charged_back, .app .pill.disabled { color: var(--danger); }
.app .pill.test { color: var(--muted); border-style: dashed; }
.app .pill.free { color: var(--muted); }
.app .pager { display: flex; justify-content: space-between; margin-top: 14px; }
/* /activate/this-mac (src/activation.rs): one row per working licence, its button on the right. */
.app .this-mac .actions .button { font-size: 1.05rem; padding: 12px 22px; }
.app .this-mac-licences { list-style: none; padding: 0; margin: 0 0 12px; }
.app .this-mac-licences li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.app .this-mac-licences li .fine { flex: 1; }
.app .this-mac-licences li .button { margin-top: 0; }
/* After checkout (pages/return.html's message, in a card). */
.app .thanks { text-align: center; }

/* ── The site's pages (main.site): from the Zola site's sass, 2026-10-09 ── */
/* ── Hero ───────────────────────────────────────────── */
.hero {
  /* Wide enough for the gallery to grow with the screen (it sizes itself). */
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
}
/* Close under the header, big, with room before the gallery (Amos). */
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2rem, 4.5vw, 3.25rem);
}
/* Subtitle now sits below the demo, leading into the CTA. */
.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1.7rem auto 0;
  max-width: 40ch;
}
.hero .trial {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.1rem;
}

.cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  color: var(--accent-ink);
  filter: brightness(0.97);
}

/* The Apple logo on Download buttons (static/glyphs/apple.svg, Simple Icons). */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.icon-apple {
  display: inline-block;
  flex: none;
  width: 0.95em;
  height: 1.1em;
  margin-top: -0.12em;
  background: currentColor;
  -webkit-mask: url("/glyphs/apple.svg") center/contain no-repeat;
  mask: url("/glyphs/apple.svg") center/contain no-repeat;
}

/* What Avette looks like on a Mac (site/templates/on-your-mac.html, first-run 1.0.5 §7b): the
   Dock icon and the menu bar mark, each beside where it appears. The mark is the app's template
   image, drawn in the text's colour on a strip like the menu bar. */
.on-mac {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  margin: 1.1rem auto 0;
  max-width: 40rem;
}
.on-mac-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  flex: 1 1 15rem;
  max-width: 19rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}
.on-mac-dock { flex: none; width: 56px; height: 56px; }
.on-mac-bar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 28px;
  border-radius: 7px;
  background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.14));
  color: var(--ink);
}
.on-mac-mark {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* In the activation page's steps: left-aligned, under the step's words. */
.act-steps .on-mac { justify-content: flex-start; margin: 0.8rem 0 0; }

/* What Avette needs, under every download bar. */
.cta-requirements {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-lg {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}
/* A full-width download button keeps its Apple mark beside its words (.btn-lg's block layout
   made the mark, an empty span, vanish: the activation page, 2026-10-11). */
.btn-lg.btn-download { display: flex; justify-content: center; }

.prose {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ── News (announcement archive + posts) ────────────── */
.news-index {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.news-index h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.news-lede {
  color: var(--muted);
  margin: 0 0 2rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: block;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.news-item:hover {
  border-color: var(--border-hover);
  text-decoration: none;
}

.news-item-title {
  display: block;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.news-item-desc {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-empty {
  color: var(--muted);
}

.news-article {
  margin-top: 2.5rem;
}

.news-article h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
  line-height: 1.2;
}

.news-article img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.news-back {
  margin: 0 0 1rem;
}

.news-back a {
  color: var(--muted);
  font-weight: 500;
}

/* ── Legal pages (terms, privacy) ───────────────────── */
.legal-doc {
  max-width: 760px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}
.legal-doc h1 {
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
}
.legal-doc h2 {
  margin-top: 2.2rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.legal-doc h3 {
  margin-top: 1.4rem;
  font-size: 1.05rem;
}
.legal-doc p, .legal-doc li {
  color: var(--ink);
  line-height: 1.7;
}
.legal-doc ul {
  padding-left: 1.2rem;
}
.legal-doc li {
  margin: 0.3rem 0;
}
.legal-doc a {
  color: var(--link);
  text-decoration: underline;
}
.legal-doc strong {
  font-weight: 700;
}
.legal-doc code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.9em;
}
.legal-doc .legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

/* ── Account / Your license ─────────────────────────── */
.acct {
  max-width: 560px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
}
.acct h1 {
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.3rem);
}

.acct-signin .acct-lede {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.acct-signin .acct-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.acct-signin .acct-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
}
.acct-signin .acct-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.acct-signin .acct-form .btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.acct-signin .acct-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.acct-preview {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--wash);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.2rem;
}

.acct-dash-head {
  margin-bottom: 1.2rem;
}
.acct-dash-head h1 {
  margin: 0 0 0.3rem;
}
.acct-dash-head .acct-who {
  color: var(--muted);
  font-size: 0.9rem;
}
.acct-dash-head .acct-who b {
  color: var(--ink);
}

.acct-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px -24px rgba(26, 26, 26, 0.4);
}

.acct-card-h {
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.acct-card-h .acct-muted {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.3rem;
}

.acct-lic .acct-lic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.acct-lic .acct-lic-top .acct-plan {
  font-weight: 700;
  font-size: 1.1rem;
}
.acct-lic .acct-lic-top .acct-plan-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.acct-badge {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a7f47;
  background: #e3f5ea;
  border: 1px solid #bfe6cf;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.acct-key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.acct-key code {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-key .acct-copy {
  flex: 0 0 auto;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
}

.acct-dev {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}
.acct-dev:first-of-type {
  border-top: none;
}
.acct-dev .acct-dev-ic {
  display: inline-flex;
  color: var(--muted);
}
.acct-dev .acct-dev-ic svg {
  width: 22px;
  height: 22px;
}
.acct-dev .acct-dev-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.acct-dev .acct-dev-info b {
  font-weight: 600;
}
.acct-dev .acct-dev-info span {
  color: var(--muted);
  font-size: 0.82rem;
}
.acct-dev .acct-deact {
  flex: 0 0 auto;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
}
.acct-dev .acct-deact:hover {
  border-color: #d98a8a;
  color: #b23;
}

.acct-dev-free .acct-dev-ic {
  color: var(--link);
}
.acct-dev-free .acct-dev-info b {
  color: var(--muted);
}

.acct-inv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.acct-inv .acct-inv-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.acct-inv .acct-inv-info b {
  font-weight: 600;
}
.acct-inv .acct-inv-info span {
  color: var(--muted);
  font-size: 0.82rem;
}
.acct-inv .acct-dl {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
}

.acct-help {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ── Docs ───────────────────────────────────────────── */
.docs-layout {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  /* minmax(0, …): a plain 1fr track is at least as wide as its widest line (a long command in */
  /* a <pre>), so on a phone the article grew past the screen; now the <pre> scrolls instead. */
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  /* Keep iOS Safari from inflating the text of a page it thinks is too wide. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 760px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.docs-sidebar {
  font-size: 0.95rem;
}
/* Sticky only beside the article: stacked above it on a phone, a sticky (and transparent) */
/* sidebar stayed put while the article scrolled under it. */
@media (min-width: 761px) {
  .docs-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}
.docs-sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.docs-sidebar li {
  margin: 0.3rem 0;
}
.docs-sidebar a {
  color: var(--ink);
}

.docs-content {
  max-width: 70ch;
  min-width: 0;
  /* A long unbroken word or URL in prose wraps rather than widening the page. */
  overflow-wrap: break-word;
}
.docs-content h1 {
  letter-spacing: -0.02em;
  margin-top: 0;
}
.docs-content h2 {
  margin-top: 2rem;
  letter-spacing: -0.01em;
}
.docs-content code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  font-size: 0.9em;
}
.docs-content pre {
  background: #272727;
  color: #F5F0E8;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
}
.docs-content pre code {
  background: none;
  padding: 0;
}
.docs-content .docs-index {
  padding-left: 1rem;
}

/* ── Gallery: real recordings of Avette, one per app ───── */
.gallery {
  /* The window fills the viewport's height: what is left after the nav, the */
  /* title and the row under it (~15rem, plus 2rem of air), at the clips' aspect ratio, up to */
  /* 900 px wide (the recordings' native size on a Retina screen). */
  /* The frame is never taller than half the viewport (the width follows */
  /* from the frame's aspect ratio), so the page around it stays in view. */
  max-width: min(900px, 64.7773279352svh);
  /* On a 1x screen, past 900 CSS px still does not upscale the recordings. */
}
@media (max-resolution: 1.5dppx) {
  .gallery {
    max-width: min(1200px, 64.7773279352svh);
  }
}
.gallery {
  margin: 1rem auto 2.25rem;
}

.gallery-frame {
  /* Positions the clips; each clip is its own card (corners, border, */
  /* shadow), so one scaled up mid-transition is never cropped by the frame. */
  aspect-ratio: 1280/988;
  position: relative;
  /* The cards' shadow follows the masked window shape. */
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

/* A carousel (Amos: it should look like one): the current clip in the */
/* middle, the previous and next behind it at the sides, a fifth of each */
/* showing, faded, and clickable; the chosen one slides into the middle. */
/* Translate + scale: a side clip at 75% and 30.5% off centre shows 18% of */
/* the frame's width past each edge. */
.gallery-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0) scale(0.6);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, visibility 0s linear 0.5s;
}
.gallery-clip.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, visibility 0s;
}
.gallery-clip.is-prev, .gallery-clip.is-next {
  z-index: 1;
  opacity: 0.45;
  visibility: visible;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, visibility 0s;
}
.gallery-clip.is-prev:hover, .gallery-clip.is-next:hover {
  opacity: 0.7;
}
.gallery-clip.is-prev {
  transform: translateX(-30.5%) scale(0.75);
}
.gallery-clip.is-next {
  transform: translateX(30.5%) scale(0.75);
}
.gallery-clip {
  /* The poster is an <img> under the video (dodeca rewrites src, not poster). */
}
.gallery-clip img, .gallery-clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The gallery's sound button, under Amos's face and meter: the voice and the */
/* way to hear it in one place, outside the video (Amos: on the video it was */
/* easy to miss). */
.gallery-sound {
  /* A plain speaker toggle, the usual symbol, not a button-shaped pill. Both */
  /* icons share one cell, so the size never changes. */
  display: inline-grid;
  place-items: center;
  width: var(--g-sound);
  height: var(--g-sound);
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.gallery-sound svg {
  grid-area: 1/1;
  width: var(--g-sound-ic);
  height: var(--g-sound-ic);
}
.gallery-sound .when-sound {
  visibility: hidden;
}
.gallery-sound[aria-pressed=true] {
  color: var(--accent);
}
.gallery-sound[aria-pressed=true] .when-sound {
  visibility: visible;
}
.gallery-sound[aria-pressed=true] .when-muted {
  visibility: hidden;
}
.gallery-sound:hover {
  color: var(--ink);
}
.gallery-sound:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-face {
  /* No glow with his voice (Amos): the meter carries it. */
  width: var(--g-face);
  height: var(--g-face);
  border-radius: 50%;
  display: block;
  flex: none;
  margin: 0 0 0 var(--g-face-inset);
}

/* Amos's voice, in the middle of the row across both lines, and the sound */
/* toggle: a click anywhere on it, with no icon on it (Amos). */
/* On the video, at a spot picked per clip (Amos): --vx, --vy (percent of */
/* the window) from the clip's data-voice-x / data-voice-y, moved there when */
/* the clip changes. A paper chip with soft corners so it reads over the */
/* recording; a progress ring, then the tapered voice in ink. Full, the */
/* carousel moves on. */
.gallery-meter {
  position: absolute;
  z-index: 5;
  left: var(--vx, 50%);
  top: var(--vy, 88%);
  transform: translate(-50%, -50%);
  /* On whole pixels, so every bar sits on the pixel grid (Amos: uneven */
  /* columns); round() where the browser has it. */
  /* (CSS round(), passed through: Sass has a round() of its own.) */
}
@supports (left: round(50%, 1px)) {
  .gallery-meter {
    left: round(var(--vx, 50%), 1px);
    top: round(var(--vy, 88%), 1px);
    transform: translate(round(-50%, 1px), round(-50%, 1px));
  }
}
.gallery-meter {
  transition: left 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), top 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  cursor: pointer;
}
.gallery-meter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Left of the voice: the speaker, muted or not (the whole chip toggles). */
.gallery-meter-speaker {
  display: grid;
  flex: none;
  color: var(--muted);
}
.gallery-meter-speaker .gm-ic {
  grid-area: 1/1;
  width: calc(var(--g-meter) * 0.82);
  height: calc(var(--g-meter) * 0.82);
}
.gallery-meter-speaker .gm-sound {
  visibility: hidden;
}

.gallery-meter[aria-pressed=true] .gallery-meter-speaker {
  color: var(--ink);
}
.gallery-meter[aria-pressed=true] .gallery-meter-speaker .gm-sound {
  visibility: visible;
}
.gallery-meter[aria-pressed=true] .gallery-meter-speaker .gm-muted {
  visibility: hidden;
}

/* Right of the voice, the clip's progress (Amos): a thin, very faint */
/* track, and over it a thicker ink arc growing clockwise from the top, from */
/* --p (0 to 1, set by the script). */
.gallery-meter-ring {
  position: relative;
  flex: none;
  /* Optically the speaker's size (its glyph is smaller than its box). */
  width: calc(var(--g-meter) * 0.6);
  height: calc(var(--g-meter) * 0.6);
  /* The track: 1.5px, centred in the arc's 2.5px stroke. */
}
.gallery-meter-ring::before {
  content: "";
  position: absolute;
  inset: 0.5px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.gallery-meter-ring {
  /* The arc. */
}
.gallery-meter-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--p, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}

.gallery-meter-bars {
  display: flex;
  align-items: center;
  gap: var(--g-bar);
  height: var(--g-meter);
}
.gallery-meter-bars i {
  display: block;
  width: var(--g-bar);
  height: var(--g-bar);
  border-radius: 999px;
  /* Ink: dimmer while muted, full with sound. */
  background: var(--ink);
  opacity: 0.3;
  transition: background 0.2s, opacity 0.2s;
}

.lang-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* Which microphone the clip was recorded with, after the sound button. */
.gallery-app-mic {
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  font-size: var(--g-lang);
  line-height: 1.2;
  color: var(--muted);
}
.gallery-app-mic .mic-ic {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  color: var(--ink);
}
.gallery-app-mic .mic-short {
  display: none;
}

/* Arrows either side of the frame. (No language flags: Amos, emoji are wrong for languages.) */
.gallery-stage {
  position: relative;
}

/* Paused by a click: a big play sign over a dimmed clip until the next click. */
.gallery-frame {
  cursor: pointer;
}

.gallery-paused {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.gallery-paused svg {
  width: 88px;
  height: 88px;
  padding: 20px 18px 20px 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-frame.is-paused .gallery-paused {
  display: flex;
}

.gallery-row.is-sound .gallery-meter i {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-clip, .gallery-clip.is-active, .gallery-clip.is-prev, .gallery-clip.is-next {
    transition: none;
  }
}
/* Above the window: which app, and which language. One header per clip, */
/* stacked in one place; switching cross-fades them. */
.gallery {
  container-type: inline-size;
  container-name: gallery;
}

/* The row and the voice on the video share these sizes. */
.gallery-row, .gallery-stage {
  /* Sizes follow the gallery's own width (cqi), clamped between the compact */
  /* and the full layout: no step, everything scales with the window above. */
  /* Bigger (Amos): a larger app icon, with the name, mic, meter and sound */
  /* button scaled to match. */
  --g-icon: clamp(42px, 8.2cqi, 72px);
  --g-name: clamp(1rem, 2.6cqi, 1.4rem);
  --g-lang: clamp(0.74rem, 1.75cqi, 0.98rem);
  /* macOS draws an app icon in about 80.5% of its box, inset ~9.8% per */
  /* side (Apple's 824-in-1024 grid): the face takes that size and inset, */
  /* so it reads as big as the icon and as far from the edge. */
  --g-face: calc(var(--g-icon) * 0.805);
  --g-face-inset: calc(var(--g-icon) * 0.0977);
  --g-meter: calc(var(--g-icon) * 0.5);
  /* Whole pixels: a fraction made the columns uneven (Amos). */
  --g-bar: 2px;
  --g-sound: clamp(2.4rem, 6cqi, 3.3rem);
  --g-sound-ic: clamp(22px, 4.2cqi, 36px);
  --g-mic: clamp(0.72rem, 1.5cqi, 0.8rem);
  --g-gap: clamp(0.55rem, 1.9cqi, 1.1rem);
}

.gallery-row {
  /* The app on the left, Amos on the right (his voice is on the video). */
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--g-gap);
  /* More room under the window than between each picture and its lines (Amos). */
  margin-top: clamp(1.6rem, 4.4cqi, 2.75rem);
}

.gallery-app-icon {
  display: block;
  width: var(--g-icon);
  height: var(--g-icon);
  /* No shadow (Amos). */
}

.gallery-app-name {
  white-space: nowrap;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: var(--g-name);
  line-height: 1.1;
  color: var(--ink);
}

/* Per-clip parts (icon, name, mic, language): the nine versions share one */
/* grid cell, so the stack is as wide as the widest and switching clips only */
/* cross-fades (Amos: never scale or move). */
.gstack {
  display: inline-grid;
}
.gstack > * {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.gstack > .is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}
.gstack > .is-leaving {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}

/* Each side: a picture over both lines (app icon, Amos's face), and two */
/* lines that line up across the row: name and handle, then mic and voice */
/* opposite what he speaks. */
.gallery-side {
  display: flex;
  align-items: center;
  /* Picture and lines close together (Amos), the same on both sides. */
  gap: calc(var(--g-gap) * 0.55);
  height: var(--g-icon);
  min-width: 0;
}

.gallery-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.gallery-left {
  justify-self: start;
}

.gallery-right {
  justify-self: end;
}

/* The pictures' visible edges on the window's sides (Amos): the icon's own */
/* transparent margin goes past the edge; the face has its inset only on */
/* the text side, matching the icon's margin there. */
.gallery-icons {
  margin-left: calc(var(--g-icon) * -0.0977);
}

.gallery-left .gallery-lines {
  align-items: flex-start;
  text-align: left;
}

.gallery-right .gallery-lines {
  align-items: flex-end;
  text-align: right;
}

.gallery-names > *, .gallery-handle {
  white-space: nowrap;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: var(--g-name);
  line-height: 1.1;
  color: var(--ink);
}

/* The second line: the sound button, the mic, Amos's voice. As tall as the */
/* text line, so it lines up with the language opposite; the button and */
/* meter keep their size and overflow evenly. */
.gallery-line2 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: calc(var(--g-lang) * 1.2);
  font-size: var(--g-lang);
}

.gallery-langs > * {
  white-space: nowrap;
  font-size: var(--g-lang);
  line-height: 1.2;
  color: var(--muted);
}

/* Amos's side links to fasterthanli.me, face and handle alike; the handle */
/* reads as a link (Amos). */
.gallery-right {
  color: inherit;
  text-decoration: none;
}
.gallery-right .gallery-handle {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}
.gallery-right:hover .gallery-handle {
  text-decoration-thickness: 0.12em;
}
.gallery-right:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .gstack > * {
    transition: none !important;
  }
}
/* The arrows are placed against the stage, which is exactly the window's */
/* width: without this they were placed against the page and the left one */
/* sat off screen. */
.gallery-stage {
  position: relative;
}

@media (max-width: 640px) {
  /* Phones: narrower glimpses of the side clips. */
  .gallery-clip.is-prev {
    transform: translateX(-16%) scale(0.8);
  }
  .gallery-clip.is-next {
    transform: translateX(16%) scale(0.8);
  }
}
@container gallery (max-width: 560px) {
  /* A narrow gallery: the short microphone label (sizes scale on their own). */
  .gallery .gallery-app-mic .mic-tx {
    display: none;
  }
  .gallery .gallery-app-mic .mic-short {
    display: inline;
  }
}
@container gallery (max-width: 560px) {
  /* Narrow: the two sides stack, the app first, then Amos's voice, then Amos. */
  .gallery-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.75rem;
  }
  .gallery-right {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
  .gallery-right .gallery-lines {
    align-items: flex-start;
    text-align: left;
  }
}
/* Muted: a big speaker in a dark, semi-transparent circle in the middle of */
/* the clip, so it is obvious you can turn the sound on (Amos). Gone once the */
/* sound is on, and while paused (the play sign takes the middle). */
.gallery-unmute {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: clamp(72px, 14cqi, 112px);
  height: clamp(72px, 14cqi, 112px);
  margin: calc(clamp(72px, 14cqi, 112px) / -2) 0 0 calc(clamp(72px, 14cqi, 112px) / -2);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, opacity 0.2s;
}
.gallery-unmute svg {
  width: 45%;
  height: 45%;
}
.gallery-unmute:hover {
  background: rgba(0, 0, 0, 0.72);
}
.gallery-unmute:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-frame.is-sound .gallery-unmute,
.gallery-frame.is-paused .gallery-unmute {
  opacity: 0;
  pointer-events: none;
}

/* ── Subtitled video (static/js/subplayer.js) ────────────────────────── */
/* Over the picture only the unmute pill and a thin progress line along its */
/* bottom edge; the subtitles sit under it in the page's ink (two lines */
/* reserved, so nothing below moves). No browser controls (Amos). */
.subplayer {
  margin: 1.5rem 0;
  container-type: inline-size;
}

.subplayer-frame {
  /* Square corners (Amos): the picture is a cut of the black band. */
  position: relative;
  overflow: hidden;
  background: #000;
  /* Fills the reserved frame (its aspect-ratio comes from the component). */
}
.subplayer-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.subplayer-frame video::cue {
  color: transparent;
  background: transparent;
}

.subplayer.is-preview video {
  cursor: default;
}

.subplayer-unmute {
  /* Bottom left, off the speaker's face (Amos). */
  position: absolute;
  left: clamp(10px, 2.5cqi, 20px);
  bottom: clamp(10px, 2.5cqi, 20px);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em 0.55em 0.8em;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 clamp(13px, 2.2cqi, 16px)/1 var(--font-copy);
  cursor: pointer;
  transition: background 0.15s, opacity 0.2s;
}
.subplayer-unmute svg {
  width: 1.35em;
  height: 1.35em;
}
.subplayer-unmute:hover {
  background: rgba(0, 0, 0, 0.78);
}
.subplayer-unmute:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.subplayer:not(.is-preview) .subplayer-unmute {
  opacity: 0;
  pointer-events: none;
}

.subplayer-captions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* One line always reserved, with or without a cue (Amos: the layout */
  /* never changes), the same gap above and below. content-box: under the */
  /* site's border-box the minimum included the padding and reserved */
  /* nothing for the line (47 px between cues, 75 px with one). */
  box-sizing: content-box;
  min-height: 1.3em;
  padding: var(--cap-gap, 1.4rem) 0;
  font-family: var(--font-copy);
  font-weight: 600;
  font-size: clamp(16px, 2.9cqi, 22px);
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}

.subplayer-line {
  white-space: pre-line;
  text-wrap: balance;
  max-width: 40ch;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.subplayer-captions.is-showing .subplayer-line {
  opacity: 1;
}

/* Rich captions (WebVTT markup in launch.vtt): emphasis in yolk, and a */
/* logo drawn before a brand's name (<c.avette>, <c.qwen>), in the text's */
/* size. Logos: Avette's is the handmade mark (labs brand/avette-handmade); Qwen from Simple */
/* Icons (CC0), in static/glyphs/ (apple.svg is the Download button's). */
/* A brand chip: its padding stays inside the line, so the reserved */
/* caption line keeps its height. */
.subplayer-line b {
  font-weight: 800;
  color: var(--accent);
}
.subplayer-line i {
  font-style: italic;
}
.subplayer-line {
  /* What Amos meant to say but didn't (the "a" of "a ring buffer"): there, dimmed. */
}
.subplayer-line .dim {
  opacity: 0.45;
}
.subplayer-line u {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
.subplayer-line {
  /* An aside, in small (e.g. "(because MRoPE)"). */
}
.subplayer-line .aside {
  font-size: 0.62em;
  font-weight: 500;
  opacity: 0.7;
}
.subplayer-line {
  /* Brand names as chips: Avette in yolk with pavement (the brand pair), */
  /* Qwen in its colour (Simple Icons: #6950EF) with white. */
}
.subplayer-line .avette {
  display: inline-block;
  padding: 0 0.42em 0 0.32em;
  border-radius: 0.45em;
  background: var(--accent);
  color: var(--accent-ink);
  line-height: 1.25;
}
.subplayer-line .avette::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 0.95em;
  margin-right: 0.2em;
  vertical-align: -0.13em;
  background: currentColor;
  -webkit-mask: url("/glyphs/avette.svg") center/contain no-repeat;
  mask: url("/glyphs/avette.svg") center/contain no-repeat;
}
.subplayer-line .qwen {
  display: inline-block;
  padding: 0 0.42em 0 0.32em;
  border-radius: 0.45em;
  background: #6950EF;
  color: #fff;
  line-height: 1.25;
}
.subplayer-line .qwen::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.2em;
  vertical-align: -0.13em;
  background: currentColor;
  -webkit-mask: url("/glyphs/qwen.svg") center/contain no-repeat;
  mask: url("/glyphs/qwen.svg") center/contain no-repeat;
}

/* After a full watch with sound: the picture fades to black and the end */
/* card (the mark, Watch again) takes the frame. */
.subplayer-frame video {
  transition: opacity 0.45s ease-out;
}

.subplayer.is-ended video {
  opacity: 0;
}

.subplayer-end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 3cqi, 1.4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-out 0.3s;
}

.subplayer.is-ended .subplayer-end {
  opacity: 1;
  pointer-events: auto;
}

.subplayer-end-mark {
  width: clamp(56px, 13cqi, 104px);
  height: clamp(52px, 12cqi, 96px);
  background: var(--accent);
  -webkit-mask: url("/glyphs/avette.svg") center/contain no-repeat;
  mask: url("/glyphs/avette.svg") center/contain no-repeat;
}

.subplayer-again {
  padding: 0.55em 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 clamp(13px, 2.2cqi, 16px)/1 var(--font-copy);
  cursor: pointer;
}
.subplayer-again:hover {
  background: rgba(255, 255, 255, 0.08);
}
.subplayer-again:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.subplayer.is-ended .subplayer-progress {
  opacity: 0;
  transition: opacity 0.3s;
}

.subplayer.is-ended .subplayer-line {
  opacity: 0;
}

/* The progress line, along the picture's bottom edge. */
.subplayer-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.subplayer-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Bands: full-width sections that alternate with the page (Amos: light, */
/* dark, light…). An inverse band flips color-scheme, and every token is a */
/* light-dark() pair resolved where it is used, so ink, paper, borders and */
/* buttons all invert inside it, in either system theme. */
.band {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: var(--bg);
  color: var(--ink);
}

.band-inverse {
  color-scheme: dark;
}

/* The page follows the system: an inverse band on a dark page turns light. */
@media (prefers-color-scheme: dark) {
  .band-inverse {
    color-scheme: light;
  }
}
/* Pure black, dark in either theme: the author note's vignette fades to */
/* #000, so on black the picture's sides and top dissolve into the band */
/* (Amos). Pavement (#1A1A1A) showed the frame's edge. */
.band-black {
  color-scheme: dark;
  background: #000;
  /* One gap (Amos): above and below the subtitle, which is also the space */
  /* above the buttons, and the space under the requirements line. */
  --cap-gap: 1.4rem;
  padding-bottom: var(--cap-gap);
}

/* The caption's own padding is the gap above the buttons. */
.band-black .cta {
  margin-top: 0;
}

/* The author note: as wide as the gallery at most. */
.author-note {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.author-note .subplayer {
  margin: 0;
}
.author-note .subplayer-frame {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
}


/* ── The signed-in apps' shells (pages/app-layout.html; labs signed-in-apps.md) ──────────
   One login, separate apps (Amos, 2026-10-18): each draws its own bar, with its name, its links
   and its accent, and a one-line footer; none wears the marketing header, Download or footer.
   --app is the app's accent: its "you are here", its focus ring and its name. Buttons keep
   yolk (the brand's one action colour). Admin is dark slate in both themes, so it never looks
   like the public site. */
/* mirror(solo-review): shells */
body.shell { --app: var(--accent); --app-ink: var(--ink); --bar: var(--panel); }
body.shell-account { --app: #EEAF22; }
/* Each app's accent is one of the tokens in :root, ours (Amos, 2026-11-12: no framework
   palette): Avette Chorus, many voices, lagoon (a deep muted teal); Avette Solo, your own voice
   at night, night (a desaturated indigo that sits on the warm beige); Translations, sage. */
body.shell-chorus { --app: var(--lagoon); --wash: var(--lagoon-wash); }
body.shell-solo { --app: var(--night); --wash: var(--night-wash); }
body.shell-solo .app a:not(.button) { color: var(--app); }
body.shell-translate { --app: var(--sage); --wash: var(--sage-wash); }
body.shell-admin {
  color-scheme: dark;
  --ink: #E8ECF1; --muted: #A3ADBA; --faint: #8994A3;
  --bg: #11161D; --panel: #1A212B; --card: #1A212B; --bar: #0B0F14;
  --border: #2B3542; --border-hover: #3A4656; --code-bg: #0F141A;
  --row: rgba(232, 236, 241, .035); --wash: #2A2412;
  --link: #EEAF22; --app: #EEAF22;
  --danger: #F2B8B5; --ok: #A5D6A7;
}

.app-header { background: var(--bar); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
body.shell-admin .app-header { border-bottom-color: #000; }
.app-bar {
  display: flex; align-items: center; gap: .4rem 1.6rem; flex-wrap: wrap;
  max-width: 80rem; margin: 0 auto; padding: .55rem 1.5rem; min-height: 3.4rem;
}
.app-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); flex: none; }
.app-brand:hover { text-decoration: none; }
.app-mark { display: block; width: 1.6rem; height: 1.6rem; }
.app-name { font-size: 1.08rem; letter-spacing: -0.015em; white-space: nowrap; }
.app-avette { font-weight: 500; color: var(--muted); }
.app-title { font-weight: 700; color: var(--ink); }
body.shell-chorus .app-title, body.shell-solo .app-title, body.shell-translate .app-title { color: var(--app); }
/* The app's links: quiet, the current one in ink with the app's accent under it. */
/* More links than fit (the admin's) scroll sideways inside the bar, never under the account. */
.app-bar nav.app-nav {
  display: flex; align-items: stretch; gap: 0 1.15rem; flex: 1; min-width: 0; font-size: .93rem; align-self: stretch;
  margin: -.55rem 0; overflow-x: auto; scrollbar-width: none;
}
.app-bar nav.app-nav::-webkit-scrollbar { display: none; }
.app-bar nav.app-nav a {
  display: flex; align-items: center; color: var(--muted); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; padding-bottom: .1rem;
}
.app-bar nav.app-nav a:hover { color: var(--ink); text-decoration: none; }
.app-bar nav.app-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--app); }
.app-bar .who { margin-left: auto; }
/* The account's language menu, before the account menu (html.rs `languages`). */
.who .languages { margin-right: 1rem; }
.who .languages > summary { color: var(--muted); font-size: .93rem; font-weight: 500; padding: .2rem 0; }
.who .languages > summary:hover, .who .languages[open] > summary { color: var(--ink); }
.who .languages .menu-list { left: auto; right: 0; min-width: 10rem; }
.who .languages .menu-list form { border-top: 0; margin: 0; padding: 0; }
.who .languages .menu-list button { color: var(--ink); }
.who .languages .menu-list button[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--app); }
.shell .menu-list a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--app); }
.shell :focus-visible { outline-color: var(--app); }
/* Phones: the name and the account on one line, the links under them, scrolling sideways. */
@media (max-width: 760px) {
  .app-bar { padding: .5rem 1rem 0; gap: .2rem 1rem; }
  .app-bar .who { order: 2; }
  .app-bar nav.app-nav {
    order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 0 1.1rem;
    margin: 0 -1rem; padding: 0 1rem;
  }
  .app-bar nav.app-nav a { padding: .55rem 0 .5rem; margin-bottom: 0; }
}

/* The apps' footer: one line. */
.app-footer {
  width: 100%; max-width: 80rem; margin: 3rem auto 0; padding: 1.2rem 1.5rem 1.6rem;
  color: var(--faint); font-size: .85rem; text-align: center;
}
.app-footer p { margin: 0; }
.app-footer a { color: var(--faint); }
.app-footer a:hover { color: var(--ink); }

/* One content width per kind of page: a reading column for forms, wide for tools. */
.shell main.app { max-width: 80rem; padding: 28px 24px 48px; }
.shell main.app.narrow { max-width: 30rem; }
/* Admin: actions stay yolk, panels slate. */
body.shell-admin .app .card { box-shadow: none; }
body.shell-admin .app input, body.shell-admin .app select, body.shell-admin .app textarea { background: var(--code-bg); color: var(--ink); border-color: var(--border); }
/* The site's sub-navigation strip does not apply inside an app's bar. */
.app-bar nav.subnav { background: none; border: 0; }
/* end mirror */

/* Avette Solo (/solo): its one web page. Night, like its shell; the same shape as Chorus's
   home (a washed hero beside a card), so the two programs read as siblings. */
.solo-hero {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px 40px; align-items: start;
  padding: 32px 32px 28px; margin: 0 0 28px; border-radius: 18px; background: var(--wash, var(--panel));
}
.solo-hero h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 4px 0 14px; letter-spacing: -0.01em; }
.solo-hero .lede { font-size: 1.12rem; line-height: 1.55; max-width: 36rem; margin: 0 0 18px; }
.solo-eyebrow { margin: 0; font-weight: 650; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--app); }
.solo-status {
  margin: 0; max-width: 36rem; padding: 12px 14px; border-radius: 12px; line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--app) 35%, transparent); background: color-mix(in srgb, var(--card) 70%, transparent);
}
.solo-card { background: var(--card); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.solo-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.solo-card p { margin: 0; line-height: 1.5; }
.solo-card ul, .solo-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.solo-card li { line-height: 1.45; }
.solo-privacy li { padding-left: 18px; position: relative; }
.solo-privacy li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--app); }
.solo-steps { counter-reset: step; }
.solo-steps li { counter-increment: step; padding-left: 30px; position: relative; }
.solo-steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--app); color: var(--on-app); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.solo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 16px; margin: 0 0 28px; }
.solo-chorus { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .solo-hero { grid-template-columns: 1fr; padding: 22px 18px; margin-bottom: 20px; }
}
