/* Warcats site. Palette is taken from the game itself: sea, stone wall, the yellow hazard stripe on the walls, grass. */

@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: "Hanken Grotesk"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --tide: #0b1e2d;        /* page */
  --tide-2: #10293c;      /* raised bands */
  --deep: #07141f;        /* fog, footer */
  --line: rgba(238, 244, 242, 0.14);
  --stone: #8e948c;
  --sea: #4a9fd0;
  --hazard: #f5b81c;      /* the one accent: buttons + stripes */
  --moss: #7ab83f;        /* status only */
  --fur: #eef4f2;         /* text */
  --muted: #a9bbc6;       /* secondary text, 7:1 on --tide */

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --stripe: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--tide) 14px 28px);
}

*, *::before, *::after { 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(--tide);
  color: var(--fur);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--fur); }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hazard); color: var(--deep); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; margin: 0; }
h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; scroll-margin-top: 72px; }
.band { padding-block: clamp(72px, 11vw, 150px); }
.band--raised { background: var(--tide-2); }
.stripe { height: 14px; background: var(--stripe); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 700 1rem/1 var(--body); text-decoration: none; letter-spacing: 0.01em;
  border-radius: 6px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--hazard); color: var(--deep); }
.btn--primary:hover { background: #ffd04d; color: var(--deep); }
.btn--ghost { border-color: var(--line); color: var(--fur); background: rgba(7, 20, 31, 0.35); }
.btn--ghost:hover { border-color: var(--fur); color: var(--fur); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.2s ease, border-color 0.2s ease; border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header.is-open { background: rgba(7, 20, 31, 0.94); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fur); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.9rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand:hover { color: var(--fur); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { color: var(--fur); text-decoration: none; padding: 10px 14px; font-weight: 600; font-size: 0.98rem; border-radius: 6px; }
.nav a:not(.btn):hover { background: rgba(238, 244, 242, 0.09); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hazard); border-radius: 0; }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 6px; background: transparent; color: var(--fur); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; margin: auto; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(7, 20, 31, 0.98); border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- hero: the map in the dark, lit only by the cat's view ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--deep); isolation: isolate; touch-action: pan-y; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74.5% 50%; z-index: -3; }
.hero__fog { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 20, 31, 0.75) 0%, rgba(7, 20, 31, 0) 170px),
    linear-gradient(90deg, rgba(7, 20, 31, 0.8) 0%, rgba(7, 20, 31, 0.4) 38%, rgba(7, 20, 31, 0) 62%),
    linear-gradient(0deg, rgba(7, 20, 31, 0.8) 0%, rgba(7, 20, 31, 0) 34%); }
.hero__body { padding-top: 140px; padding-bottom: clamp(44px, 8vh, 96px); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 20, 31, 0.6); font-size: 0.95rem; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 4px rgba(122, 184, 63, 0.22); }
.hero h1 { font-size: clamp(4.2rem, 13vw, 11.5rem); max-width: 7em; text-shadow: 0 2px 28px rgba(5, 14, 22, 0.75); }
.hero .lead { margin: 28px 0 34px; color: #cfdce3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__hint { position: absolute; right: var(--gutter); bottom: clamp(44px, 8vh, 96px); margin: 0; max-width: 34ch; font-size: 0.9rem; color: var(--fur); text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
@media (max-width: 820px) {
  /* phones: the picture is a banner on top, the words sit under it */
  .hero { min-height: 0; }
  .hero__img, .hero__fog { height: 56svh; inset: 0 0 auto 0; }
  .hero__shade { background:
    linear-gradient(180deg, rgba(7, 20, 31, 0.7) 0%, rgba(7, 20, 31, 0) 120px),
    linear-gradient(180deg, rgba(7, 20, 31, 0) calc(56svh - 160px), var(--deep) 56svh); }
  .hero__body { padding-top: calc(56svh - 36px); padding-bottom: 28px; }
  .hero h1 { font-size: clamp(4rem, 21vw, 6.4rem); max-width: none; }
  .hero .lead { margin: 20px 0 24px; font-size: 1.02rem; }
  .hero__cta .btn { flex: 1 1 140px; padding-inline: 16px; }
  .hero__hint { position: relative; inset: auto; text-align: left; margin: 0 var(--gutter) 34px; max-width: none; color: var(--muted); text-shadow: none; }
  .hero { padding-bottom: 0; }
}

/* ---------- how a round plays ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.how__intro { position: sticky; top: 110px; }
.how__intro h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 4.4rem; line-height: 0.85; color: var(--hazard); }
.steps p { margin: 0; color: var(--muted); max-width: 46ch; }
.steps h3 { font-size: 1.35rem; color: var(--fur); }
.how__note { margin-top: 26px; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .how__intro { position: static; } .steps li { grid-template-columns: 56px 1fr; } .steps li::before { font-size: 3.2rem; } }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: stretch; margin-top: clamp(36px, 6vw, 72px); }
.modes__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mode-tab { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; padding: 18px 0 18px 22px; cursor: pointer; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; line-height: 1; position: relative; transition: color 0.15s ease, padding-left 0.15s ease; }
.mode-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 0; background: var(--hazard); transform: translateY(-50%); transition: height 0.15s ease; }
.mode-tab:hover { color: var(--fur); }
.mode-tab[aria-selected="true"] { color: var(--fur); padding-left: 30px; }
.mode-tab[aria-selected="true"]::before { height: 70%; }
.modes__panel { display: flex; flex-direction: column; gap: 22px; }
.modes__shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--deep); border: 1px solid var(--line); }
.modes__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
.modes__shot img.is-on { opacity: 1; }
.modes__text { min-height: 5.2em; margin: 0; font-size: 1.15rem; max-width: 56ch; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } .modes__shot { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .modes__shot img, .mode-tab, .mode-tab::before { transition: none; } }

/* ---------- line of sight ---------- */
.sight { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.sight__pic { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.sight__pic img { width: 100%; height: 100%; object-fit: cover; }
.sight h2 { margin-bottom: 26px; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 16px 0 16px 28px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 6px; background: var(--hazard); }
.facts b { color: var(--fur); font-weight: 700; }
@media (max-width: 900px) { .sight { grid-template-columns: 1fr; } .sight__pic { aspect-ratio: 4 / 3; order: 2; } }

/* ---------- your cat ---------- */
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.cat__pic { aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.cat__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cat h2 { margin-bottom: 26px; }
.cat__slots { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.cat__slots li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.98rem; }
@media (max-width: 900px) { .cat { grid-template-columns: 1fr; } .cat__pic { max-width: 420px; } }

/* ---------- with friends ---------- */
.friends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 6vw, 72px); }
.friends > div { border-top: 6px solid var(--hazard); padding-top: 22px; }
.friends p { color: var(--muted); margin: 0; max-width: 36ch; }
.friends h3 { font-size: 1.5rem; }
@media (max-width: 820px) { .friends { grid-template-columns: 1fr; } }

/* ---------- closing call ---------- */
.final { text-align: left; }
.final h2 { font-size: clamp(3.2rem, 9vw, 7.6rem); max-width: 11em; margin-bottom: 30px; }
.final .lead { margin-bottom: 34px; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--deep); padding-block: 62px 44px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a { color: var(--fur); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer small { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- text pages (privacy, support, delete account) ---------- */
.page-head { padding: 150px 0 56px; background: var(--tide-2); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
.page-head p { margin: 22px 0 0; }
.doc { padding-block: 56px clamp(72px, 10vw, 130px); }
.doc .wrap > * { max-width: 72ch; }
.doc h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 52px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--hazard); }
.doc .callout { max-width: 72ch; padding: 20px 24px; border-left: 6px solid var(--hazard); background: var(--tide-2); border-radius: 0 6px 6px 0; margin: 0 0 1.4em; }
.doc .callout p:last-child { margin: 0; }
.doc code { background: var(--tide-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-size: 0.95em; }
.doc details { border-top: 1px solid var(--line); padding: 4px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.4em; }
.doc summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--hazard); }
.doc details[open] summary::after { content: "\2212"; }
.doc details > :not(summary) { color: var(--muted); }
