/* ================================================================
   WinExpat — winexpat.com

   Live surface. The page is a working Mac desktop: the nav is its menu
   bar, the copy lives in its windows, and WinExpat's own panels run on
   it. Two dialects still carry the brand: square caps are what your
   hands do, rounded caps are what the Mac wanted all along.

   Loaded after scrollcraft.css (the scroll engine's own sheet, copied
   unedited). This file themes it and owns everything else.
   ================================================================ */


/* Colour scheme is carried by data-scheme on <html>, set before first paint
   by the inline script in head.html (stored choice, else the system's).
   One attribute rather than light-dark(), because the wallpaper is an image
   and light-dark() only takes colours. No JS means light. */
/* SF stand-in for machines without SF: Apple hardware never reaches this,
   Windows gets Inter instead of Segoe so the Mac dialect still looks Apple. */
@font-face {
  font-family: "Inter";
  src: local("Inter"), url("/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* --- ink & paper ------------------------------------------- */
  --paper:       oklch(1 0 0);
  --surface:     oklch(0.968 0.006 258);
  --ink:         oklch(0.17 0.02 258);
  --ink-2:       oklch(0.40 0.022 258);
  --rule:        oklch(0.87 0.012 258);
  --rule-strong: oklch(0.74 0.018 258);
  --blue:        oklch(0.51 0.14 252);
  --link:        oklch(0.44 0.13 255);

  /* --- the Windows dialect: tinted, ruled, square ------------- */
  --win-blue: #0078d4;
  --win-soft: color-mix(in oklab, #0078d4 7%, #ffffff);
  --win-soft-2: color-mix(in oklab, #0078d4 14%, #ffffff);
  --win-rule: color-mix(in oklab, #0078d4 60%, #ffffff);
  --win-shade: color-mix(in oklab, #0078d4 30%, #ffffff);
  --win-ink:  #00538f;
  --win-down: color-mix(in oklab, #0078d4 30%, #ffffff);
  --hl:       color-mix(in oklab, #0078d4 24%, #ffffff);

  /* --- the Mac dialect: solid, rounded ------------------------ */
  --mac-blue: #0071e3;
  --mac-soft: color-mix(in oklab, #0071e3 9%, #ffffff);
  --mac-rule: color-mix(in oklab, #0071e3 35%, #ffffff);
  --mac-ink:  #0058b0;

  /* --- the desktop: chrome the simulated Mac wears ------------ */
  --accent:      #0071e3;                 /* system accent: selection rings, default button */
  --wall:        #2d6fc4;                 /* shows while the wallpaper loads */
  --bar-bg:      rgb(250 251 253 / 0.78);
  --bar-ink:     oklch(0.17 0.02 258);
  --win-bg:      #ffffff;
  --win-chrome:  #eef0f4;
  --win-edge:    rgb(10 20 40 / 0.18);
  --win-title:   #3a3f4a;
  --light-off:   #cfd3da;
  --glass:       rgb(244 246 250 / 0.82);
  --glass-edge:  rgb(255 255 255 / 0.70);
  --glass-ink:   #14171d;
  --glass-ink-2: #414754;
  --tile-hover:  rgb(10 20 40 / 0.07);
  --tile-sel:    rgb(255 255 255 / 0.62);
  --card-bg:     rgb(255 255 255 / 0.82);
  --card-edge:   rgb(10 20 40 / 0.10);
  --field-bg:    rgb(10 20 40 / 0.06);
  --shadow-rgb:  12 24 48;

  /* System type, the recipe from TheOnlyInbox's Cupertino theme: SF Pro on
     Apple hardware, honest fallbacks elsewhere, and no webfont. The page is
     a Mac, so it speaks in the Mac's own face. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --ui: var(--sans);      /* what the simulated Mac draws its own chrome in: now the same face as the copy */
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  --win-key: "Segoe UI", Tahoma, Arial, sans-serif;
  --mac-key: -apple-system, "system-ui", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  /* the modifier glyphs ⌘ ⇧ ⌥ ⌃ ⇥ ← → only exist in the system mono; see .sym */
  --glyph: "Cascadia Code", ui-monospace, Menlo, monospace;

  --r-win: 2px;
  --r-mac: 8px;

  /* ONE type ladder, anchored on 17px body (DESIGN.md). */
  --text-label: 0.75rem;
  --text-small: 0.9375rem;
  --text-body:  1.0625rem;
  --text-lead:  1.328rem;
  --text-h3:    1.66rem;
  --text-h2:    clamp(2.075rem, 2.6vw + 1.1rem, 3.24rem);
  --text-h1:    clamp(2.594rem, 3.6vw + 0.9rem, 4.05rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pad-x: clamp(1rem, 4vw, 3.5rem);

  --bar-h: 40px;        /* the menu bar */
  --dock-h: 74px;       /* dock + its bottom margin */
  --coach-h: 78px;      /* the coach bar under the menu bar */

  /* the engine's six roles, mapped onto ours */
  --sc-canvas: var(--wall);
  --sc-surface: var(--surface);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-2);
  --sc-accent: var(--accent);
  --sc-accent-ink: #ffffff;
  --sc-font-display: var(--display);
  --sc-font-text: var(--sans);
}

:root[data-scheme="dark"] {
  color-scheme: dark;
  --paper:       oklch(0.215 0.012 258);
  --surface:     oklch(0.255 0.014 258);
  --ink:         oklch(0.955 0.006 258);
  --ink-2:       oklch(0.78 0.016 258);
  --rule:        oklch(0.34 0.016 258);
  --rule-strong: oklch(0.46 0.02 258);
  --blue:        oklch(0.74 0.12 252);
  --link:        oklch(0.78 0.11 252);

  --win-soft:  color-mix(in oklab, #0078d4 20%, #1c2027);
  --win-soft-2: color-mix(in oklab, #0078d4 28%, #1c2027);
  --win-rule:  color-mix(in oklab, #4aa3ee 70%, #1c2027);
  --win-shade: color-mix(in oklab, #0078d4 45%, #1c2027);
  --win-ink:   #cfe6fb;
  --win-down:  color-mix(in oklab, #0078d4 55%, #1c2027);
  --hl:        color-mix(in oklab, #0078d4 34%, #1c2027);
  --mac-blue:  #0a6fd8;
  --mac-soft:  color-mix(in oklab, #0a84ff 18%, #1c2027);
  --mac-rule:  color-mix(in oklab, #0a84ff 45%, #1c2027);
  --mac-ink:   #8cc4ff;

  --accent:      #0a84ff;
  --wall:        #0b1830;
  --bar-bg:      rgb(22 24 30 / 0.72);
  --bar-ink:     oklch(0.96 0.005 258);
  --win-bg:      #1e2025;
  --win-chrome:  #2a2d34;
  --win-edge:    rgb(255 255 255 / 0.16);
  --win-title:   #d4d8e0;
  --light-off:   #555a64;
  --glass:       rgb(34 36 42 / 0.72);
  --glass-edge:  rgb(255 255 255 / 0.18);
  --glass-ink:   #f2f4f7;
  --glass-ink-2: #b6bcc8;
  --tile-hover:  rgb(255 255 255 / 0.10);
  --tile-sel:    rgb(255 255 255 / 0.22);
  --card-bg:     rgb(24 25 29 / 0.82);
  --card-edge:   rgb(255 255 255 / 0.10);
  --field-bg:    rgb(255 255 255 / 0.09);
  --shadow-rgb:  0 0 0;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--wall);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.022em; }   /* the Large Title treatment */
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); color: inherit; }
.skip-link { position: fixed; top: 3rem; left: 1rem; z-index: 200; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-400%); }
.skip-link:focus { transform: none; }

/* ================================================================
   The wallpaper — one fixed plane behind the whole page. It is the far
   layer: it drifts a few pixels against scroll (--wall-y, set by desk.js)
   while everything on the desktop stays put.
   ================================================================ */
.wall {
  position: fixed; inset: -24px 0; z-index: -1;
  background: var(--wall) url("/img/wall-day.jpg") center / cover no-repeat;
  transform: translate3d(0, calc(var(--wall-y, 0) * 1px), 0);
}
[data-scheme="dark"] .wall { background-image: url("/img/wall-night.jpg"); }

/* ================================================================
   Keycaps — engineered, not gummy. Two dialects. (Carried over.)
   ================================================================ */
.k {
  display: inline-block;
  font-family: var(--win-key);
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1;
  padding: 0.36em 0.5em 0.4em;
  margin: 0 0.08em;
  color: var(--win-ink);
  background: linear-gradient(var(--win-soft), var(--win-soft-2));
  border: 1px solid var(--win-rule);
  border-radius: var(--r-win);
  box-shadow: inset 0 -1px 0 var(--win-shade);
  white-space: nowrap;
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
/* Optical size correction for the modifier glyphs: the system mono draws
   ⌘ ⇧ ⌥ ⌃ ⇥ ← → at four different sizes, so each gets its own multiplier
   and a vertical-align that re-centres it on the cap-height band. Measured
   values, see DESIGN.md. Do not "simplify" these. */
.sym {
  line-height: 0;
  font-size: calc(1em * var(--sym-s));
  vertical-align: calc(-1em * var(--sym-v));
}
.sym-cmd   { --sym-s: 1.44; --sym-v: 0.102; }
.sym-shift { --sym-s: 1.46; --sym-v: 0.005; }
.sym-opt   { --sym-s: 1.55; --sym-v: 0.098; }
.sym-ctl   { --sym-s: 1.78; --sym-v: 0.351; }
.sym-tab   { --sym-s: 1.92; --sym-v: 0.066; }
.sym-arw   { --sym-s: 2.05; --sym-v: 0.079; }
/* The Windows mark is drawn (the "winmark" template), never typeset: U+229E
   is the negative of the real logo. */
.winmark {
  width: 0.74em; height: 0.74em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.012em;
}
.k .sym { font-family: var(--glyph); }
.k.mac {
  font-family: var(--mac-key);
  border-radius: var(--r-mac);
  background: var(--mac-blue);
  border-color: var(--mac-blue);
  box-shadow: none;
  color: #fff;
}
.k.mac .sym { font-family: inherit; --sym-s: 1; --sym-v: 0; }
.k.k-down:not(.mac) {
  transform: translateY(1px);
  background: var(--win-down);
  border-color: var(--win-blue);
  box-shadow: inset 0 2px 3px oklch(0.45 0.12 250 / 0.30);
  transition-duration: 0.05s;
}
.chord-plus, .chord-lit { color: var(--ink-2); margin: 0 0.15em; }
.no-equiv { color: var(--mac-ink); }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-weight: 600; line-height: 1.15; text-decoration: none;
  padding: 0.8rem 1.4rem 0.9rem;
  font-size: var(--text-lead);
  /* Filled site controls take --mac-blue, not --accent: in dark the system
     accent is #0a84ff, and white on it is 3.65:1. Measured, see DESIGN.md. */
  background: var(--mac-blue); color: #fff;
  border-radius: 10px;
  transition: background 0.16s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn small { font-weight: 400; font-size: var(--text-small); margin-top: 0.25rem; }
.btn:hover { background: color-mix(in oklab, var(--mac-blue) 86%, #000); }
.btn:active { transform: translateY(1px); }

/* ================================================================
   The menu bar — the site's nav, in the surface's own idiom.
   Nothing in it sits below 15px: these are controls, not captions.
   ================================================================ */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 2px;
  padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  font: 500 15px/1 var(--ui);
  color: var(--bar-ink);
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 1px 0 rgb(var(--shadow-rgb) / 0.12);
}
.menubar a, .menubar button { color: inherit; text-decoration: none; }
.mb-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 10px 6px 4px; border-radius: 7px; }
.mb-brand img { border-radius: 5px; }
.mb-nav { display: flex; gap: 2px; }
.mb-nav a, .mb-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px;
  border: 0; background: none; border-radius: 7px; cursor: pointer;
}
.mb-nav a:hover, .mb-item:hover, .mb-brand:hover, .mb-item[aria-expanded="true"] { background: rgb(var(--shadow-rgb) / 0.10); }
[data-scheme="dark"] :is(.mb-nav a:hover, .mb-item:hover, .mb-brand:hover) { background: rgb(255 255 255 / 0.12); }
.mb-nav a[aria-current="page"] { font-weight: 700; }
.mb-space { flex: 1; }
.mb-item svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.mb-menu-btn { display: none; }
.mb-dl {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px; margin-left: 6px;
  font-weight: 600; border-radius: 8px;
  background: var(--mac-blue); color: #fff !important;
}
.mb-dl:hover { background: color-mix(in oklab, var(--mac-blue) 86%, #000); }
.is-quit .mb-status { opacity: 0.4; }

.mb-pop {
  position: fixed; inset: calc(var(--bar-h) + 4px) auto auto 8px; margin: 0;
  min-width: 220px; padding: 5px;
  font: 500 15px/1.2 var(--ui); color: var(--glass-ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-edge); border-radius: 10px;
  box-shadow: 0 14px 40px rgb(var(--shadow-rgb) / 0.30);
}
.mb-pop-r { inset: calc(var(--bar-h) + 4px) 8px auto auto; }
.mb-pop :is(a, button) {
  display: flex; justify-content: space-between; gap: 24px; width: 100%;
  padding: 7px 10px; border: 0; background: none; border-radius: 6px;
  text-align: left; text-decoration: none; color: inherit; cursor: pointer;
}
.mb-pop :is(a, button):is(:hover, :focus-visible) { background: var(--mac-blue); color: #fff; outline: 0; }
.mb-pop hr { border: 0; border-top: 1px solid var(--card-edge); margin: 5px 8px; }
.mb-pop span.mb-key { color: var(--glass-ink-2); }
.mb-pop :is(a, button):is(:hover, :focus-visible) .mb-key { color: inherit; }

@media (max-width: 760px) {
  .mb-nav { display: none; }
  .mb-menu-btn { display: inline-flex; }
  .mb-brand span { display: none; }
}

/* ================================================================
   The desktop stage
   ================================================================ */
.desk-act { position: relative; }
.desk {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  font-family: var(--ui);
}
/* reduced motion, or no JS: the stage is one ordinary screen, not a pin */
.desk-act[data-sc-act="flow"] { height: auto !important; }
.desk-act[data-sc-act="flow"] .desk { position: relative; }

.work { position: absolute; inset: calc(var(--bar-h) + var(--coach-h)) 0 var(--dock-h) 0; }
.wins { position: absolute; inset: 8px; }

/* ---- windows ---------------------------------------------------- */
.win {
  position: absolute;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  display: flex; flex-direction: column;
  background: var(--win-bg); color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--win-edge),
              0 2px 6px rgb(var(--shadow-rgb) / 0.16),
              0 18px 44px -10px rgb(var(--shadow-rgb) / 0.36);
  overflow: hidden;
  transform-origin: 0 0;      /* thumbnails are copies of this, scaled from their corner */
  text-align: left;
  /* the window is the container its content sizes from, in both directions;
     it always has an explicit frame, so size containment costs nothing */
  container-type: size;
}
.win[hidden] { display: none; }
.win.is-front {
  box-shadow: 0 0 0 1px var(--win-edge),
              0 4px 10px rgb(var(--shadow-rgb) / 0.20),
              0 30px 70px -14px rgb(var(--shadow-rgb) / 0.50);
}
#win-welcome { --x: 3;  --y: 2;  --w: 47; --h: 76; }
#win-docs    { --x: 26; --y: 52; --w: 36; --h: 45; }
#win-photo   { --x: 56; --y: 5;  --w: 40; --h: 55; }
#win-dl      { --x: 52; --y: 51; --w: 45; --h: 46; }
/* snapped: halves and quarters of the work area, with the 8px tile gap macOS draws */
.win[data-slot="left"]  { left: 0; top: 0; width: calc(50% - 4px); height: 100%; }
.win[data-slot="right"] { left: calc(50% + 4px); top: 0; width: calc(50% - 4px); height: 100%; }
.win[data-slot="tl"] { left: 0; top: 0; width: calc(50% - 4px); height: calc(50% - 4px); }
.win[data-slot="tr"] { left: calc(50% + 4px); top: 0; width: calc(50% - 4px); height: calc(50% - 4px); }
.win[data-slot="bl"] { left: 0; top: calc(50% + 4px); width: calc(50% - 4px); height: calc(50% - 4px); }
.win[data-slot="br"] { left: calc(50% + 4px); top: calc(50% + 4px); width: calc(50% - 4px); height: calc(50% - 4px); }
.win[data-slot="max"] { left: 0; top: 0; width: 100%; height: 100%; }
/* The page's own stage direction (desk.js "tidy"): one window, centred in the
   band the clipboard shelf leaves clear. --shelf-h is measured by desk.js. */
.win[data-slot="top"] {
  --note-w: min(100%, 47.5rem);
  left: calc(50% - var(--note-w) / 2); top: 0; width: var(--note-w);
  /* the shelf stands 16px above the work area's floor; .wins is inset 8px; 12px of air */
  height: max(150px, calc(100% - var(--shelf-h, 354px) - 20px));
}
/* Minimized, or mid-genie: the frame stays laid out so it can be measured. */
.win.is-min { visibility: hidden; }

.win-bar {
  flex: none; height: 38px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--win-chrome);
  border-bottom: 1px solid var(--win-edge);
  font: 600 13px/1 var(--ui); color: var(--win-title);
  user-select: none; -webkit-user-select: none;
}
.lights { display: flex; gap: 8px; flex: none; }
.lights > * {
  position: relative; width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 50%; background: var(--light-off);
}
.lights button { cursor: pointer; }
.fwin .l-close { background: #ff5f57; } .fwin .l-min { background: #febc2e; } .fwin .l-max { background: #28c840; }
.lights button::after { content: ""; position: absolute; inset: -6px -4px; }   /* a finger-sized target */
.win.is-front .lights .l-close, .win-bar:hover .lights .l-close { background: #ff5f57; }
.win.is-front .lights .l-min,   .win-bar:hover .lights .l-min   { background: #febc2e; }
.win.is-front .lights .l-max,   .win-bar:hover .lights .l-max   { background: #28c840; }
.win-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { flex: 1; min-height: 0; overflow: hidden; font-family: var(--sans); }

/* a copy of a window inside a thumbnail: same DOM, scaled, untouchable */
.win.is-clone { box-shadow: none; pointer-events: none; z-index: auto !important; border-radius: 12px; }

/* Welcome: the note that carries the page's opening copy */
/* Sized from the window in both directions, and continuously: snapping and the
   tidy step resize this window live, so nothing here may jump at a threshold. */
.note {
  padding: clamp(12px, min(3.4vw, 7cqb), 36px) clamp(14px, 4.6vw, 40px); background: var(--paper); overflow-y: auto; scrollbar-width: thin;
  /* a small window cuts its text off softly, never mid-line; the fade is no
     taller than the bottom padding, so the end of the note is never dimmed */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
}
.note h1 { font-size: clamp(1.5rem, min(6.6cqi, 15cqb), 3.3rem); letter-spacing: -0.025em; margin-bottom: 0.4em; }
.note .lede { font-size: clamp(1rem, min(2.9cqi, 7cqb), 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.note .lede strong { color: var(--ink); font-weight: 600; }
.note .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 1.3rem; }
.note .cta-note, .note .tip { font-size: var(--text-small); color: var(--ink-2); }
.note .tip { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); max-width: 36em; }
/* In the tidied band the note is a notepad: the button and the tip fold away
   (the menu bar still has Download), so a paste lands right under the lede.
   They fold in step with the window's own 0.42s glide. */
.note :is(.cta-row, .tip) {
  max-height: 14rem; overflow: clip; overflow-clip-margin: 4px;
  transition: max-height 0.42s cubic-bezier(0.32, 0.72, 0, 1), margin 0.42s cubic-bezier(0.32, 0.72, 0, 1),
              padding 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s linear, visibility 0s;
}
.win[data-slot="top"] .note :is(.cta-row, .tip) {
  max-height: 0; margin-top: 0; padding-top: 0; border-top-width: 0; opacity: 0; visibility: hidden;
  transition-delay: 0s, 0s, 0s, 0s, 0.42s;
}
.pasted { display: grid; gap: 0.6rem; margin-top: 1rem; }
.pasted:empty { display: none; }
.pasted > * {
  justify-self: start; max-width: 100%;
  padding: 0.6rem 0.8rem; border-left: 3px solid var(--accent);
  background: var(--surface); color: var(--ink);
  font-size: var(--text-small); line-height: 1.5; white-space: pre-wrap;
}
.pasted img { height: 110px; width: auto; padding: 0; border: 0; border-radius: 6px; }
.pasted > :last-child { animation: paste-in 0.3s var(--ease-out); }      /* the clip that just landed */
@keyframes paste-in { from { opacity: 0; transform: translateY(8px); } }
.pasted code { font: 500 13px/1.5 var(--mono); }

/* Finder windows */
.finder { display: grid; grid-template-columns: 150px 1fr; height: 100%; font: 13px/1.3 var(--ui); }
.finder-side { padding: 12px 10px; background: var(--win-chrome); border-right: 1px solid var(--win-edge); color: var(--win-title); }
.finder-side b { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; margin: 0 6px 6px; }
.finder-side span { display: block; padding: 5px 6px; border-radius: 6px; }
.finder-side span.on { background: rgb(var(--shadow-rgb) / 0.10); }
[data-scheme="dark"] .finder-side span.on { background: rgb(255 255 255 / 0.12); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 6px; padding: 16px 12px; align-content: start; list-style: none; }
.files li { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 2px; border-radius: 8px; overflow-wrap: anywhere; }
.files li.on { background: color-mix(in oklab, var(--accent) 18%, transparent); }
.files svg, .rows svg { width: 44px; height: 44px; }
.rows { list-style: none; padding: 6px 0; font: 13px/1.3 var(--ui); }
.rows li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 14px; }
.rows li:nth-child(odd) { background: rgb(var(--shadow-rgb) / 0.04); }
[data-scheme="dark"] .rows li:nth-child(odd) { background: rgb(255 255 255 / 0.04); }
.rows svg { width: 24px; height: 24px; }
.rows span, .rows a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.rows a { font-weight: 600; }
@container (max-width: 380px) { .finder { grid-template-columns: 1fr; } .finder-side { display: none; } }
.photo { height: 100%; background: #111; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- glass: the material every WinExpat panel shares -------------- */
.glass {
  color: var(--glass-ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 0.18), 0 26px 70px -12px rgb(var(--shadow-rgb) / 0.55);
}

/* ---- switcher, snap assist, dock peek: one tile grid --------------
   Sizes are the app's own (UI.swift): padding 20, gap 10, radius 24;
   tile = thumb + 20 wide; label 12pt; badge overhangs by 6. */
.panels { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.panels > * { pointer-events: auto; }
.pane-switch, .pane-assist { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
/* centred on the screen as the app does, where "the screen" is what the menu
   bar and the coach leave: on a 768px-tall viewport that keeps it off the headline */
.pane-switch { bottom: calc(var(--dock-h) * -1); }
/* Snap assist blurs the whole empty half, as Windows does (SnapAssist.swift),
   and the previews sit straight on it: the half is the surface, with no
   second panel. A click on the blur dismisses. Same frame as the half-snapped
   window: 8px inset, 8px tile gap. The labels are plain text on it, so its
   opacity is set by the worst window that can lie under it: 0.57 in light
   (7:1 over the darkest wallpaper), full --glass in dark (5.7:1 over a white
   photo; any thinner fails). */
.pane-assist {
  inset: 8px; border-radius: 12px; pointer-events: auto;
  color: var(--glass-ink); background: color-mix(in oklab, var(--glass) 70%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 18px 44px -14px rgb(var(--shadow-rgb) / 0.4);
}
[data-scheme="dark"] .pane-assist { background: var(--glass); }
.pane-assist[data-side="right"] { left: calc(50% + 4px); }
.pane-assist[data-side="left"]  { right: calc(50% + 4px); }
.tiles {
  --th: 140px; --th-min: 90px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 85%; padding: 20px; border-radius: 24px;
  pointer-events: auto;
}
.pane-assist .tiles { max-width: 90%; }
.tile { position: relative; flex: none; width: calc(var(--cw) + 20px); border-radius: 10px; }
.tile:hover { background: var(--tile-hover); }
.tile.is-sel { background: var(--tile-sel); box-shadow: inset 0 0 0 2px var(--accent); }
.tile-main {
  display: grid; justify-items: center; gap: 6px; width: 100%;
  padding: 10px 10px 12px; border: 0; background: none; border-radius: 10px; cursor: default;
}
.thumb { position: relative; width: var(--cw); height: var(--th); }
.thumb-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; }
.thumb-clip .win { position: absolute; }
.badge { position: absolute; right: -6px; bottom: -6px; width: 39px; height: 39px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.35)); }
.tile-label { display: block; max-width: 100%; font: 12px/1.35 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-ctl {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  display: none; gap: 7px; padding: 5px 8px; border-radius: 99px; background: rgb(0 0 0 / 0.4);
}
.tile:hover .tile-ctl, .tile:focus-within .tile-ctl { display: flex; }
.tile-ctl button { position: relative; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.tile-ctl button::after { content: ""; position: absolute; inset: -4px -3px; }
.c-close { background: #ff5f57; } .c-min { background: #febc2e; } .c-full { background: #28c840; } .c-quit { background: #bf5af2; }

.peek { position: absolute; z-index: 70; border-radius: 24px; }
.peek .tiles { max-width: none; padding: 0 20px 20px; }
.peek-head { padding: 14px 22px 8px; font: 600 13px/1 var(--ui); color: var(--glass-ink-2); }
.peek-empty { position: absolute; z-index: 70; padding: 7px 12px; border-radius: 10px; font: 500 12px/1 var(--ui); color: var(--glass-ink-2); white-space: nowrap; }

/* ---- the Mac-way hint: the app's own toast, top right -------------- */
.hint {
  position: absolute; right: 16px; top: 8px; z-index: 80;
  width: max-content; max-width: min(360px, calc(100% - 32px));
  padding: 11px 14px; border-radius: 14px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.4s linear;
}
.hint.is-on { opacity: 1; transition-duration: 0.15s; }
.hint-title { font: 600 11px/1.2 var(--ui); color: var(--glass-ink-2); margin-bottom: 7px; }
.hint-body { font: 13px/1.5 var(--ui); }
.hk {
  display: inline-block; margin: 0 2px; padding: 3px 5px; border-radius: 5px;
  font: 500 12px/1 var(--mono);
  background: color-mix(in oklab, var(--glass-ink) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--glass-ink) 22%, transparent);
}

/* ---- clipboard shelf (ClipboardShelf.swift) ------------------------- */
.shelf {
  position: absolute; left: 50%; bottom: 16px; z-index: 65;
  width: min(1060px, calc(100% - 32px));
  translate: -50% 0;
  border-radius: 23px;
  font-family: var(--ui);
  /* the app's fade and 32pt slide, 0.2s, both ways; transitions, so a shelf
     asked to close while it is still opening turns round where it is */
  opacity: 0; translate: -50% 32px; visibility: hidden;
  transition: opacity 0.2s var(--ease-out), translate 0.2s var(--ease-out), visibility 0s 0.2s;
}
.shelf.is-open { opacity: 1; translate: -50% 0; visibility: visible; transition-delay: 0s; }

/* ---- the genie: a window on its way to or from the Dock (desk.js) --- */
.genie { position: absolute; inset: 0; z-index: 45; pointer-events: none; filter: drop-shadow(0 10px 18px rgb(var(--shadow-rgb) / 0.28)); }
.genie-strip { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; will-change: transform; contain: strict; }
.shelf-head { display: flex; align-items: center; gap: 10px; padding: 19px 22px 15px; }
.shelf-head h2 { font: 600 20px/1 var(--ui); letter-spacing: 0; }
.shelf-badge { padding: 3px 6px; border-radius: 5px; font: 10px/1 var(--mono); background: var(--field-bg); color: var(--glass-ink-2); white-space: nowrap; }
.shelf-head .grow { flex: 1; }
.shelf-search {
  width: 210px; min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 9px;
  font: 13px/1 var(--ui); color: var(--glass-ink); background: var(--field-bg);
}
.shelf-search::placeholder { color: var(--glass-ink-2); }
.shelf-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--glass-ink-2); cursor: pointer; }
.shelf-icon:hover { background: var(--field-bg); }
.shelf-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.shelf-tabs { display: flex; align-items: center; gap: 4px; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; }
.shelf-tabs button { flex: none; padding: 6px 11px; border: 0; background: none; border-radius: 99px; font: 12px/1 var(--ui); color: var(--glass-ink-2); cursor: pointer; }
.shelf-tabs button[aria-pressed="true"] { font-weight: 600; color: var(--glass-ink); background: color-mix(in oklab, var(--glass-ink) 8%, transparent); }
.shelf-count { margin-left: auto; padding-right: 6px; font: 11px/1 var(--ui); color: var(--glass-ink-2); white-space: nowrap; }
.shelf-preview { margin: 0 22px 12px; padding: 16px 18px; max-height: clamp(70px, calc(100svh - 620px), 190px); overflow: auto; border-radius: 13px; background: var(--card-bg); font: 15px/1.5 var(--ui); white-space: pre-wrap; }
.shelf-preview img { max-height: clamp(40px, calc(100svh - 654px), 158px); width: auto; border-radius: 8px; }
.shelf-row { display: flex; gap: 12px; height: 204px; padding: 4px 22px 10px; overflow-x: auto; scrollbar-width: none; }
.shelf-none { margin: auto; font: 13px/1 var(--ui); color: var(--glass-ink-2); }
.card {
  flex: none; width: 218px; height: 190px;
  display: grid; grid-template-rows: auto 1fr 29px;
  border-radius: 13px; background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  cursor: default; overflow: hidden; text-align: left;
}
.card:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--glass-ink) 22%, transparent); }
.card.is-sel { box-shadow: inset 0 0 0 2px var(--accent); }
.card-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px 12px; font: 600 10px/1 var(--ui); color: var(--glass-ink-2); }
.card-head i { width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.t-Image .card-head i { background: #ff5fa2; } .t-Link .card-head i { background: #0a84ff; } .t-Code .card-head i { background: #bf5af2; }
.card-pin { margin-left: auto; width: 20px; height: 20px; border: 0; background: none; border-radius: 5px; color: var(--glass-ink-2); opacity: 0.45; cursor: pointer; }
.card-pin svg { width: 11px; height: 11px; fill: currentColor; }
.card-pin[aria-pressed="true"] { color: var(--accent); opacity: 1; }
.card-body { padding: 2px 12px; overflow: hidden; font: 14px/1.4 var(--ui); white-space: pre-wrap; }
.t-Code .card-body { font: 10px/1.55 var(--mono); }
.t-Link .card-body b { display: block; font-size: 16px; font-weight: 600; margin: 6px 0 4px; }
.t-Link .card-body small { font-size: 10px; color: var(--glass-ink-2); overflow-wrap: anywhere; }
.t-Image .card-body { position: relative; padding: 0 12px; }
.t-Image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.t-Image .dim { position: absolute; right: 16px; bottom: 4px; padding: 3px 5px; border-radius: 4px; font: 9px/1 var(--mono); color: #fff; background: rgb(0 0 0 / 0.6); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; font: 9px/1 var(--ui); color: var(--glass-ink-2); border-top: 1px solid var(--card-edge); white-space: nowrap; }
.shelf-foot { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 22px; font: 11px/1 var(--ui); color: var(--glass-ink-2); }
.shelf-foot .grow { flex: 1; }
.shelf-foot b { font-weight: 600; color: var(--glass-ink); }
.shelf-paste { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; font: 600 12px/1 var(--ui); color: #fff; background: var(--accent); cursor: pointer; }
.shelf-menu { position: absolute; right: 60px; top: 54px; z-index: 3; min-width: 250px; padding: 5px; border-radius: 10px; font: 13px/1.3 var(--ui); }
.shelf-menu button { display: block; width: 100%; padding: 6px 10px; border: 0; background: none; border-radius: 6px; text-align: left; cursor: pointer; }
.shelf-menu button:is(:hover, :focus-visible) { background: var(--accent); color: #fff; outline: 0; }
.shelf-menu p { padding: 6px 10px; font-size: 11px; color: var(--glass-ink-2); border-top: 1px solid var(--card-edge); margin-top: 4px; }

/* ---- the Dock ------------------------------------------------------ */
.dock {
  position: absolute; left: 50%; bottom: 8px; z-index: 40;
  translate: -50% 0;
  display: flex; gap: 4px; padding: 6px 8px; border-radius: 20px;
}
.dock button { position: relative; width: 50px; height: 54px; padding: 0 0 6px; border: 0; background: none; border-radius: 12px; cursor: pointer; }
.dock svg { width: 46px; height: 46px; display: block; margin: 0 auto; transition: transform 0.14s var(--ease-out); }
.dock button:active svg { transform: scale(0.94); }
.dock button.is-running::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--glass-ink-2);
}
.dock i { width: 1px; margin: 6px 4px; background: var(--card-edge); }

/* ---- the scroll cue: a Dock-label bubble with an arrow that slides down.
   Site voice. Only on the untouched desk, and never under reduced motion,
   where the stage is not scroll-driven at all. */
.cue {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 10px); z-index: 48; translate: -50% 0;
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px 0 15px; border-radius: 22px;
  font: 600 var(--text-body)/1 var(--sans); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.25s linear, visibility 0s 0.25s;
}
.cue.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.cue svg { width: 16px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: cue-slide 1.5s ease-in-out infinite; }
@keyframes cue-slide {
  0% { transform: translateY(-7px); opacity: 0; }
  30%, 65% { opacity: 1; }
  100% { transform: translateY(7px); opacity: 0; }
}
.no-js .cue { display: none; }

/* ---- the coach: what to press next ---------------------------------
   Site voice, not app chrome, so it wears the site keycaps.
   It sits under the menu bar like a toolbar, which keeps the bottom of the
   screen free for the Dock, the peek above it and the clipboard shelf. */
.coach {
  position: absolute; left: 50%; top: calc(var(--bar-h) + 8px); z-index: 50;
  translate: -50% 0;
  width: calc(100% - 16px); max-width: 1120px; min-height: calc(var(--coach-h) - 14px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 8px 10px 10px 8px; border-radius: 16px;
  font: 500 15px/1.35 var(--sans);
  overflow: hidden;
}
.no-js .coach, .no-js .dock { display: none; }
.coach-tabs { display: flex; gap: 2px; }
.coach-tabs button {
  height: 32px; padding: 0 10px; border: 0; background: none; border-radius: 9px;
  font-weight: 600; color: var(--glass-ink-2); cursor: pointer; white-space: nowrap;
}
.coach-tabs button:hover { background: var(--tile-hover); }
.coach-tabs button[aria-current="step"] { color: var(--glass-ink); background: var(--tile-sel); }
.coach-line { min-width: 0; }
.coach-keys { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; margin-right: 8px; }
.coach-keys:empty { display: none; }
.coach-keys button { padding: 3px 2px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 16px; }
.coach-keys button:hover .k { border-color: var(--win-blue); }
.coach-keys button:active .k { transform: translateY(1px); }
.coach-text { min-width: 0; }
.coach-sub { font-size: 14px; font-weight: 400; color: var(--glass-ink-2); }
.coach-next {
  height: 32px; padding: 0 12px; border: 0; border-radius: 9px;
  font-weight: 600; white-space: nowrap; cursor: pointer;
  color: var(--glass-ink); background: var(--tile-sel);
}
.coach-next:hover { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.coach-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--tour, 0)); }

/* ---- small screens: a portrait display ---------------------------- */
@media (max-width: 760px) {
  :root { --dock-h: 66px; --coach-h: 136px; }
  #win-welcome { --x: 1;  --y: 1;  --w: 98; --h: 54; }
  #win-docs    { --x: 10; --y: 44; --w: 88; --h: 34; }
  #win-photo   { --x: 2;  --y: 57; --w: 66; --h: 36; }
  #win-dl      { --x: 20; --y: 62; --w: 79; --h: 37; }
  .tiles { --th: 92px; --th-min: 52px; max-width: 94%; padding: 14px; gap: 6px; }
  .pane-assist .tiles { max-width: 98%; padding: 8px; }
  .badge { width: 30px; height: 30px; }
  .coach { grid-template-columns: minmax(0, 1fr) auto; align-content: start; padding: 6px 8px 10px; }
  .coach-tabs { grid-column: 1; overflow-x: auto; scrollbar-width: none; }
  .coach-tabs button { padding: 0 7px; font-size: 14px; }
  .coach-next span { display: none; }
  .coach-next { grid-column: 2; grid-row: 1; }
  .coach-line { grid-column: 1 / -1; font-size: 14px; padding: 0 4px; }
  .coach-sub { font-size: 13px; }
  .dock button { width: 44px; height: 48px; } .dock svg { width: 40px; height: 40px; }
  .shelf-head { flex-wrap: wrap; padding: 14px 14px 10px; }
  .shelf-search { order: 5; width: 100%; }
  .shelf-row { height: 174px; padding-inline: 14px; } .card { height: 160px; width: 190px; }
  .shelf-foot .opt { display: none; }
  .hint { right: 8px; }
}
@media (max-height: 620px) and (min-width: 761px) {
  :root { --coach-h: 66px; --dock-h: 62px; }
  .dock button { height: 46px; width: 44px; } .dock svg { width: 38px; height: 38px; }
  .tiles { --th: 104px; }
}

/* ================================================================
   Flow windows: the phrasebook, install, the changelog. Ordinary
   document flow, each one a window standing on the same desktop.
   ================================================================ */
.flow { padding: clamp(2rem, 6vw, 5rem) var(--pad-x); }
.flow + .flow { padding-top: 0; }
.fwin {
  max-width: 68rem; margin-inline: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--win-edge), 0 4px 10px rgb(var(--shadow-rgb) / 0.2), 0 30px 70px -14px rgb(var(--shadow-rgb) / 0.5);
  scroll-margin-top: calc(var(--bar-h) + 1rem);
}
.fwin-narrow { max-width: 50rem; }
.fwin-body { padding: clamp(1.5rem, 5vw, 4rem) clamp(1.1rem, 5vw, 4rem); }
.fwin h2, .fwin h1 { font-size: var(--text-h2); margin-bottom: 1rem; }
.section-lede { font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); max-width: 44rem; margin-bottom: 2.5rem; }

.group-name {
  font-size: var(--text-small); font-weight: 600; font-family: var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  margin-top: 3rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink);
}
.group-name:first-of-type { margin-top: 0; }
.phrase-table { width: 100%; border-collapse: collapse; }
.phrase-table th {
  font-size: var(--text-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: left; color: var(--ink-2);
  padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.phrase-table th.col-mac { color: var(--mac-ink); }
.phrase-table td { padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
/* Live keyboard highlight: fast in, slow out. The wash is measured (DESIGN.md). */
.phrase-table tr { transition: background 0.55s var(--ease-out); }
.phrase-table tbody tr.hl { background: var(--hl); transition-duration: 0.07s; }
.phrase-table tbody tr.hl td { border-bottom-color: var(--win-rule); }
.col-win { width: 13.5rem; white-space: nowrap; }
.col-does { color: var(--ink); }
.col-mac { width: 25rem; white-space: nowrap; color: var(--mac-ink); }
.col-mac .chord-lit, .col-mac .chord-plus { color: inherit; }
.kb-hint {
  display: none;
  font-size: var(--text-small); color: var(--ink-2);
  margin: 0 0 2.25rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule); background: var(--surface);
}
@media (hover: hover) and (pointer: fine) { .kb-hint { display: block; } }

.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.3rem 1.25rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step); grid-row: 1 / 3;
  font-weight: 600; font-size: var(--text-small);
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: var(--r-win); margin-top: 0.1rem;
}
.steps li:last-child::before { border-radius: var(--r-mac); border-color: var(--mac-rule); background: var(--mac-soft); color: var(--mac-ink); }
.steps h3 { font-size: var(--text-lead); }
.steps p { color: var(--ink-2); grid-column: 2; max-width: 44rem; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; }
.go-key { display: none; font-size: var(--text-small); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .js .go-key { display: block; } }
.install-note { margin-top: 1.25rem; font-size: var(--text-small); color: var(--ink-2); max-width: 38rem; }

/* release notes */
.changelog .lede { font-size: var(--text-lead); line-height: 1.5; color: var(--ink-2); max-width: 44rem; }
.release-links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.5rem; }
.release-notes h2 { border-top: 1px solid var(--rule-strong); padding-top: 2rem; margin: 3rem 0 1rem; scroll-margin-top: calc(var(--bar-h) + 1.5rem); }
.release-notes h2 + p { color: var(--blue); font-size: var(--text-small); }
.release-notes h3 { font-size: var(--text-h3); margin: 2.5rem 0 1.25rem; }
.release-notes p { margin: 1rem 0; max-width: 48rem; }
.release-notes ul { padding-left: 1.3rem; max-width: 48rem; }
.release-notes li { padding-left: .35rem; margin-bottom: 1.4rem; color: var(--ink-2); }
.release-notes li::marker { color: var(--blue); }
.release-notes strong { color: var(--ink); }
.release-notes h2 + p strong { color: inherit; }
.changelog-update { max-width: 48rem; margin-top: 3rem; padding: 1.5rem; background: var(--surface); border-radius: 10px; }
.changelog-update h2 { font-size: var(--text-h3); margin-bottom: .75rem; }

/* The real captures stand in for the live desktop when scroll cannot play it:
   no JavaScript, or reduced motion. Otherwise this section is not rendered. */
.js .plates-sec { display: none; }
@media (prefers-reduced-motion: reduce) { .js .plates-sec { display: block; } }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; align-items: start; }
@media (max-width: 720px) { .plates { grid-template-columns: minmax(0, 1fr); } }
.plates img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--win-edge); }
.plates figcaption { font-size: var(--text-small); color: var(--ink-2); margin-top: 0.5rem; }

/* ================================================================
   Footer
   ================================================================ */
.site-foot { padding: 0 var(--pad-x) clamp(1.5rem, 4vw, 3rem); }
.site-foot .wrap {
  max-width: 68rem; margin-inline: auto; padding: 1.4rem 1.6rem; border-radius: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 3rem; align-items: start;
  font-size: var(--text-small); line-height: 1.6;
}
.foot-brand { display: flex; gap: 0.85rem; align-items: flex-start; }
.foot-brand img { border-radius: 6px; }
.site-foot a { color: inherit; }
.foot-legal { grid-column: 1 / -1; color: var(--glass-ink-2); padding-top: 1rem; border-top: 1px solid var(--card-edge); }

@media (max-width: 720px) {
  /* the phrasebook becomes the sign: the Mac way stacks under the Windows chord */
  .phrase-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .phrase-table tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .phrase-table td { display: block; border: 0; padding: 0; }
  .col-win, .col-mac { width: auto; white-space: normal; }
  .col-does { font-size: var(--text-small); color: var(--ink-2); margin-top: 0.35rem; }
  .col-mac { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
  .col-mac::before {
    content: "The Mac way"; display: block;
    font-size: var(--text-label); letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--mac-ink); margin-bottom: 0.35rem;
  }
}

/* Reduced motion: nothing moves. The stage is already unpinned (desk.js flips
   the act to "flow" before the engine mounts); this removes what is left. */
@media (prefers-reduced-motion: reduce) {
  .wall { transform: none; }
  .shelf, .note :is(.cta-row, .tip) { transition: none; }
  .pasted > :last-child { animation: none; }
  .cue svg { animation: none; }
  .hint, .k, .btn, .dock svg { transition: none; }
}
.shelf:focus { outline: 0; }   /* the panel itself takes focus so keys reach it; it is not a control */
