/* Fonts are self-hosted (SIL Open Font License, see assets/fonts/) so pages make no third-party requests. */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bungee-latin-ext.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: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bungee-latin.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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin-ext.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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin.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; }

:root {
  --ink: #17384d;
  --ink-soft: #55636b;
  --sky: #f5fafc;
  --white: #ffffff;
  --yellow: #f3ae00;
  --red: #d7263d;
  --blue: #1e6f9e;
  --moss: #23392e;
  --moss-light: #c9d8c5;
  --line: #dbe9f2;
  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header + painted stripe band (jeepney side paint) */
.site-header { background: var(--white); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { height: 58px; width: auto; }
@media (max-width: 420px) { .wordmark img { height: 46px; } }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
/* Current-page marker uses blue (5.5:1 on white) so the state meets non-text contrast */
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--blue);
}
.stripe {
  height: 14px;
  background: linear-gradient(
    var(--red) 0 33.3%,
    var(--yellow) 33.3% 66.6%,
    var(--blue) 66.6% 100%
  );
}

/* Route-board plate: the one loud element */
.board {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  background: var(--yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 10px;
  padding: 0.28em 0.5em 0.2em;
  box-shadow: inset 0 0 0 3px var(--white);
  margin: 0;
}
.board--moss {
  background: var(--moss);
  color: var(--moss-light);
  border-color: var(--moss);
  box-shadow: inset 0 0 0 3px var(--moss-light);
}

main { display: block; }

/* Landing */
.intro { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.intro h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 18ch;
}
.intro p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.game h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
.game p { margin: 0 0 14px; max-width: 48ch; }
.game .art { border-radius: 12px; overflow: hidden; border: 4px solid var(--ink); }
.game .art img { width: 100%; aspect-ratio: 9 / 4; object-fit: cover; }
.game--moss .art img { object-position: center 18%; }
.game--moss .art { border-color: var(--moss); }

.status {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.links a:not(.button) { display: inline-block; padding: 3px 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 8px;
}
.button:hover { background: var(--blue); color: var(--white); }

.moss-panel {
  background: var(--moss);
  color: var(--moss-light);
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 4;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  line-height: 1.1;
  padding: 24px;
}

/* Game pages */
.game-hero { position: relative; background: var(--ink); }
.game-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.game-hero .wrap { position: relative; }
.game-hero .board {
  position: absolute;
  bottom: -0.9em;
  left: var(--gutter);
  font-size: clamp(2rem, 7vw, 4.4rem);
}
.game-hero--moss { background: var(--moss); }
.game-hero--moss img { object-position: center 12%; }

.page { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 20px;
}
.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  max-width: 54ch;
  margin: 0 0 32px;
}
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2em 0 0.5em; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
.faq h3:first-child { margin-top: 0.6em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.updated { color: var(--ink-soft); font-size: 0.95rem; }

.locations {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 20px;
}
.locations img { border-radius: 8px; aspect-ratio: 9 / 4; object-fit: cover; width: 100%; }
.locations strong { display: block; margin-top: 10px; font-size: 1.05rem; }
.locations span { color: var(--ink-soft); font-size: 0.97rem; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0 0 32px;
}
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.section-title { font-size: 1.5rem; line-height: 1.25; margin: 48px 0 8px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8d0dc;
  margin-top: 48px;
  font-size: 0.97rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.site-footer h2 { font-size: 1rem; color: var(--white); margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer a { display: inline-block; padding: 3px 0; }
.site-footer a { color: #e6ebf2; }
.site-footer a:hover { color: var(--yellow); }
/* Gold ring on the dark footer (6.4:1); the default blue ring is too dark here */
.site-footer :focus-visible { outline-color: var(--yellow); }
.site-footer .copy { grid-column: 1 / -1; margin: 0; color: #9aa5b5; }

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  .game .art { order: -1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Cookie banner: pinned to the bottom of the screen. While it's showing, consent.js sets
   --consent-h so the page reserves that space and focused elements scroll clear of it (WCAG 2.4.11). */
html { scroll-padding-bottom: var(--consent-h, 0px); }
body { padding-bottom: var(--consent-h, 0px); }
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--white);
  border-top: 4px solid var(--ink);
  box-shadow: 0 -6px 18px rgba(23, 56, 77, 0.14);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.cookie-inner p { margin: 0; max-width: 62ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }

button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button--secondary { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button--secondary:hover { background: var(--sky); color: var(--ink); }

.link-button {
  background: none;
  border: 0;
  padding: 3px 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.prose .link-button { color: var(--blue); }
.link-button:hover { color: var(--red); }
.site-footer .link-button { color: #e6ebf2; }
.site-footer .link-button:hover { color: var(--yellow); }

.prose code { font-size: 0.92em; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
