/* The Unwritten Coast: marketing site. Plain CSS, no build step.
   Palette and manner follow the game: iron-gall ink on sepia paper, one red control. */

/* ---------- fonts (self-hosted, SIL OFL 1.1; see fonts/LICENSES.txt) ---------- */
@font-face { font-family: 'IM Fell English'; src: url('../fonts/im-fell-english-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('../fonts/im-fell-english-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IM Fell English SC'; src: url('../fonts/im-fell-english-sc-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-latin-wght-normal.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-latin-wght-italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --paper: #ecdfb8;
  --paper-light: #f6efd8;
  --paper-deep: #dccb9a;
  --ink: #33261a;
  --ink-soft: #5d4a33;
  --sepia: #8a6d3b;
  --rust: #8c2f1f;
  --rust-deep: #6e2216;
  --night: #261e15;
  --night-soft: #3a2e20;
  --rule: rgba(138, 109, 59, 0.5);
  --rule-faint: rgba(138, 109, 59, 0.28);

  --display: 'IM Fell English SC', 'IM Fell English', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --hand: 'IM Fell English', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --body: 'EB Garamond', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

  --fs-small: clamp(0.94rem, 0.9rem + 0.15vw, 1.05rem);
  --fs-body: clamp(1.16rem, 1.08rem + 0.3vw, 1.34rem);
  --fs-lede: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --fs-h3: clamp(1.45rem, 1.25rem + 0.8vw, 2rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.7vw, 3.1rem);
  --fs-h1: clamp(2.3rem, 1.2rem + 5.2vw, 5.4rem);

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --measure: 62ch;
  --wide: 1320px;      /* text-and-plate sections */
  --plate: 1760px;     /* the gallery, which may spread on a broad sheet */
  --section: clamp(4rem, 9vw, 8.5rem);
  /* paper grain: a small turbulence tile, drawn by the browser, no file */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: var(--grain), radial-gradient(120% 90% at 50% 0%, var(--paper-light) 0%, var(--paper) 55%, var(--paper-deep) 100%);
  background-attachment: scroll, fixed;
  font-family: var(--body); font-size: var(--fs-body); line-height: 1.55; font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rust); text-decoration-color: rgba(140, 47, 31, 0.45); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rust-deep); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .lightbox :focus-visible { outline-color: #f1d9a0; }
::selection { background: rgba(140, 47, 31, 0.22); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.5rem 1rem; background: var(--paper-light); border: 1px solid var(--sepia); color: var(--ink); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.wrap-plate { width: min(100% - 2 * var(--gutter), var(--plate)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* small-caps heads with a rule either side, as on the game's title card */
.eyebrow { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.1rem; font-family: var(--display); font-size: var(--fs-small); letter-spacing: 0.22em; text-transform: lowercase; color: var(--ink-soft); }
.eyebrow::before, .eyebrow::after { content: ''; height: 1px; background: var(--rule); flex: 0 0 2.2rem; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before, .eyebrow.center::after { flex: 1 1 0; max-width: 9rem; }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: 0.06em; }
.section-head .lede { margin-top: 1rem; }
.lede { font-family: var(--hand); font-style: italic; font-size: var(--fs-lede); line-height: 1.4; color: var(--ink-soft); }

/* ---------- buttons: one red control, the rest in ink ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3rem; padding: 0.55em 1.5em; font-family: var(--display); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.3rem); letter-spacing: 0.12em; text-decoration: none; text-transform: lowercase; border-radius: 4px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.btn-primary { color: #fbf1d6; background: linear-gradient(#a23a26, #7f2a1b); border: 2px solid #5e1c11; box-shadow: 0 3px 0 #5e1c11, 0 8px 18px rgba(60, 25, 8, 0.32), inset 0 1px 0 rgba(255, 220, 190, 0.35); text-shadow: 0 1px 0 rgba(60, 15, 5, 0.55); }
.btn-primary:hover { color: #fff8e6; transform: translateY(-1px); box-shadow: 0 4px 0 #5e1c11, 0 12px 22px rgba(60, 25, 8, 0.36), inset 0 1px 0 rgba(255, 220, 190, 0.35); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #5e1c11, 0 3px 8px rgba(60, 25, 8, 0.3); }
.btn-quiet { color: var(--ink); background: linear-gradient(rgba(251, 246, 226, 0.85), rgba(238, 225, 186, 0.85)); border: 1px solid var(--sepia); box-shadow: 0 1px 2px rgba(40, 25, 5, 0.22); }
.btn-quiet:hover { color: var(--rust); border-color: var(--rust); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-small { min-height: 2.4rem; padding: 0.3em 1em; font-size: 1rem; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem var(--gutter); }
.topbar-mark { font-family: var(--display); letter-spacing: 0.2em; font-size: 1.02rem; color: var(--ink); text-decoration: none; text-transform: lowercase; padding: 0.35rem 0.2rem; }
.topbar nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem clamp(0.8rem, 2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.topbar nav a { display: inline-block; padding: 0.4rem 0.15rem; font-family: var(--display); font-size: 1.02rem; letter-spacing: 0.14em; text-transform: lowercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--rust); border-bottom-color: currentColor; }
.topbar.solid { position: static; border-bottom: 1px solid var(--rule-faint); }
.topbar-mark, .topbar nav a { white-space: nowrap; }
.topbar nav ul { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .topbar nav li.opt { display: none; }
  .topbar { padding-block: 0.9rem 0.6rem; }
  .topbar-mark, .topbar nav a { font-size: 0.86rem; letter-spacing: 0.1em; }
  .topbar:not(.solid) .topbar-mark, .topbar:not(.solid) nav a { text-shadow: 0 0 6px var(--paper-light), 0 0 2px var(--paper-light); }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(620px, 100svh, 1180px); padding: 5.5rem var(--gutter) 4rem; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-card { position: relative; width: min(100%, 46rem); padding: clamp(1.6rem, 4.5vw, 3.2rem) clamp(1.2rem, 5vw, 3.6rem) clamp(1.6rem, 4vw, 2.8rem); text-align: center; background: rgba(246, 239, 216, 0.86); border: 1px solid rgba(138, 109, 59, 0.75); box-shadow: 0 0 0 5px rgba(246, 239, 216, 0.6), 0 0 0 6px rgba(138, 109, 59, 0.45), 0 18px 50px rgba(50, 30, 8, 0.28); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.ornament { width: 1.6rem; height: 1.6rem; margin: 0 auto 0.6rem; color: var(--rust); }
.hero h1 { font-size: var(--fs-h1); letter-spacing: 0.1em; line-height: 1.05; }
.hero h1 .the { display: block; font-size: 0.42em; letter-spacing: 0.42em; margin-bottom: 0.25em; padding-left: 0.42em; color: var(--ink-soft); }
.hero-sub { max-width: 30rem; margin: 0.9rem auto 0; font-family: var(--hand); font-style: italic; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.35; color: var(--ink-soft); }
.hero-rule { height: 1px; margin: 1.4rem auto; background: linear-gradient(90deg, transparent, var(--rule) 15%, var(--rule) 85%, transparent); }
.hero-hook { max-width: 33rem; margin: 0 auto 1.6rem; font-size: var(--fs-lede); line-height: 1.35; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1.1rem; }
.hero-note { margin: 1.2rem 0 0; font-size: var(--fs-small); font-style: italic; color: var(--ink-soft); }

/* ---------- plates: screenshots mounted on the page ---------- */
.plate { margin: 0; }
.plate-frame { display: block; padding: clamp(5px, 0.7vw, 10px); background: var(--paper-light); border: 1px solid rgba(110, 85, 45, 0.75); box-shadow: 0 1px 0 rgba(255, 250, 230, 0.8) inset, 0 2px 4px rgba(50, 30, 8, 0.18), 0 18px 40px -12px rgba(50, 30, 8, 0.38); }
.plate-frame img { width: 100%; border: 1px solid rgba(60, 45, 25, 0.55); background: var(--paper-deep); }
.plate figcaption { margin-top: 0.8rem; font-family: var(--hand); font-style: italic; font-size: var(--fs-small); color: var(--ink-soft); }
a.plate-frame { transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.plate-frame:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 250, 230, 0.8) inset, 0 4px 6px rgba(50, 30, 8, 0.2), 0 26px 46px -12px rgba(50, 30, 8, 0.45); }

/* ---------- trailer slot ---------- */
.trailer { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.trailer .plate { width: min(100%, 1120px); margin-inline: auto; }
.trailer-slot { position: relative; display: block; }
.trailer-slot img { aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.7) brightness(0.92); }
.trailer-tag { position: absolute; inset: auto 0 0 0; margin: clamp(5px, 0.7vw, 10px); padding: 1.6rem 1.2rem 1rem; text-align: center; color: #f6ead0; background: linear-gradient(transparent, rgba(30, 22, 12, 0.82) 55%); }
.trailer-tag strong { display: block; font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: 0.14em; text-transform: lowercase; }
.trailer-tag span { font-family: var(--hand); font-style: italic; font-size: var(--fs-small); }

/* ---------- the voyage: five pillars ---------- */
.pillars { display: grid; gap: clamp(3.5rem, 8vw, 7.5rem); counter-reset: pillar; padding: 0; margin: 0; list-style: none; }
.pillar { display: grid; gap: clamp(1.4rem, 4vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
.pillar-text { max-width: 34rem; }
.pillar-num { display: block; margin-bottom: 0.5rem; font-family: var(--hand); font-style: italic; font-size: var(--fs-lede); color: var(--rust); }
.pillar h3 { font-size: var(--fs-h3); letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.pillar p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .pillar { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pillar:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pillar:nth-child(even) .plate { order: 2; }
  .pillar:nth-child(odd) .plate-frame { transform: rotate(-0.35deg); }
  .pillar:nth-child(even) .plate-frame { transform: rotate(0.3deg); }
}

/* ---------- gallery: the dark of the chart-room ---------- */
.on-night { color: #eadfc2; background-color: var(--night); background-image: var(--grain), radial-gradient(90% 120% at 50% 0%, var(--night-soft), var(--night) 70%); border-block: 1px solid #120d08; box-shadow: inset 0 14px 30px -18px rgba(0, 0, 0, 0.7), inset 0 -14px 30px -18px rgba(0, 0, 0, 0.7); }
.on-night .eyebrow, .on-night .lede { color: #c9b98f; }
.on-night .eyebrow::before, .on-night .eyebrow::after { background: rgba(201, 185, 143, 0.4); }
.on-night a { color: #f1d9a0; }
.gallery { display: grid; gap: clamp(0.8rem, 1.6vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.gallery a { display: block; position: relative; padding: 5px; background: #e9dcb6; border: 1px solid #0f0a06; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.8); text-decoration: none; transition: transform 0.2s ease; }
.gallery a:hover, .gallery a:focus-visible { transform: translateY(-3px) scale(1.012); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(60, 45, 25, 0.6); }
.gallery .cap { display: block; padding: 0.45rem 0.3rem 0.2rem; font-family: var(--hand); font-style: italic; font-size: var(--fs-small); line-height: 1.3; color: var(--ink); }
.gallery-foot { margin: 2rem 0 0; text-align: center; font-size: var(--fs-small); font-style: italic; color: #c9b98f; }

/* lightbox (script.js builds on the plain links) */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 15, 9, 0.94); color: #eadfc2; }
.lightbox::backdrop { background: rgba(20, 15, 9, 0.6); }
.lightbox-in { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: clamp(0.6rem, 2vw, 1.6rem); gap: 0.6rem; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 5px solid #e9dcb6; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox-cap { margin: 0; font-family: var(--hand); font-style: italic; font-size: var(--fs-small); }
.lightbox-btns { display: flex; gap: 0.5rem; flex: none; }
.lightbox button { min-width: 2.75rem; min-height: 2.75rem; padding: 0.2rem 0.9rem; font: inherit; font-family: var(--display); letter-spacing: 0.1em; text-transform: lowercase; color: #eadfc2; background: rgba(234, 223, 194, 0.08); border: 1px solid rgba(234, 223, 194, 0.45); border-radius: 3px; cursor: pointer; }
.lightbox button:hover { background: rgba(234, 223, 194, 0.18); }

/* ---------- features: a ledger ---------- */
.ledger { display: grid; gap: 0 clamp(2rem, 4vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.ledger > div { padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--rule-faint); }
.ledger dt { margin-bottom: 0.3rem; font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.45rem); letter-spacing: 0.08em; text-transform: lowercase; color: var(--rust); }
.ledger dd { margin: 0; }
.aside-note { max-width: var(--measure); margin: 2.2rem 0 0; font-size: var(--fs-small); font-style: italic; color: var(--ink-soft); }

/* ---------- studio and press, side by side on a broad sheet ---------- */
.twin { display: grid; gap: clamp(3rem, 6vw, 6rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .twin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twin h2 { font-size: var(--fs-h2); letter-spacing: 0.06em; margin-bottom: 1rem; }
.twin .btn { margin-top: 0.6rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1.4rem; margin: 0 0 1.4rem; }
.facts dt { font-family: var(--display); letter-spacing: 0.08em; text-transform: lowercase; color: var(--ink-soft); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .facts dd { margin-bottom: 0.7rem; } }

/* ---------- closing call ---------- */
.closing { text-align: center; padding-block: var(--section); border-top: 1px solid var(--rule-faint); background: radial-gradient(60% 80% at 50% 50%, rgba(246, 239, 216, 0.8), transparent); }
.closing h2 { font-size: var(--fs-h2); letter-spacing: 0.08em; }
.closing p { max-width: 36rem; margin: 1rem auto 1.8rem; }

/* ---------- footer ---------- */
.foot { padding: 2.6rem 0 3rem; border-top: 3px double var(--rule); font-size: var(--fs-small); color: var(--ink-soft); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 3rem; }
.foot p { margin: 0 0 0.35rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.foot a { display: inline-block; padding-block: 0.25rem; }

/* ---------- the margin of a broad sheet: a latitude scale, as on the pilots' chart ---------- */
.scale { display: none; }
@media (min-width: 1640px) {
  .scale { display: block; position: fixed; top: 0; bottom: 0; width: 3.4rem; z-index: 1; pointer-events: none; color: var(--ink-soft); opacity: 0.75;
    background-image: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 12.5vh), repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 2.5vh);
    background-size: 1.1rem 100%, 0.5rem 100%; background-repeat: no-repeat; }
  .scale-left { left: clamp(1rem, 2.2vw, 4rem); background-position: left top, left top; border-left: 1px solid currentColor; }
  .scale-right { right: clamp(1rem, 2.2vw, 4rem); background-position: right top, right top; border-right: 1px solid currentColor; }
  .scale ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; font-family: var(--hand); font-style: italic; font-size: 0.85rem; }
  .scale li { position: absolute; left: 1.45rem; transform: translateY(-50%); white-space: nowrap; }
  .scale-right li { left: auto; right: 1.45rem; }
  .scale .ship { position: absolute; left: -0.55rem; top: 4vh; width: 1.1rem; height: 1.1rem; color: var(--rust); }
  /* content keeps clear of the scales */
  .hero, .on-night, .closing { position: relative; z-index: 2; }
  .hero ~ .scale { z-index: 1; }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 1640px) and (prefers-reduced-motion: no-preference) {
    .scale .ship { animation: passage linear both; animation-timeline: scroll(root); }
    @keyframes passage { from { top: 4vh; } to { top: 94vh; } }
  }
}

/* a very broad sheet (ultra-wide): larger type and a wider column, so the page is composed, not stretched */
@media (min-width: 2400px) { html { font-size: 118%; } :root { --wide: 1560px; --plate: 2240px; } .trailer .plate { width: min(100%, 1400px); } }

/* ---------- press kit page ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: var(--fs-h2); letter-spacing: 0.08em; }
.press-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .press-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .press-grid > aside { position: sticky; top: 1.5rem; } }
.press h2 { font-size: var(--fs-h3); letter-spacing: 0.08em; margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.press section + section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { padding: clamp(1.1rem, 2.5vw, 1.8rem); background: rgba(246, 239, 216, 0.7); border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(50, 30, 8, 0.12); }
.copyblock { position: relative; }
.copyblock + .copyblock { margin-top: 1.6rem; }
.copyblock h3 { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.1em; text-transform: lowercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.copy-btn { float: right; margin: -0.2rem 0 0.4rem 1rem; }
.downloads { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.downloads a { display: block; text-decoration: none; color: var(--ink); }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(60, 45, 25, 0.6); background: var(--paper-deep); }
.downloads .logo-tile img { object-fit: contain; padding: 8%; }
.downloads .logo-tile.dark img { background: var(--night); }
.downloads span { display: block; margin-top: 0.35rem; font-size: var(--fs-small); line-height: 1.3; }
.downloads small { color: var(--ink-soft); font-style: italic; }
.downloads a:hover span { color: var(--rust); }

/* ---------- not found ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); text-align: center; }
.lost h1 { font-size: var(--fs-h2); letter-spacing: 0.08em; margin-bottom: 1rem; }
.lost p { max-width: 32rem; margin-inline: auto; }

/* ---------- arrival: plates rise a little as they come into view (script adds .js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s ease; }
  .js .reveal.seen { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .topbar, .scale, .cta-row, .lightbox { display: none !important; } body { background: #fff; } }
