/* Oathslide — one stylesheet for the whole public site.
   Brand: deep indigo night, carried gold light, teal gem accent.
   No external requests: no web fonts, no analytics, no third-party assets. */

:root {
  color-scheme: dark;

  --night:      #150E28;
  --night-deep: #0E0A1C;
  --night-lift: #1E1535;
  --panel:      rgba(255, 246, 230, .045);
  --panel-2:    rgba(255, 246, 230, .075);
  --hair:       rgba(255, 200, 87, .18);
  --hair-soft:  rgba(255, 246, 230, .12);

  --ink:        #F6F0E6;
  --muted:      #B9AFC9;
  --dim:        #8E86A3;

  --gold:       #FFC857;
  --gold-soft:  #FFDD9B;
  --ember:      #F0913F;
  --teal:       #4EDBC4;
  --rose:       #FF7A8A;
  --gloom:      #C2497E;

  --measure: 68ch;
  --page: 1080px;

  --f-ui: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Nunito, system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  /* No background-attachment: fixed — iOS Safari repaints it badly on long pages.
     The glow is sized in rem so it stays a header glow however long the page runs. */
  background:
    radial-gradient(70rem 40rem at 50% -14rem, rgba(255, 200, 87, .16), transparent 70%) no-repeat,
    radial-gradient(50rem 34rem at 8% 18rem, rgba(78, 219, 196, .07), transparent 70%) no-repeat,
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 70rem, #0B0816 100%);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-soft); text-decoration-color: rgba(255, 200, 87, .38); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #241704; font-weight: 800;
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 50;
}
.skip:focus { left: 0; }

.wrap { margin: 0 auto; max-width: var(--page); padding: 0 clamp(18px, 5vw, 40px); width: 100%; }

/* ── Header ─────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--hair-soft);
  backdrop-filter: blur(14px);
  background: rgba(14, 10, 28, .72);
  position: sticky; top: 0; z-index: 40;
}
.site-head .wrap {
  align-items: center; display: flex; flex-wrap: wrap;
  gap: 10px 22px; min-height: 66px; padding-block: 12px;
}
.mark {
  color: var(--ink); font-size: 1.02rem; font-weight: 900;
  letter-spacing: .2em; margin-right: auto; text-decoration: none; text-transform: uppercase;
}
.mark::before {
  content: ""; display: inline-block; width: .58em; height: .58em; margin-right: .6em;
  background: var(--gold); border-radius: 2px; transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(255, 200, 87, .75);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.site-nav a {
  color: var(--muted); font-size: .93rem; font-weight: 700; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  align-items: center; border-radius: 999px; display: inline-flex; gap: .55em;
  font-size: 1rem; font-weight: 800; letter-spacing: .02em;
  padding: 13px 26px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(175deg, #FFDE9C, var(--gold) 45%, #E9A230);
  border: 1px solid #FFE9BC; color: #2A1A02;
  box-shadow: 0 10px 30px rgba(255, 178, 60, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primary:hover { color: #2A1A02; box-shadow: 0 14px 38px rgba(255, 178, 60, .42), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-ghost {
  background: var(--panel); border: 1px solid var(--hair); color: var(--ink);
}
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); }
.btn-sm { font-size: .9rem; padding: 9px 18px; }

/* ── Type ───────────────────────────────────────────────── */

h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3.7vw, 2.35rem); letter-spacing: -.02em; }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; max-width: var(--measure); }
strong { color: var(--ink); }

.eyebrow {
  color: var(--gold); font-size: .74rem; font-weight: 900;
  letter-spacing: .22em; margin: 0 0 14px; text-transform: uppercase;
}
.lede { color: var(--ink); font-size: clamp(1.06rem, 2.1vw, 1.2rem); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
code, .mono { font-family: var(--f-mono); font-size: .88em; }
code {
  background: rgba(255, 246, 230, .07); border: 1px solid var(--hair-soft);
  border-radius: 5px; color: var(--gold-soft); padding: .1em .4em;
}

section { padding: clamp(52px, 8vw, 86px) 0; }
section + section { border-top: 1px solid var(--hair-soft); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

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

.hero { padding-top: clamp(34px, 6vw, 62px); }
.hero .wrap {
  align-items: center; display: grid; gap: clamp(26px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
}
.hero-art { position: relative; }
.hero-art img {
  border-radius: 26px;
  -webkit-mask-image: radial-gradient(74% 72% at 50% 50%, #000 56%, transparent 92%);
  mask-image: radial-gradient(74% 72% at 50% 50%, #000 56%, transparent 92%);
  margin-inline: auto; max-width: 420px; width: 100%;
}
.hero h1 { margin-bottom: .3em; }
.hero .kicker {
  color: var(--gold); font-size: .8rem; font-weight: 900;
  letter-spacing: .2em; margin: 0 0 18px; text-transform: uppercase;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li {
  background: var(--panel); border: 1px solid var(--hair-soft); border-radius: 999px;
  color: var(--muted); font-size: .82rem; font-weight: 700; padding: 6px 14px;
}

.badge-soon {
  align-items: center; background: var(--panel); border: 1px dashed var(--hair);
  border-radius: 14px; color: var(--muted); display: inline-flex; gap: 10px;
  font-size: .86rem; padding: 10px 16px;
}
.badge-soon strong { color: var(--ink); }

/* ── Cards ──────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--hair-soft); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.card h3 {
  color: var(--gold-soft); font-size: .82rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.card p:last-child { margin-bottom: 0; }
.card-lead { font-size: 1.05rem; }

.pull {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 20px;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.35; letter-spacing: -.015em;
}
.pull span { color: var(--muted); display: block; }

/* ── Board diagram ──────────────────────────────────────── */

.board-figure { margin: 0; }
.board {
  aspect-ratio: 1; background: rgba(9, 6, 20, .72);
  border: 1px solid rgba(160, 120, 255, .28); border-radius: 20px;
  box-shadow: 0 0 60px rgba(120, 80, 220, .18), inset 0 0 40px rgba(0, 0, 0, .5);
  display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr);
  margin-inline: auto; max-width: 420px; padding: 10px;
}
.tile {
  align-items: center; border-radius: 12px; display: flex; flex-direction: column;
  justify-content: center; line-height: 1.05; padding: 4px; position: relative; text-align: center;
}
.tile .rank { font-size: clamp(.95rem, 3.4vw, 1.35rem); font-weight: 900; }
.tile .nm { font-size: clamp(.44rem, 1.5vw, .58rem); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.tile.empty { background: rgba(255, 246, 230, .035); border: 1px solid rgba(255, 246, 230, .07); }
.tile.bearer { color: #22160B; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .45); }
.t-spark  { background: linear-gradient(180deg, #F2857F, #C7515C); color: #2B0F13; }
.t-flame  { background: linear-gradient(180deg, #F5B061, #D07C2A); }
.t-torch  { background: linear-gradient(180deg, #B9A3F2, #8567D6); color: #1B1030; }
.t-lantern{ background: linear-gradient(180deg, #F5D36B, #CFA22C); }
.t-dawn   { background: linear-gradient(180deg, #FCE68C, #E9BE3C); }
.tile.gloom {
  background: linear-gradient(180deg, rgba(120, 24, 70, .85), rgba(58, 12, 38, .9));
  border: 2px dashed rgba(255, 110, 170, .6); color: #FFD9E8;
}
.tile.gloom .timer {
  background: rgba(8, 3, 10, .92); border: 1px solid rgba(255, 150, 195, .8); border-radius: 999px;
  color: #FFD9E8; font-size: .66rem; font-weight: 900; line-height: 1.3;
  padding: 0 6px; position: absolute; right: 4px; top: 4px;
}
.tile.gloom.urgent { border-color: #FF9AC0; box-shadow: 0 0 18px rgba(255, 90, 150, .45); }
.tile.fracture {
  background: repeating-linear-gradient(135deg, rgba(255,246,230,.05) 0 6px, transparent 6px 12px), rgba(20, 16, 34, .95);
  border: 1px solid rgba(255, 246, 230, .22); color: #9C93B2;
}
.board-key { display: grid; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.board-key li { display: grid; gap: 2px 12px; grid-template-columns: 8.5em 1fr; }
.board-key b { color: var(--gold-soft); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.board-key span { color: var(--muted); font-size: .94rem; }
figcaption { color: var(--dim); font-size: .82rem; margin-top: 14px; text-align: center; }

/* ── Ladder ─────────────────────────────────────────────── */

.ladder { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; }
.ladder li {
  background: var(--panel); border: 1px solid var(--hair-soft); border-radius: 999px;
  display: flex; gap: .5em; font-size: .9rem; font-weight: 700; padding: 7px 15px;
}
.ladder .num { color: var(--gold); font-family: var(--f-mono); font-size: .82rem; }
.ladder.threat li { border-color: rgba(255, 110, 170, .3); }
.ladder.threat .num { color: var(--rose); }

/* ── Tables ─────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; font-size: .94rem; min-width: 34rem; width: 100%; }
caption { color: var(--dim); font-size: .84rem; padding-bottom: 10px; text-align: left; }
th, td { border-bottom: 1px solid var(--hair-soft); padding: 12px 16px 12px 0; text-align: left; vertical-align: top; }
th {
  color: var(--gold); font-size: .72rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
td.name { color: var(--ink); font-weight: 800; white-space: nowrap; }
td.muted { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* ── Legal / document pages ─────────────────────────────── */

.doc { padding: clamp(38px, 6vw, 64px) 0 clamp(52px, 8vw, 80px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.doc h2 {
  border-top: 1px solid var(--hair-soft); font-size: 1.28rem;
  margin: 40px 0 10px; padding-top: 28px;
}
.doc h3 { margin: 26px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc .lede { color: var(--ink); }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: .45em; }
.date { color: var(--gold); font-size: .84rem; font-weight: 800; letter-spacing: .06em; }
.callout {
  background: rgba(255, 200, 87, .09); border: 1px solid var(--hair);
  border-radius: var(--r-md); color: var(--ink); padding: 16px 18px;
}
.doc-toc {
  background: var(--panel); border: 1px solid var(--hair-soft); border-radius: var(--r-md);
  display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 34px; padding: 14px 18px;
}
.doc-toc a { font-size: .9rem; font-weight: 700; text-decoration: none; }

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

.site-foot {
  border-top: 1px solid var(--hair-soft); color: var(--dim);
  font-size: .9rem; padding: 46px 0 60px;
}
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-grid h2 {
  color: var(--gold); font-size: .72rem; font-weight: 900;
  letter-spacing: .18em; margin-bottom: 12px; text-transform: uppercase;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { text-decoration: none; }
.foot-note {
  border-top: 1px solid var(--hair-soft); display: flex; flex-wrap: wrap;
  gap: 6px 18px; justify-content: space-between; margin-top: 34px; padding-top: 22px;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 300px; }
}
@media (max-width: 660px) {
  /* One row of chrome on a phone: the wordmark and the way in.
     Every hidden link is repeated in full in the footer. */
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { min-height: 0; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
  .board-key li { grid-template-columns: 1fr; }
  .doc-toc { gap: 6px 14px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .cta-row, .skip { display: none; }
  a { color: #000; }
}
