/*
  Platen: writing app (Screenery template)
  A dark walnut desk with a green felt blotter. On it, the machine: black enamel body, chrome trim, a rubber platen,
  a cream sheet typed in ribbon ink. Below the machine: index cards, a carbon copy, a typed memo, paper price sheets.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Desk grounds (walnut, felt), buttons, icons
   4. Header and intro
   5. The machine: stage, carriage, platen, bail and scale, window, paper, ink
   6. The deck: spools, keys, tag, slip
   7. Drawer: tray, index cards, rename, undo, carbon copy
   8. Memo, shortcuts card
   9. Privacy, pricing
  10. Download form, questions, footer
  11. Focus mode, strict mode
  12. Motion and reduced motion
  13. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Desk */
  --walnut: #2a1c14;
  --walnut-deep: #1b120c;
  --walnut-lift: #3a281c;
  --felt: #24342b;
  --felt-deep: #1b2821;
  --leather: #5a3320;

  /* Paper and ink */
  --paper: #f3ead7;
  --paper-shade: #e4d7bd;
  --paper-rule: #d8c8a8;
  --onion: #f7f2e6;
  --manila: #ead9b4;
  --ink: #1f1b17;
  --ink-soft: #4f463c;         /* secondary text on paper: 8.0:1 */
  --red: #a8281f;              /* the red half of the ribbon: 6.0:1 on paper */
  --carbon: #2c3b78;           /* carbon copy blue: 8.9:1 on onion skin */
  --card-blue: #a9bcd6;        /* index card ruling (decorative) */

  /* Machine */
  --enamel: #15171a;
  --enamel-lift: #23262b;
  --enamel-edge: #2f3339;
  --chrome: #c4c8cd;
  --chrome-hi: #f2f4f6;
  --chrome-lo: #7d838b;
  --brass: #c9a86a;

  /* Text on the desk */
  --cream: #efe4cf;            /* 13.6:1 on walnut */
  --cream-dim: #cdbb9c;        /* 8.9:1 on walnut, 7.4:1 on felt */
  --focus: #e8c27a;

  /* Type */
  --typed: 'Special Elite', 'Courier New', monospace;
  --serif: 'Libre Baskerville', Georgia, serif;
  --fs-sheet: 18px;

  /* Space and shape */
  --gutter: clamp(16px, 4vw, 56px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 18px;
  --shadow-paper: 0 1px 1px rgb(0 0 0 / .25), 0 10px 24px -8px rgb(0 0 0 / .55);
  --shadow-machine: 0 2px 2px rgb(0 0 0 / .4), 0 30px 60px -20px rgb(0 0 0 / .7);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Machine geometry (the sheet's ch unit comes from --fs-sheet in Special Elite) */
  --knob: 34px;
  --pad-x: 56px;
  --cols: 64;
  --win-h: clamp(260px, 38vh, 430px);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--walnut-lift) var(--walnut-deep); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--cream);
  font: 400 1rem/1.7 var(--serif);
  background-color: var(--walnut);
  /* walnut grain: long, stretched turbulence over the base colour */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2200' height='900'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0.7 -0.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2e1f16, var(--walnut) 40%, #261911);
  background-size: 2200px 900px, 100% 100%;
  accent-color: var(--red);
  caret-color: var(--red);
  overflow-x: clip;
}
::selection { background: rgb(168 40 31 / .32); color: inherit; }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { font-family: var(--typed); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); color: var(--ink); font-family: var(--typed); }
.skip:focus { top: var(--s4); }
.num, [data-num] { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--walnut-deep); }
::-webkit-scrollbar-thumb { background: var(--walnut-lift); border-radius: 10px; border: 2px solid var(--walnut-deep); }

/* ---------- 3. Icons and buttons ---------- */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 10px 20px;
  font: 400 1rem/1.2 var(--typed); letter-spacing: .02em;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-paper { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-paper); }
.btn-paper:hover { background: #fbf4e4; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #38312a; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: rgb(31 27 23 / .07); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px;
  background: none; border: 0; color: inherit; font: 400 .95rem var(--typed); cursor: pointer;
  text-decoration: underline; text-underline-offset: .25em;
}

/* ---------- 4. Header and intro ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s4) var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--typed); color: var(--cream); min-height: 44px; }
.brand-mark { width: 40px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-family: var(--typed); color: var(--cream-dim); }
.nav a:hover { color: var(--cream); text-decoration: underline; }
.nav .nav-cta { color: var(--ink); background: var(--paper); border-radius: var(--r-sm); margin-left: var(--s2); box-shadow: var(--shadow-paper); }
.nav .nav-cta:hover { color: var(--ink); text-decoration: none; background: #fbf4e4; }

.desk { max-width: 1440px; margin: 0 auto; padding: var(--s3) var(--gutter) var(--s8); }
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s4) var(--s7);
  align-items: end; max-width: 1180px; margin: 0 auto var(--s5);
}
.intro h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.6rem); line-height: 1;
  color: var(--cream);
  text-shadow: .5px .5px 0 rgb(239 228 207 / .35), -.4px 0 .6px rgb(239 228 207 / .3);
}
.lede { color: var(--cream-dim); max-width: 60ch; font-size: 1.02rem; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s4); grid-column: 2; }
.intro-note { font-family: var(--typed); color: var(--cream-dim); font-size: .95rem; }
.intro .lede { grid-column: 2; grid-row: 1; }
.intro h1 { grid-column: 1; grid-row: 1 / span 2; align-self: center; }

/* The felt blotter with leather corners */
.blotter {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: clamp(10px, 1.6vw, 22px) clamp(10px, 3vw, 48px) clamp(22px, 3vw, 40px);
  background-color: var(--felt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25), inset 0 0 60px rgb(0 0 0 / .35);
}
.blotter::before, .blotter::after {
  content: ""; position: absolute; top: 0; width: 64px; height: 64px; background: var(--leather);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3);
}
.blotter::before { left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.blotter::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* ---------- 5. The machine ---------- */
.machine { position: relative; max-width: 1120px; margin: 0 auto; }

.stage {
  position: relative; overflow: hidden; overflow: clip;
  padding-top: 34px; /* room for the return lever */
}
.carriage {
  --cx: 0px;
  position: relative;
  width: min(100%, calc(var(--cols) * 1ch + 2 * var(--pad-x) + 2 * var(--knob)));
  margin: 0 auto;
  font: 400 var(--fs-sheet)/1.8 var(--typed);
  transform: translate3d(var(--cx), 0, 0);
  transition: transform 90ms linear;
}
.carriage.is-returning { transition: transform 520ms var(--ease-out); }

/* Platen: rubber roller with knurled knobs */
.platen { display: flex; align-items: center; height: 56px; position: relative; z-index: 2; }
.roller {
  flex: 1; height: 50px; border-radius: 25px / 50%;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .16) 0 2px, transparent 2px 9px, rgb(255 255 255 / .1) 9px 11px, transparent 11px),
    linear-gradient(180deg, #43474d 0%, #1d1f23 28%, #0b0c0e 62%, #26292d 100%);
  box-shadow: 0 6px 10px -4px rgb(0 0 0 / .7);
}
.knob {
  flex: none; width: var(--knob); height: 56px; border-radius: 9px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / .18), transparent 40%, rgb(0 0 0 / .3)),
    repeating-linear-gradient(180deg, #33363b 0 2px, #0e0f11 2px 4px);
  border: 2px solid var(--chrome-lo);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .4), 0 4px 8px rgb(0 0 0 / .5);
}
.knob-l { margin-right: -2px; } .knob-r { margin-left: -2px; }

/* Carriage return lever, on the left end of the carriage */
.lever {
  position: absolute; left: -2px; top: -32px; z-index: 3;
  width: 72px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 20% 20%; transition: transform .25s var(--ease-out);
}
.lever svg { width: 64px; height: 40px; }
.lever:hover { transform: rotate(-4deg); }
.lever:active { transform: rotate(-12deg); }

/* Paper bail with its margin scale */
.bail {
  position: relative; z-index: 2; height: 30px; margin: -10px var(--knob) 0;
  display: flex; align-items: flex-start;
}
.bail::before { /* the chrome rod */
  content: ""; position: absolute; left: -10px; right: -10px; top: 6px; height: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome) 50%, var(--chrome-lo));
  box-shadow: 0 2px 3px rgb(0 0 0 / .35);
}
.bail-roll { position: absolute; top: 2px; width: 22px; height: 13px; border-radius: 6px; background: linear-gradient(180deg, #3a3d42, #0d0e10); border: 1px solid var(--chrome-lo); z-index: 1; }
.bail-roll-l { left: 22%; } .bail-roll-r { right: 22%; }
.scale {
  position: absolute; left: var(--pad-x); right: var(--pad-x); top: 13px; height: 15px;
  background:
    repeating-linear-gradient(90deg, rgb(31 27 23 / .7) 0 1px, transparent 1px 1ch) 0 9px / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgb(31 27 23 / .9) 0 1px, transparent 1px 5ch) 0 5px / 100% 10px no-repeat,
    linear-gradient(180deg, #faf5ea, #e9dfca);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .35);
  font-size: var(--fs-sheet);
}
.scale-n { position: absolute; top: -1px; transform: translateX(-50%); font: 400 9px/1 var(--typed); color: var(--ink); }
.bail::after { /* the paper fades as it rolls up under the bail */
  content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 46px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 35%, rgb(243 234 215 / 0));
}
.pointer {
  --px: 0px;
  position: absolute; z-index: 3; top: 27px; left: calc(var(--pad-x) + var(--px));
  width: 0; height: 0; border: 6px solid transparent; border-bottom: 9px solid var(--red); border-top: 0;
  transform: translateX(-6px); transition: left 90ms linear;
}

/* The sheet window: a scroll container, the current line held in the middle */
.window {
  position: relative; height: var(--win-h); margin: -6px var(--knob) 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--paper-rule) transparent;
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / .8);
  border-radius: 0 0 2px 2px;
}
.window::-webkit-scrollbar { width: 6px; }
.window::-webkit-scrollbar-track { background: transparent; }
.window::-webkit-scrollbar-thumb { background: var(--paper-rule); border: 0; }
.paper {
  position: relative; min-height: 100%;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgb(0 0 0 / .16), transparent 26px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.36  0 0 0 0 0.22  0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-attachment: local, local;
}
.sheet, .ink {
  margin: 0; border: 0;
  padding: calc(var(--win-h) / 2 - .9em) var(--pad-x) calc(var(--win-h) / 2);
  font: inherit; letter-spacing: 0; tab-size: 4;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
}
.sheet {
  position: relative; z-index: 1; display: block; width: 100%; min-height: var(--win-h);
  resize: none; overflow: hidden; background: transparent; color: var(--ink); caret-color: var(--red);
  outline: none;
}
.sheet::placeholder { color: var(--ink-soft); opacity: 1; }
.sheet::selection { background: rgb(168 40 31 / .22); }
.ink {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  color: var(--ink); display: none;
  text-shadow: .25px .3px 0 rgb(31 27 23 / .55), -.3px 0 .5px rgb(31 27 23 / .35);
  filter: url(#ribbon);
}
.ink .red { color: var(--red); text-shadow: .25px .3px 0 rgb(168 40 31 / .5), -.3px 0 .5px rgb(168 40 31 / .3); }
.ink .mk { display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.ink .dim { opacity: .2; transition: opacity .35s var(--ease-out); }
/* With JS the textarea's own letters go transparent and the ink layer draws them */
.js .ink { display: block; }
.js .sheet { color: transparent; }
.js .sheet::selection { color: transparent; }
.window:focus-within { box-shadow: 0 18px 30px -18px rgb(0 0 0 / .8), 0 0 0 2px var(--felt), 0 0 0 4px var(--focus); }

/* Little chrome ticks either side of the current line */
.line-tick {
  position: absolute; top: calc(56px + 20px + var(--win-h) / 2 - 7px); width: 10px; height: 14px; z-index: 2;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome-lo));
}
.line-tick-l { left: calc(var(--knob) - 12px); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.line-tick-r { right: calc(var(--knob) - 12px); clip-path: polygon(100% 0, 0 50%, 100% 100%); }

/* ---------- 6. Deck: the machine body ---------- */
.deck {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); align-items: center;
  gap: var(--s4) var(--s5);
  margin-top: -2px;
  padding: var(--s5) clamp(16px, 3vw, 36px) var(--s4);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .06), transparent 30%),
    linear-gradient(180deg, var(--enamel-lift), var(--enamel));
  border-radius: 10px 10px 28px 28px;
  border: 1.5px solid var(--chrome-lo);
  box-shadow: var(--shadow-machine), inset 0 1px 0 rgb(255 255 255 / .08);
}
.keys::before { /* the red-and-black ribbon running behind the keys */
  content: ""; position: absolute; left: -28px; right: -28px; top: 22px; height: 10px; z-index: -1;
  background: linear-gradient(180deg, #0b0b0c 0 50%, var(--red) 50% 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .08);
  opacity: .9;
}

.spool { position: relative; z-index: 1; display: grid; grid-template-columns: 76px auto; align-items: center; gap: var(--s2) var(--s3); }
.spool-sprint { justify-self: end; grid-template-columns: auto 76px; }
.spool-sprint .spool-ring { grid-column: 2; grid-row: 1; }
.spool-sprint .spool-read { grid-column: 1; grid-row: 1; text-align: right; }
.spool-ring { width: 76px; height: 76px; transform: rotate(-90deg); }
.spool-track { fill: #0d0e10; stroke: var(--enamel-edge); stroke-width: 14; }
.spool-fill { fill: none; stroke: var(--red); stroke-width: 14; transition: stroke-dasharray .6s var(--ease-out); }
.spool-sprint .spool-fill { stroke: var(--brass); transition-duration: 1s; transition-timing-function: linear; }
.spool-hub { fill: var(--chrome); stroke: var(--chrome-lo); stroke-width: 2; }
.spool-read { display: flex; flex-direction: column; line-height: 1.2; }
.spool-num { font: 400 1.6rem/1.1 var(--typed); color: var(--cream); font-variant-numeric: tabular-nums; }
.spool-of { font: 400 .85rem/1.3 var(--typed); color: var(--cream-dim); }
.goal-pick { grid-column: 1 / -1; }
.goal-pick select, .sprint-stop {
  min-height: 44px; padding: 0 34px 0 12px; border-radius: var(--r-sm);
  font: 400 .9rem var(--typed); color: var(--cream); background-color: var(--enamel-lift);
  border: 1.5px solid var(--chrome-lo); cursor: pointer;
}
.goal-pick select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23efe4cf' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.goal-pick select option { background: var(--enamel); color: var(--cream); }
.sprint-stop { grid-column: 1 / -1; justify-self: end; padding: 0 14px; }
.sprint-stop:hover, .goal-pick select:hover { border-color: var(--chrome); }

.keys { position: relative; z-index: 1; isolation: isolate; display: grid; grid-template-columns: repeat(8, auto); gap: var(--s2) var(--s3); justify-content: center; }
.key {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer;
  min-width: 56px; border-radius: 10px;
}
.cap {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #2b2e33, #0c0d0f 72%);
  border: 3px solid var(--chrome);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .6), 0 5px 0 -1px #050506, 0 7px 10px rgb(0 0 0 / .55), inset 0 2px 1px rgb(255 255 255 / .14);
  color: var(--cream); font: 400 1rem/1 var(--typed);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .2s, border-color .2s;
}
.cap .ico { width: 22px; height: 22px; }
.key-label { font: 400 .78rem/1.1 var(--typed); color: var(--cream-dim); letter-spacing: .03em; }
.key:hover .cap { border-color: var(--chrome-hi); }
.key:active .cap, .key.is-struck .cap { transform: translateY(4px); box-shadow: 0 0 0 1px rgb(0 0 0 / .6), 0 1px 0 -1px #050506, 0 2px 4px rgb(0 0 0 / .5), inset 0 2px 1px rgb(255 255 255 / .1); }
.key[aria-pressed="true"] .cap {
  transform: translateY(3px);
  background: radial-gradient(circle at 50% 38%, #c2382d, #7e1c15 75%);
  border-color: var(--brass);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .6), 0 2px 0 -1px #050506, 0 3px 5px rgb(0 0 0 / .5), inset 0 2px 1px rgb(255 255 255 / .2);
}
.key[aria-pressed="true"] .key-label { color: var(--cream); }
.key:focus-visible { outline-offset: 2px; }

.tag {
  grid-column: 1 / -1; justify-self: center; position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  padding: 6px 16px; background: var(--paper); color: var(--ink); border-radius: 2px;
  font: 400 .9rem/1.4 var(--typed); font-variant-numeric: tabular-nums;
}
.tag-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-soft); }
.tag .is-error { color: var(--red); }

/* Notices: a slip of paper that slides out of the top of the machine */
.slip {
  position: absolute; right: clamp(8px, 4%, 48px); top: -6px; z-index: 6;
  max-width: min(360px, 80%); padding: 10px 14px 12px;
  background: var(--onion); color: var(--ink); border-radius: 2px;
  font: 400 .95rem/1.45 var(--typed);
  box-shadow: var(--shadow-paper);
  transform: rotate(.8deg);
}
.slip:empty { display: none; }
.slip.is-error { color: var(--red); }
.slip button { margin-left: 4px; }

/* ---------- 7. Drawer ---------- */
.drawer-sec { max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s8); }
.drawer-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3) var(--s7); align-items: end; margin-bottom: var(--s6); }
.drawer-head p { color: var(--cream-dim); max-width: 62ch; }
.drawer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--s6); align-items: start; }

/* The tray: an oak card box seen from above */
.tray {
  position: relative; padding: 22px; border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .35), transparent 22px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='o'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.16 0.006' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.09  0 0 0 0 0.04  0 0 0 0.6 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23o)'/%3E%3C/svg%3E"),
    #5e4028;
  box-shadow: inset 0 0 0 8px #6e4c31, inset 0 0 0 9px rgb(0 0 0 / .4), inset 0 12px 20px rgb(0 0 0 / .45), var(--shadow-paper);
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s4); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  min-height: 210px; padding: 0 16px 10px;
  color: var(--ink);
  background:
    linear-gradient(180deg, transparent 2.6rem, rgb(168 40 31 / .55) 2.6rem calc(2.6rem + 1.5px), transparent calc(2.6rem + 1.5px)),
    repeating-linear-gradient(180deg, transparent 0 calc(1.5rem - 1px), rgb(169 188 214 / .7) calc(1.5rem - 1px) 1.5rem) 0 calc(2.6rem + 2px) / 100% 100% no-repeat,
    #faf6ec;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 6px 12px -4px rgb(0 0 0 / .5);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 12px 20px -6px rgb(0 0 0 / .55); }
.card-title { font-size: 1.15rem; height: 2.6rem; padding-top: 1rem; line-height: 1.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font: 400 .82rem/1.5rem var(--typed); color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rename + .card-meta { margin-top: 6px; }
.rename { padding-top: 12px; }
.card-line { font: 400 .9rem/1.5rem var(--typed); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0 2px; margin-top: auto; padding-top: 8px; margin-left: -6px; }
.card-actions .btn-link { font-size: .85rem; }
.card-actions .btn-link .ico { width: 16px; height: 16px; }
.card-open { position: absolute; inset: 0; z-index: 0; border: 0; background: none; cursor: pointer; border-radius: 2px; }
.card > :not(.card-open):not(.card-clip) { position: relative; z-index: 1; }
.card-title, .card-meta, .card-line { pointer-events: none; }
.card.is-current { box-shadow: 0 0 0 2px var(--brass), 0 6px 12px -4px rgb(0 0 0 / .5); }
.card-clip {
  position: absolute; top: -8px; right: 12px; z-index: 2;
  padding: 4px 8px; font: 400 .72rem/1 var(--typed); color: var(--ink);
  background: linear-gradient(180deg, #e2c88f, var(--brass)); border-radius: 2px;
  box-shadow: 0 2px 3px rgb(0 0 0 / .4);
}
.card-new {
  display: grid; place-items: center; align-content: center; gap: 8px; min-height: 210px; width: 100%;
  border: 2px dashed rgb(243 234 215 / .55); border-radius: 2px; background: rgb(0 0 0 / .12);
  color: var(--cream); font: 400 1rem var(--typed); cursor: pointer;
}
.card-new:hover { background: rgb(0 0 0 / .22); border-color: var(--paper); }
.card-new .ico { width: 26px; height: 26px; }

/* Rename form on the card */
.rename { display: grid; gap: 6px; }
.rename label { font: 400 .8rem var(--typed); color: var(--ink-soft); }
.rename input {
  width: 100%; min-height: 40px; padding: 4px 6px; border: 0; border-bottom: 1.5px solid var(--ink);
  background: rgb(255 255 255 / .6); font: 400 1.05rem var(--typed); color: var(--ink); border-radius: 0;
}
.rename input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rename input[aria-invalid="true"] { border-bottom-color: var(--red); }
.rename .err { font: 400 .82rem/1.35 var(--typed); color: var(--red); min-height: 0; }
.rename-row { display: flex; gap: 2px; margin-left: -6px; }

.tray-empty { padding: var(--s6) var(--s4); color: var(--cream); font: 400 1.05rem/1.6 var(--typed); text-align: center; }
.undo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s4);
  margin-top: var(--s4); padding: 6px 8px 6px 16px; background: var(--onion); color: var(--ink);
  font: 400 .95rem var(--typed); border-radius: 2px;
}
.undo .btn-link { color: var(--red); }

/* Carbon copy: onion-skin page with blue carbon type */
.carbon {
  position: relative; padding: 22px 22px 20px; color: var(--ink);
  background: var(--onion); border-radius: 2px; box-shadow: var(--shadow-paper);
}
.carbon::before { /* the carbon sheet peeking out from under the copy */
  content: ""; position: absolute; inset: 4px -8px -8px 4px; z-index: -1; border-radius: 2px; transform: rotate(1.4deg);
  background: linear-gradient(135deg, #1d2547, #121833);
}
.carbon h3 { font-size: 1.3rem; }
.carbon-note { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
.carbon-sheet {
  margin: var(--s4) 0; padding: var(--s3) 0 0; max-height: 270px; overflow: hidden;
  border-top: 1px solid var(--paper-rule);
  font: 400 .92rem/1.6 var(--typed); color: var(--carbon);
  white-space: pre-wrap; overflow-wrap: break-word;
  text-shadow: 0 0 .6px rgb(44 59 120 / .7), .4px .3px 1px rgb(44 59 120 / .35);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.carbon-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.carbon :focus-visible, .card :focus-visible, .memo :focus-visible, .order :focus-visible, .price :focus-visible, .undo :focus-visible, .slip :focus-visible { outline-color: var(--red); }

/* ---------- 8. Memo and shortcuts ---------- */
.why { max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter); }
.memo {
  max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(20px, 6vw, 72px);
  color: var(--ink); background: var(--onion); border-radius: 2px; box-shadow: var(--shadow-paper);
  font: 400 1.04rem/1.75 var(--typed);
  transform: rotate(.5deg);
}
.memo-head { margin: 0 0 var(--s5); padding-bottom: var(--s4); border-bottom: 1.5px solid var(--ink); display: grid; gap: 4px; }
.memo-head div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; }
.memo-head dt { text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.memo-head dd { margin: 0; }
.memo-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--red); }
.memo p + p { margin-top: var(--s4); }
.memo strong { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.memo-sign { text-align: right; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

.shortcuts {
  max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s7); align-items: center;
}
.shortcuts-copy p { color: var(--cream-dim); margin-top: var(--s4); max-width: 46ch; }
.index-card {
  color: var(--ink); padding: 18px clamp(18px, 3vw, 32px) 22px;
  background:
    linear-gradient(180deg, transparent 3.4rem, rgb(168 40 31 / .6) 3.4rem calc(3.4rem + 1.5px), transparent calc(3.4rem + 1.5px)),
    repeating-linear-gradient(180deg, transparent 0 calc(2.6rem - 1px), rgb(169 188 214 / .8) calc(2.6rem - 1px) 2.6rem) 0 calc(3.4rem + 6px) / 100% 100% no-repeat,
    #faf6ec;
  border-radius: 3px; box-shadow: var(--shadow-paper); transform: rotate(-1deg);
}
.index-card-title { font-size: 1.5rem; height: 3.4rem; display: flex; align-items: center; }
.kbd-list { margin: 6px 0 0; display: grid; }
.kbd-list div { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: var(--s4); align-items: center; min-height: 2.6rem; }
.kbd-list dt { display: flex; gap: 5px; }
.kbd-list dd { margin: 0; font: 400 1rem var(--typed); }
kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 15px; border: 2px solid var(--chrome-lo);
  background: radial-gradient(circle at 50% 35%, #2b2e33, #0c0d0f 75%);
  color: var(--cream); font: 400 .78rem/1 var(--typed);
  box-shadow: 0 2px 0 #050506;
}

/* ---------- 9. Privacy and pricing ---------- */
.privacy { max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter); }
.privacy-lede { color: var(--cream-dim); max-width: 62ch; margin-top: var(--s4); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); margin-top: var(--s6); align-items: start; }
.flow { margin: 0; padding: var(--s5); background: var(--felt-deep); border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3), inset 0 0 40px rgb(0 0 0 / .3); }
.flow svg { width: 100%; height: auto; }
.flow-line { fill: none; stroke: var(--cream); stroke-width: .8; }
.flow-line use { stroke: var(--cream); }
.flow-dash { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.flow-text text { fill: var(--cream-dim); font: 400 13px var(--typed); text-anchor: middle; }
.flow-text .start { text-anchor: start; }
.flow-text .end { text-anchor: end; }
.flow figcaption { margin-top: var(--s4); color: var(--cream-dim); font-size: .92rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.facts li { padding-top: var(--s4); border-top: 1px solid rgb(239 228 207 / .22); color: var(--cream-dim); }
.facts strong { display: block; color: var(--cream); font: 400 1.12rem/1.3 var(--typed); margin-bottom: 4px; }

.pricing { max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s6); max-width: 980px; }
.price {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: clamp(22px, 3vw, 36px); color: var(--ink); border-radius: 2px; box-shadow: var(--shadow-paper);
  background: var(--manila);
}
.price-main { background: var(--paper); }
.price h3 { font-size: 1.6rem; }
.amount { font-family: var(--typed); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-bottom: var(--s4); border-bottom: 1.5px dashed rgb(31 27 23 / .45); }
.amount .num { font-size: 3rem; line-height: 1; }
.amount .per { color: var(--ink-soft); }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price li { position: relative; padding-left: 26px; }
.price li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 12px; height: 7px; border-left: 1.6px solid var(--red); border-bottom: 1.6px solid var(--red); transform: rotate(-45deg); }
.price .btn { margin-top: auto; align-self: flex-start; }
.honest { margin-top: var(--s6); max-width: 72ch; color: var(--cream-dim); }
.honest strong { color: var(--cream); font-weight: 700; }

/* ---------- 10. Download, questions, footer ---------- */
.download {
  max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start;
}
.download-copy p { color: var(--cream-dim); margin-top: var(--s4); max-width: 46ch; }
.download-copy .sizes { font: 400 .92rem/1.7 var(--typed); font-variant-numeric: tabular-nums; }
.order {
  display: grid; gap: var(--s5); padding: clamp(22px, 4vw, 44px); color: var(--ink);
  background: var(--paper); border-radius: 2px; box-shadow: var(--shadow-paper);
  --focus: var(--red);
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font: 400 1rem var(--typed); padding: 0; margin-bottom: 4px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 46px; padding: 6px 2px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.1rem var(--typed);
}
.field input::placeholder { color: #6b6155; }
.field input:focus-visible { outline: none; border-bottom-color: var(--red); box-shadow: 0 2px 0 var(--red); }
.field input[aria-invalid="true"] { border-bottom-color: var(--red); }
.hint { font-size: .86rem; color: var(--ink-soft); }
.err { font: 400 .9rem/1.4 var(--typed); color: var(--red); }
.err:empty { display: none; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.plat { position: relative; }
.plat input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plat span {
  display: grid; place-items: center; min-height: 48px; padding: 6px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: 400 1rem var(--typed);
  transition: background .2s, color .2s;
}
.plat input:checked + span { background: var(--ink); color: var(--paper); }
.plat input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.plat:hover span { background: rgb(31 27 23 / .07); }
.plat input:checked:hover + span { background: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .98rem; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.btn-submit { justify-self: start; min-width: 240px; }
.btn-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn-submit .dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.result:empty { display: none; }
.result { padding: var(--s3) 0 0; border-top: 1.5px dashed currentColor; font: 400 1rem/1.55 var(--typed); }
.result.ok { color: var(--ink); }
.result.bad { color: var(--red); }
.result strong { font-weight: 400; text-decoration: underline; text-underline-offset: .2em; }
.result .btn-link { padding-left: 0; }

.faq { max-width: 1240px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: var(--s5) var(--s7); align-items: start; }
.faq-list { max-width: 820px; border-top: 1px solid rgb(239 228 207 / .25); }
.faq details { border-bottom: 1px solid rgb(239 228 207 / .25); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 60px; padding: var(--s3) 0; cursor: pointer; list-style: none;
  font: 400 1.15rem/1.35 var(--typed); color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 1.6px solid var(--cream); border-bottom: 1.6px solid var(--cream); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 var(--s5); color: var(--cream-dim); max-width: 66ch; }

.foot {
  background: var(--walnut-deep); border-top: 1px solid rgb(239 228 207 / .12);
  padding: var(--s7) var(--gutter) var(--s6);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s7);
}
.foot-brand p { color: var(--cream-dim); margin-top: var(--s2); max-width: 44ch; font-size: .95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s2); align-content: start; justify-content: flex-end; max-width: 560px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: var(--typed); color: var(--cream-dim); text-decoration: none; }
.foot-nav a:hover { color: var(--cream); text-decoration: underline; }
.foot-small { grid-column: 1 / -1; font-size: .85rem; color: var(--cream-dim); padding-top: var(--s4); border-top: 1px solid rgb(239 228 207 / .12); }

/* ---------- 11. Focus mode and strict mode ---------- */
.top, .intro, .deck .spool, .deck .tag, .blotter::before, .blotter::after, .platen, .bail, .lever { transition: opacity .5s var(--ease-out); }
body.is-focus .top, body.is-focus .intro, body.is-focus .deck .spool, body.is-focus .deck .tag, body.is-focus .lever { opacity: .18; }
body.is-focus .top:hover, body.is-focus .top:focus-within, body.is-focus .intro:hover, body.is-focus .deck .spool:hover, body.is-focus .deck .spool:focus-within { opacity: 1; }
body.is-focus main > section:not(#machine), body.is-focus .foot { opacity: .25; transition: opacity .5s var(--ease-out); }
body.is-focus main > section:not(#machine):hover, body.is-focus main > section:not(#machine):focus-within { opacity: 1; }
.machine[data-strict="true"] .window { box-shadow: 0 18px 30px -18px rgb(0 0 0 / .8), inset 0 0 0 0 transparent; }
.strict-flag {
  position: absolute; top: calc(56px + 34px); right: calc(var(--knob) + 12px); z-index: 3; display: none;
  padding: 2px 8px; font: 400 .78rem/1.4 var(--typed); color: var(--red); border: 1.5px solid var(--red); border-radius: 2px;
  background: var(--paper);
}
.machine[data-strict="true"] .strict-flag { display: block; }
.machine.is-shake .stage { animation: refuse .3s var(--ease-out); }
@keyframes refuse { 0%, 100% { transform: none; } 30% { transform: translateX(-3px); } 60% { transform: translateX(2px); } }

/* ---------- 12. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .slip:not(:empty) { animation: slip-in .45s var(--ease-out); }
  @keyframes slip-in { from { transform: translateY(-10px) rotate(.8deg); opacity: 0; } to { transform: rotate(.8deg); opacity: 1; } }
  .card.is-leaving { animation: card-out .35s var(--ease-out) forwards; }
  @keyframes card-out { to { transform: translateY(18px) rotate(-3deg); opacity: 0; } }
  .card.is-arriving { animation: card-in .45s var(--ease-out); }
  @keyframes card-in { from { transform: translateY(-14px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carriage, .carriage.is-returning, .pointer, .spool-fill, .ink .dim, .cap, .card, .lever { transition: none !important; }
  .btn-submit .dots::after { animation: none; content: "..."; }
  .machine.is-shake .stage { animation: none; }
}

/* ---------- 13. Narrow screens ---------- */
@media (max-width: 1080px) {
  .keys { grid-template-columns: repeat(4, auto); }
  .keys::before { display: none; }
  }
@media (max-width: 900px) {
  :root { --fs-sheet: 16.5px; --pad-x: 36px; }
  .intro { grid-template-columns: 1fr; }
  .intro h1, .intro .lede, .intro-actions { grid-column: 1; grid-row: auto; }
  .deck { grid-template-columns: 1fr 1fr; }
  .keys { grid-column: 1 / -1; grid-row: 2; }
  .spool-sprint { justify-self: end; }
  .drawer-head, .drawer-grid, .shortcuts, .privacy-grid, .download, .faq { grid-template-columns: 1fr; }
  .carbon { transform: none; max-width: 560px; }
  .prices { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  :root { --fs-sheet: 15.5px; --pad-x: 18px; --knob: 16px; --win-h: clamp(280px, 52vh, 420px); }
  .nav a:not(.nav-cta) { display: none; }
  .intro h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .lede { font-size: .98rem; }
  .intro-actions .btn { width: 100%; }
  .blotter { padding: 14px 8px 16px; margin: 0 calc(var(--gutter) * -1 + 6px); }
  .blotter::before, .blotter::after { width: 36px; height: 36px; }
  .platen { height: 44px; }
  .roller { height: 40px; }
  .knob { height: 44px; border-radius: 6px; border-width: 1.5px; }
  .lever { top: -28px; width: 56px; } .lever svg { width: 52px; height: 32px; }
  .stage { padding-top: 26px; }
  .line-tick { top: calc(44px + 20px + var(--win-h) / 2 - 7px); width: 7px; left: auto; }
  .strict-flag { top: calc(44px + 30px); }
  .line-tick-l { left: calc(var(--knob) - 8px); } .line-tick-r { right: calc(var(--knob) - 8px); }
  .scale-n:nth-child(even) { display: none; }
  .deck { gap: var(--s4) var(--s3); padding: var(--s5) var(--s3) var(--s4); border-radius: 8px 8px 20px 20px; }
  .spool { grid-template-columns: 58px auto; gap: 6px 8px; }
  .spool-sprint { grid-template-columns: auto 58px; }
  .spool-ring { width: 58px; height: 58px; }
  .spool-num { font-size: 1.3rem; }
  .spool-of { font-size: .78rem; }
  .keys { gap: var(--s3) var(--s2); grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .cap { width: 50px; height: 50px; }
  .tag { font-size: .82rem; padding: 6px 10px; gap: 2px 14px; }
  .tag-sep { display: none; }
  .slip { right: 8px; left: 8px; max-width: none; }
  .tray { padding: 14px; }
  .kbd-list div { grid-template-columns: 1fr; gap: 4px; padding: 6px 0; min-height: 2.6rem; }
  .index-card { background: #faf6ec; transform: none; }
  .index-card-title { border-bottom: 1.5px solid rgb(168 40 31 / .6); }
  .kbd-list div + div { border-top: 1px solid rgb(169 188 214 / .8); }
  .platforms { grid-template-columns: 1fr; }
  .flow { padding: var(--s4) var(--s3); }
  .flow-text text { font-size: 17px; }
  .btn-submit { width: 100%; min-width: 0; }
  .memo { transform: none; }
  .memo-head div { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; margin-left: -8px; }
}
