:root {
  --bg:         #080808;
  --surface:    #111111;
  --surface2:   #191919;
  --border:     #272727;
  --border2:    #373737;
  --text:       #ddd5c4;
  --text-dim:   #8a8070;
  --text-faint: #4a4440;
  --accent:     #c01a2b;
  --accent-dim: #7a1020;
  --gold:       #c8a84b;
  --green:      #3a7a4a;
  --mono:       'Courier New', 'Lucida Console', monospace;
  --serif:      Georgia, 'Times New Roman', serif;
  --sans:       system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ── LAYOUT ── */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

/* ── NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

nav .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3.25rem;
}

nav .brand {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

/* ── HERO ── */

.hero {
  padding: 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(192,26,43,0.18) 0%, transparent 65%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.hero-content {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero-rule {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-dates {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #ccc0b0;
  max-width: 580px;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stat {
  font-family: var(--mono);
}

.hero-stat .n {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat .l {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── SECTION HEADERS ── */

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-dim);
  opacity: 0.4;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: normal;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ── PULL QUOTE ── */

.pull-quote {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #e8e0d0;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 0.75rem;
  text-transform: uppercase;
}

/* ── EVENT BLOCKS ── */

.event-block {
  border: 1px solid var(--border2);
  background: var(--surface);
  margin: 2.5rem 0;
  overflow: hidden;
}

.event-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border2);
  flex-wrap: wrap;
}

.event-year {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
  letter-spacing: -0.02em;
}

.event-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
}

.event-body {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.event-body strong { color: var(--text); }
.event-body em { color: var(--gold); font-style: normal; }

/* ── STAT TABLE ── */

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.82rem;
  margin: 1.5rem 0;
}

.stat-table th {
  text-align: left;
  padding: 0.4rem 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border2);
}

.stat-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.stat-table tr:last-child td { border-bottom: none; }
.stat-table td:first-child { color: var(--gold); }

/* ── TIMELINE ── */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0;
  width: 1px;
  background: var(--border2);
}

.tl-entry {
  position: relative;
  margin-bottom: 1.75rem;
  padding-left: 0.5rem;
}

.tl-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border2);
  border: 1px solid var(--border2);
}

.tl-entry.key::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(192,26,43,0.5);
}

.tl-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.tl-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.tl-text strong { color: var(--text); }

/* ── FAMILY BLOCK ── */

.family-chain {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 2;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--gold);
}

.family-chain .you { color: var(--gold); font-weight: bold; }
.family-chain .him { color: var(--accent); font-weight: bold; }
.family-chain .arrow { color: var(--text-faint); }

/* ── CRICKET BADGE ── */

.cricket-callout {
  background: var(--surface2);
  border-left: 3px solid var(--green);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.cricket-callout strong {
  color: #5aad6a;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── FOOTER ── */

footer {
  padding: 3rem 0 4rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  line-height: 2;
}

footer .closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 1.5rem;
}

footer a { color: var(--text-faint); }
footer a:hover { color: var(--text-dim); }

/* ── MEDIA — figures, video embeds, photo pairs ── */

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.14;
  filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

figure {
  margin: 2.5rem 0;
}

figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.88);
  border: 1px solid var(--border2);
}

figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: none;
  line-height: 1.5;
}

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.media-pair figure { margin: 0; }
.media-pair figure img { height: 240px; }

.video-wrap {
  margin: 2.5rem 0;
}

.video-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border2);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── PORTRAIT & DOCUMENT FIGURES ── */

figure.portrait {
  max-width: 280px;
  margin: 2rem auto;
}

figure.portrait img {
  height: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
}

figure.doc img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* ── RESPONSIVE ── */

@media (max-width: 700px) {
  /* Nav — hide labels, compress */
  nav .inner { gap: 1rem; height: auto; padding: 0.6rem 1rem; flex-wrap: wrap; }
  nav ul { gap: 0.75rem; flex-wrap: wrap; }
  nav a { font-size: 0.75rem; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 3.5rem 1.25rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-lede { font-size: 1rem; margin-bottom: 2rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat .n { font-size: 1.5rem; }

  /* Sections */
  section { padding: 3rem 0; }
  h2 { font-size: 1.6rem; }

  /* Event blocks */
  .event-header { flex-direction: column; gap: 0.5rem; }

  /* Tables — horizontal scroll */
  .stat-table { font-size: 0.72rem; display: block; overflow-x: auto; white-space: nowrap; }

  /* Media */
  .media-pair { grid-template-columns: 1fr; }

  /* Pull quote */
  .pull-quote { font-size: 1.15rem; }

  /* Family chain */
  .family-chain { font-size: 0.72rem; padding: 1rem; }
}

/* ── ACCESSIBILITY & POLISH (2026-11-01) ── */

/* faint text was ~2:1 on black; lift to AA */
:root { --text-faint: #8a8173; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #000; padding: .6rem 1rem;
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { left: 0; }

a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, iframe:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
nav a:hover, nav a:focus-visible { color: var(--text); }

section[id] { scroll-margin-top: 4.5rem; }

.event-year.small { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-dates.last { margin-bottom: 0; }

/* sources list (was inline styles) */
ul.sources { list-style: none; margin-top: 1.5rem; }
ul.sources li {
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text-dim); overflow-wrap: anywhere;
}
ul.sources li:last-child { border-bottom: none; }
.src-label {
  display: block; font-family: var(--mono); font-size: .75rem;
  color: var(--gold); margin-bottom: .2rem;
}
.src-url { color: var(--text-faint); font-family: var(--mono); font-size: .75rem; }

.totop { display: inline-block; margin-bottom: 1.5rem; font-family: var(--sans); font-size: .8rem; }

/* images: don't stretch the tall portrait/document shots; hold space */
figure img { background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  nav, .skip, .video-wrap, .totop { display: none; }
  body, .hero-bg { background: #fff; color: #000; }
  h1, h2, h3, .pull-quote, .event-body, .event-body strong { color: #000; }
  figure img { filter: none; }
  section { padding: 1.5rem 0; page-break-inside: avoid; }
}

/* tiny 100x274 archive thumbnail: show at natural size, never upscale/crop */
.media-pair figure.thumb { display: flex; flex-direction: column; }
.media-pair figure.thumb img {
  width: auto; max-width: 100%; height: auto; max-height: 274px;
  object-fit: contain; align-self: center; margin: 0 auto;
  background: var(--surface); padding: .5rem 1.5rem;
}
.media-pair figure.thumb figcaption { margin-top: auto; }
figcaption a { color: var(--gold); }
