@font-face { font-family: Geist; src: url(fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/geist-600.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: Cinzel; src: url(fonts/CinzelDecorative-Black.ttf) format("truetype"); font-weight: 400 900; font-display: swap; }

/* the Long Afternoon: a dusk-purple sky, an old red sun, gilt lettering */
:root {
  color-scheme: dark;
  --bg: #0e081a;
  --card: #1a1030;
  --card-hi: #251642;
  --border: #3b2660;
  --fg: #f1e9ff;
  --muted: #b9a8d6;
  --heading: #fff6e0;
  --primary: #f6c45c;
  --primary-fg: #2a1400;
  --sun: #ff7a50;
  --radius: 8px;
  --display: Cinzel, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--fg); font: 17px/1.6 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgb(255 110 70 / 0.16), transparent 70%) no-repeat,
    radial-gradient(1px 1px at 20% 30%, #fff7 50%, transparent), radial-gradient(1px 1px at 70% 60%, #fff5 50%, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff4 50%, transparent),
    linear-gradient(#0e081a, #160b26 60%, #0e081a) var(--bg);
  background-size: auto, 300px 300px, 410px 410px, 370px 370px, auto;
}
a { color: inherit; }
.nj { display: inline-block; }  /* Cinzel Decorative joins "oo" into one glyph, whatever the font features say: a span round the second o stops it */
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font: 900 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--display); color: var(--primary); margin-bottom: 10px; text-shadow: 2px 3px 0 #000a; }
h3 { font: 600 1.02rem/1.3 Geist, system-ui, sans-serif; color: var(--heading); margin-bottom: 6px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* the bar along the top */
.top { position: sticky; top: 0; z-index: 10; background: rgb(14 8 26 / 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 1.1rem/1 var(--display); color: var(--primary); text-decoration: none; white-space: nowrap; }
.brand img { image-rendering: pixelated; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--fg); }

/* buttons and badges: gilt, lit from the top left */
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 6px; background: linear-gradient(#ffe7a6, #e9a93a); color: var(--primary-fg); font: 700 0.92rem/1 Geist, system-ui, sans-serif; text-decoration: none; border: 1px solid #7a4a10; box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.7), inset -1px -1px 0 rgb(90 40 0 / 0.5), 0 0 24px rgb(246 196 92 / 0.2); transition: filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: linear-gradient(var(--card-hi), var(--card)); color: var(--fg); border-color: var(--border); box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.12); }
.badge { display: inline-block; border-radius: 999px; font-weight: 600; }
.badge-big { padding: 8px 18px; border: 1px solid #a2552e; background: linear-gradient(#4a1c22, #2a1028); color: #ffd9a0; font: 900 clamp(0.95rem, 2.2vw, 1.15rem)/1.3 var(--display); box-shadow: 0 0 28px rgb(255 122 80 / 0.25); }

/* sections */
main { overflow-x: clip; }
main > section { padding: 80px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 0.75rem/1 Geist, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.2em; color: var(--sun); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.sub, .meta { color: var(--muted); }
.sub { margin-bottom: 28px; }

/* the top of the page */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 56px; }
.hero h1 { margin: 26px 0 14px; }
.logo { display: block; width: min(524px, 100%); image-rendering: pixelated; }
.lead { font: 900 1.45rem/1.3 var(--display); color: var(--heading); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-shot { margin: 0; }
.hero-shot img, .gallery img { display: block; width: 100%; image-rendering: pixelated; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 4px #1a0f22; }
.hero-shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.video { margin: 0 auto 28px; max-width: 800px; }
.video video { display: block; width: 100%; height: auto; image-rendering: pixelated; background: #000; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), 0 0 0 4px #1a0f22; }
.video figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* the story, on a page of old parchment-dark */
.story { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 40px; align-items: center; margin-top: 20px; }
.fennick { justify-self: center; width: 256px; image-rendering: pixelated; filter: drop-shadow(0 0 40px rgb(255 122 80 / 0.35)); }
.tale { padding: 28px 32px; border-left: 3px solid var(--primary); background: linear-gradient(100deg, rgb(246 196 92 / 0.07), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; font: 1.08rem/1.7 Georgia, "Times New Roman", serif; color: #e8dcc8; }
.tale p:last-child { margin: 0; }
.tale .punch { font: 900 1.5rem/1.3 var(--display); color: var(--primary); margin: 20px 0; }

/* cards: a lit top-left edge, a dark bottom-right */
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: linear-gradient(160deg, var(--card-hi), var(--card)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.08), inset -1px -1px 0 rgb(0 0 0 / 0.4); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* screens */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; }
.gallery img { aspect-ratio: 5 / 4; object-fit: contain; background: #000; }

/* the bottom */
.foot { display: flex; gap: 14px; align-items: flex-start; margin-top: 80px; padding: 28px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.foot img { image-rendering: pixelated; margin-top: 3px; }
.small { font-size: 0.8rem; }

/* the lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgb(8 4 14 / 0.9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; image-rendering: pixelated; border-radius: 6px; }
.lightbox figcaption { color: var(--muted); margin-top: 8px; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-size: 28px; cursor: pointer; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 32px; right: 16px; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .top nav { display: none; }
  .tale { padding: 20px; }
  .story { grid-template-columns: 1fr; }
  .fennick { width: 128px; order: -1; }
}

/* the changelog */
.log { padding: 24px 28px; }
.log header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; color: var(--primary); font-weight: 700; }
.log ul { margin: 0; padding-left: 20px; color: var(--muted); }
.log li { margin-bottom: 6px; }
.log b { color: var(--fg); }

/* the download */
.download { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 36px; }
.download p { margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; display: grid; gap: 14px; align-content: center; }
.steps b { color: var(--fg); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); font: 600 0.75rem/1.5 ui-monospace, monospace; text-align: center; color: var(--primary); }
code { font: 0.85em ui-monospace, monospace; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }
