:root {
  --ink: #1a1612;
  --ink-soft: #4a433a;
  --paper: #f6efe4;
  --paper-2: #fffaf3;
  --card: #fffdf8;
  --navy: #142033;
  --navy-2: #1d2d46;
  --line: #e8a317;
  --clay: #c4492c;
  --pine: #2f6b4f;
  --rule: #e6d9c4;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 163, 23, 0.18), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(196, 73, 44, 0.12), transparent 45%),
    var(--paper);
  line-height: 1.55;
}

a { color: var(--clay); }
img { max-width: 100%; }

.topbar {
  background: var(--navy);
  color: #f6efe4;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line);
  font-weight: 600;
}
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
}
.nav a {
  color: #f6efe4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 999px;
}
.nav a:hover,
.nav a.active {
  background: rgba(232, 163, 23, 0.18);
  color: var(--line);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 96px;
}

.hero h1,
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.15;
  margin: 0 0 10px;
}
h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: 28px; margin-top: 8px; }
h3 { font-size: 20px; }

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 42rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.pill {
  background: var(--navy);
  color: #f6efe4;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.pill.gold { background: var(--line); color: var(--navy); }
.pill.clay { background: var(--clay); }
.pill.pine { background: var(--pine); }

.grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card.do { border-left: 6px solid var(--line); }
.card.warn { border-left: 6px solid var(--clay); }
.card.ok { border-left: 6px solid var(--pine); }
.card a.cover {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card h3 { margin-bottom: 6px; }
.meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 6px;
}
.meta.gold { color: #9a6d05; }
.meta.pine { color: var(--pine); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn.gold { background: var(--line); color: var(--navy); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  background: var(--navy);
  color: #f6efe4;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }

.timeline { display: grid; gap: 12px; margin-top: 18px; }
.block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 14px;
}
.when {
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.when small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 12px;
}

.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin: 10px 0 6px;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cap {
  font-size: 13px;
  color: var(--ink-soft);
}

.callout {
  background: var(--navy);
  color: #f6efe4;
  border-radius: 18px;
  padding: 20px;
}
.callout h2 { color: var(--line); }
.callout a { color: var(--line); }

.msg {
  background: #1a1612;
  color: #f6efe4;
  border-radius: 14px;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  margin: 8px 0;
}
.checklist input { margin-top: 5px; }

.cues {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin: 20px 0 8px;
}
.cues h2 {
  font-size: 13px;
  font-family: Outfit, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 10px;
}
.cues dl {
  margin: 0;
  display: grid;
  gap: 8px 16px;
}
.cues dt {
  font-weight: 800;
  color: var(--navy);
}
.cues dd {
  margin: 0 0 6px;
  color: var(--ink-soft);
}
@media (min-width: 640px) {
  .cues dl {
    grid-template-columns: 9rem 1fr;
  }
  .cues dd { margin: 0; }
}

.court {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--navy);
  color: #f6efe4;
  padding: 14px;
  border-radius: 12px;
  font-size: 12px;
  overflow-x: auto;
}

@media (max-width: 720px) {
  .block { grid-template-columns: 1fr; gap: 4px; }
  .nav { display: none; }
  .wrap { padding-bottom: 110px; }
  .bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    background: var(--navy);
    border-top: 3px solid var(--line);
    z-index: 30;
  }
  .bottom a {
    color: #d9cbb6;
    text-decoration: none;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px 14px;
  }
  .bottom a.active { color: var(--line); }
}
@media (min-width: 721px) {
  .bottom { display: none; }
}
