/* Tiny Galleon — website styles. Palette and type from steam/presskit/brand/brand.md. */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #16294a; --navy-deep: #0d1b33; --ink: #0f1d36; --sailcloth: #f7efdc; --paper: #f3e7c9; --paper-2: #ead9b0;
  --gold: #f2b632; --brass: #c9a24a; --red: #d8452f; --oak: #9a5530; --sea: #2f8fd8; --shallows: #62c2f0;
  --text: var(--ink); --muted: #574628; --accent-text: #8a3a1e; --rule: #c9b07a;
  --radius: 14px; --shadow: 0 1px 0 rgba(15,29,54,.08), 0 10px 30px -12px rgba(15,29,54,.35);
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* paper grain: an SVG noise tile */
  --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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--text);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.6 var(--sans); overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-color: var(--oak); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(15,29,54,.55); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-variation-settings: "opsz" 48; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.kicker { display: inline-flex; align-items: center; gap: .6em; font: 700 .78rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .kicker, .kicker.light { color: var(--gold); }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--bg); color: var(--fg);
  font: 700 1rem/1.1 var(--sans); text-decoration: none; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-ghost { --bg: rgba(247,239,220,.1); --fg: var(--sailcloth); border-color: var(--sailcloth); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost:hover { --bg: rgba(247,239,220,.2); box-shadow: none; }
.btn-paper { --bg: var(--sailcloth); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .92rem; box-shadow: 0 3px 0 var(--ink); }
.btn .soon { font-weight: 600; opacity: .8; }
.btn[data-steam-state="soon"] { --bg: var(--gold); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-header.solid, .site-header.always-solid { background: rgba(13,27,51,.94); box-shadow: 0 2px 0 rgba(201,162,74,.7); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sailcloth); text-decoration: none; font: 800 1.2rem/1 var(--display); font-variation-settings: "opsz" 36; margin-right: auto; }
.brand img { width: 44px; height: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--sailcloth); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-header:not(.solid):not(.always-solid) .brand, .site-header:not(.solid):not(.always-solid) .site-nav a:not(.btn) { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 2px solid rgba(247,239,220,.6); background: rgba(13,27,51,.55); color: var(--sailcloth); cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); border-bottom: 3px solid var(--brass); padding: 8px var(--gutter) 20px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(247,239,220,.12); font-size: 1.05rem; }
  .site-nav li:last-child { margin-top: 14px; }
  .site-nav .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; color: var(--sailcloth); background: #2a6fa8; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media picture, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; object-position: 68% 50%; }
.hero-media { z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9,20,40,.78) 0%, rgba(9,20,40,.5) 34%, rgba(9,20,40,0) 62%), linear-gradient(0deg, rgba(9,20,40,.7) 0%, rgba(9,20,40,0) 46%), linear-gradient(180deg, rgba(9,20,40,.45) 0%, rgba(9,20,40,0) 22%); }
.hero-inner { padding-top: 120px; padding-bottom: clamp(120px, 16vw, 200px); }
.hero h1 { margin: 0 0 .2em; }
.hero h1 img { width: min(560px, 86vw); filter: drop-shadow(0 10px 22px rgba(0,0,0,.4)); }
.hero .tagline { font: 700 clamp(.82rem, .76rem + .3vw, 1rem)/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8em; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero .lede { color: var(--sailcloth); max-width: 44ch; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 1.4rem; }
.coming { display: inline-flex; align-items: center; gap: 10px; margin-top: 1.4rem; font: 700 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sailcloth); background: rgba(9,20,40,.55); border: 1px solid rgba(242,182,50,.6); padding: 9px 14px; border-radius: 999px; }
.coming .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,182,50,.25); }
.platforms { margin: 1rem 0 0; font-size: .92rem; color: rgba(247,239,220,.88); text-shadow: 0 1px 8px rgba(0,0,0,.6); }

@media (max-aspect-ratio: 1/1) {
  /* portrait: the studio's 4:5 picture fills the top of the hero and melts into the navy under the title, so the ship stays in view */
  .hero { display: block; min-height: 0; background: var(--navy); }
  .hero-media { inset: 0 0 auto 0; height: min(125vw, 68svh); }
  .hero-media img, .hero-media video { object-position: 50% 38%; }
  .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9,20,40,.5) 0%, rgba(9,20,40,0) 20%, rgba(9,20,40,0) 58%, var(--navy) 100%); }
  .hero::before { display: none; }
  .hero-inner { padding-top: calc(min(125vw, 68svh) - 70px); }
}
/* the sea at the foot of the hero: three wave layers */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: clamp(70px, 10vw, 150px); pointer-events: none; z-index: 1; }
.waves .layer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; background-repeat: repeat-x; background-position: 0 100%; background-size: 50% 100%; will-change: transform; }
.waves .l1 { opacity: .35; animation: drift 46s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%2362c2f0' d='M0 70 C 180 30 360 30 540 70 S 900 110 1080 70 S 1350 35 1440 70 V150 H0Z'/%3E%3C/svg%3E"); }
.waves .l2 { opacity: .55; animation: drift 32s linear infinite reverse; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%23f7efdc' d='M0 95 C 240 60 480 60 720 95 S 1200 130 1440 95 V150 H0Z'/%3E%3C/svg%3E"); }
.waves .l3 { animation: drift 60s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%23f3e7c9' d='M0 118 C 120 100 240 100 360 118 S 600 136 720 118 S 960 100 1080 118 S 1320 136 1440 118 V150 H0Z'/%3E%3C/svg%3E"); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- ship's log strip ---------- */
.log-strip { position: relative; z-index: 2; margin-top: -10px; }
.log-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sailcloth); box-shadow: var(--shadow); overflow: hidden; }
.log-strip li { padding: 18px 16px; border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.log-strip li:nth-child(2n) { border-right: 0; }
.log-strip li:nth-last-child(-n+2) { border-bottom: 0; }
.log-strip b { display: block; font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--display); color: var(--navy); }
.log-strip span { font-size: .92rem; color: var(--muted); }
@media (min-width: 760px) {
  .log-strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .log-strip li { border-bottom: 0; padding: 22px 24px; }
  .log-strip li:nth-child(2n) { border-right: 1px dashed var(--rule); }
  .log-strip li:last-child { border-right: 0; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.on-dark { background: var(--navy); color: var(--sailcloth); }
.on-dark a:not(.btn) { text-decoration-color: var(--gold); }
.on-dark .muted, .on-dark .lede { color: rgba(247,239,220,.86); }
.muted { color: var(--muted); }
.wave-top, .wave-bottom { position: absolute; left: 0; right: 0; height: 48px; pointer-events: none; }
.wave-top { top: -47px; }
.wave-bottom { bottom: -47px; transform: scaleY(-1); }
.wave-top svg, .wave-bottom svg { width: 100%; height: 100%; }

/* feature pillars */
.pillars { counter-reset: pillar; }
.pillar { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.pillar + .pillar { border-top: 1px dashed var(--rule); }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 1.15fr .85fr; }
  .pillar.flip .pillar-media { order: 2; }
  .pillar.flip { grid-template-columns: .85fr 1.15fr; }
}
.pillar-media { position: relative; padding-bottom: 28px; }
.frame { border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: 0 4px 0 var(--ink), 0 24px 50px -24px rgba(15,29,54,.6); }
.frame img { width: 100%; }
.inset { position: absolute; right: -6px; bottom: 0; width: 46%; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--sailcloth); box-shadow: 0 4px 0 var(--ink), 0 16px 30px -12px rgba(15,29,54,.6); transform: rotate(2.2deg); }
.pillar.flip .inset { right: auto; left: -6px; transform: rotate(-2deg); }
.inset figcaption, .frame figcaption { font-size: .8rem; line-height: 1.35; padding: 6px 10px 8px; background: var(--sailcloth); color: var(--ink); border-top: 2px solid var(--ink); }
figure { margin: 0; }
.pillar-text .num { font: 800 1rem/1 var(--display); color: var(--accent-text); letter-spacing: .08em; }
.pillar-text .pillar-title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-variation-settings: "opsz" 144; }
.after-letter { margin-top: 2rem; }
.aboard-wrap { margin-top: clamp(32px, 5vw, 64px); }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .55em; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3l1.8 5.2L17 10l-5.2 1.8L10 17l-1.8-5.2L3 10l5.2-1.8z' fill='%23f2b632'/%3E%3C/svg%3E") center/14px no-repeat; }
.on-dark .checks li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3l1.8 5.2L17 10l-5.2 1.8L10 17l-1.8-5.2L3 10l5.2-1.8z' fill='%2316294a'/%3E%3C/svg%3E"); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.1em 0 0; padding: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sailcloth); border: 1.5px solid var(--ink); }
.new-badge { display: inline-block; font: 800 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--red); color: #fff; padding: 5px 8px; border-radius: 6px; vertical-align: middle; margin-left: .5em; transform: translateY(-.2em); }

/* the letter (story pillar) */
.letter { position: relative; background: var(--sailcloth) var(--grain); border: 1px solid #d8c391; border-radius: 4px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 2px 0 #d8c391, 0 30px 50px -30px rgba(15,29,54,.55); transform: rotate(-.6deg); font-family: var(--display); font-variation-settings: "opsz" 14; font-weight: 400; font-size: 1.08rem; line-height: 1.65; }
.letter::after { content: ""; position: absolute; right: 26px; bottom: -18px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e8664c, #b02f1c 60%, #8e2414); box-shadow: 0 3px 6px rgba(0,0,0,.3); }
.letter .sig { font-style: italic; margin: 0; }
.letter p:first-of-type::first-letter { float: left; font-size: 3.2em; line-height: .85; padding: .05em .08em 0 0; font-weight: 800; color: var(--accent-text); }

/* also aboard */
.aboard { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 8px; }
.card { background: var(--sailcloth); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: 0 4px 0 var(--ink); }
.card h3 { font-size: 1.2rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .icon { display: block; width: 40px; height: 40px; margin-bottom: 10px; color: var(--oak); }
.card .icon svg { width: 100%; height: 100%; }

/* what's new band */
.whatsnew { margin-block: 48px; }
.new-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.new-card { background: rgba(247,239,220,.06); border: 1.5px solid rgba(242,182,50,.45); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.new-card picture { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid rgba(242,182,50,.45); }
.new-card img { width: 100%; height: 100%; object-fit: cover; }
.new-card .body { padding: 18px 18px 20px; }
.new-card h3 { color: var(--gold); font-size: 1.25rem; }
.new-card p { margin: 0; font-size: .97rem; color: rgba(247,239,220,.88); }
.fixes { margin-top: 32px; display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .fixes { grid-template-columns: 1fr 1fr; } }
.fixes ul { margin: 0; columns: 1; }
.fixes li { margin-bottom: .35em; }

/* gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gallery li:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery { list-style: none; margin: 0; padding: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--navy); cursor: zoom-in; position: relative; aspect-ratio: 16 / 9; box-shadow: 0 3px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.gallery button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: .78rem; font-weight: 600; text-align: left; color: var(--sailcloth); background: linear-gradient(0deg, rgba(9,20,40,.85), rgba(9,20,40,0)); opacity: 0; transition: opacity .2s; }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; }
@media (hover: none) { .gallery .cap { display: none; } }

/* lightbox */
dialog.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7,14,28,.96); color: var(--sailcloth); }
dialog.lightbox::backdrop { background: rgba(7,14,28,.8); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); gap: 12px; }
.lb-count { font-weight: 700; letter-spacing: .1em; font-size: .85rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 5vw, 80px); }
.lb-stage picture, .lb-stage img { max-width: 100%; max-height: 100%; }
.lb-stage img { object-fit: contain; width: auto; height: auto; max-height: calc(100dvh - 170px); border-radius: 6px; }
.lb-cap { padding: 12px var(--gutter) 18px; text-align: center; font-size: .98rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(247,239,220,.7); background: rgba(22,41,74,.85); color: var(--sailcloth); cursor: pointer; }
.icon-btn:hover { background: var(--navy); border-color: var(--gold); }
.icon-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap a { color: var(--gold); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--sailcloth); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font: 700 1.1rem/1.35 var(--display); font-variation-settings: "opsz" 24; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 3px solid var(--oak); border-bottom: 3px solid var(--oak); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .a { padding: 0 20px 18px; }
.faq .a p:last-child { margin-bottom: 0; }

/* sunset CTA */
.cta { position: relative; color: var(--sailcloth); text-align: center; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 14vw, 180px); }
.cta picture, .cta img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta img { object-fit: cover; object-position: 50% 28%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(9,20,40,.5), rgba(9,20,40,.2) 70%), linear-gradient(0deg, rgba(9,20,40,.45), rgba(9,20,40,0) 50%); }
.cta h2 { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.cta p { max-width: 52ch; margin-inline: auto; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.cta .hero-cta { justify-content: center; }

/* footer */
.site-footer { background: var(--navy-deep) var(--grain); color: rgba(247,239,220,.86); padding: 56px 0 36px; font-size: .94rem; border-top: 3px solid var(--brass); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-family: var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:not(.btn) { color: var(--sailcloth); }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.foot-brand img { width: 64px; }
.foot-brand b { font: 800 1.4rem/1 var(--display); color: var(--sailcloth); }
.fineprint { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(247,239,220,.16); font-size: .82rem; color: rgba(247,239,220,.72); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; color: var(--sailcloth); padding: 130px 0 clamp(90px, 12vw, 150px); overflow: hidden; isolation: isolate; background: var(--navy); }
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero picture img { object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9,20,40,.86), rgba(9,20,40,.55) 60%, rgba(9,20,40,.3)); }
.page-hero h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.page-hero .lede { color: var(--sailcloth); }

.layout-toc { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.layout-toc > * { min-width: 0; }
@media (min-width: 1000px) { .layout-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: .93rem; }
.toc h2 { font: 700 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; text-decoration: none; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--sailcloth); font-weight: 600; }
.toc a:hover { background: var(--gold); }
@media (min-width: 1000px) {
  .toc > div { position: sticky; top: 96px; }
  .toc ol { display: grid; gap: 2px; }
  .toc a { border: 0; background: none; border-left: 3px solid var(--rule); border-radius: 0; padding: 6px 12px; width: 100%; }
  .toc a:hover { background: rgba(242,182,50,.25); border-left-color: var(--oak); }
}
.kit-section { padding-block: 28px 44px; border-bottom: 1px dashed var(--rule); }
.kit-section:last-child { border-bottom: 0; }
.kit-section h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }

.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sailcloth); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 0 var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px dashed var(--rule); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 32%; font: 700 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); background: rgba(234,217,176,.45); }
@media (max-width: 560px) { .facts th, .facts td { display: block; width: auto; } .facts th { border-bottom: 0; padding-bottom: 2px; background: none; } }
.todo { display: inline-block; font: 700 .82rem/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #7a1f10; background: #fde3d6; border: 2px dashed #c0391f; padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.todo::after { content: "to fill"; margin-left: .55em; font: 800 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: #c0391f; color: #fff; padding: 2px 5px; border-radius: 4px; vertical-align: 1px; }
.note { background: rgba(242,182,50,.18); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.kit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

.asset-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.asset { background: var(--sailcloth); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 0 var(--ink); }
.asset .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; border-bottom: 2px solid var(--ink); }
.asset .thumb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.asset .thumb.light { background: #fffaf0; }
.asset .thumb.dark { background: var(--navy); }
.asset .thumb.sea { background: linear-gradient(160deg, #62c2f0, #2f8fd8); }
.asset .thumb.photo { padding: 0; aspect-ratio: 16 / 9; }
.asset .thumb.photo img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.asset .meta { padding: 12px 14px 14px; display: grid; gap: 6px; }
.asset h3 { font-size: 1.02rem; margin: 0; font-family: var(--sans); font-weight: 700; font-variation-settings: normal; letter-spacing: 0; }
.asset p { margin: 0; font-size: .85rem; color: var(--muted); }
.dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dl a { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; text-decoration: none; padding: 7px 11px; border-radius: 999px; background: var(--navy); color: var(--sailcloth); min-height: 34px; }
.dl a:hover { background: var(--oak); }
.dl a svg { width: 14px; height: 14px; }

.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); list-style: none; padding: 0; margin: 0; }
.swatch { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--sailcloth); }
.swatch .chip { height: 76px; background: var(--c); border-bottom: 2px solid var(--ink); }
.swatch .meta { padding: 10px 12px; display: grid; gap: 2px; }
.swatch b { font-size: .95rem; }
.swatch code, .swatch button { font: 600 .85rem/1.2 ui-monospace, Menlo, Consolas, monospace; }
.swatch button { justify-self: start; background: none; border: 1.5px solid var(--ink); border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--ink); min-height: 30px; }
.swatch button:hover { background: var(--gold); }
.swatch span { font-size: .8rem; color: var(--muted); }
.type-specimens { display: grid; gap: 16px; }
@media (min-width: 760px) { .type-specimens { grid-template-columns: 1fr 1fr; } }
.specimen { border: 2px solid var(--ink); border-radius: 12px; padding: 20px; background: var(--sailcloth); }
.specimen .big { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; margin: 6px 0 12px; }
.specimen .f { font-family: var(--display); font-weight: 900; }
.specimen .a { font-family: var(--sans); font-weight: 700; }

.video-slots { display: grid; gap: 16px; }
@media (min-width: 760px) { .video-slots { grid-template-columns: 1fr 1fr; } }
.video-slot { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--navy); color: var(--sailcloth); }
.video-slot picture, .video-slot > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-slot .ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 16px; background: rgba(9,20,40,.62); }
.video-slot .ph b { font: 800 1.35rem/1.1 var(--display); }
.video-slot .ph span { font-size: .9rem; opacity: .9; }
.video-slot video, .video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.prose p, .prose > ul, .prose li, .prose h3 { max-width: 72ch; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: rgba(234,217,176,.6); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--brass); background: var(--sailcloth); border-radius: 0 10px 10px 0; }

/* changelog */
.timeline { position: relative; display: grid; gap: 48px; }
@media (min-width: 900px) { .timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--oak) 0 8px, transparent 8px 16px); } }
.release { display: grid; gap: 16px; }
@media (min-width: 900px) { .release { grid-template-columns: 150px minmax(0, 1fr); gap: 40px; } }
.release-tag { position: relative; }
@media (min-width: 900px) { .release-tag { text-align: right; padding-right: 26px; } .release-tag::after { content: ""; position: absolute; right: -9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); } }
.release-tag .v { font: 900 2.2rem/1 var(--display); color: var(--navy); display: block; }
.release-tag time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.release-body { background: var(--sailcloth); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 4px 0 var(--ink); }
.release-body h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.release-body h3 { margin-top: 1.4em; padding-bottom: .3em; border-bottom: 1px dashed var(--rule); display: flex; align-items: center; gap: 10px; }
.release-body h3 .ic { width: 30px; height: 30px; flex: none; color: var(--oak); }
.release-body ul { margin: .6em 0 0; }
.release-body li { margin-bottom: .45em; }
.release-body .shot { margin: 1.2em 0 .4em; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--sailcloth); position: relative; isolation: isolate; overflow: hidden; padding: 100px 16px 140px; }
.lost picture, .lost picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.lost picture img { object-fit: cover; }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9,20,40,.62); }
.lost .compass { width: 120px; height: 120px; margin: 0 auto 18px; animation: spin 14s ease-in-out infinite alternate; }
.lost h1 { font-size: clamp(2.6rem, 2rem + 4vw, 5rem); }
.lost p { max-width: 46ch; margin-inline: auto; }
@keyframes spin { from { transform: rotate(-25deg); } to { transform: rotate(35deg); } }

/* scroll reveal (JS adds .reveal-ready to <html>) */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .waves .layer { animation: none; }
}
@media print { .site-header, .waves, .cta, dialog { display: none !important; } body { background: #fff; } }
