/* Autochrome's site, in the app's language: four tones and four signals, unscii on whole pixels,
   notched boxes with hard shadows, selection that inverts. The palettes are copied from
   Autochrome/Sources/Theme/Theme.swift; keep them in step. */

@font-face { font-family: "unscii8"; src: url("/fonts/unscii-8.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "unscii16"; src: url("/fonts/unscii-16.woff2") format("woff2"); font-display: swap; }

:root, [data-palette="NIGHT"] {
  --bg: #14161A; --mid: #3B404A; --dim: #9AA0AC; --ink: #E9EBE4;
  --red: #FF5A48; --yellow: #FFC532; --blue: #4F8BFF; --green: #3BD374; --canvas: #0E0F11;
  --text: var(--dim);
}
[data-palette="SAFELIGHT"] {
  --bg: #140202; --mid: #4A0A08; --dim: #B0281E; --ink: #FF5A48;
  --red: #FF8A80; --yellow: #FFC532; --blue: #7FA8FF; --green: #6FE39A; --canvas: #0B0101;
  --text: var(--ink);
}
[data-palette="1BIT"] {
  --bg: #FFFFFF; --mid: #B8B8B8; --dim: #555555; --ink: #000000;
  --red: #E0432F; --yellow: #E0A400; --blue: #2B67DB; --green: #2AA35B; --canvas: #8A8A8A;
  --text: var(--dim);
}
[data-palette="1BIT"][data-night] {
  --bg: #000000; --mid: #4A4A4A; --dim: #AAAAAA; --ink: #FFFFFF;
  --red: #FF5A48; --yellow: #FFC532; --blue: #4F8BFF; --green: #3BD374; --canvas: #0A0A0A;
}
[data-palette="PALLM"] {
  --bg: #F4ECDF; --mid: #C9BBA5; --dim: #5F6E72; --ink: #132A33;
  --red: #D9452B; --yellow: #E8A21F; --blue: #2B67DB; --green: #2A9D5B; --canvas: #7E7A72;
  --text: var(--dim);
}
[data-palette="PALLM"][data-night] {
  --bg: #0F2129; --mid: #2B4650; --dim: #93A4A8; --ink: #EEE4D4;
  --red: #FF6A4D; --yellow: #FFB547; --blue: #6FA8FF; --green: #4FD69A; --canvas: #0B1316;
}
[data-palette="POCKET"] {
  --bg: #EFEDE1; --mid: #ADAB99; --dim: #5B5B52; --ink: #1B1B18;
  --red: #E0432F; --yellow: #F0B429; --blue: #2B67DB; --green: #2AA35B; --canvas: #7E7D74;
  --text: var(--dim);
}
[data-palette="DMG"] {
  --bg: #E0F8D0; --mid: #88C070; --dim: #346856; --ink: #081820;
  --red: #E04A3A; --yellow: #F0B429; --blue: #2F6BD8; --green: #1E9E5A; --canvas: #5E7F66;
  --text: var(--dim);
}
[data-palette="CYANOTYPE"] {
  --bg: #0B2545; --mid: #24507E; --dim: #8FB3D9; --ink: #EEF4FA;
  --red: #FF6B5A; --yellow: #FFD04A; --blue: #9CCBFF; --green: #5FE0A0; --canvas: #0A0F16;
  --text: var(--dim);
}
[data-palette="SEPIA"] {
  --bg: #F1E4CC; --mid: #C4A983; --dim: #7A5A3A; --ink: #3B2414;
  --red: #C8402A; --yellow: #D9961A; --blue: #2E5FA8; --green: #3C8A4F; --canvas: #7D766C;
  --text: var(--dim);
}
[data-palette="AMBER"] {
  --bg: #120A00; --mid: #4A2C00; --dim: #B86E00; --ink: #FFB000;
  --red: #FF7A5C; --yellow: #FFE38A; --blue: #7FA8FF; --green: #6FE39A; --canvas: #0A0806;
  --text: var(--ink);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/24px "unscii16", ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: none; font-smooth: never; text-rendering: optimizeSpeed;
  text-transform: uppercase;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 16px; z-index: 30; }
.skip:focus { left: 0; }
.wrap { width: min(1344px, 100% - 32px); margin-inline: auto; }

/* Type: unscii-8 on whole multiples of its 8 px grid. */
h1, h2, h3, .logo, .big { font-family: "unscii8", ui-monospace, Menlo, monospace; font-weight: 400; }
h1 { font-size: 24px; line-height: 32px; }
h2 { font-size: 32px; line-height: 40px; }
h3 { font-size: 16px; line-height: 24px; }
.text { color: var(--text); max-width: 60ch; }
.text + .text { margin-top: 16px; }
@media (min-width: 700px) { h1 { font-size: 32px; line-height: 40px; } h2 { font-size: 48px; line-height: 56px; } }
@media (min-width: 1000px) { h2 { font-size: 64px; line-height: 72px; } }
@media (min-width: 1200px) { h1 { font-size: 40px; line-height: 48px; } }
@media (min-width: 1440px) { h1 { font-size: 48px; line-height: 56px; } }
@media (min-width: 1800px) { h1 { font-size: 64px; line-height: 72px; } }

/* Box: notched corners, a hard shadow on the wrapper because clip-path would cut it. */
.shadow { display: inline-block; filter: drop-shadow(2px 2px 0 var(--mid)); }
.notch {
  clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px),
    calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px);
}
.key {
  display: inline-block; padding: 6px 12px; background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); text-decoration: none; white-space: nowrap; user-select: none;
}
button.key:hover, a.key:hover { background: var(--ink); color: var(--bg); }
button.key:active, a.key:active { transform: translate(2px, 2px); }
.shadow:has(> .key:active) { filter: none; }
.key[aria-pressed="true"], .key[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* The store keys are placeholders until the listings exist: see website/README.md. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; flex-direction: column; padding: 8px 16px; background: var(--ink); color: var(--bg);
  border: 2px solid var(--ink); text-decoration: none; cursor: default;
}
.store b { font: 400 16px/24px "unscii8", ui-monospace, monospace; }
.store small { font-size: 16px; line-height: 24px; opacity: .72; }

.rainbow { display: flex; height: 4px; width: 96px; }
.rainbow i { flex: 1; }
.rainbow i:nth-child(1) { background: var(--yellow); }
.rainbow i:nth-child(2) { background: var(--blue); }
.rainbow i:nth-child(3) { background: var(--red); }
.rainbow i:nth-child(4) { background: var(--green); }

/* Header: the logo, the app's tool tabs as the page's contents, the palette key. */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--ink); }
.top-row { display: flex; align-items: center; gap: 16px; padding: 8px 16px; min-height: 48px; }
.logo { font-size: 24px; line-height: 32px; text-decoration: none; letter-spacing: 0; flex: none; }
@media (max-width: 399px) { .logo { font-size: 16px; line-height: 24px; } }
.palette-key { margin-left: auto; flex: none; }
.palette-key .key { padding: 2px 8px; display: flex; gap: 8px; align-items: center; }
.palette-key i { width: 8px; height: 8px; display: block; }
.tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
  -webkit-overflow-scrolling: touch; justify-content: flex-start;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  --signal: var(--dim);
  flex: none; padding: 4px 10px 8px; text-decoration: none; position: relative; color: var(--ink);
}
.tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--signal); }
.tabs a[aria-current="true"], .tabs a:hover { background: var(--ink); color: var(--bg); }
.tabs a[aria-current="true"]::after { background: var(--bg); }
.s-light { --signal: var(--yellow) !important; }
.s-color { --signal: var(--blue) !important; }
.s-mask { --signal: var(--red) !important; }
.s-ask { --signal: var(--green) !important; }
@media (max-width: 999px) {
  .top-row { flex-wrap: wrap; padding: 8px 0 0; gap: 8px 12px; }
  .logo { order: 1; margin-left: 16px; }
  .palette-key { order: 2; margin-right: 16px; }
  .tabs { order: 3; flex-basis: 100%; }
  html { scroll-padding-top: 112px; }
}

/* The hero: the editor itself. */
.hero-title { padding: 16px; border-bottom: 2px solid var(--mid); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--canvas); }
.stage { position: relative; aspect-ratio: 3 / 2; background: var(--canvas); touch-action: pan-y; overflow: hidden; }
.stage canvas { width: 100%; height: 100%; }
.stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side { background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.intro { background: var(--bg); padding: 16px; display: grid; gap: 16px; }
.split { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; display: none; }
.split.on { display: block; }
.split::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #fff; }
.split span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 24px; background: #fff; color: #000;
  display: grid; place-items: center; font-size: 16px; line-height: 16px;
}
.stamp { position: absolute; top: 12px; padding: 0 8px; background: #000; color: #fff; pointer-events: none; }
.stamp.l { left: 12px; } .stamp.r { right: 12px; }
.film { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.film button { width: 56px; height: 40px; border: 2px solid #fff; background-size: cover; background-position: center; }
.film button[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
.film button:focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .film button { width: 44px; height: 32px; } .stamp { top: 8px; } .stamp.l { left: 8px; } .stamp.r { right: 8px; } }

.hist { width: 100%; height: 56px; image-rendering: pixelated; background: var(--canvas); }
.panel-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); }
.panel-tabs button { padding: 4px 12px; }
.panel-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pane { display: grid; gap: 0; }
.pane[hidden] { display: none; }
.looks-keys { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 12px; }
.looks-keys .key { padding: 2px 8px; }
.side .note { color: var(--text); }

/* AdjustRow: the whole row is the slider. Its drag only begins sideways. */
.row {
  display: grid; grid-template-columns: 1fr auto; padding: 6px 0 10px; cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.row:hover .val, .row.dragging .val { color: var(--ink); }
.row .val { color: var(--text); }
.row .track { grid-column: 1 / -1; position: relative; height: 8px; margin-top: 4px; }
.row .track::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: var(--mid); }
.row .fill { position: absolute; top: 2px; height: 4px; background: var(--ink); }
.row .zero { position: absolute; left: 50%; top: 0; width: 2px; height: 8px; margin-left: -1px; background: var(--dim); }
.row:focus-visible { outline-offset: 0; }

@media (min-width: 1000px) {
  .editor { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr); min-height: calc(100svh - 128px); }
  .stage { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 560px; }
  .intro { grid-column: 2; border-left: 2px solid var(--ink); padding-bottom: 0; }
  .side { grid-column: 2; border-left: 2px solid var(--ink); }
}

/* Dither between sections, coloured by the palette. */
.band {
  height: 64px; background: var(--mid);
  -webkit-mask: url("/dither.png") repeat-x 0 0 / 32px 64px; mask: url("/dither.png") repeat-x 0 0 / 32px 64px;
}
.band.up { transform: scaleY(-1); }

/* Sections. */
.sec { padding: 72px 0; }
@media (min-width: 1000px) { .sec { padding: 112px 0; } }
.sec.canvas { background: var(--canvas); }
/* Words sit on paper, as the app's panels do. A light palette's canvas is a mid gray, the one
   tone no ink can be read on; the neutral surround is for judging a picture. */
.paper { background: var(--bg); padding: 24px; }
.head { display: grid; gap: 16px; margin-bottom: 40px; }
.head h2 { max-width: 16ch; }
.tag { display: inline-block; justify-self: start; padding: 0 8px; background: var(--ink); color: var(--bg); border-bottom: 4px solid var(--signal, var(--dim)); }

.device {
  background: #08090B; border-radius: 36px; padding: 8px; outline: 2px solid var(--mid); box-shadow: 6px 6px 0 var(--mid);
  width: 100%;
}
.device video, .device img { width: 100%; height: auto; border-radius: 28px; background: #14161A; }
.device.tablet { border-radius: 24px; padding: 12px; }
.device.tablet video { border-radius: 12px; }

/* Lists, as in 1BIT's Rockbox: dense, ruled by group, selection inverts. */
.groups { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.group h3 { border-bottom: 2px solid var(--ink); margin-bottom: 4px; padding-bottom: 4px; color: var(--ink); }
.group li { color: var(--text); padding: 2px 0; }

/* Watch. */
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; }
.player .play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 16px; width: 100%; }
.player .play .key { background: var(--ink); color: var(--bg); padding: 12px 24px; }
.player .play:hover .key { background: var(--bg); color: var(--ink); }

/* Light. */
.light-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.light-grid .phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; max-width: 720px; }
.light-grid .phones > :nth-child(2) { margin-top: 64px; }
@media (min-width: 1000px) { .light-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }

/* Mask. */
.mask-grid { display: grid; grid-template-columns: minmax(0, 1fr); background: #000; color: #E9EBE4; }
.mask-photo { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #000; cursor: pointer; width: 100%; display: block; }
.mask-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.masked, .ruby { position: absolute; inset: 0; -webkit-mask: url("/photos/subject-mask.webp") center / cover no-repeat; mask: url("/photos/subject-mask.webp") center / cover no-repeat; opacity: 0; }
.ruby { background: #FF5A48; mix-blend-mode: normal; }
.mask-photo.on .masked { opacity: 1; }
.mask-photo.on.overlay .ruby { opacity: .62; }
.mask-prompt { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); background: #E9EBE4; color: #14161A; padding: 4px 12px; white-space: nowrap; }
.mask-photo.on .mask-prompt { display: none; }
.mask-side .tag { align-self: flex-start; }
.mask-side { padding: 48px 16px; display: flex; flex-direction: column; gap: 24px; --ink: #E9EBE4; --bg: #14161A; --mid: #3B404A; --dim: #9AA0AC; --text: #9AA0AC; --signal: #FF5A48; }
.mask-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mask-side .row { max-width: 480px; }
.mask-kinds { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #9AA0AC; max-width: 60ch; }
.mask-side .device { width: 200px; }
.mask-bottom { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
@media (min-width: 1000px) {
  .mask-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
  .mask-photo { aspect-ratio: auto; height: 100%; min-height: 900px; }
  .mask-side { padding: 112px 64px; }
  .mask-side .device { width: 240px; }
}

/* Looks. */
.looks-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.looks-grid .device { max-width: 300px; }
.look-list { columns: 1; }
.look-group { break-inside: avoid; margin-bottom: 24px; }
.look-group h3 { border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 4px; }
.look-group li { padding: 2px 8px; margin-inline: -8px; color: var(--text); cursor: default; }
.look-group li:hover, .look-group li:focus-visible { background: var(--ink); color: var(--bg); outline: 0; }
.look-note { min-height: 72px; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 8px; }
@media (min-width: 600px) { .look-list { columns: 2; column-gap: 40px; } }
@media (min-width: 1000px) {
  .looks-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 80px; align-items: start; }
  .look-list { columns: 3; }
  .looks-grid .device { position: sticky; top: 88px; }
}

/* Color: the iPad, big. */
.color-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .color-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }
.points { display: grid; gap: 8px; margin-top: 24px; color: var(--text); max-width: 60ch; }
.points li { padding-left: 16px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--signal, var(--dim)); }

/* Batch: the wall. */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 2px; background: var(--canvas); }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.wall button { position: relative; aspect-ratio: 1; overflow: hidden; display: block; background: var(--canvas); }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.wall button::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border: 2px solid #fff; background: rgba(0, 0, 0, .35);
}
.wall button[aria-pressed="true"]::after { background: #fff; box-shadow: inset 0 0 0 3px #000; }
.wall button[aria-pressed="true"] { outline: 4px solid var(--ink); outline-offset: -4px; }
.wall button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 1; }
.batchbar {
  position: sticky; bottom: 0; z-index: 5; background: var(--bg); border-top: 2px solid var(--ink);
  padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.batchbar .count { margin-right: auto; }
.batchbar .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.batchbar .acts span { padding: 2px 8px; border: 2px solid var(--ink); }

/* Ask. */
.ask-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; --signal: var(--green); }
@media (min-width: 1000px) { .ask-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.ask-box { border: 2px solid var(--ink); padding: 16px; background: var(--bg); display: grid; gap: 16px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips .key { white-space: normal; text-align: left; padding: 4px 8px; }
.ask-chips .key[aria-pressed="true"] { background: var(--green); color: #000; border-color: var(--green); }
.ask-plan li { display: flex; justify-content: space-between; padding: 2px 0; color: var(--text); }
.ask-plan li b { font-weight: 400; color: var(--ink); }
.ask-label { color: var(--text); }
.ask-step { border-top: 2px solid var(--ink); padding-top: 12px; }

/* Export and privacy. */
.keep-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); --signal: var(--blue); }
.keep-grid .device { max-width: 320px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.formats span { padding: 2px 8px; background: var(--ink); color: var(--bg); }
.noes { display: grid; gap: 0; margin-top: 40px; max-width: 720px; }
.noes li { border-top: 2px solid var(--ink); padding: 16px 0; display: grid; gap: 4px; }
.noes li:last-child { border-bottom: 2px solid var(--ink); }
.noes b { font: 400 24px/32px "unscii8", ui-monospace, monospace; }
.noes span { color: var(--text); }
@media (min-width: 1000px) { .keep-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 80px; } }

/* Palettes: each cartridge is drawn in its own tones, because it carries data-palette itself. */
.pal-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.carts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cart {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 12px; height: 100%; width: 100%;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink); min-height: 136px; text-transform: uppercase;
}
.cart b { font: 400 16px/24px "unscii8", ui-monospace, monospace; }
.cart small { font-size: 16px; line-height: 24px; color: var(--text); }
.cart .sig { display: flex; gap: 4px; margin-top: auto; }
.cart .sig i { width: 16px; height: 8px; }
.cart .sig i:nth-child(1) { background: var(--yellow); }
.cart .sig i:nth-child(2) { background: var(--blue); }
.cart .sig i:nth-child(3) { background: var(--red); }
.cart .sig i:nth-child(4) { background: var(--green); }
.cartwrap { display: block; filter: drop-shadow(2px 2px 0 #3B404A); }
.cart[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -6px; }
.pal-grid .device { max-width: 300px; }
@media (min-width: 1000px) { .pal-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; } }

/* The plate. */
.plate { position: relative; background: #000; color: #fff; }
.plate-canvas { position: relative; height: 92svh; min-height: 520px; touch-action: pan-y; }
.plate-canvas canvas { width: 100%; height: 100%; }
.plate-canvas .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.plate-card {
  --ink: #E9EBE4; --bg: #000000; --mid: #3B404A; --dim: #9AA0AC; --text: #E9EBE4;
  background: #000; padding: 24px 16px; display: grid; gap: 16px;
}
.plate-card .row { max-width: 560px; }
@media (min-width: 1000px) {
  .plate-card { position: absolute; left: 32px; bottom: 32px; width: 620px; padding: 32px; }
}

/* Price. */
.plans { border-top: 2px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; border-bottom: 2px solid var(--ink); }
.plan .big { font-size: 32px; line-height: 40px; }
@media (min-width: 420px) { .plan .big { font-size: 40px; line-height: 48px; } }
.plan .what { color: var(--text); max-width: 56ch; }
@media (min-width: 700px) { .plan .big { font-size: 64px; line-height: 72px; } }
@media (min-width: 1200px) { .plan { grid-template-columns: 740px minmax(0, 1fr); align-items: center; } }
.price-foot { display: grid; gap: 24px; margin-top: 40px; }

/* FAQ and prose: long reading goes in sentence case. */
.prose { text-transform: none; }
.faq details { border-bottom: 2px solid var(--mid); }
.faq details:first-child { border-top: 2px solid var(--mid); }
.faq summary { padding: 12px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 16px; color: var(--text); max-width: 68ch; text-transform: none; }

.page { padding: 56px 0 96px; }
.page h1 { margin-bottom: 32px; }
.page h2 { font-size: 16px; line-height: 24px; margin: 32px 0 8px; text-transform: uppercase; }
.page p, .page li { color: var(--text); max-width: 68ch; }
.page p + p { margin-top: 16px; }
.page ul { display: grid; gap: 8px; }

/* Footer. */
.foot { border-top: 2px solid var(--ink); padding: 40px 0 56px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .small { color: var(--text); max-width: 60ch; }
.foot a:hover { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
