/* ————————————————————————————————————————————————
   Self-hosted fonts. Mirrors the exact Google Fonts subsets the site needs.
   Generated by assets/fonts/fetch-fonts.mjs from assets/fonts/gf.css —
   re-run to refresh. Do not hand-edit.
   ———————————————————————————————————————————————— */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ————————————————————————————————————————————————
   cleartransport.org — see DESIGN.md
   Register: fine stationery × transit signage — warm, quiet, and precise.
   Ink on soft paper, one muted rose signal, a route line through the page.
   ———————————————————————————————————————————————— */

:root {
  --paper: #faf7f1;
  --paper-deep: #f2ebe1;
  --card: #fffdfa;
  --ink: #241d1a;
  --ink-soft: #605550;
  --ink-faint: #968a82;
  --clay: #a4574d;
  --clay-deep: #7e3f38;
  --rule: rgba(36, 29, 26, 0.13);
  --rule-soft: rgba(36, 29, 26, 0.07);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 1180px;
  --step: clamp(4.5rem, 10vw, 8.5rem);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain. Decorative only; sits above the background, below content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: 0.6563rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 99;
}
.skip:focus { left: 0; }

/* ——— Masthead ——— */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.1875rem);
  letter-spacing: 0.005em;
  text-decoration: none;
}

.wordmark svg { display: block; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 3vw, 2.25rem);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--clay); }
.nav .nav-hide { display: none; }

@media (min-width: 40rem) {
  .nav .nav-hide { display: inline; }
}

/* ——— Hero ——— */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.75rem);
  margin-block: 1.5rem 0;
  max-width: 15ch;
  overflow-wrap: break-word;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.9375rem 1.625rem;
  border-radius: 2px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn svg { transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-quiet {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.btn-quiet:hover { color: var(--ink); border-bottom-color: var(--clay); }

/* The route line: a dashed path that resolves into a puzzle tab and carries on.
   The site's one signature mark — the two service lines in a single stroke. */
.routeline {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  overflow: visible;
}

.routeline .track {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.2;
  stroke-dasharray: 6 8;
}

.routeline .tab {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.routeline .node { fill: var(--ink); }
.routeline .node-open { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }

/* ——— Sections ——— */

.section {
  position: relative;
  padding-block: var(--step);
  border-top: 1px solid var(--rule);
}

/* The one ornament: a lozenge sitting on the section rule, the way a printed
   card marks a break. Decorative — never carries meaning. */
.section::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--paper);
  border: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  max-width: 18ch;
}

.section-head p {
  max-width: 52ch;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }
  .section-head .label { grid-column: 1 / -1; }
}

/* ——— Services ——— */

.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .card-wide { grid-column: 1 / -1; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.875rem, 3.8vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 29, 26, 0.2);
  box-shadow: 0 20px 44px -32px rgba(36, 29, 26, 0.45);
}

.card:hover::after { transform: scaleY(1); }

.card-icon { color: var(--clay); }
.card-icon svg { display: block; }

.card h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.card p { color: var(--ink-soft); max-width: 48ch; }

.card-wide {
  background: var(--paper-deep);
}

/* ——— Steps ——— */

.steps {
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}

@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

.step { position: relative; padding-top: 2.25rem; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clay);
}

.step::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 2.5rem;
  right: 0;
  border-top: 1px dashed var(--rule);
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.step p { color: var(--ink-soft); max-width: 38ch; }

/* ——— Footer ——— */

.footer {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer a { text-decoration: none; color: var(--ink-soft); }
.footer a:hover { color: var(--clay); }

/* ——— 404 ——— */

.oops {
  min-height: 68vh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding-block: var(--step);
}

.oops h1 { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4rem); }
.oops p { color: var(--ink-soft); max-width: 44ch; }

/* ——— Motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

.hero .reveal { transition-delay: 0.04s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
