/* Tunnel Cobra — support site.
   Palette taken from the game's own Palette enum so the site and the app read as
   one thing. No web fonts, no CDN, no scripts: this has to load on a bad connection
   in an App Store review queue, and a support page that depends on a third party is
   a support page that can 404 through no fault of yours. */

:root {
  --bg: #0a0e14;
  --surface: #111823;
  --rock: #1b2732;
  --edge: #2c3a47;
  --text: #e8f1f2;
  --dim: #8fa3b0;
  --accent: #ff6b35;
  --amber: #ffb627;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  /* Body prose is sans on purpose. The game is entirely monospaced, but a page of
     mono paragraphs is genuinely harder to read; the flavour lives in the headings. */
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* Header ------------------------------------------------------------------ */

header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 2.5rem;
}

.title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  letter-spacing: 0.18em;
  line-height: 1.15;
  margin: 0;
}

.title .b { color: var(--accent); display: block; }

.tagline {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin: 1rem 0 0;
}

/* Navigation -------------------------------------------------------------- */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  padding: 0.55rem 1.1rem;
}

nav a:hover, nav a:focus-visible { border-color: var(--amber); color: var(--amber); }
nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

/* Type -------------------------------------------------------------------- */

h2 {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 3rem 0 0.9rem;
}

h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); }
a:hover, a:focus-visible { color: var(--amber); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

.lede { font-size: 1.15rem; color: var(--text); }
.dim { color: var(--dim); }

/* Cards ------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
}

.card.accent { border-color: var(--accent); }

.contact {
  font-family: var(--mono);
  font-size: 1.05rem;
  word-break: break-all;
}

/* A short "here is the answer" statement, for the privacy page. */
.statement {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3.4vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--amber);
  margin: 0;
}

/* FAQ --------------------------------------------------------------------- */

details {
  border-bottom: 1px solid var(--edge);
  padding: 0.35rem 0;
}

summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

details[open] summary::before { content: "\2013"; }

details > *:not(summary) { margin-left: 1.6rem; }
details > *:last-child { margin-bottom: 1rem; }

/* Footer ------------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--edge);
  margin-top: 4rem;
  padding-top: 1.75rem;
  color: var(--dim);
  font-size: 0.86rem;
}

footer a { color: var(--dim); }

/* The site is dark by design — it matches a game that is dark by design — so it
   does not follow the system colour scheme. This only tells the browser to render
   form controls and scrollbars to match. */
@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}
