/* Fishead Studios - one stylesheet for every page. Dark only: the brand lives in the dark. */

:root {
  color-scheme: dark;
  --bg: #020302;          /* the render's own corner colour */
  --bg-raised: #0a0d0b;
  --line: #1c231f;
  --text: #e7e5de;
  --text-dim: #a6aaa2;
  --neon: #e2e9ed;        /* the intro's white neon, a touch cool, dimmed */
  --gold: #f2c86a;        /* the lure's halo, lifted for contrast */
  --teal: #42d1a9;        /* the fish's lit side */
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; padding: 8px 12px;
  background: var(--gold); color: #120f05; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

.nowrap { white-space: nowrap; }

/* ---------- wordmark (inline SVG, glyphs from Anton) ---------- */

.wordmark { display: block; height: auto; fill: var(--neon); overflow: visible; }
.wordmark path { fill: inherit; }

/* ---------- home: the sign ----------
   The game's studio intro, THE NAME ALONE (Branding/fishead/intro_text.py, 2026-10-16), on the page:
   black, then the name sputters on like an old neon tube in hard steps; the h and the S catch late;
   it holds, humming a little; the o blips once. Keys are the film's frames at 30 fps, plus 0.2 s for
   the page to paint. The base state is lit, so a no-motion visitor sees the sign at once. */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  text-align: center;
}

.title { margin: 0; }
.hero .wordmark {
  width: min(820px, 90vw);
  filter:
    drop-shadow(0 0 1px rgba(240, 248, 255, .55))
    drop-shadow(0 0 9px rgba(235, 245, 255, .22))
    drop-shadow(0 0 26px rgba(235, 245, 255, .10));
  animation: hum .57s ease-in-out 1.2s infinite alternate;
}

/* every letter: frames 12-22 (NEON_ALL) */
.hero .wordmark path { animation: neon-all .7s step-end .2s both; }
/* the h (letter 3): lit for good at frame 23 */
.hero .wordmark path:nth-of-type(4) { animation: neon-h .733s step-end .2s both; }
/* the S of Studios (letter 7): out until frame 25, lit for good at 28 */
.hero .wordmark path:nth-of-type(8) { animation: neon-s .9s step-end .2s both; }
/* the o (letter 12): the common sputter, then one blip at frames 55-58 */
.hero .wordmark path:nth-of-type(13) { animation: neon-all .7s step-end .2s both, neon-blip .1s step-end 2s forwards; }

@keyframes neon-all {
  0% { opacity: 0; }
  52.4% { opacity: .5; }
  57.1% { opacity: 0; }
  66.7% { opacity: 1; }
  71.4% { opacity: 0; }
  76.2% { opacity: .35; }
  81% { opacity: 0; }
  90.5% { opacity: 1; }
  95.2% { opacity: .7; }
  100% { opacity: 1; }
}
@keyframes neon-h {
  0% { opacity: 0; }
  50% { opacity: .5; }
  54.5% { opacity: 0; }
  63.6% { opacity: 1; }
  68.2% { opacity: 0; }
  72.7% { opacity: .35; }
  77.3% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes neon-s {
  0% { opacity: 0; }
  40.7% { opacity: .5; }
  44.4% { opacity: 0; }
  88.9% { opacity: 1; }
  92.6% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes neon-blip {
  0% { opacity: .2; }
  33.3% { opacity: 1; }
  66.7% { opacity: .3; }
  100% { opacity: 1; }
}
/* the film's burn breathes by 3.5% (NEON_BURN x (1 + 0.035 sin)) */
@keyframes hum { from { opacity: 1; } to { opacity: .965; } }

/* ---------- home: sections ---------- */

.section { max-width: 880px; margin: 0 auto; padding: 24px 16px 72px; }

.game {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.game img { width: 120px; height: 120px; border-radius: 27px; }
.game h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.game p { margin: 0; color: var(--text-dim); max-width: 56ch; }

.pill {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  border: 1px solid rgba(242, 200, 106, .45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .01em;
}

.contact { text-align: center; }
.contact h2 { margin: 0 0 6px; font-size: 24px; }
.contact p { margin: 0; color: var(--text-dim); }
.contact .mail { display: inline-block; margin-top: 10px; font-size: clamp(18px, 3.4vw, 22px); }

/* the card and the contact rise in as they scroll into view, where the browser can */
@supports (animation-timeline: view()) {
  .game,
  .contact {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- top bar (inner pages) ---------- */

.top {
  display: flex;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px;
}
.top a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.top img { width: 40px; height: 40px; border-radius: 10px; }
.top .wordmark {
  width: 156px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .16));
}

/* ---------- document pages ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: 28px 16px 80px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 6vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
.doc .meta { margin: 0 0 28px; color: var(--text-dim); font-size: 15px; }
.doc h2 { margin: 2.2em 0 .5em; font-size: 22px; line-height: 1.3; }
.doc h3 { margin: 1.6em 0 .35em; font-size: 17px; }
.doc p, .doc li { color: #d6d4cd; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc li::marker { color: var(--teal); }


/* ---------- 404 ---------- */

.lost { min-height: 72svh; display: grid; place-items: center; align-content: center; text-align: center; padding: 24px 16px; }
.lost img { width: 160px; height: 160px; border-radius: 28px; opacity: .9; }
.lost h1 { margin: 22px 0 6px; font-size: 30px; }
.lost p { margin: 0; color: var(--text-dim); }

/* ---------- footer ---------- */

.foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 16px 44px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
}
.foot p { margin: 4px 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .game { grid-template-columns: 1fr; gap: 18px; padding: 24px; text-align: left; }
  .game img { width: 92px; height: 92px; border-radius: 21px; }
  .game h2 { font-size: 26px; }
}

/* ---------- motion off: everything shows in its final, lit state ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; }
}
