/* unchartedpcport.wiki — Taste Skill direction "The product performs" (seed 476570442).
   Idea: Drake's three expeditions become the trilogy's status plates; the port picker and the SHA-256 checker are the instruments.
   Parchment ground, umber ink, one bronze accent, umber fields for the instruments. IM Fell English for display, Hanken Grotesk for text. */
:root {
  --bg: #e7dcc3; --surface: #ddd0b2; --surface-2: #d2c3a1; --ink: #23170c; --muted: #4f3d2b;
  --accent: #6c3f0f; --accent-ink: #efe3c8; --accent-hover: #4e2d09;
  --field: #24160c; --field-2: #33210f; --field-3: #45301a; --field-ink: #efe3c8; --field-muted: #d2bf9b; --brass: #e2b764;
  --note: #e3cf9f; --warn: #e6c5b2; --ok: #2a5520; --bad: #8f2a19; --part: #6a420e;
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* code and pre only. taste-skill-ignore */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --step-display: clamp(2.6rem, 6.2vw, 4.8rem);
  --margin: clamp(1rem, 3vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --wrap: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms; --t-hover: 200ms;
  /* kept for the inline <pre> on /install/ */
  --card: var(--surface); --line: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); letter-spacing: -0.005em; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color var(--t-hover) var(--ease-out); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, kbd, pre { font-family: var(--mono); }
code, kbd { font-size: 0.88em; background: var(--surface-2); border-radius: 2px; padding: 0.06em 0.34em; overflow-wrap: anywhere; }
pre { font-size: var(--step-small); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; color: var(--ink); text-wrap: balance; }
h2 { font-size: var(--step-head); margin: 0 0 0.45em; }
h3 { font: 600 var(--step-lead)/1.2 var(--text); letter-spacing: -0.015em; margin: 1.6em 0 0.4em; text-wrap: balance; }
h4 { font: 600 var(--step-body)/1.3 var(--text); margin: 1.2em 0 0.3em; }
p { margin: 0 0 1em; }
p, li { max-width: 65ch; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin: 0.3em 0; }
small { font-size: var(--step-small); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--margin); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--bg); padding: 8px 12px; }

/* nav: a plain umber bar */
.nav { background: var(--field); color: var(--field-ink); }
.nav .wrap { display: flex; align-items: center; gap: 8px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--field-ink); text-decoration: none; font: 400 1.35rem/1 var(--display); }
.mark b { font-weight: 400; color: var(--brass); }
.mark svg { flex: none; }
.nav__links { display: flex; gap: 2px 18px; margin-left: auto; flex-wrap: wrap; }
.nav__links a, .nav__lang a { color: var(--field-ink); text-decoration: none; font-size: 0.9375rem; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--brass); }
.nav__lang { display: flex; gap: 12px; }
.nav__lang a { color: var(--field-muted); }
.nav__lang a[aria-current] { color: var(--brass); font-weight: 600; }

/* buttons: square, flat, one fill */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; padding: 12px 22px; font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
a.btn, a.btn:hover { text-decoration: none; }
.field a.btn--ghost, .band a.btn--ghost { background: var(--field-3); color: var(--field-ink); }
.field a.btn--ghost:hover, .band a.btn--ghost:hover { background: var(--field-ink); color: var(--field); }

/* home hero: the title across the top, the voyage map as the plate */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.hero h1 { grid-column: 1 / -1; font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 clamp(24px, 3vw, 40px); }
.hero__copy { grid-column: 1 / span 5; }
.hero .lead { font-size: var(--step-lead); line-height: 1.4; margin: 0 0 28px; }
.hero__plate { grid-column: 6 / -1; margin: 0; overflow: hidden; }
.plate { margin: 0; }
.plate__img { overflow: hidden; background: var(--surface-2); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.plate figcaption, .cap { font-size: 0.9375rem; color: var(--muted); margin-top: 10px; max-width: 60ch; }
.status { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 6px; }
.status li { margin: 0; max-width: none; background: var(--surface); padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; }
.status b { font-weight: 600; }
.status .tag { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.status small { grid-column: 1 / -1; color: var(--muted); }
.status .when { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-small); }

/* sections */
.sec { padding: clamp(72px, 9vw, 160px) 0; }
.sec--alt { background: var(--surface); }
.sec h2 { max-width: 22ch; }
.field { background: var(--field); color: var(--field-ink); }
.field h2, .field h3 { color: var(--field-ink); }
.field a { color: var(--brass); }
.field code { background: var(--field-3); color: var(--field-ink); }
.statement { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; margin-bottom: clamp(40px, 5vw, 72px); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.cols4 p { font-size: 1rem; color: var(--muted); margin: 0; }
.cols4 p b { color: var(--ink); font-weight: 600; }

/* the two ports: 5/7 rows */
.port { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.port h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-head); line-height: 1; margin: 0 0 12px; letter-spacing: -0.01em; }
.port .who { color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.port__list { background: var(--surface); padding: clamp(20px, 2.6vw, 36px); }
.port:nth-of-type(even) .port__list { background: var(--surface-2); }
.port__list ul { margin: 0 0 20px; }
.port__list li { max-width: none; }

/* instrument sections (picker, checker): umber field, a picture and a working fragment */
.instrument { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.instrument__text { grid-column: 1 / span 5; }
.instrument__text p { color: var(--field-ink); }
.instrument__ui { grid-column: 6 / -1; }
.instrument .plate { margin-top: 32px; max-width: 420px; }
.instrument .plate figcaption { color: var(--field-muted); }

/* picker fragment */
.tool { background: var(--bg); color: var(--ink); padding: clamp(18px, 2.4vw, 32px); border-radius: 4px; }
.tool h2 { font-size: var(--step-lead); font-family: var(--text); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; color: var(--ink); }
.tool p.sub { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.field .tool a { color: var(--accent); }
.field .tool a.btn { color: var(--accent-ink); }
.step { margin: 0 0 16px; }
.step > span { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-width: 104px; min-height: 52px; border: 1px solid #b9a77f; background: var(--surface); color: var(--ink); border-radius: 4px; padding: 8px 10px; font: 600 0.9375rem/1.25 var(--text); cursor: pointer; text-align: center; transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.seg button:hover { background: var(--surface-2); }
.seg button:active { transform: scale(0.97); }
.seg button small { display: block; font-weight: 400; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: var(--field-ink); }
.seg button[aria-pressed="true"] small { color: var(--field-muted); }
.picks { display: grid; gap: 10px; margin-top: 8px; }
.pick { border: 1px solid #c9b88f; border-radius: 4px; padding: 14px 16px; background: #ebe1c9; animation: pick-in 360ms var(--ease-out) both; }
.pick:nth-child(2) { animation-delay: 70ms; }
@keyframes pick-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pick h3 { color: var(--ink); margin: 0 0 2px; font-size: 1.125rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pick h3 em { font-style: normal; font-weight: 600; font-size: var(--step-small); color: var(--accent); }
.pick p { margin: 4px 0 8px; font-size: 0.9375rem; }
.pick .meta { font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.pick .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copy { border: 1px solid #b9a77f; background: var(--surface); border-radius: 4px; padding: 10px 14px; min-height: 44px; font: 500 0.9375rem var(--text); cursor: pointer; color: var(--ink); transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.copy:hover { background: var(--surface-2); }
.copy:active { transform: scale(0.97); }
.fine { font-size: var(--step-small); color: var(--muted); margin: 12px 0 0; }
.field .fine { color: var(--field-muted); }
.tool .fine { color: var(--muted); }

/* SHA-256 checker fragment */
.band { background: var(--field); color: var(--field-ink); padding: clamp(72px, 9vw, 160px) 0; }
.band h2 { color: var(--field-ink); }
.band p { color: var(--field-ink); }
.band a { color: var(--brass); }
.band code { background: var(--field-3); color: var(--field-ink); }
.band--inset { padding: clamp(20px, 3vw, 32px); margin: 0 0 1.6em; }
.band--inset .checker { grid-template-columns: 1fr; }
.checker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.checker > div:first-child { grid-column: 1 / span 5; }
.checker > div:last-child { grid-column: 6 / -1; }
.band--inset .checker > div { grid-column: 1 / -1; }
.checker__ui { background: var(--field-2); padding: clamp(16px, 2vw, 24px); border-radius: 4px; }
.drop { border: 2px solid #8a6a3c; border-radius: 4px; padding: 32px 18px; text-align: center; background: var(--field-3); cursor: pointer; display: block; position: relative; transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.drop:hover, .drop.is-over { background: #57401f; }
.drop:active { transform: scale(0.99); }
.drop b { display: block; font: 600 var(--step-lead)/1.2 var(--text); color: var(--field-ink); margin-bottom: 4px; }
.drop span { font-size: 0.9375rem; color: var(--field-muted); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.paste { display: flex; gap: 8px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; border: 1px solid #8a6a3c; background: var(--field); color: var(--field-ink); border-radius: 4px; padding: 10px 12px; font: 400 0.9375rem var(--text); }
.paste .btn { border-radius: 4px; }
.result { margin-top: 12px; border-radius: 4px; padding: 14px 16px; font-size: 0.9375rem; background: var(--field); min-height: 58px; color: var(--field-ink); }
.result code { background: transparent; color: var(--brass); padding: 0; word-break: break-all; }
.result.ok { background: #2c3a1c; }
.result.bad { background: #4a1f14; }
.result .big { font: 600 1.0625rem var(--text); color: var(--field-ink); display: block; margin-bottom: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--field-3); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }

/* the trilogy: one expedition plate per game */
.games { display: grid; gap: 8px; margin-top: clamp(32px, 4vw, 56px); }
.game { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); background: var(--bg); padding: clamp(16px, 2vw, 28px); align-items: start; }
.game:nth-child(even) { background: var(--surface-2); }
.game .plate { grid-column: 1 / span 4; }
.game .plate__img { aspect-ratio: 4 / 3; }
.game__body { grid-column: 5 / -1; }
.game h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-head); line-height: 1; margin: 0 0 16px; letter-spacing: -0.01em; }
.game dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.game dt { font-weight: 600; margin-bottom: 4px; }
.game dd { margin: 0; font-size: 1rem; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--bad); font-weight: 600; } .part { color: var(--part); font-weight: 600; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.two h2 { font-size: clamp(2rem, 1.3rem + 1.8vw, 2.75rem); }
.two > div > h2:not(:first-child) { margin-top: 1.4em; }
.cols2 { columns: 2 24em; column-gap: clamp(32px, 5vw, 80px); font-size: var(--step-lead); }
.cols2 li { break-inside: avoid; margin: 0 0 14px; }
ol.steps { padding-left: 1.4em; }
ol.steps > li { padding-left: 6px; margin: 0 0 12px; }
ol.steps > li::marker { font-weight: 600; color: var(--accent); }

/* tables (real tables keep their rules) */
.tw { overflow-x: auto; margin: 0 0 1.4em; background: var(--bg); }
.sec--alt .tw, .game .tw { background: var(--bg); }
.body .tw { background: var(--surface); padding: 8px 12px; }
.body th { background: var(--surface-2); }
.body td { border-bottom-color: var(--surface-2); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
th { font-weight: 600; font-size: var(--step-small); color: var(--ink); background: var(--surface); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; }
td.hash { word-break: break-all; min-width: 200px; }
a code { background: transparent; padding: 0; color: inherit; }
td small { font-size: var(--step-small); }

/* inner pages: title across, lead and picture below */
.phead { padding: clamp(24px, 3.5vw, 48px) 0 clamp(40px, 5vw, 80px); }
.phead .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.phead .crumb, .phead h1 { grid-column: 1 / -1; }
.phead h1 { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; margin: 0 0 clamp(20px, 2.5vw, 36px); max-width: 24ch; }
.phead__copy { grid-column: 1 / span 7; }
.phead__plate { grid-column: 8 / -1; }
.phead__plate .plate__img { aspect-ratio: 4 / 3; }
.phead--solo .phead__copy { grid-column: 1 / span 8; }
.phead .lead { font-size: var(--step-lead); line-height: 1.4; margin: 0 0 24px; }
.phead .ad-l, .phead .ad { grid-column: 1 / -1; }
.crumb { font-size: var(--step-small); color: var(--muted); margin: 0 0 16px; }
.crumb a { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { margin: 0; font-size: 0.9375rem; font-weight: 600; background: var(--surface); padding: 6px 12px; font-variant-numeric: tabular-nums; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: 40px; }
.body { min-width: 0; }
.body > h2 { margin-top: max(1.6em, 88px); font-size: clamp(2rem, 1.3rem + 1.8vw, 2.75rem); }
.body > h2:first-child { margin-top: 0; }
.side { position: relative; }
.side__box { background: var(--surface); padding: 20px 22px; margin-bottom: 8px; }
.side__box h2 { font: 600 1.0625rem/1.3 var(--text); letter-spacing: 0; margin: 0 0 10px; }
.side__box ul { list-style: none; padding: 0; margin: 0; }
.side__box li { margin: 0; }
.side__box li a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 0.9375rem; line-height: 1.35; transition: color var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out); }
.side__box li a:hover { color: var(--accent); transform: translateX(4px); }
.side__box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.9375rem; }
.side__box dt { color: var(--muted); }
.side__box dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }


.note { background: var(--note); padding: 16px 20px; margin: 0 0 1.4em; }
.note p:last-child { margin: 0; }
.note--warn { background: var(--warn); }
.pill { display: inline-block; font-size: var(--step-small); font-weight: 600; padding: 2px 8px; background: var(--surface-2); color: var(--ink); margin: 0 4px 4px 0; }
.pill--g { background: #cddbb3; color: #23401a; } .pill--a { background: var(--note); color: var(--part); } .pill--r { background: var(--warn); color: #6e2412; }

/* changelog releases: filled tiles */
.rel { background: var(--surface); padding: 4px 20px; margin: 0 0 8px; }
.rel > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.rel > summary::-webkit-details-marker { display: none; }
.rel > summary::before { content: "+"; font-weight: 600; color: var(--accent); width: 1em; }
.rel[open] > summary::before { content: "–"; }
.rel > summary small { font-weight: 400; color: var(--muted); }
.rel .notes { font-size: 1rem; padding: 4px 0 12px; columns: 2 24em; column-gap: var(--gutter); }
.rel .notes > * { break-inside: avoid; }
.rel:not([open]) > .notes { display: none; }
.qa:not([open]) > div { display: none; }
.rel .notes h4 { font-size: 1rem; margin: 12px 0 4px; }

/* FAQ: sticky heading, accordion of filled tiles */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: clamp(72px, 8vw, 140px) 0; align-items: start; }
.faq > h2 { grid-column: 1 / span 4; position: sticky; top: 24px; margin: 0; }
.faq__list { grid-column: 5 / -1; display: grid; gap: 8px; }
.qa { background: var(--surface); transition: background var(--t-hover) var(--ease-out); }
.qa:hover { background: var(--surface-2); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 64px 22px 24px; font: 500 1.125rem/1.35 var(--text); position: relative; min-height: 72px; display: flex; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-hover) var(--ease-out); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] { background: var(--field); color: var(--field-ink); }
.qa[open] a { color: var(--brass); }
.qa[open] code { background: var(--field-3); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa > div { padding: 0 24px 22px; }
.qa > div p { max-width: 60ch; margin: 0; }

/* ads: label in sentence case at a readable size */
.ad { margin: 40px 0; text-align: center; min-height: 0; }
.body > .ad { margin: 56px 0 120px; }
.ad > span { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.ad-l { display: flex; flex-direction: column; align-items: center; margin: 32px 0 0; overflow: hidden; }
.ad-rail { margin-top: 8px; text-align: center; }
.ad-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--margin); }
.ad-top { padding: 0 0 8px; }
.ad-top .ad-l { margin-top: 0; }

/* footer: a board of filled tiles */
.foot { padding: 8px 0 var(--margin); margin-top: 0; }
.foot .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.tile--say { grid-column: 1 / span 5; }
.tile--say p { font-size: 1rem; }
.tile--nav { grid-column: 6 / span 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile--mail { grid-column: 11 / span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--mail a { font-size: 1.0625rem; overflow-wrap: anywhere; }
.foot h2 { font: 600 1rem/1.3 var(--text); letter-spacing: 0; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 6px; }
.foot li a { text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.foot li a:hover { color: var(--accent); text-decoration: underline; }
.tile--plate { grid-column: span 4; padding: 0; background: var(--surface-2); }
.tile--plate .plate__img { aspect-ratio: 16 / 9; }
.tile--plate figcaption { padding: 0 16px 14px; }
.tile--word { grid-column: 1 / span 8; background: var(--field); color: var(--field-ink); display: flex; align-items: center; justify-content: center; min-height: clamp(160px, 20vw, 300px); }
.tile--word span { font: 400 clamp(2.6rem, 7.4vw, 7rem)/0.95 var(--display); letter-spacing: -0.02em; text-align: center; }
.tile--word b { font-weight: 400; color: var(--brass); }
.tile--go { grid-column: 9 / -1; background: var(--accent); color: var(--accent-ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(160px, 20vw, 300px); transition: background var(--t-hover) var(--ease-out); }
.tile--go:hover { background: var(--accent-hover); color: var(--accent-ink); }
.tile--go span { font: 600 var(--step-lead)/1.2 var(--text); }
.tile--go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform var(--t-hover) var(--ease-out); }
.tile--go:hover svg { transform: translate(6px, -6px); }
.tile--legal { grid-column: 1 / -1; background: var(--surface); }
.tile--legal { columns: 2 30em; column-gap: var(--gutter); }
.tile--legal p { font-size: 0.9375rem; color: var(--muted); max-width: 80ch; margin: 0 0 0.6em; break-inside: avoid; }
.tile--legal a { color: var(--muted); }

/* motion: entrances on scroll, a slow drift on the plates. Content is never hidden without script or with reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .hero h1, .js .hero__copy, .js .hero__plate, .js .phead h1, .js .phead__copy, .js .phead__plate { animation: rise 720ms var(--ease-out) both; }
.js .hero__copy, .js .phead__copy { animation-delay: 90ms; }
.js .hero__plate, .js .phead__plate { animation-delay: 180ms; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--r, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero__copy, .hero__plate, .instrument__text, .instrument__ui, .checker > div:first-child, .checker > div:last-child, .phead__copy, .phead__plate, .phead--solo .phead__copy { grid-column: 1 / -1; }
  .hero__plate, .phead__plate { margin-top: 32px; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .side .ad-rail { display: none; }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .port { grid-template-columns: minmax(0, 1fr); }
  .game .plate, .game__body { grid-column: 1 / -1; }
  .game dl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .faq > h2 { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .tile--say, .tile--nav { grid-column: 1 / -1; }
  .tile--mail { grid-column: 1 / -1; }
  .tile--plate { grid-column: span 4; }
  .tile--word, .tile--go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 4px 16px; }
  .nav__links { margin-left: 0; width: 100%; gap: 0 16px; }
  .nav__links a[href="/requirements/"], .nav__links a[href="/compare/"] { display: none; }
  .hero h1 { margin-bottom: 20px; }
  .phead h1 { font-size: 1.8rem; }
  .hero .lead { margin-bottom: 20px; }
  .cols4 { grid-template-columns: minmax(0, 1fr); }
  .tile--nav { grid-template-columns: 1fr 1fr; }
  .tile--plate { grid-column: 1 / -1; }
  .qa summary { font-size: 1.0625rem; padding: 18px 56px 18px 20px; min-height: 64px; }
  .qa > div { padding: 0 20px 20px; }
  .rel .notes { columns: auto; }
  .rel { padding: 4px 16px; }
  .paste { flex-wrap: wrap; }
  .paste input { flex-basis: 100%; }
  th, td { padding: 8px 9px; }
  .tw--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tw--stack table, .tw--stack tbody, .tw--stack tr, .tw--stack td { display: block; width: 100%; }
  .tw--stack tr { padding: 10px 14px; }
  .tw--stack tr + tr { border-top: 8px solid var(--surface); }
  .tw--stack td { border: 0; padding: 4px 0 4px 7.5rem; position: relative; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .tw--stack td::before { content: attr(data-label); position: absolute; left: 0; top: 6px; width: 7rem; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
  .tw--stack td:not([data-label]) { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .plate__img img { transform: none !important; }
}
