/* GrandArena public site — the same dark tournament hall as the app, but it
   must stay readable on a phone in daylight, so light mode is a first-class
   citizen rather than an afterthought. Palette mirrors app/lib/core/theme/. */

:root {
  --backdrop: #0e1116;
  --surface: #171b22;
  --raised: #1f242d;
  --hairline: #2a313c;
  --text: #e8eaed;
  --muted: #9aa3af;
  --faint: #6b7482;
  --gold: #e3b04b;
  --danger: #e5484d;
  --max: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --backdrop: #fbfaf7;
    --surface: #ffffff;
    --raised: #f2efe9;
    --hairline: #e0dbd1;
    --text: #1b1f24;
    --muted: #56606c;
    --faint: #7b8794;
    --gold: #8a6c2e;
    --danger: #b4272b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--backdrop);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---- header ---- */

header {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.brand {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- type ---- */

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
  padding-top: 0.35rem;
  letter-spacing: -0.005em;
}

h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }

p, li { color: var(--text); }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }

ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.meta div { margin: 0.1rem 0; }

/* ---- callouts ---- */

.draft {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid var(--danger);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: var(--text);
}
.draft strong { color: var(--danger); }

/* Unfilled blanks must be impossible to miss — publishing a legal page with a
   raw [PLACEHOLDER] in it is the failure mode this styling exists to prevent. */
.todo {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  border-bottom: 2px solid var(--danger);
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---- get the app ---- */

/* The landing spot for every shared game link, so it leads the page rather than
   sitting below the legal tiles. */
.get {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0 0.5rem;
}
.get h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.get .soon { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Store buttons, ready for launch — add <a class="store"> links and drop the
   .soon paragraph. */
.stores { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.9rem; }
.store {
  display: inline-block;
  background: var(--gold);
  color: #12161c;
  text-decoration: none;
  font-weight: 650;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
}

/* ---- home tiles ---- */

.tiles { display: grid; gap: 0.75rem; margin: 1.75rem 0; }

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.tile:hover { border-color: var(--gold); }
.tile b { display: block; font-size: 1.02rem; }
.tile span { color: var(--muted); font-size: 0.9rem; }

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 0.88rem;
}
footer a { color: var(--muted); }
footer nav { margin-bottom: 0.6rem; display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* Long tables/blocks must scroll themselves, never the page. */
.scroll { overflow-x: auto; }
