/* The Last Herald: the website. One stylesheet for both pages. */

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/pixelify-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/pixelify-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The night over Granvik, the logo's sunset gold, the glass shore's teal, the hive's violet */
  --bg: #0a0c19;
  --bg-2: #10132a;
  --panel: #161a35;
  --panel-2: #1d2244;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #eef0fb;
  --muted: #a9adcb;
  --dim: #6f7396;
  --gold: #f6b26b;
  --gold-2: #ffd99c;
  --ember: #e8743b;
  --teal: #62e0d0;
  --violet: #a487ff;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, .eyebrow, .btn, .brand { font-family: var(--pixel); font-weight: 600; letter-spacing: 0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 18px; color: var(--gold); }
h3 { font-size: 22px; margin: 0 0 6px; }
.eyebrow { display: block; color: var(--teal); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }

/* ---- The top: the title picture, the pitch, the stores ---- */
.hero { position: relative; background: #04050b; }
.hero-art { position: relative; }
.hero-art img { width: min(100%, calc(80vh * 16 / 9)); height: auto; margin: 0 auto; } /* all of it, the logo and the kids, as big as the screen allows (the night of its edges either side) */
.hero-art::after { /* fading down into the page */
  content: ''; position: absolute; inset: auto 0 0 0; height: 10%;
  background: linear-gradient(to bottom, rgba(4, 5, 11, 0), var(--bg));
}
.hero-text { position: relative; padding: 22px 0 56px; text-align: center; }
.hero { background: linear-gradient(to bottom, #04050b 60%, var(--bg)); }
.hero-text h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the logo says it */
.tagline { font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.35; margin: 0 auto 26px; max-width: 30ch; color: var(--ink); }
.facts { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.facts span + span::before { content: '·'; margin: 0 10px; color: var(--dim); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 210px;
  padding: 12px 18px 12px 14px; text-decoration: none; text-align: left;
  color: var(--ink); background: var(--panel); border: 2px solid var(--panel-2);
  box-shadow: 4px 4px 0 #04050b; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.btn svg { flex: none; width: 30px; height: 30px; }
.btn small { display: block; font-family: var(--text); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.btn b { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.btn.live { border-color: var(--gold); color: var(--ink); }
.btn.live small { color: var(--gold-2); }
.btn.live:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #04050b; color: #fff; }
.btn.soon { cursor: default; opacity: 0.8; }

/* ---- The story ---- */
.story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story p { color: var(--muted); margin: 0 0 16px; }
.story p:first-of-type { color: var(--ink); font-size: 19px; }
.story figure { margin: 0; }
.framed { border: 2px solid var(--panel-2); box-shadow: 6px 6px 0 #04050b; background: #000; }
figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* ---- Play it here: a picture and a button, then itch.io's player in its place (the game, and its bar under it) ---- */
.player {
  position: relative; margin-top: 30px; aspect-ratio: 1280 / 740; display: grid; place-items: center; overflow: hidden;
  background: #000; border: 2px solid var(--panel-2); box-shadow: 6px 6px 0 #04050b;
}
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.player button { position: relative; width: auto; min-width: 0; font-family: var(--pixel); cursor: pointer; } /* (its own size, on a phone too) */
.player button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #04050b; }
.player button svg { color: var(--teal); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- On the Amiga: the story's layout, its buttons left, the Amiga's own picture (320 x 256, sharp) linking to the video ---- */
.amiga .stores { justify-content: flex-start; margin-top: 26px; }
.amiga .video { position: relative; display: block; }
.amiga .video img { width: 100%; }
.amiga .video .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  display: grid; place-items: center; color: var(--ink); background: rgba(10, 12, 25, 0.78); border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 #04050b; transition: transform 0.12s, background 0.12s;
}
.amiga .video .play svg { width: 40px; height: 40px; }
.amiga .video:hover .play { transform: translate(calc(-50% - 2px), calc(-50% - 2px)); background: var(--panel); }
.play .note { color: var(--muted); font-size: 15px; margin: 16px 0 0; max-width: 70ch; }

/* ---- The kids ---- */
.kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.kid { background: linear-gradient(to bottom, var(--panel), var(--bg-2)); border: 1px solid var(--line); padding: 26px 22px 24px; text-align: center; }
.kid .stage {
  height: 210px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px;
  background: radial-gradient(ellipse 70px 10px at 50% calc(100% - 4px), rgba(0, 0, 0, 0.55), transparent 70%);
}
.kid .stage img { height: auto; width: auto; max-height: 100%; }
.kid h3 { color: var(--gold-2); }
.kid .age { font-family: var(--pixel); color: var(--teal); font-size: 15px; margin-bottom: 10px; }
.kid p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---- Pictures ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.gallery button { padding: 0; border: 2px solid var(--panel-2); background: #000; cursor: zoom-in; box-shadow: 5px 5px 0 #04050b; transition: transform 0.12s, border-color 0.12s; }
.gallery button:hover, .gallery button:focus-visible { transform: translate(-2px, -2px); border-color: var(--gold); outline: none; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; }

dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1440px, 96vw); width: 100%; }
dialog.lightbox::backdrop { background: rgba(3, 4, 10, 0.92); }
.lightbox img { width: 100%; height: auto; border: 2px solid var(--panel-2); }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-family: var(--pixel); color: var(--muted); }
.lightbox button { font: 600 18px var(--pixel); color: var(--ink); background: var(--panel); border: 2px solid var(--panel-2); padding: 6px 14px; cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); }

/* ---- What's in it ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature { background: var(--panel); border: 1px solid var(--line); padding: 22px 22px 20px; }
.feature h3 { font-size: 19px; color: var(--ink); }
.feature h3::before { content: '▸ '; color: var(--gold); }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---- The end of the page ---- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 28px; height: 28px; }

/* ---- The privacy page ---- */
.top { border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--bg-2); }
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; color: var(--gold); margin: 0 0 8px; }
.doc .updated { color: var(--dim); margin: 0 0 32px; }
.doc h2 { font-size: 24px; color: var(--gold-2); margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .short { background: var(--panel); border-left: 4px solid var(--teal); padding: 16px 20px; color: var(--ink); }

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
  .kids, .features { grid-template-columns: 1fr; }
  .kid .stage { height: 170px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { min-width: 0; width: 100%; }
  .hero-text { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery button { transition: none; }
}
