/* Vigo Christmas Simulator — landing.
   Night over the ría: Atlantic navy, sodium-lamp amber, cold LED white. Headings use a condensed signage face
   (like the street-name plates in the game's HUD); body text is set for legibility. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --night: #0d1b34;      /* page background: Vigo's winter night */
  --ria: #13294d;        /* raised surfaces */
  --ria-deep: #091428;   /* footer, plates */
  --sodium: #ffc15e;     /* bulbs, primary action */
  --sodium-hot: #ffd98f;
  --led: #cfe6ff;        /* cold LED light: secondary text */
  --granite: #9aa3ae;    /* muted text, Vigo granite */
  --paper: #f3f6fb;      /* body text */

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.75rem, 6vw, 4.25rem);

  --wrap: 72rem;
  --radius-photo: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 var(--step-0)/1.6 var(--text);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sodium); text-underline-offset: 0.2em; }
a:hover { color: var(--sodium-hot); }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; margin: 0; }
h2 { font-size: var(--step-4); color: var(--paper); max-width: 18ch; }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.intro { font-size: var(--step-1); color: var(--led); max-width: 40em; margin-top: 1rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0.5rem; background: var(--sodium); color: var(--night); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font: 800 var(--step-1)/1 var(--display);
  letter-spacing: 0.03em;
  color: var(--night);
  background: var(--sodium);
  padding: 0.85rem 1.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(255, 193, 94, 0);
  transition: box-shadow 0.2s, background 0.2s;
}
.btn:hover { color: var(--night); background: var(--sodium-hot); box-shadow: 0 0 28px 4px rgba(255, 193, 94, 0.45); }
.btn-small { font-size: var(--step-0); padding: 0.55rem 1rem 0.5rem; }
.link { color: var(--led); font-weight: 700; }

/* ---------------------------------------------------------------- header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--paper); text-decoration: none; font: 800 var(--step-1)/1 var(--display); letter-spacing: 0.02em; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; }
.top nav a { color: var(--led); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: var(--sodium); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn-small { margin-left: auto; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 52, 0.94) 0%, rgba(13, 27, 52, 0.75) 42%, rgba(13, 27, 52, 0.15) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(13, 27, 52, 0) 35%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 7rem 1.25rem 4rem; }
.hero h1 { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.hero .sub { font-size: clamp(1.6rem, 4.2vw, 3rem); font-weight: 900; color: var(--led); letter-spacing: 0.14em; }
.lede { font-size: var(--step-1); max-width: 34em; color: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 1.25rem; }
.fine { color: var(--granite); font-size: var(--step--1); }

/* The title written in bulbs: they switch on one after another when the page opens (the game's core action). */
.bulbs { width: min(34rem, 88vw); height: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 193, 94, 0.55)); }
.bulbs circle { fill: #2b3858; animation: switch-on 0.18s ease-out forwards; animation-delay: calc(0.35s + var(--i) * 28ms); }
@keyframes switch-on {
  0% { fill: #2b3858; }
  60% { fill: #fff3d6; }
  100% { fill: var(--sodium); }
}
@media (prefers-reduced-motion: reduce) { .bulbs circle { animation: none; fill: var(--sodium); } }

/* ---------------------------------------------------------------- how to play */
.how { padding: 6rem 0 5rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 3rem 0 2rem; display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 900 1.4rem/1 var(--display); color: var(--night);
  background: var(--sodium); box-shadow: 0 0 18px rgba(255, 193, 94, 0.6);
}
.steps li + li::after { /* the cable between bulbs: this really is a sequence */
  content: ""; position: absolute; top: 1.25rem; left: -3rem; width: 3rem; border-top: 2px dashed rgba(207, 230, 255, 0.35);
}
@media (max-width: 700px) { .steps li + li::after { display: none; } }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--led); }
.aside { color: var(--granite); max-width: 44em; }
.shot { margin: 3rem 0 2rem; }
.shot img { border-radius: var(--radius-photo); width: 100%; box-shadow: 0 0 0 1px rgba(207, 230, 255, 0.12); }
.aside strong { color: var(--paper); }

/* ---------------------------------------------------------------- lights mosaic */
.lights { padding: 4rem 0 6rem; background: linear-gradient(180deg, var(--night), var(--ria-deep) 30%, var(--night)); }
.mosaic {
  max-width: 80rem; margin: 3rem auto 0; padding: 0 1.25rem;
  display: grid; gap: 2.25rem 1.25rem;
  grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense;
}
.card.big { grid-column: 1 / span 2; grid-row: span 2; }
.card.big.right { grid-column: 2 / span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; } .card.big, .card.big.right { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .mosaic { grid-template-columns: 1fr; } }
.card { position: relative; margin: 0; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-photo); }
/* Street-name plate, as in the game's HUD: dark plate, gold rule underneath. */
.plate {
  display: inline-block; margin: -1.6rem 0 0 1rem; position: relative;
  background: var(--ria-deep); border-bottom: 3px solid var(--sodium);
  padding: 0.5rem 0.9rem 0.45rem; max-width: calc(100% - 2rem);
}
.plate h3 { font-size: var(--step-1); }
.plate .street { margin: 0.15rem 0 0; font-size: var(--step--1); color: var(--granite); font-style: italic; }
.card .desc { color: var(--led); margin: 0.75rem 1rem 0; max-width: 34em; }
.card.big .plate h3 { font-size: var(--step-2); }

/* ---------------------------------------------------------------- city */
.city { padding: 6rem 0; }
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .city-grid { grid-template-columns: 1fr; } }
.city-text h2 { margin-bottom: 1.5rem; }
.city-text h3 { margin: 2rem 0 0.75rem; color: var(--sodium); }
.landmarks { padding-left: 1.2rem; margin: 0 0 1.5rem; columns: 2 14rem; column-gap: 2rem; }
.landmarks li { margin-bottom: 0.35rem; break-inside: avoid; }
.landmarks li::marker { color: var(--sodium); }
.map { margin: 0; position: sticky; top: 2rem; }
.map img { border-radius: var(--radius-photo); box-shadow: 0 0 0 1px rgba(207, 230, 255, 0.12); }
figcaption { color: var(--granite); font-size: var(--step--1); margin-top: 0.6rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 4rem; }
.duo figure { margin: 0; }
.duo img { border-radius: var(--radius-photo); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- controls */
.controls { padding: 5rem 0; background: var(--ria); }
.ctrl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.ctrl-grid h3 { color: var(--sodium); margin-bottom: 1rem; }
dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
dt { font-weight: 700; white-space: nowrap; }
dd { margin: 0; color: var(--led); }
.note { margin-top: 1rem; color: var(--granite); }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: 6rem 0; }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid rgba(207, 230, 255, 0.15); }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary h3 { font-size: var(--step-1); display: inline; }
summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.8rem; height: 0.8rem; margin-top: -0.4rem;
  border-radius: 50%; background: #2b3858; transition: background 0.2s, box-shadow 0.2s;
}
details[open] summary::after { background: var(--sodium); box-shadow: 0 0 12px rgba(255, 193, 94, 0.7); }
details p { color: var(--led); margin: 0 0 1.25rem; max-width: 40em; }

/* ---------------------------------------------------------------- final + footer */
.final { padding: 5rem 0 6rem; text-align: center; }
.final h2 { margin: 0 auto 2rem; }
.foot { background: var(--ria-deep); color: var(--granite); font-size: var(--step--1); padding: 3rem 0 2.5rem; }
.foot strong { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
