/* ============================================================
   Grasshopper Fire — ash, basalt and flame
   ============================================================ */

:root {
  --bg:        #e6e8e3;
  --bg-deep:   #dcdfd8;
  --surface:   #f4f5f1;
  --ink:       #14180f;
  --ink-mid:   #454e42;
  --ink-soft:  #6a7266;
  --rule:      #c6cabe;
  --rule-hard: #a8ae9f;
  --flame:     #a8330c;
  --flame-ink: #7d2708;
  --amber:     #c2721a;
  --char:      #23261e;
  --char-ink:  #e9ebe3;
  --focus:     #0f4b3c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #101208;
    --bg-deep:   #0a0c05;
    --surface:   #191c12;
    --ink:       #e9ebe1;
    --ink-mid:   #b3b9a9;
    --ink-soft:  #8b9382;
    --rule:      #2c3122;
    --rule-hard: #3f4633;
    --flame:     #ff7a3a;
    --flame-ink: #ffa070;
    --amber:     #e8a13f;
    --char:      #060803;
    --char-ink:  #d9ddcf;
    --focus:     #6fd6b4;
  }
}

:root[data-theme="dark"] {
  --bg:        #101208;
  --bg-deep:   #0a0c05;
  --surface:   #191c12;
  --ink:       #e9ebe1;
  --ink-mid:   #b3b9a9;
  --ink-soft:  #8b9382;
  --rule:      #2c3122;
  --rule-hard: #3f4633;
  --flame:     #ff7a3a;
  --flame-ink: #ffa070;
  --amber:     #e8a13f;
  --char:      #060803;
  --char-ink:  #d9ddcf;
  --focus:     #6fd6b4;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3,
.kicker, .stamp, .stat-n, .day-date, .replay, .front-h,
.hero-n, .hero-n2, .hero-l, .day ul, .now-tag, .gal-hint {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 20;
  font-family: "Archivo", sans-serif;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- masthead ---------- */

.masthead {
  background: var(--char);
  color: var(--char-ink);
  border-bottom: 3px solid var(--flame);
  padding: 28px 0 24px;
}

.kicker {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: .95;
}

.sub {
  margin: 10px 0 0;
  max-width: 46ch;
  color: color-mix(in srgb, var(--char-ink) 78%, transparent);
  font-size: 1rem;
}

/* ---------- hero numbers ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--rule-hard);
  padding: 26px 0 24px;
}
.hero-in {
  display: grid;
  gap: 20px 40px;
  align-items: end;
}
.hero-n {
  margin: 0;
  font-size: clamp(4.4rem, 20vw, 9rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.05em;
  color: var(--flame);
}
.hero-n span { font-size: .42em; letter-spacing: -.02em; margin-left: .04em; }
.hero-n2 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--ink);
}
.hero-l {
  margin: 7px 0 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 24ch;
}
.hero-lead .hero-l { color: var(--ink-mid); font-size: .82rem; }
.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* ---------- shared furniture ---------- */

.stamp {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--flame);
}
.stamp-quiet { color: var(--ink-soft); }

.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--flame);
  animation: throb 2.4s ease-out infinite;
}
@keyframes throb {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flame) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--flame) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flame) 0%, transparent); }
}

/* ---------- 1. right now ---------- */

.now { padding: 38px 0 50px; }

.verdict {
  margin: 0 0 30px;
  max-width: 44ch;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink-mid);
}
.verdict strong { font-weight: 500; color: var(--ink); }

.now-grid { display: grid; gap: 26px; align-items: start; }

.map, .locator {
  margin: 0;
  background: var(--char);
  border: 1px solid var(--rule-hard);
}
.map img, .locator img { width: 100%; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 11px 14px;
  background: var(--char);
  color: color-mix(in srgb, var(--char-ink) 80%, transparent);
  font-family: "Archivo", sans-serif;
  font-size: .74rem;
  letter-spacing: .04em;
  border-top: 1px solid color-mix(in srgb, var(--char-ink) 18%, transparent);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.key-heat { background: #f0a03c; box-shadow: 0 0 6px rgba(240,160,60,.8); }
.key-burn { background: #8a4a2e; border-radius: 2px; }

.readout { display: grid; border-top: 1px solid var(--rule-hard); }
.stat { padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.stat-n {
  margin: 0 0 1px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--flame-ink);
}
.unit {
  margin-left: .38em;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-t {
  margin: 0;
  color: var(--ink-mid);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 46ch;
}

/* locator + fronts */

.place {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 3px double var(--rule-hard);
  display: grid;
  gap: 28px;
  align-items: start;
}
.locator { background: var(--surface); }
.locator figcaption {
  padding: 10px 13px;
  border-top: 1px solid var(--rule-hard);
  color: var(--ink-mid);
  font-size: .88rem;
  line-height: 1.4;
}

.fronts h2 {
  margin: 0 0 16px;
  font-size: 1.02rem;
  font-weight: 700;
}
.front {
  padding-left: 14px;
  border-left: 3px solid var(--amber);
  margin-bottom: 16px;
}
.front p { margin: 0; color: var(--ink-mid); font-size: .93rem; line-height: 1.45; }
.front-h {
  margin: 0 0 4px !important;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink) !important;
}
.weather {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-style: italic;
}

/* ---------- 2. timeline ---------- */

.story {
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-hard);
  padding: 46px 0 56px;
}

.story-h {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.06;
  max-width: 18ch;
}
.story-lede {
  margin: 0 0 30px;
  max-width: 58ch;
  font-size: 1.04rem;
  color: var(--ink-mid);
}
.story-lede strong { color: var(--ink); font-weight: 500; }

.anim {
  margin: 0 0 44px;
  max-width: 820px;
  border: 1px solid var(--rule-hard);
  background: var(--char);
}
.anim img { width: 100%; }
.anim figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid color-mix(in srgb, var(--char-ink) 18%, transparent);
  color: color-mix(in srgb, var(--char-ink) 76%, transparent);
  font-size: .88rem;
}
.anim-cap { flex: 1 1 16rem; }

.replay {
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 8px 15px;
  color: var(--char-ink);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--char-ink) 42%, transparent);
  cursor: pointer;
}
.replay:hover { background: color-mix(in srgb, var(--char-ink) 12%, transparent); }

.gal-h {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin: 0 0 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule-hard);
}
.gal-hint {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-soft);
  opacity: .8;
  text-transform: none;
}

/* chronology strip */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  border-top: 2px solid var(--rule-hard);
  padding-top: 18px;
}
.day { scroll-snap-align: start; min-width: 0; }
.day img {
  width: 100%;
  border: 1px solid var(--rule-hard);
  background: var(--char);
}
.day-body { padding-top: 11px; }
.day-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--flame-ink);
}
.day-date > span {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.now-tag {
  font-style: normal;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--flame);
  padding: 2px 6px;
}
.day h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.day ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  line-height: 1.35;
  color: var(--ink-mid);
}
.day li {
  padding: 5px 0 5px 13px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.day li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--amber);
}

.closing {
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 3px double var(--rule-hard);
  max-width: 62ch;
  font-size: 1.04rem;
  color: var(--ink-mid);
}

/* ---------- footer ---------- */

.foot {
  background: var(--char);
  color: color-mix(in srgb, var(--char-ink) 70%, transparent);
  padding: 24px 0 32px;
  font-size: .84rem;
}
.foot p { margin: 0 0 5px; }
.credit {
  color: color-mix(in srgb, var(--char-ink) 42%, transparent);
  font-size: .76rem;
}

/* ---------- wider ---------- */

@media (min-width: 620px) {
  .gallery { grid-auto-columns: 46%; }
  .hero-in { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .hero-pair { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 32px; }
}

@media (min-width: 860px) {
  .now-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .gallery { grid-auto-columns: 31%; }
}

@media (min-width: 1120px) {
  .now { padding: 48px 0 62px; }
  .story { padding: 60px 0 72px; }
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 22px;
    overflow: visible;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.stat-wide .stat-t { max-width: 52ch; }
.stat-wide .stat-t strong { color: var(--ink); font-weight: 500; }
