/* Be The President — site styles.
   One sheet for every page. Dark, gold, and the same display typeface the
   game ships with, so the site and the app read as the same product. */

:root {
  --bg: #0b0716;
  --bg-2: #12101f;
  --panel: rgba(20, 23, 32, 0.82);
  --edge: rgba(255, 255, 255, 0.10);
  --gold: #ffc53d;
  --gold-dim: rgba(255, 197, 61, 0.42);
  --ink: #ffffff;
  --ink-soft: #d4d8de;
  --ink-faint: #8b919b;
  --green: #5cb324;
  --blue: #2a9be0;
  --radius: 18px;
  --gutter: 20px;
  --measure: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-soft);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* ── Shell ─────────────────────────────────────────────────────────── */

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

/* ── Top bar ───────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 7, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.brand svg { width: 20px; height: 20px; flex: none; }

.bar nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}

.bar nav a {
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: #120f22 center top / cover no-repeat;
  border-bottom: 1px solid var(--edge);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 7, 22, 0.25) 0%,
    rgba(11, 7, 22, 0.05) 30%,
    rgba(11, 7, 22, 0.88) 78%,
    var(--bg) 100%
  );
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 42px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.8);
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(15px, 4vw, 18px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.rule {
  width: 96px;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Sections ──────────────────────────────────────────────────────── */

main { padding: 44px 0 10px; }

h2 {
  color: var(--ink);
  font-size: clamp(21px, 5vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  margin: 40px 0 12px;
}

h2:first-child { margin-top: 0; }

h3 {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  margin: 26px 0 8px;
  letter-spacing: 0.02em;
}

p { margin: 0 0 14px; }

a { color: var(--gold); }
a:hover { color: #ffd979; }

ul { margin: 0 0 16px; padding-left: 1.3em; }
li { margin-bottom: 8px; }

strong { color: var(--ink); font-weight: 700; }

.lede {
  font-size: clamp(16px, 4.2vw, 19px);
  color: var(--ink-soft);
}

.stamp {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 22px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 18px;
}

.panel.gold { border-color: var(--gold-dim); }

.panel h3:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Something that must be replaced before publishing. Loud on purpose. */
.fill {
  background: #ffe9a8;
  color: #3a2b00;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; font-size: 15px; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, #5bc8f5, var(--blue));
  border-bottom: 4px solid #1b6fa8;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  margin: 4px 6px 4px 0;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-bottom-width: 1px;
  color: var(--gold);
}

.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost:hover { color: var(--gold); background: rgba(255, 197, 61, 0.1); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}

th { color: var(--gold); font-weight: 800; font-size: 13px; }
td code { color: var(--ink); font-size: 13px; word-break: break-all; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ── Footer ────────────────────────────────────────────────────────── */

footer {
  margin-top: 56px;
  border-top: 1px solid var(--edge);
  background: var(--bg-2);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--ink-faint);
}

footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

footer a { color: var(--ink-faint); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--gold); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .bar .wrap { min-height: 56px; gap: 10px; }
  .bar nav {
    gap: 14px;
    width: 100%;
    margin-left: 0;
    order: 3;
    padding-bottom: 8px;
  }
  .hero { min-height: 54vh; }
  .hero .wrap { padding-top: 60px; }
}
