:root {
  --navy: #0b2442;      /* shield and wordmark */
  --amber: #f49c35;     /* road centerline, decorative only */
  --asphalt: #556173;   /* secondary text */
  --lane: #dde2ea;      /* rules */
  --paper: #ffffff;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.125rem/1.65 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--lane);
}
.site-header img { display: block; height: 44px; width: auto; }
.site-nav { display: flex; gap: 24px; font: 600 0.9375rem/1 var(--head); }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--lane); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

.site-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--lane);
  color: var(--asphalt);
  font: 400 0.875rem/1.5 var(--head);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--asphalt); }

/* Legal documents: the text runs alongside a road centerline */
.legal {
  position: relative;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 64px 16px 80px 56px;
}
.legal::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 72px;
  bottom: 80px;
  width: 4px;
  background: repeating-linear-gradient(to bottom, var(--amber) 0 26px, transparent 26px 50px);
}
.legal h1 {
  margin: 0;
  font: 800 clamp(2.25rem, 6vw, 3.25rem)/1.05 var(--head);
  letter-spacing: -0.02em;
}
.legal .updated { margin: 12px 0 40px; color: var(--asphalt); font: 400 0.9375rem/1.4 var(--head); }
.legal h2 {
  margin: 48px 0 12px;
  font: 700 1.3125rem/1.25 var(--head);
  letter-spacing: -0.005em;
}
.legal h3 { margin: 28px 0 8px; font: 700 1.0625rem/1.3 var(--head); }
.legal p, .legal ul { margin: 0 0 16px; max-width: 68ch; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--asphalt); }
.legal strong { font-weight: 650; }
.legal .lead { font-size: 1.1875rem; }
.legal .notice {
  margin: 20px 0;
  padding: 16px 20px;
  background: #f1f4f8;
  border-left: 4px solid var(--navy);
}
.legal .notice p:last-child { margin-bottom: 0; }

/* Wide screens: two lanes of sections with the centerline between them */
@media (min-width: 1100px) {
  .legal {
    max-width: 84rem;
    padding: 64px clamp(32px, 4vw, 64px) 96px;
  }
  .legal::before { display: none; }
  .legal { --lane-gap: clamp(72px, 7vw, 128px); }
  /* the intro stays inside the left lane so the centerline is never crossed */
  .legal-head { max-width: calc((100% - var(--lane-gap)) / 2); margin-bottom: 40px; }
  .lanes {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--lane-gap);
    align-items: start;
  }
  .lanes::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 40px;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    background: repeating-linear-gradient(to bottom, var(--amber) 0 26px, transparent 26px 50px);
  }
  /* lanes.js sizes each section in 4px rows so the shorter lane takes the next one */
  .lanes.is-packed { grid-auto-rows: 4px; }
  .lanes section { padding-bottom: 40px; }
  .lanes h2 { margin-top: 0; }
}

/* Home: under construction */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 16px 64px;
}
.home .logo { width: min(340px, 72vw); height: auto; }
.home .centerline {
  width: 5px;
  height: 84px;
  margin: 28px 0 24px;
  background: repeating-linear-gradient(to bottom, var(--amber) 0 18px, transparent 18px 32px);
  transform-origin: top;
  animation: draw 1.1s cubic-bezier(.2,.7,.2,1) .3s both;
}
.home h1 { margin: 0; font: 700 clamp(1.5rem, 4.5vw, 2rem)/1.2 var(--head); letter-spacing: -0.01em; }
.home p { margin: 12px auto 0; max-width: 34rem; color: var(--asphalt); }

@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-header img { height: 38px; }
  .legal { padding: 44px 16px 64px 40px; }
  .legal::before { left: 14px; top: 52px; width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .centerline { animation: none; }
}

@media print {
  .site-header nav, .site-footer nav, .legal::before { display: none; }
  .legal { padding: 0; }
}
