:root {
  color-scheme: dark;
  --ink: #15110f;
  --ink-2: #211915;
  --paper: #f7efe2;
  --muted: #cdbfa9;
  --line: #4b3a2e;
  --ember: #c45131;
  --marigold: #f4d35e;
  --glow: #75c66a;
  --violet: #6d5aa8;
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(244, 211, 94, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(244, 211, 94, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(117, 198, 106, 0.12), transparent 34rem),
    linear-gradient(135deg, #15110f 0%, #201712 48%, #11100f 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--paper);
  font-family: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 94%, rgba(244, 211, 94, 0.06) 95%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.28;
  z-index: 2;
}

a {
  color: var(--marigold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--glow);
}

img,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(244, 211, 94, 0.2);
  background: rgba(21, 17, 15, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--marigold);
  background: var(--ember);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(244, 211, 94, 0.5);
  color: var(--paper);
  background: rgba(244, 211, 94, 0.08);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100vh - 58px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0 18px;
}

.hero-copy {
  padding: 12px 0;
}

.eyebrow,
.kicker {
  color: var(--glow);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(3rem, 9vw, 7.6rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.title-shadow {
  color: var(--paper);
  text-shadow: 4px 4px 0 #000, 8px 8px 0 rgba(196, 81, 49, 0.82);
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #eadfcd;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions,
.control-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button,
button.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 2px solid #111;
  border-radius: 4px;
  background: var(--marigold);
  color: #18120d;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
button.button:hover {
  transform: translate(-1px, -1px);
  background: var(--glow);
  color: #111;
  box-shadow: 5px 5px 0 #000;
}

.button.secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--glow);
  background: rgba(117, 198, 106, 0.12);
  color: var(--paper);
}

.player-shell {
  align-self: stretch;
  border: 2px solid rgba(244, 211, 94, 0.45);
  background: #090807;
  box-shadow: 10px 10px 0 var(--shadow);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(244, 211, 94, 0.3);
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(196, 81, 49, 0.22), rgba(117, 198, 106, 0.09));
}

.status-lights {
  display: flex;
  gap: 6px;
}

.status-lights span {
  width: 12px;
  height: 12px;
  border: 1px solid #000;
  background: var(--marigold);
}

.status-lights span:nth-child(2) {
  background: var(--ember);
}

.status-lights span:nth-child(3) {
  background: var(--glow);
}

.player-frame {
  position: relative;
  aspect-ratio: 13 / 9;
  min-height: 280px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.2)),
    var(--poster, linear-gradient(135deg, #382015, #111));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(45deg, rgba(21, 17, 15, 0.9), rgba(21, 17, 15, 0.5)),
    repeating-linear-gradient(-12deg, rgba(244, 211, 94, 0.08) 0 2px, transparent 2px 18px);
}

.player-placeholder-inner {
  max-width: 420px;
}

.player-placeholder strong {
  display: block;
  margin-bottom: 10px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.player-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 20px;
  border: 1px solid rgba(244, 211, 94, 0.28);
  background: rgba(244, 211, 94, 0.24);
}

.fact {
  min-width: 0;
  padding: 14px;
  background: rgba(21, 17, 15, 0.86);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 5px;
  color: var(--paper);
  font-size: 0.98rem;
}

main {
  padding-bottom: 60px;
}

.section {
  padding: 54px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 20px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  text-transform: uppercase;
}

.section h3 {
  margin: 30px 0 10px;
  color: var(--marigold);
  font-size: clamp(1.38rem, 3vw, 2.2rem);
}

.section p,
.section li,
.section td,
.section th {
  color: #eadfcd;
  font-size: 1.02rem;
  line-height: 1.75;
}

.section p {
  margin: 12px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 28px;
  align-items: start;
}

.prose {
  min-width: 0;
}

.side-panel,
.info-panel {
  border: 1px solid rgba(244, 211, 94, 0.32);
  border-radius: var(--radius);
  background: rgba(247, 239, 226, 0.05);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

.side-panel {
  position: sticky;
  top: 76px;
  padding: 18px;
}

.side-panel h2,
.side-panel h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
}

.toc {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.toc a {
  padding: 9px 10px;
  border: 1px solid rgba(244, 211, 94, 0.16);
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--glow);
  color: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(244, 211, 94, 0.25);
}

th,
td {
  border-bottom: 1px solid rgba(244, 211, 94, 0.15);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--marigold);
  font-weight: 900;
}

tr:nth-child(even) td {
  background: rgba(247, 239, 226, 0.04);
}

.route-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.route-card {
  display: block;
  min-height: 150px;
  border: 1px solid rgba(244, 211, 94, 0.32);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(160deg, rgba(244, 211, 94, 0.1), rgba(117, 198, 106, 0.055));
  color: var(--paper);
  text-decoration: none;
}

.route-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--marigold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.route-card span {
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(244, 211, 94, 0.25);
  border-radius: var(--radius);
  background: rgba(247, 239, 226, 0.045);
}

summary {
  cursor: pointer;
  padding: 14px;
  color: var(--paper);
  font-weight: 900;
}

details p {
  padding: 0 14px 14px;
}

.site-footer {
  border-top: 1px solid rgba(244, 211, 94, 0.24);
  padding: 34px 0;
  background: #100d0b;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.notice {
  border-left: 6px solid var(--glow);
  padding: 14px 16px;
  background: rgba(117, 198, 106, 0.1);
}

.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.player-body {
  min-height: 100vh;
  margin: 0;
  background: #0c0908;
  overflow: hidden;
}

.ruffle-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.ruffle-stage ruffle-player,
.ruffle-stage object,
.ruffle-stage embed {
  width: 100% !important;
  height: 100% !important;
}

.player-loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--paper);
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(244, 211, 94, 0.08) 0 1px, transparent 1px 18px),
    #0c0908;
}

.player-loading strong {
  display: block;
  color: var(--marigold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .hero,
  .content-grid,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .side-panel {
    position: static;
  }

  .facts-strip,
  .route-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 20px, var(--max));
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav-links a {
    font-size: 0.86rem;
    padding: 7px 8px;
  }

  .wrap {
    width: min(100% - 20px, var(--max));
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .player-frame {
    min-height: 236px;
  }

  .facts-strip,
  .route-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .button,
  button.button {
    width: 100%;
  }
}
