/* ============ Tokens ============
   One theme, always dark. Colours are sampled from the game's art:
   navy space, cream station floors, grey-blue metal, moon rock,
   dusty clay, and the sage/leaf village palette on the island. */
:root {
  --space: #1b2334;
  --space-2: #232d42;
  --star: #e9dcbb;
  --on-ground: #efe4c8;
  --on-ground-soft: #bfbba8;
  --accent-bright: #e8a184;
  --ground: #b8c08d;
  --ground-shade: rgba(0, 0, 0, .34);
  --tuft: #8f9b62;
  --paper: #ece0c0;
  --paper-2: #ddcfa8;
  --plaster: #efe3c1;
  --thatch: #f5ecd2;
  --sand: #e3d5a6;
  --stone: #eee4c6;
  --ink: #2a2522;
  --ink-soft: #564a3a;
  --water: #7d99a2;
  --water-hi: #b3c7c9;
  --leaf: #6f8c83;
  --leaf-dark: #58736b;
  --clay: #c97a5d;
  --clay-dark: #a95f45;
  --wood: #b49b6c;
  --wood-dark: #8f7a4f;
  --window: #f6c56a;
  --metal: #8795a0;
  --metal-dark: #5f6d79;
  --rock-top: #a7b3bb;
  --rock-side: #6f7e8b;
  --night: 1;
  --display: "Limelight", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23e9dcbb'%3E%3Ccircle cx='24' cy='40' r='1.2'/%3E%3Ccircle cx='140' cy='18' r='.9'/%3E%3Ccircle cx='260' cy='70' r='1.4'/%3E%3Ccircle cx='90' cy='130' r='.8'/%3E%3Ccircle cx='200' cy='160' r='1.1'/%3E%3Ccircle cx='300' cy='210' r='.9'/%3E%3Ccircle cx='40' cy='250' r='1.3'/%3E%3Ccircle cx='160' cy='290' r='.8'/%3E%3Ccircle cx='230' cy='250' r='.7' opacity='.6'/%3E%3Ccircle cx='70' cy='200' r='.7' opacity='.6'/%3E%3Ccircle cx='190' cy='90' r='.6' opacity='.5'/%3E%3C/g%3E%3Cpath d='M120 220 v8 M116 224 h8' stroke='%23e9dcbb' stroke-width='1.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--on-ground);
  background:
    var(--stars) 0 0 / 320px 320px,
    radial-gradient(ellipse at 20% 0%, #2a3550 0%, transparent 55%),
    radial-gradient(ellipse at 90% 60%, #26304a 0%, transparent 50%),
    var(--space);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  transition: background-color .6s ease, color .6s ease;
}
::selection { background: var(--clay); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0;
  letter-spacing: .01em;
}
img, svg { max-width: 100%; }
main { display: block; overflow-x: hidden; overflow-x: clip; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ============ Illustration classes (shared by every SVG) ============ */
svg { color: var(--ink); }
.ink-line { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ink-thin { stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.ink-fill { fill: var(--ink); }
.plaster { fill: var(--plaster); } .thatch { fill: var(--thatch); } .stone { fill: var(--stone); }
.wood { fill: var(--wood); } .wood-dark { fill: var(--wood-dark); }
.clay { fill: var(--clay); } .clay-dark { fill: var(--clay-dark); }
.leaf { fill: var(--leaf); } .leaf-dark { fill: var(--leaf-dark); }
.window { fill: var(--window); transition: fill .6s; }
.shade { fill: var(--ground-shade); }
.c-out { fill: var(--ink); stroke: var(--ink); stroke-width: 5; }
.c-in { fill: var(--leaf); }
.leaf-tick { stroke: var(--leaf-dark); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.tick { stroke: var(--wood); stroke-width: 1.8; stroke-linecap: round; fill: none; opacity: .8; }
.tick-light { stroke: var(--thatch); stroke-width: 2; opacity: .35; fill: none; }
.plank { stroke: var(--wood-dark); stroke-width: 1.8; fill: none; }
.tuft { stroke: var(--tuft); stroke-width: 2; stroke-linecap: round; fill: none; }
.lamp-glow { opacity: var(--night); transition: opacity .8s; pointer-events: none; mix-blend-mode: screen; }

/* ============ Line boil ============ */
.boil { filter: url(#boil-0); }
html[data-boil="1"] .boil { filter: url(#boil-1); }
html[data-boil="2"] .boil { filter: url(#boil-2); }

/* ============ Components ============ */
.panel {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  /* grey-blue station rim, like the modules in the game */
  box-shadow: 0 0 0 7px var(--metal), 0 0 0 9.5px var(--ink), 0 16px 0 2px var(--ground-shade);
}
.kicker {
  margin: 0 0 .5rem;
  font: 800 .8rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-bright);
}
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.lede { max-width: 44ch; margin: .8rem 0 0; font-size: 1.1rem; }
.panel .lede { color: var(--ink-soft); }
.panel .kicker { color: var(--clay-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font: 800 1.02rem/1 var(--sans); letter-spacing: .01em;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-clay { background: var(--clay); color: #fbf3de; }
.btn-ghost { background: var(--space-2); color: var(--on-ground); border-color: var(--metal); box-shadow: 0 4px 0 var(--metal-dark); }
.btn-ghost:hover { box-shadow: 0 6px 0 var(--metal-dark); color: var(--on-ground); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .92rem; box-shadow: 0 3px 0 var(--ink); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 10px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 10px clamp(12px, 3vw, 32px) 0;
  padding: 8px 10px 8px 14px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--metal), 0 0 0 7.5px var(--ink), 0 10px 0 var(--ground-shade);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em; }
.nav-logo svg { width: 36px; height: 36px; transition: transform .3s ease; }
.nav-logo:hover svg { transform: translateY(-2px) rotate(-4deg); }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 24px); }
.nav nav > a:not(.btn) { text-decoration: none; font-weight: 700; }
.nav nav > a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--clay); }
@media (max-width: 560px) {
  .nav-logo span, .hide-sm { display: none; }
}

section { padding: 0 clamp(16px, 4vw, 40px); }

/* ============ Hero ============ */
.hero { padding-top: clamp(30px, 6vw, 64px); text-align: center; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 9rem); line-height: 1;
  color: var(--paper);
  text-shadow: 0 .045em 0 var(--clay), 0 .09em 0 var(--ink);
  letter-spacing: .02em;
}
.tagline {
  margin: 1rem auto 0; max-width: 42ch;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.45;
  color: var(--on-ground-soft);
}
.scene-wrap { margin: clamp(10px, 3vw, 30px) auto 0; max-width: 1240px; }
.scene { width: 100%; height: auto; display: block; overflow: visible; animation: hover-island 9s ease-in-out infinite alternate; }
@keyframes hover-island { to { transform: translateY(-10px); } }
.island-top { fill: var(--ground); }

.river-bank, .river-edge, .river-water { fill: none; stroke-linecap: butt; }
.river-bank { stroke: var(--sand); stroke-width: 90; }
.river-edge { stroke: var(--ink); stroke-width: 70; }
.river-water { stroke: var(--water); stroke-width: 65; transition: stroke .6s; }
.river-flow { fill: none; stroke: var(--water-hi); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 16 52; animation: flow 6s linear infinite; }
.river-flow.slow { stroke-dasharray: 10 70; animation-duration: 9s; opacity: .8; }
@keyframes flow { to { stroke-dashoffset: -136; } }
.pond-bank { fill: var(--sand); transition: fill .6s; }
.pond-edge { fill: var(--ink); }
.pond-water { fill: var(--water); transition: fill .6s; }
.lily ellipse { fill: var(--leaf); stroke: var(--ink); stroke-width: 1.6; }
.rail-out { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.rail { fill: none; stroke: var(--wood); stroke-width: 3.4; stroke-linecap: round; }
.trail path, .trail-line { fill: none; stroke: var(--sand); stroke-width: 42; stroke-linecap: round; transition: stroke .6s; }
.trail ellipse { fill: var(--sand); transition: fill .6s; }
.play { transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.fireflies circle { fill: #ffe39a; opacity: calc(var(--night) * .9); filter: drop-shadow(0 0 4px #ffd27a); animation: drift 7s ease-in-out infinite alternate; transform-box: fill-box; }
.fireflies circle:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.fireflies circle:nth-child(3n) { animation-duration: 11s; animation-delay: -6s; }
@keyframes drift { 0% { transform: translate(0, 0); } 33% { transform: translate(14px, -10px); } 66% { transform: translate(-8px, -20px); } 100% { transform: translate(10px, 6px); } }

/* walkways between modules */
.walkway { display: block; width: 100%; height: clamp(80px, 11vw, 130px); position: relative; z-index: 1; }
.floor { fill: var(--paper); }
.seam { stroke: var(--paper-2); stroke-width: 2; fill: none; }
.pipe-out { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.pipe { fill: none; stroke: var(--metal); stroke-width: 6; stroke-linecap: round; }
.metal { fill: var(--metal); } .metal-dark { fill: var(--metal-dark); }

/* moon rocks */
.rock-top { fill: var(--rock-top); }
.rock-side { fill: var(--rock-side); }
.crater { fill: var(--rock-side); stroke: var(--ink); stroke-width: 1.4; }
.rock-tick { stroke: #4f5c68; stroke-width: 2; stroke-linecap: round; fill: none; }
.crystal-hi { stroke: #f2c2ad; stroke-width: 2; stroke-linecap: round; fill: none; }
.cosmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rock-wrap, .flyby { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * var(--k, 1)); will-change: transform; }
@media (max-width: 700px) { .cosmos { --k: .5; opacity: .75; } }
.rock-wrap.far, .flyby { opacity: .7; }
.rock { display: block; width: 100%; height: auto; overflow: visible; animation: bob var(--d, 8s) ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-8px) rotate(calc(var(--r, 0deg) - 3deg)); } to { transform: translateY(8px) rotate(calc(var(--r, 0deg) + 3deg)); } }
.flyby { left: 0; animation: fly var(--fly) linear infinite; animation-delay: var(--delay, 0s); }
.flyby.reverse { animation-direction: reverse; }
@keyframes fly { from { transform: translateX(-12vw) rotate(0deg); } to { transform: translateX(112vw) rotate(200deg); } }
.twinkle { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: var(--star); box-shadow: 0 0 6px 1px rgba(233, 220, 187, .7); animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--t, 0s); }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.6); } }
.nav, main, .footer { position: relative; z-index: 1; }
.nav { position: sticky; z-index: 40; }

/* ============ Places ============ */
.place { max-width: 1100px; margin: 0 auto; }

/* The post box */
.notify { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); align-items: end; gap: clamp(16px, 4vw, 48px); }
.letter { padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 56px); }
.letter::after { /* airmail edge */
  content: ""; position: absolute; left: 14px; right: 14px; top: 10px; height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, var(--clay) 0 12px, transparent 12px 20px, var(--water) 20px 32px, transparent 32px 40px);
  opacity: .55;
}
.signup { margin-top: 1.6rem; }
.field-label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; color: var(--ink-soft); }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input {
  flex: 1 1 240px; min-height: 50px; padding: 10px 16px;
  font: 600 1.05rem var(--sans); color: var(--ink);
  background: var(--thatch); border: 2.5px solid var(--ink); border-radius: 12px;
  box-shadow: inset 0 3px 0 rgba(59, 49, 38, .08);
}
.input::placeholder { color: var(--ink-soft); opacity: .6; }
.input:focus { outline: none; border-color: var(--clay-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 35%, transparent); }
.form-msg { min-height: 1.6em; margin: .8rem 0 0; font-weight: 700; color: var(--leaf-dark); }
.form-msg.err { color: var(--clay-dark); }
.signup.sending .btn { opacity: .7; pointer-events: none; }
.postmark {
  position: absolute; right: clamp(16px, 5vw, 44px); top: clamp(20px, 4vw, 40px);
  width: 108px; height: 108px; border-radius: 50%;
  border: 3px solid var(--clay-dark); outline: 1.5px solid var(--clay-dark); outline-offset: -10px;
  display: grid; place-items: center;
  color: var(--clay-dark); font: 800 .95rem var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-14deg) scale(1.8); opacity: 0; pointer-events: none;
}
.letter.done .postmark { animation: stamp .4s cubic-bezier(.5, 0, .5, 1.4) forwards; }
@keyframes stamp { to { opacity: .85; transform: rotate(-14deg) scale(1); } }
.letter.done .signup-row, .letter.done .field-label { display: none; }
.mailbox { width: 100%; max-width: 240px; justify-self: center; overflow: visible; }
.mailbox .flag { transform-box: view-box; transform-origin: 179px 113px; transform: rotate(90deg); transition: transform .6s cubic-bezier(.4, 1.6, .5, 1); }
.mailbox .letter-in { opacity: 0; }
.notify.done .mailbox .flag { transform: rotate(0deg); }
.notify.sent .mailbox .letter-in { animation: post-letter 1s ease-in forwards; }
@keyframes post-letter { 0% { opacity: 1; transform: translate(-70px, -60px) rotate(-12deg); } 70% { opacity: 1; transform: translate(0, 10px); } 100% { opacity: 0; transform: translate(0, 18px); } }
@media (max-width: 760px) {
  .notify { grid-template-columns: 1fr; }
  .mailbox { max-width: 150px; order: -1; margin-bottom: -20px; }
  .postmark { width: 84px; height: 84px; font-size: .75rem; }
}

/* The picture show */
.devlogs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.stall { display: block; }
.stall svg { width: 100%; height: auto; display: block; overflow: visible; }
.stall:hover .play { transform: scale(1.12); }
.stall:focus-visible { outline-offset: 8px; }
.screen { fill: color-mix(in srgb, var(--water-hi) 60%, var(--thatch)); }
.screen-hill { fill: var(--ground); }
.stall-sign { font: 800 15px var(--sans); letter-spacing: .2em; fill: var(--ink); }
.devlogs-copy h2 { color: var(--on-ground); }
.devlogs-copy .lede { color: var(--on-ground-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.4rem; }
.handle { font-weight: 700; color: var(--on-ground-soft); }
@media (max-width: 760px) { .devlogs { grid-template-columns: 1fr; } .stall { max-width: 440px; margin: 0 auto; width: 100%; } }


/* Notice board */
.board-wrap { position: relative; padding-bottom: 50px; max-width: 1060px; margin: 0 auto; }
.board-roof { display: block; width: calc(100% + 40px); margin: 0 -20px -14px; height: 60px; position: relative; z-index: 2; overflow: visible; }
.board {
  position: relative; z-index: 1;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 44px);
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, var(--wood-dark) 46px 48px),
    var(--wood);
  border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 0 8px 0 var(--ground-shade);
  color: var(--ink);
}
.board-leg { position: absolute; bottom: 0; width: 22px; height: 70px; z-index: 0; background: var(--wood); border: 3px solid var(--ink); border-radius: 3px; box-shadow: 0 8px 0 -3px var(--ground-shade); }
.board-leg:nth-of-type(1) { left: 12%; } .board-leg:nth-of-type(2) { right: 12%; }
.board-head {
  display: inline-block; margin-bottom: 1.6rem; padding: 10px 22px 12px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius);
  transform: rotate(-1deg);
  box-shadow: 0 4px 0 rgba(59, 49, 38, .35);
}
.board-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.board-head p { margin: 4px 0 0; font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(20px, 3vw, 32px); }
.note-slot { transform: rotate(var(--r)); transition: transform .25s ease; }
.note-slot:hover { transform: rotate(0) translateY(-4px); }
.note {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 28px 22px 20px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 4px 6px 4px 8px;
  box-shadow: 0 5px 0 rgba(59, 49, 38, .35);
}
.note time { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dark); }
.note h3 { font-size: 1.4rem; }
.note p { margin: 0; color: var(--ink-soft); flex: 1; font-size: 1rem; }
.note .read { font-weight: 800; font-size: .95rem; color: var(--leaf-dark); }
.note:hover .read { text-decoration: underline; }
.note-empty p { font-style: italic; }
.pin {
  position: absolute; top: 9px; left: 50%; translate: -50% 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--clay); border: 2px solid var(--ink);
  box-shadow: 1px 3px 0 rgba(59, 49, 38, .3);
}
.note-slot:nth-child(3n+2) .pin { background: var(--leaf); }
.note-slot:nth-child(3n) .pin { background: var(--wood); }
.more { text-align: center; margin: 1.6rem 0 0; }

/* ============ Blog index & post ============ */
.page-head { max-width: 1060px; margin: 0 auto; padding-top: clamp(36px, 6vw, 70px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.page-head .lede { color: var(--on-ground-soft); }
.page-head .lede a { font-weight: 700; }

.post { max-width: 760px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) 16px clamp(50px, 8vw, 90px); }
.back { display: inline-block; margin-bottom: 1.2rem; font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.sheet { padding: clamp(36px, 6vw, 60px) clamp(22px, 6vw, 60px); }
.sheet time { font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-dark); }
.sheet h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .2rem 0 1.4rem; }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose a { color: var(--clay-dark); font-weight: 700; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border: 2.5px solid var(--ink); border-radius: var(--radius); }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--clay); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.prose code { font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; background: var(--paper-2); padding: 16px; border-radius: 10px; }
.prose pre code { background: none; padding: 0; }
.prose li::marker { color: var(--clay); }
.prose hr { border: 0; border-top: 2px dashed var(--wood); margin: 2em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 2.5px solid var(--ink); border-radius: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 1.6rem 4px; font-weight: 700; }
.post-nav a { text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.post-cta p { margin: 0; font-family: var(--display); font-size: 1.3rem; }

/* ============ Footer ============ */
.footer { margin-top: clamp(20px, 5vw, 50px); color: var(--on-ground); }
.railing { display: block; width: 100%; height: 40px; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding: 18px clamp(16px, 4vw, 40px) 28px;
  background: rgba(0, 0, 0, .22);
}
.footer p { margin: 0; }
.foot-note { font-style: italic; color: var(--on-ground-soft); }

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .flyby { display: none; }
}
