@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/zilla-500.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/zilla-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/redhat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/redhat-700.woff2") format("woff2");
}

:root {
  --soot: #1c1916;
  --brass: #a67c3d;
  --ticket: #f3eee6;
  --sheet: #faf7f1;
  --signal: #b43a22;
  --mute: #6a6258;
  --line: #d4cbbd;
  --steam: #e4ddd2;
  --max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ticket);
  color: var(--soot);
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--soot); text-decoration: underline; }
button, input, textarea { font: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--soot); color: var(--ticket); padding: 8px; z-index: 50; }

.spur-bar {
  background: var(--soot);
  color: var(--ticket);
  border-bottom: 4px solid var(--brass);
}
.spur-bar .inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ticket);
  text-decoration: none;
}
.brand:hover { color: var(--brass); text-decoration: none; }
.brand b {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.22em;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b9a8;
}
.buffer-stamp {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--signal);
  color: #fff;
  padding: 7px 11px;
  border-radius: 0;
}

.grade-row {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 8px 0 0;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--soot);
  padding: 7px 10px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 0 12px;
  border-bottom: 2px solid var(--soot);
}
.nav a {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--signal); text-decoration: none; font-weight: 700; }
.drawer {
  display: none;
  padding: 12px 0 20px;
  border-bottom: 2px solid var(--soot);
}
.drawer.open { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.drawer a { color: var(--signal); }

main { padding-bottom: 48px; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.hero-rail { margin: 0; }
.hero-rail .departures {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--soot);
  color: var(--ticket);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .hero-rail .departures { grid-template-columns: 1fr 1fr 1fr; }
}
.hero-rail .departures span {
  padding: 10px 18px;
  border-bottom: 1px solid #3a342e;
}
@media (min-width: 800px) {
  .hero-rail .departures span { border-bottom: 0; border-right: 1px solid #3a342e; }
  .hero-rail .departures span:last-child { border-right: 0; }
}
.hero-rail .departures b { color: var(--brass); display: block; font-size: 13px; margin-top: 3px; letter-spacing: 0.08em; }
.hero-rail figure { margin: 0; }
.hero-rail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
}
@media (min-width: 900px) {
  .hero-rail img { height: min(46vh, 420px); }
}
.hero-rail figcaption {
  background: var(--soot);
  color: #c4b9a8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
}
.hero-sheet {
  width: min(var(--max), calc(100% - 36px));
  margin: -28px auto 0;
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--soot);
  padding: 28px 28px 32px;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 27px,
    rgba(28, 25, 22, 0.045) 27px,
    rgba(28, 25, 22, 0.045) 28px
  );
}
.kicker {
  color: var(--signal);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}
.hero-sheet h1, .board h1 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin: 10px 0 14px;
  color: var(--soot);
}
.lede { color: var(--mute); font-size: 1.04rem; max-width: 38rem; margin: 0; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-block;
  background: var(--soot);
  color: var(--ticket);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--signal); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--soot); border: 1px solid var(--soot); }
.marks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
}
.marks b { color: var(--soot); display: block; font-size: 1.02rem; margin-top: 3px; }
.marks a { color: var(--soot); }

.legs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto;
  border: 1px solid var(--soot);
}
@media (min-width: 800px) { .legs { grid-template-columns: 1fr 1fr 1fr; } }
.time-card {
  background: var(--sheet);
  padding: 22px 20px;
  min-height: 176px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--soot);
}
@media (min-width: 800px) {
  .time-card { border-bottom: 0; border-right: 1px solid var(--soot); }
  .time-card:last-child { border-right: 0; }
}
.time-card:hover { background: #fff; text-decoration: none; }
.time-card .no {
  color: var(--signal);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.time-card h3 {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 1.4rem;
  margin: 12px 0 8px;
  font-weight: 500;
}
.time-card p { color: var(--mute); margin: 0; font-size: 0.95rem; }

.board { padding: 8px 0 20px; }
.prose h2 {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--soot);
  margin: 1.4em 0 0.5em;
}
.prose h3 { font-size: 1.08rem; margin: 1.2em 0 0.4em; }
.prose p { max-width: 42rem; }
.prose ul, .prose ol { max-width: 42rem; }
.prose code { font-size: 0.9em; }
.plate { margin: 24px 0; }
.plate img { border-top: 6px solid var(--brass); }
.plate figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
table.timetable {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
table.timetable th, table.timetable td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 8px 9px 0;
  vertical-align: top;
}
table.timetable th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.pull {
  font-family: "Zilla Slab", Georgia, serif;
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.34;
  color: var(--signal);
  max-width: 34rem;
  margin: 22px 0;
}
.file-stamp {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
}
.trust-note {
  border-left: 6px solid var(--brass);
  background: var(--sheet);
  padding: 16px 18px;
  margin: 22px 0;
}
.src-list { margin: 0; padding-left: 1.15em; }
.src-list li { margin: 0 0 8px; }
.log { font-size: 13px; color: var(--mute); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; max-width: 42rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  border-top: 4px solid var(--brass);
  background: var(--sheet);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.related a span { display: block; color: var(--signal); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.related a strong { font-family: "Zilla Slab", Georgia, serif; font-weight: 500; font-size: 1.15rem; }

form.sheet { display: grid; gap: 14px; max-width: 32rem; }
form.sheet label { font-size: 13px; color: var(--mute); }
form.sheet input, form.sheet textarea {
  width: 100%;
  background: var(--sheet);
  border: 1px solid var(--soot);
  color: var(--soot);
  padding: 12px;
}
form.sheet textarea { min-height: 140px; }

.site-foot {
  background: var(--soot);
  color: #c4b9a8;
  padding: 48px 0 28px;
  font-size: 14px;
  margin-top: 32px;
}
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot a { color: #e8b4a0; }
.site-foot strong {
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--ticket);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.site-foot nav { display: grid; gap: 7px; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid #3a342e; font-size: 12px; color: #8a8278; }

.cookie {
  position: fixed;
  top: 46%;
  left: 16px;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  max-width: 300px;
  width: calc(100% - 32px);
  background: var(--sheet);
  color: var(--soot);
  border: 1px solid var(--soot);
  border-top: 6px solid var(--brass);
  padding: 14px;
  display: none;
  z-index: 40;
}
.cookie.open { display: block; }
.cookie[hidden] { display: none !important; }
.cookie p { margin: 0 0 10px; font-size: 13px; }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }

::selection { background: var(--soot); color: var(--ticket); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .burger { display: inline-block; }
  .nav { display: none; }
  .brand small { display: none; }
  .buffer-stamp { display: none; }
  .cookie {
    top: auto;
    left: auto;
    right: 16px;
    bottom: 16px;
    transform: none;
  }
}
