/* Gulf South Drags
   Palette taken from the track itself: guardrail blue, banner orange,
   sunset gold, asphalt, staging-tree green. Dark masthead and hero so it
   hits hard; light paper below so the data stays readable. */

:root {
  --asphalt: #14181c;
  --asphalt-2: #1e252c;
  --slate: #313b45;
  --blue: #1668c4;
  --blue-deep: #0b4a91;
  --blue-glow: #4a9de8;
  --orange: #f26b1d;
  --orange-hot: #ff7f2e;
  --gold: #ffb020;
  --green: #22b14c;
  --paper: #faf8f5;
  --paper-2: #f0ece5;
  --ink: #12171b;
  --ink-soft: #5a656e;
  --rule: #d8d2c8;

  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  font-weight: 800;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* full-bleed dark band behind a width-constrained section */
.bleed { position: relative; }
.bleed::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--asphalt);
  z-index: -1;
}

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

.masthead {
  position: relative;
  padding: 1.1rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.masthead::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--asphalt);
  z-index: -2;
}

.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-decoration: none;
}
.wordmark:hover { color: var(--gold); }
.wordmark .bulb {
  display: inline-block;
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.22);
  margin-right: 0.5em;
  vertical-align: 0.03em;
}

.stamp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #8ea0ae;
}

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

.hero { padding: 3rem 0 3rem; color: var(--paper); }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  max-width: 17ch;
  color: #fff;
  text-wrap: balance;
}
.hero .lede {
  max-width: 54ch;
  margin: 1.5rem 0 0;
  font-size: 1.06rem;
  color: #b9c6d1;
}
.hero .lede strong { color: var(--gold); font-weight: 600; }

/* --- map --------------------------------------------------------------- */

.map-frame {
  margin: 2.5rem 0 0;
  background: var(--asphalt-2);
  border: 1px solid #2c353e;
  border-radius: 4px;
  padding: 0.6rem;
}
.map-frame svg { display: block; width: 100%; height: auto; }

.state-shape { fill: #27303a; stroke: #3d4954; stroke-width: 2; }
.state-label {
  font-family: "Barlow", sans-serif;
  font-size: 20px; font-weight: 700;
  fill: #55646f; letter-spacing: 0.18em;
}
.gulf-label {
  font-family: "Barlow", sans-serif;
  font-size: 17px; font-style: italic; fill: #3f5768;
}
.pin circle { fill: var(--orange); stroke: #7a2f06; stroke-width: 1; }
.pin.is-unconfirmed circle { fill: #5b6874; stroke: #3d4954; }
.pin text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px; fill: #fff; text-anchor: middle;
}
.pin a:focus-visible circle { stroke: var(--gold); stroke-width: 4; }
.pin a:hover circle { fill: var(--gold); }

.map-key {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0.9rem 0.25rem 0;
  font-size: 0.82rem;
  color: #8ea0ae;
}
.map-key span { display: flex; align-items: center; gap: 0.45rem; }
.map-key i { width: 0.72rem; height: 0.72rem; border-radius: 50%; display: inline-block; }
.k-open { background: var(--orange); }
.k-unc { background: #5b6874; }

/* --- track list -------------------------------------------------------- */

.list { margin-top: 3.25rem; }
.list h2 {
  font-size: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 4px solid var(--blue);
}

.row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 1rem;
  align-items: baseline;
  padding: 1.15rem 0.6rem;
  margin-inline: -0.6rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.row:hover { background: var(--paper-2); }
.row:hover .row-name { color: var(--blue); }

.row-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  color: #fff;
  background: var(--blue);
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  display: grid; place-items: center;
  align-self: start;
}
.row-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  display: block;
}
.row-meta { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.28rem; display: block; }
.row-dist {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem; color: var(--ink-soft);
  white-space: nowrap; text-align: right;
}

.flag {
  display: inline-block;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  margin-left: 0.55rem;
  vertical-align: 0.16em;
  border-radius: 3px;
  color: #fff;
  font-family: "Barlow", sans-serif;
}
.flag-unconfirmed { background: #b23b1a; }
.flag-new { background: var(--green); }

/* --- track / series / event pages -------------------------------------- */

.back {
  display: inline-block;
  margin: 1.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}
.back:hover { color: var(--orange); }

.track-head { padding: 1.4rem 0 0; }
.track-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); max-width: 16ch; text-wrap: balance; }
.track-where { font-size: 1.05rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

.answer {
  max-width: var(--measure);
  margin: 1.7rem 0 0;
  font-size: 1.16rem;
  line-height: 1.45;
  padding: 0.9rem 1.2rem;
  background: var(--paper-2);
  border-left: 5px solid var(--orange);
  border-radius: 0 4px 4px 0;
}

.alert {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid #b23b1a;
  background: #fdf0ea;
  border-radius: 0 4px 4px 0;
  max-width: var(--measure);
}
.alert strong { display: block; margin-bottom: 0.2rem; }
.alert p { margin: 0; font-size: 0.95rem; }

.facts { margin: 2.4rem 0 0; border-top: 4px solid var(--blue); }
.facts div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 0.76rem; font-weight: 700;
  color: var(--ink-soft); letter-spacing: 0.03em;
  text-transform: uppercase;
}
.facts dd { margin: 0; }

.section { margin: 2.9rem 0 0; }
.section h2 { font-size: 1.35rem; margin-bottom: 0.85rem; }
.section p { margin: 0 0 1rem; }
.section ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.section li { margin-bottom: 0.4rem; }

.pricing { border-top: 4px solid var(--blue); max-width: 34rem; margin-top: 0.5rem; }
.pricing div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--rule);
}
.pricing dt { font-weight: 600; }
.pricing dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --- event + series cards ---------------------------------------------- */

.event-card {
  display: block;
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper-2);
  border-left: 5px solid var(--orange);
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  color: var(--ink);
}
.event-card:hover { background: #e8e2d8; border-left-color: var(--blue); }
.event-card:hover .event-name { color: var(--blue); }
.event-when {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.event-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.22rem; letter-spacing: -0.025em;
  display: block; margin: 0.3rem 0 0.3rem;
}
.event-where { font-size: 0.92rem; color: var(--ink-soft); }

.series-note { max-width: var(--measure); margin: 0.9rem 0 0.25rem; font-size: 0.92rem; color: var(--ink-soft); }

/* --- FAQ --------------------------------------------------------------- */

.faq h3 {
  font-family: "Barlow", sans-serif;
  font-weight: 700; font-size: 1.03rem;
  letter-spacing: 0; margin: 1.6rem 0 0.35rem;
  color: var(--blue-deep);
}
.faq h3:first-of-type { margin-top: 0.4rem; }
.faq p { margin: 0; color: var(--ink-soft); }

/* --- correction + footer ----------------------------------------------- */

.correction {
  margin-top: 3.5rem;
  padding: 1.6rem 1.5rem;
  background: var(--paper-2);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 4px 4px;
  max-width: var(--measure);
}
.correction h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.correction p { margin: 0; color: var(--ink-soft); }

footer {
  position: relative;
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.82rem;
  color: #8ea0ae;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: var(--asphalt);
  z-index: -2;
}
footer p { margin: 0 0 0.5rem; max-width: var(--measure); }

/* --- responsive -------------------------------------------------------- */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 2.4rem 1fr; }
  .row-dist { grid-column: 2; text-align: left; margin-top: 0.3rem; }
  .facts div { grid-template-columns: 1fr; gap: 0.15rem; }
  .state-label { font-size: 26px; }
  .hero { padding: 2.2rem 0 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* --- brand mark -------------------------------------------------------- */

.wordmark {
  display: flex; align-items: center; gap: 0.6rem;
  font-style: normal;
}
.wordmark .tree {
  height: 3rem; width: auto; flex: none;
  filter: drop-shadow(0 0 7px rgba(255, 176, 32, 0.55));
}
.wm-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  font-size: 1.72rem; line-height: 0.92;
  letter-spacing: 0.005em;
  display: flex; flex-direction: column;
}
.wm-text em { font-style: italic; color: var(--gold); }

/* --- hero strip -------------------------------------------------------- */

.hero .strip {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100vw; height: 100%;
  z-index: -1; opacity: 1;
  mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}
.hero h1 {
  text-shadow: 0 3px 28px rgba(0,0,0,0.85);
  font-size: clamp(2.3rem, 6.4vw, 4.7rem);
  max-width: 15ch;
}
.hero .lede { text-shadow: 0 2px 14px rgba(0,0,0,0.9); }

/* --- angled section tabs ----------------------------------------------- */

.list h2, .section h2 {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.3rem 1.4rem 0.3rem 0.9rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.8rem) 100%, 0 100%);
  border-bottom: 0;
}
.list h2 { margin-bottom: 0; }
.list { border-top: 0; }
.list > h2 + a, .list > h2 + p { border-top: 4px solid var(--blue); }
.section h2 { background: var(--asphalt); }
.correction h2, .faq h3 {
  background: none; color: inherit; padding: 0; clip-path: none; display: block;
}
.correction h2 { color: var(--ink); }

.row-name, .event-name { font-style: italic; text-transform: none; }
.row-num { font-style: italic; }


.hero { padding: 4.5rem 0 5.5rem; }
.mapband { padding: 0 0 2.75rem; }
.map-frame { margin-top: 0; }
.map-anchor { color: #6f8091; }
@media (max-width: 620px) {
  .hero { padding: 2.6rem 0 3.4rem; }
  .wm-text { font-size: 1.25rem; }
  .wordmark .tree { height: 2.4rem; }
}

/* Scrim over the track art so headline and lede stay readable */
.hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: linear-gradient(100deg,
    rgba(16,20,24,0.95) 0%, rgba(16,20,24,0.88) 34%,
    rgba(16,20,24,0.30) 56%, rgba(16,20,24,0.0) 76%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(16,20,24,0.92) 0%, rgba(16,20,24,0.88) 55%,
      rgba(16,20,24,0.70) 80%, rgba(16,20,24,0.45) 100%);
  }
}

/* --- hero tally -------------------------------------------------------- */
.tally {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 0 2.2rem;
  margin: 1.9rem 0 0; padding: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8ea0ae;
}
.tally b {
  font-size: 1.75rem; font-weight: 800; font-style: italic;
  color: var(--gold); display: block; line-height: 1;
  letter-spacing: -0.01em;
}
.startline { mix-blend-mode: screen; }
