/* Flipreel — a reel of photo cards.
   The page is the machine the app is: a dark wall, a brass stop bar, one thick photo card standing
   under it, the fallen cards' backs below, and a walnut case with the crank on its front. The
   machine and the app's screenshots look the same in the light and the dark scheme: they are
   objects, not surfaces. Around them is the site's own sheet (drafting paper, ink, Young Serif,
   ruby), shared with Papertune's page, whose sister this one is. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: oklch(95.5% 0.016 82);
  --paper-deep: oklch(92.4% 0.02 80);
  --ink: oklch(23% 0.018 55);
  --soft: oklch(39% 0.02 58);
  --faint: oklch(47% 0.02 60);
  --rule: oklch(23% 0.018 55 / 0.16);
  --line: oklch(23% 0.018 55 / 0.62);
  --ruby: oklch(50% 0.19 18);
  /* the wall behind the machine, and the app's walnut, grey-brown under a studio light */
  --wall: oklch(21% 0.006 285);
  --wall-deep: oklch(17% 0.006 285);
  --table: oklch(40% 0.035 52);
  --table-deep: oklch(30% 0.03 48);
  --brass: oklch(74% 0.1 86);
  --card: oklch(84% 0.03 82);
  --table-ink: oklch(92% 0.022 82);
  --table-soft: oklch(77% 0.026 76);
  --table-faint: oklch(66% 0.024 70);
  --table-line: oklch(92% 0.03 80 / 0.16);
  --lamp: oklch(85% 0.1 78);
  --serif: "Young Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --garamond: "EB Garamond", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* radii: the sheet's square corner, the app's pill, a phone's screen */
  --r-sheet: 2px;
  --r-pill: 999px;
  --r-screen: 30px;
  --grain: 0.05;
  --grain-blend: multiply;
  --shadow: oklch(23% 0.03 55 / 0.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(18.5% 0.012 62);
    --paper-deep: oklch(15.8% 0.012 60);
    --ink: oklch(90% 0.02 82);
    --soft: oklch(75% 0.024 76);
    --faint: oklch(63% 0.024 70);
    --rule: oklch(90% 0.02 82 / 0.13);
    --line: oklch(90% 0.02 82 / 0.6);
    --ruby: oklch(68% 0.17 18);
    --grain: 0.07;
    --grain-blend: screen;
    --shadow: oklch(5% 0.02 50 / 0.7);
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overflow-x: hidden;
}
/* the homepage's paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ruby); color: var(--paper); }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
a, button { transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease); }
@media (hover: hover) {
  a:hover { color: var(--ruby); text-decoration-color: currentColor; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ruby);
  outline-offset: 5px;
  border-radius: var(--r-sheet);
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(60px, 9.2vw, 128px); line-height: 0.92; letter-spacing: -0.028em; margin-left: -0.04em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.012em; }
p { text-wrap: pretty; }
:lang(zh-Hans) h1 { letter-spacing: 0; line-height: 1.1; margin-left: 0; }
:lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.4; }
/* Songti at its bold weight stands beside Young Serif; at regular it reads as a different, thinner voice */
:lang(zh-Hans) :is(h1, h2, h3, .lead, .specs dd, .legend b, .questions dt, .now-title, .ware b, .later-list dt) { font-weight: 700; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute;
  left: 24px;
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--r-sheet);
}
.skip:focus { top: 12px; }

/* header: the homepage's quiet meta line, with the wordmark set as the logotype */
.site-header {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: env(safe-area-inset-top);
}
.wordmark { font-family: "Young Serif", Georgia, serif; font-size: 24px; letter-spacing: -0.028em; text-decoration: none; white-space: nowrap; }
.wordmark span, .wm span { color: var(--ruby); }
.wm { font-family: "Young Serif", Georgia, serif; letter-spacing: -0.012em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav .language { text-transform: none; letter-spacing: 0; color: var(--ink); }

.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
}
/* captions: Garamond italic, as lettered under a plate; the number upright */
figcaption {
  font-family: var(--garamond);
  font-style: italic;
  color: var(--faint);
  font-size: 16px;
  line-height: 1.45;
  margin-top: 16px;
  max-width: 34em;
  text-wrap: pretty;
}
figcaption b { font-style: normal; font-weight: 400; color: var(--ink); margin-right: 0.5em; font-variant-caps: all-small-caps; letter-spacing: 0.04em; font-size: 1.08em; }
:lang(zh-Hans) figcaption { font-style: normal; font-size: 14px; line-height: 1.6; }
:lang(zh-Hans) figcaption b { font-size: 1em; letter-spacing: 0; font-variant-caps: normal; }

/* the head of the sheet: the name large on the left, what it is on the right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: 64px;
  align-items: end;
  padding-block: 56px 64px;
}
.hero h1 { margin-top: 24px; }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.35; letter-spacing: -0.012em; max-width: 19em; }
:lang(zh-Hans) .lead { letter-spacing: 0; line-height: 1.6; }
.description { color: var(--soft); max-width: 31em; margin-top: 16px; }
/* the call to action, once the app is out: inked in, square as the sheet's corner */
.store {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: var(--r-sheet);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--paper);
  text-decoration: none;
  transition: background-color 180ms var(--ease), transform 160ms var(--ease);
}
:lang(zh-Hans) .store { letter-spacing: 0; font-size: 16px; font-weight: 700; }
@media (hover: hover) {
  .store:hover { color: var(--paper); background: var(--ruby); }
}
.store:active { transform: scale(0.98); }
/* a ruby dot, as the app's record button has, before the line that says when */
.availability { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--soft); }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); flex: none; }


/* the stage: the machine against its dark wall, and beside it what is on the reel */
.stage {
  position: relative;
  color: var(--table-ink);
  padding-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--wall-deep), var(--wall));
  -webkit-user-select: none;
  user-select: none;
}
.bench { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 88px; align-items: end; }
.machine { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
/* two iron uprights carry the stop bar; the cards stand between them */
.viewer { position: relative; padding: 40px 10% 0; perspective: 900px; }
.viewer::before, .viewer::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -4px;
  width: 9px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, oklch(9% 0 0), oklch(26% 0.004 60) 45%, oklch(8% 0 0));
}
.viewer::before { left: 3%; }
.viewer::after { right: 3%; }
.stop-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  z-index: 3;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, oklch(88% 0.08 90), var(--brass) 45%, oklch(48% 0.08 80));
  box-shadow: 0 6px 10px -4px oklch(0% 0 0 / 0.7);
}
/* the stop: the tab every card waits behind */
.stop-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 13%;
  height: 26px;
  margin-left: -6.5%;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, oklch(56% 0.08 84), oklch(66% 0.09 86));
}
.cards { position: relative; z-index: 1; transform-style: preserve-3d; }
/* a card: one of the 45 frames of the sheet, 9 across and 5 down (flip.js moves the sheet) */
.card, .leaf {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3.75% / 5%;
  overflow: hidden;
  container-type: inline-size;
  background: var(--card) url("/products/flipreel/images/sneeze.webp") 0 0 / 900% 500% no-repeat;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.12) inset;
}
.leaf { position: absolute; inset: 0; transform-origin: 50% 100%; opacity: 0; pointer-events: none; }
/* the reel's three header cards: dark stock with a ruled frame; the first carries the date and the title */
:is(.card, .leaf)[data-kind="title"], :is(.card, .leaf)[data-kind="head"] { background: oklch(27% 0.006 70); }
:is(.card, .leaf)[data-kind="title"]::before, :is(.card, .leaf)[data-kind="head"]::before {
  content: "";
  position: absolute;
  inset: 3.4% 2.6%;
  border: 1.5px solid oklch(93% 0.02 85);
}
.card-title { display: none; }
[data-kind="title"] > .card-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  row-gap: 3cqw;
  font-family: var(--garamond);
  color: oklch(93% 0.02 85);
  text-align: center;
}
.card-title span { font-size: 4.1cqw; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; }
.card-title span::after { content: ""; display: block; width: 8cqw; height: 1px; margin: 3cqw auto 0; background: currentColor; }
.card-title b { font-weight: 400; font-size: 5.4cqw; line-height: 1.1; letter-spacing: 0.02em; }
/* the cards that have fallen: their backs, each lower and nearer */
.backs { position: relative; z-index: 2; display: grid; justify-items: center; }
.backs span {
  display: block;
  width: 106%;
  height: 22px;
  margin-top: -6px;
  border-radius: 5px 5px 9px 9px;
  background: linear-gradient(180deg, oklch(83% 0.022 84), oklch(74% 0.026 80));
  box-shadow: 0 9px 12px -6px oklch(0% 0 0 / 0.75);
  clip-path: none;
}
.backs span:first-child { width: 102%; height: 56px; margin-top: 2px; background: linear-gradient(180deg, oklch(86% 0.02 86), oklch(79% 0.024 82)); }
.backs span:nth-child(3) { width: 108%; }
.backs span:nth-child(4) { width: 110%; }
/* the case: walnut, with the crank on its front */
.case {
  position: relative;
  z-index: 3;
  height: 210px;
  margin: -6px -7% 0;
  border-top: 2px solid oklch(52% 0.04 55);
  background: linear-gradient(178deg, var(--table), var(--table-deep));
  box-shadow: 0 -10px 18px -8px oklch(0% 0 0 / 0.6);
}
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.34' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  1.6 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='900' height='300' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: 900px 300px;
}
.crank {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 156px;
  height: 156px;
  margin: -78px 0 0 -78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.crank:active { cursor: grabbing; }
.crank:disabled { cursor: default; }
.crank svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ck-track { fill: none; stroke: var(--lamp); stroke-width: 1.4; stroke-dasharray: 4 5; stroke-linecap: round; opacity: 0.8; }
.ck-head { fill: var(--lamp); opacity: 0.9; }
.ck-arm { transform-box: view-box; transform-origin: 60px 60px; transform: rotate(-90deg); }
.ck-rod { stroke: var(--brass); stroke-width: 7; stroke-linecap: butt; }
.ck-hub { fill: oklch(12% 0.004 60); }
.ck-knob { fill: oklch(34% 0.06 50); stroke: oklch(18% 0.03 48); stroke-width: 0.8; }
.ck-shine { fill: none; stroke: oklch(82% 0.05 70 / 0.6); stroke-width: 1.6; stroke-linecap: round; }
.crank-hint {
  position: absolute;
  right: -58px;
  bottom: 14px;
  padding: 3px 10px 4px;
  border-radius: var(--r-pill);
  background: oklch(16% 0.01 50 / 0.86);
  color: var(--lamp);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.stage[data-turned] :is(.ck-track, .ck-head, .crank-hint) { opacity: 0; transition: opacity 400ms var(--ease); }

/* beside the machine: what is on the reel, and the two buttons */
.desk { align-self: center; padding-bottom: 56px; }
.now-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.012em; }
:lang(zh-Hans) .now-title { letter-spacing: 0; }
.now-facts { margin-top: 6px; font-size: 14px; color: var(--table-soft); font-variant-numeric: tabular-nums; min-height: 1.7em; }
.stage-note { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--table-faint); max-width: 34em; }
.stage-note a { color: var(--table-soft); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  min-height: 44px;
  min-width: 76px;
  padding: 0 20px;
  border: 1px solid var(--table-line);
  border-radius: var(--r-pill);
  background: oklch(22% 0.008 60 / 0.86);
  color: var(--table-ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease);
}
.pill:active { transform: scale(0.96); }
.pill[data-on] { background: var(--lamp); border-color: transparent; color: oklch(24% 0.03 60); }
.pill[aria-pressed="false"] { color: var(--table-faint); }
@media (hover: hover) {
  .pill:not([data-on]):hover { background: oklch(27% 0.01 60 / 0.92); }
}
.stage :is(.pill, .crank):focus-visible { outline-color: var(--lamp); border-radius: var(--r-pill); }
/* until the script runs (or without it) the machine stands still: nothing to press */
main:not([data-live]) :is(.controls, .ck-track, .ck-head, .crank-hint, .live-only) { display: none; }

.section { padding-block: 104px; border-top: 1px solid var(--rule); }
.section:first-child { border-top: 0; }
.section h2 { margin-top: 18px; }
.copy p:not(.eyebrow) { color: var(--soft); margin-top: 18px; max-width: 31em; }
.copy p a, .credit a { text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.copy code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }

/* the app's own screenshots: whole screens, at a phone's corner radius */
.plate img, .ware img {
  width: 100%;
  border-radius: var(--r-screen);
  box-shadow: 0 2px 4px -1px var(--shadow), 0 28px 44px -28px var(--shadow);
  outline: 1px solid oklch(100% 0 0 / 0.08);
  outline-offset: -1px;
}

/* how it works: the reel from the side, lettered, and what it measures */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 88px; align-items: start; }
.drawing { display: block; width: 100%; height: auto; overflow: visible; }
.fg-cards { fill: none; stroke: var(--line); stroke-width: 0.5; }
.fg-part { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; }
.fg-stand { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.fg-stop, .fg-axle { fill: var(--ink); }
.fg-crank { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.fg-knob { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; }
.fg-lead { fill: none; stroke: var(--line); stroke-width: 0.5; }
.fg-tag circle { fill: var(--paper); stroke: var(--ink); stroke-width: 0.6; }
.fg-tag text { fill: var(--ink); font-family: var(--garamond); font-size: 10.5px; text-anchor: middle; }
.dm-line, .dm-ext { stroke: var(--ruby); stroke-width: 0.6; fill: none; }
.dm-ext { opacity: 0.7; }
.dm-arrow { fill: var(--ruby); }
.dm-text { fill: var(--ruby); font-family: var(--garamond); font-variant-numeric: lining-nums tabular-nums; font-size: 11px; text-anchor: middle; }
.legend { display: grid; grid-template-columns: 1fr; margin-top: 36px; }
.legend li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; align-items: baseline; align-content: start; padding-block: 12px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6; color: var(--soft); }
.legend li:last-child { border-bottom: 1px solid var(--rule); }
.legend b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: -0.005em; color: var(--ink); }
.tag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--garamond);
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}
.specs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.specs div { padding: 18px 24px 20px 0; }
.specs div + div { padding-left: 24px; box-shadow: inset 1px 0 var(--rule); }
.specs dt { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.specs dd { font-family: var(--serif); font-size: 20px; line-height: 1.35; letter-spacing: -0.012em; }
:lang(zh-Hans) .specs dt { font-size: 12px; letter-spacing: 0.04em; }
:lang(zh-Hans) .specs dd { letter-spacing: 0; }

/* making a reel, and sending one: two screens side by side, the second a step lower */
.make, .send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 88px; align-items: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pair .plate:nth-child(2) { margin-top: 72px; }
.pair .plate img { border-radius: 22px; }

/* papers and stands: the same machine, once for each */
.range .copy { max-width: 40em; }
.wares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.wares-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; }
.ware img { border-radius: 18px; }
.ware p { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.ware b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.35; letter-spacing: -0.012em; color: var(--ink); margin-bottom: 2px; }
:lang(zh-Hans) .ware b { letter-spacing: 0; }
.range figcaption { margin-top: 28px; }

/* the sample reel: the whole sheet, as it was deposited */
.sheet { margin-top: 48px; }
.sheet img { width: 100%; border-radius: var(--r-sheet); box-shadow: 0 2px 4px -1px var(--shadow), 0 28px 44px -28px var(--shadow); }
.credit { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 44em; }

/* later: what is planned and not in 1.0 */
.later-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-block: 1px solid var(--line); }
.later-list div { padding: 18px 24px 20px 0; }
.later-list div + div { padding-left: 24px; box-shadow: inset 1px 0 var(--rule); }
.later-list dt { font-family: var(--serif); font-size: 19px; line-height: 1.35; letter-spacing: -0.012em; }
:lang(zh-Hans) .later-list dt { letter-spacing: 0; }
.later-list dd { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--soft); }

/* support: the address is the anchor; the questions are the sheet's notes */
.support { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 96px; align-items: start; }
.support-intro p:not(.eyebrow) { margin-top: 20px; color: var(--soft); font-size: 15px; max-width: 28em; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 14px; text-decoration-color: var(--ruby); }
.mail {
  display: inline-block;
  margin-top: 6px;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-decoration-color: var(--ruby);
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
}
.questions { counter-reset: note; }
.questions div {
  counter-increment: note;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}
.questions div:first-child { border-top: 0; padding-top: 6px; }
.questions div::before {
  content: counter(note) ".";
  grid-row: 1 / span 2;
  font-family: var(--garamond);
  font-style: italic;
  font-variant-numeric: lining-nums;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ruby);
}
.questions dt { font-family: var(--serif); font-size: 20px; line-height: 1.4; letter-spacing: -0.012em; }
:lang(zh-Hans) .questions dt { letter-spacing: 0; font-size: 19px; }
.questions dd { margin-top: 8px; color: var(--soft); font-size: 15px; max-width: 36em; }

.site-footer {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 16px calc(32px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--soft);
}
.site-footer .wm { font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* entrance, as on the homepage */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.rise { animation: rise 700ms var(--ease) both; }
.hero-name .rise:nth-child(2) { animation-delay: 90ms; }
.hero-what .rise:nth-child(1) { animation-delay: 180ms; }
.hero-what .rise:nth-child(2) { animation-delay: 240ms; }
.hero-what .rise:nth-child(3) { animation-delay: 300ms; }
/* privacy pages */
.legal-header { padding-block: 64px 48px; max-width: 800px; }
.legal-header h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; }
:lang(zh-Hans) .legal-header h1 { line-height: 1.3; letter-spacing: 0; }
.legal-header .lead { font-family: var(--sans); font-size: 18px; line-height: 1.7; letter-spacing: 0; font-weight: 400; max-width: 34em; margin-top: 28px; color: var(--soft); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; padding-bottom: 96px; align-items: start; }
.legal-index { position: sticky; top: 24px; font-size: 14px; }
.legal-index ol { list-style: none; padding: 0; }
.legal-index a { display: inline-flex; align-items: center; min-height: 40px; color: var(--soft); text-decoration: none; font-variant-numeric: tabular-nums; }
.legal-body section { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 40px; }
.legal-body section:first-child { margin-top: 0; }
.legal-body h2 { font-size: 26px; line-height: 1.3; letter-spacing: -0.012em; }
.legal-body p, .legal-body ul { margin-top: 16px; }
.legal-body p, .legal-body li { color: var(--soft); }
.legal-body ul { padding-left: 22px; margin-bottom: 0; }
.legal-body li + li { margin-top: 8px; }
.legal-body li::marker { color: var(--ruby); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { text-decoration-color: var(--ruby); }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .pill, .store, .stage[data-turned] :is(.ck-track, .ck-head, .crank-hint) { transition: none; }
}

@media (max-width: 1080px) {
  .legal-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
  .bench { column-gap: 56px; }
  .how, .make, .send { gap: 48px 48px; }
  .support { gap: 48px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 72px; gap: 12px; }
  .wordmark { font-size: 22px; }
  .site-nav { gap: 18px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; row-gap: 28px; padding-block: 24px 44px; }
  /* what is on the reel first, then the machine, standing on the stage's lower edge */
  .stage { padding-top: 40px; }
  .bench { grid-template-columns: 1fr; row-gap: 36px; }
  .desk { order: -1; padding-bottom: 0; }
  .machine { max-width: 340px; }
  .case { height: 190px; }
  .section { padding-block: 72px; }
  .how, .make, .send, .support { grid-template-columns: 1fr; gap: 44px; }
  /* the words first, then what they describe */
  .make .copy, .send .copy { order: -1; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div { padding: 16px 12px 16px 0; }
  .specs div + div { padding-left: 0; box-shadow: none; }
  .specs div:nth-child(even) { padding-left: 16px; box-shadow: inset 1px 0 var(--rule); }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .specs dd { font-size: 18px; }
  .pair { gap: 16px; }
  .pair .plate:nth-child(2) { margin-top: 44px; }
  .pair .plate img { border-radius: 16px; }
  .wares, .wares-3 { grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 36px; }
  .ware img { border-radius: 14px; }
  .ware b { font-size: 17px; }
  .later-list { grid-template-columns: 1fr; }
  .later-list div { padding: 16px 0; }
  .later-list div + div { padding-left: 0; box-shadow: none; border-top: 1px solid var(--rule); }
  .legal-header { padding-top: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-index { position: static; }
  .legal-index ol { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0; }
}
