:root {
  color-scheme: light;
  --bg: #f3f6f9;
  --paper-soft: #e9eff6;
  --text: #172334;
  --text-2: #3b5069;
  --muted: #5e7085;
  --line: #ccd8e4;
  --accent: #2456a4;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111923;
    --paper-soft: #223346;
    --text: #f2f6fb;
    --text-2: #c6d3e1;
    --muted: #a8b8ca;
    --line: #405369;
    --accent: #9cc2ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, p, figure { margin: 0; }
h1, h2, .trip-name { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: -100vw;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.skip-link:focus { left: 12px; }

.page { width: min(1240px, calc(100% - 64px)); margin: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 750; }
.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font: 700 19px/1 Georgia, serif;
}
.hero {
  padding-top: clamp(34px, 6vw, 76px);
  padding-bottom: clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
h1 { max-width: 650px; font: 500 clamp(58px, 7.4vw, 108px)/.98 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: -.055em; }
.lede { max-width: 43ch; margin-top: 25px; color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; text-wrap: pretty; }
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  margin-top: 27px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-link:hover { background: var(--text); border-color: var(--text); }
.hero-link:active, .trip-row:active { transform: translateY(1px); }
.trips-section { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: 24px; }
.section-head { margin-bottom: 28px; }
h2 { font: 500 clamp(32px, 3.6vw, 46px)/1.06 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: -.045em; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.trip-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.trip-list li { border-bottom: 1px solid var(--line); }
.trip-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  padding: 18px 16px;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.trip-row:hover { background: var(--paper-soft); }
.trip-number { color: var(--accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.trip-name { max-width: 24ch; font: 500 clamp(24px, 2.8vw, 35px)/1.18 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: -.035em; }
.trip-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-size: 18px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.trip-row:hover .trip-arrow { transform: translate(2px, -2px); border-color: var(--accent); }
footer { margin: 90px 0 0; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .page { width: min(100% - 40px, 1240px); }
  h1 { font-size: clamp(50px, 7vw, 70px); }
  .trip-row { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 12px; }
  .trip-date { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .trip-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 680px) {
  .page { width: min(100% - 32px, 1240px); }
  .site-header { min-height: 62px; }
  .hero { padding-top: 34px; }
  h1 { max-width: 8ch; font-size: clamp(58px, 13vw, 78px); }
  .lede { margin-top: 17px; font-size: 16px; }
  .trips-section { margin-top: 64px; }
  .trip-row { min-height: 96px; padding: 18px 4px; }
  .trip-name { font-size: clamp(23px, 5vw, 30px); }
  .trip-date { font-size: 12px; white-space: normal; }
  footer { margin-top: 64px; }
}
@media (max-width: 400px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; }
  .trip-row { grid-template-columns: 26px minmax(0, 1fr) 28px; gap: 8px; }
  .trip-arrow { width: 28px; height: 28px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
