:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --header-h: 3.25rem;
  --dock-h: 4.25rem;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stop-card,
  .hero-copy {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--dock-h) + 1.5rem);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

.site-header nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-media {
  position: relative;
  min-height: 52vh;
  max-height: 640px;
  overflow: hidden;
  background: #1f2937;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 52vh;
}

.hero-copy {
  padding: 1.75rem 1.25rem 2rem;
  max-width: 40rem;
}

.hero-copy h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero-lede {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36ch;
}

.hero-meta {
  margin: 0 0 1.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 0.85rem 1.15rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.section-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.plan,
.transport,
.stops,
.backup {
  border-top: 1px solid var(--line);
}

h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 50ch;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.chips li {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.transport-list {
  margin: 0;
  padding-left: 1.2rem;
}

.transport-list li {
  margin-bottom: 0.65rem;
}

.note {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.stop {
  display: grid;
  gap: 0.75rem;
}

.stop-time {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stop-time-label {
  color: var(--muted);
  font-weight: 600;
}

.stop-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.stop.is-active .stop-card {
  border-color: #93c5fd;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

.stop-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.stop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stop-body {
  padding: 1.15rem 1.15rem 1.35rem;
}

.stop-body h3 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.addr {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.stop-body p {
  margin: 0 0 0.85rem;
}

.stop-body .tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.backup ul {
  margin: 0;
  padding-left: 1.2rem;
}

.backup li {
  margin-bottom: 0.55rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .fine {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
}

.dock-inner {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dock-text {
  min-width: 0;
}

.dock-text strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: min(78vh, 720px);
    align-items: stretch;
  }

  .hero-media {
    min-height: 100%;
    max-height: none;
  }

  .hero-media img {
    min-height: 100%;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
  }

  .section-inner {
    max-width: 52rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .stop {
    grid-template-columns: 7.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .stop-time {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding-top: 0.35rem;
  }

  .stop-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .stop-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }
}
