/* playeverspring.com — shared styles for the hub's text pages (guides, about, contact).
   The home page keeps its own inline styles; the tokens and header/footer here match it. */
:root {
  --bg: #0b0f14;
  --surface: #121a23;
  --surface-2: #17212c;
  --line: #223040;
  --text: #e9eef3;
  --body: #cfd8e1;
  --muted: #9aa8b6;
  --faint: #6b7886;
  --gold: #f2c14e;
  --gold-2: #ffd97a;
  --teal: #2ee0c0;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(900px 420px at 10% -12%, rgba(242,193,78,.08), transparent 60%),
                    radial-gradient(800px 420px at 95% -8%, rgba(46,224,192,.08), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff1c4; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

/* header + nav (also used by the home page) */
header.top { padding: 18px 0 8px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font-size: 18px; letter-spacing: .2px; font-weight: 700; }
.brand span { color: var(--muted); font-size: 14px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav.site a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center;
}
nav.site a:hover { color: var(--text); background: rgba(255,255,255,.04); }
nav.site a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }

/* article */
main.page { width: 100%; max-width: 780px; margin: 0 auto; padding: 8px 16px 48px; }
@media (min-width: 600px) { main.page { padding: 12px 24px 64px; } }
main.wide { max-width: 1040px; }
.crumbs { font-size: 14px; color: var(--faint); margin: 10px 0 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
h1 { color: var(--text); font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -.01em; margin: 6px 0 10px; font-weight: 800; }
h2 { color: var(--text); font-size: clamp(21px, 3.2vw, 26px); line-height: 1.25; margin: 44px 0 10px; padding-top: 10px; }
h3 { color: var(--text); font-size: 19px; line-height: 1.3; margin: 28px 0 6px; }
h4 { color: var(--text); font-size: 16px; margin: 20px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 6px 0; }
b, strong { color: var(--text); }
.lede { font-size: 19px; color: var(--text); }
.updated { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 16px;
}
.note.teal { border-left-color: var(--teal); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 8px; }
.toc b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.toc ol { margin: 0; }
.toc a { color: var(--body); }
.facts { font-size: 15px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }
.lore { font-style: italic; color: var(--muted); }
.tag {
  display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #0b0f14; background: var(--gold); border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
section.enemy, section.tower { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 26px; }
figure { margin: 22px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #0a1016; }
figure.phone img { max-width: 360px; margin: 0 auto; }
figcaption { font-size: 14px; color: var(--faint); margin-top: 8px; text-align: center; }
.diagram { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; }
@media (min-width: 600px) { .diagram { grid-template-columns: 1fr 1fr; } }
.diagram figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.diagram svg { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }

/* tables scroll sideways inside their own box, never the page */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .03em; background: var(--surface); position: sticky; top: 0; }
tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
table.specs td:nth-child(4) { min-width: 220px; }

/* cards on the guides index */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 18px 0; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards a.card {
  display: block; text-decoration: none; color: var(--body); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.cards a.card:hover { border-color: #3a4a5c; }
.cards a.card h3 { margin: 0 0 6px; }
.cards a.card .kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cards a.card.teal .kicker { color: var(--teal); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--gold); color: #0b0f14; }
.btn.primary.teal { background: var(--teal); }
.btn.ghost { color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: #3a4a5c; color: var(--text); }

kbd {
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px;
}

/* footer (also used by the home page) */
footer.site { margin-top: auto; padding: 30px 0 30px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
footer.site .row + .row { margin-top: 8px; }
