/* ============================================================
   The Magic Music Bus Journey — shared styles + main page
   Direction: docs/plans/2026-07-05-design-direction.md
   (red-earth evening ground, route-line signature,
    Hepta Slab / Atkinson Hyperlegible / Courier Prime)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --night:    #26170F;
  --night-2:  #3A2114;
  --lacquer:  #6E2A16;
  --laterite: #C25E33;
  --bamboo:   #E0A94E;
  --paddy:    #9CC978;
  --rice:     #F5EADA;
  --rice-dim: rgba(245, 234, 218, 0.62);
  --line: 2px dashed rgba(194, 94, 51, 0.75);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--rice);
  background: linear-gradient(180deg, var(--night) 0%, #2E1A0F 55%, var(--night) 100%);
  overflow-x: hidden;
}

a { color: var(--paddy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rice); }
:focus-visible { outline: 3px solid var(--bamboo); outline-offset: 3px; border-radius: 2px; }

/* headings/regions focused by script for screen readers, not by keyboard */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

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

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laterite);
}

.caption {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--rice-dim);
  margin-top: 0.75rem;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('../images/roadside-jun22.jpg') center 30% / cover no-repeat;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38,23,15,0.28) 0%, rgba(38,23,15,0.05) 35%, rgba(38,23,15,0.55) 70%, var(--night) 98%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.hero .eyebrow {
  color: var(--bamboo);
  text-shadow: 0 1px 8px rgba(38,23,15,0.9);
  opacity: 0;
  animation: rise 0.9s ease-out 0.2s forwards;
}

h1 {
  font-family: 'Hepta Slab', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 5.25rem);
  line-height: 1.04;
  color: var(--rice);
  margin: 0.75rem 0 1rem;
}

.hero h1 {
  text-shadow: 0 2px 24px rgba(38,23,15,0.85);
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.9s ease-out 0.45s forwards;
}

.hero-line {
  font-size: 1.35rem;
  color: var(--rice);
  text-shadow: 0 1px 10px rgba(38,23,15,0.9);
  max-width: 34ch;
  opacity: 0;
  animation: rise 0.9s ease-out 0.7s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- the route (signature) ---------- */

.route {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

/* the 2px line's center sits at +11px, matching the stop dot's center
   (16px dot + 3px borders = 22px wide) */
.route::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(1.5rem + 10px);
  border-left: var(--line);
}

.stop {
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 5.5rem;
}

.stop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--night);
  border: 3px solid var(--laterite);
}

.stop.terminus::before {
  background: var(--paddy);
  border-color: var(--paddy);
}

h2 {
  font-family: 'Hepta Slab', serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--bamboo);
  margin: 0.35rem 0 1.25rem;
}

.stop p { max-width: 62ch; margin-bottom: 1.15rem; }

.wide-photo { margin: 2.25rem 0 0.5rem; }
.wide-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.5);
}

/* ---------- launch block (mirrors the ride's choice blocks) ---------- */

.launch {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin-top: 1.75rem;
  padding: 1.4rem 1.6rem;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 1.2rem;
  text-align: left;
  color: var(--rice);
  text-decoration: none;
  background: var(--night-2);
  border: 2px solid var(--paddy);
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.launch:hover { background: #46301c; transform: translateX(6px); color: var(--rice); }

.launch .go {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paddy);
  margin-bottom: 0.4rem;
}

/* ---------- divider ---------- */

.divider {
  max-width: 62rem;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: var(--line);
}

.divider span {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laterite);
  white-space: nowrap;
}

/* ---------- vocabulary ---------- */

.vocab {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.vocab dl {
  max-width: 68ch;
  display: grid;
  gap: 1.25rem;
}

.vocab dt {
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bamboo);
}

.vocab dd { color: var(--rice); max-width: 62ch; }

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

footer {
  border-top: var(--line);
  margin-top: 2rem;
  padding: 3rem 1.5rem 3.5rem;
}

.footer-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.footer-inner h3 {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laterite);
  margin-bottom: 0.75rem;
}

.footer-inner p, .footer-inner li {
  font-size: 0.95rem;
  color: var(--rice-dim);
  line-height: 1.6;
}

.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 0.4rem; }

.credit {
  max-width: 62rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 234, 218, 0.15);
}

.credit-line {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--rice-dim);
  line-height: 1.7;
}

.credit-sep {
  margin: 0 0.6em;
  opacity: 0.5;
}

.credit-media {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---------- responsive + motion ---------- */

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .divider span { white-space: normal; text-align: center; max-width: 70vw; }
  .route::before { left: calc(1.5rem + 8px); } /* 12px dot + 3px borders → center +9px */
  .stop { padding-left: 2.5rem; }
  .stop::before { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .eyebrow, .hero h1, .hero-line { opacity: 1; }
}
