/* lynnwood.ad: shared by every page. A modern transit poster: cream, ink, teal, signal orange,
   tree green and platform yellow by day; a night carriage by dark. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff6e5;
  --ink: #22223b;
  --teal: #1f8a8a;
  --orange: #f2702f;
  --green: #3b8f4f;
  --yellow: #f2c14e;
  --peach: #ffd9b8;
  --night: #121424;
  --streak: #ffd678;
  --door: #3fbf7f;

  --bg: var(--cream);
  --bg-2: #fbeccf;
  --fg: var(--ink);
  --muted: #55556d;
  --accent: #1a7a7a;
  --card: #fffdf8;
  --line: rgba(34, 34, 59, 0.14);
  --shadow: 0 1px 0 rgba(34, 34, 59, 0.06), 0 14px 34px -18px rgba(34, 34, 59, 0.4);
  --wall: #f3e6c9;
  --wall-2: #e7d5ae;
  --frame: #2c2c48;
  --frame-hi: #4a4a6e;
  --seat: #1f8a8a;
  --bezel: #d9d3c4;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  --max: 1180px;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121424;
    --bg-2: #181b31;
    --fg: #fff6e5;
    --muted: #bdb9cc;
    --accent: #5cc6c0;
    --card: #1a1d34;
    --line: rgba(255, 246, 229, 0.13);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --wall: #1d2038;
    --wall-2: #15172b;
    --frame: #0a0b16;
    --frame-hi: #2e3150;
    --seat: #1a5f63;
    --bezel: #3a3d58;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121424;
  --bg-2: #181b31;
  --fg: #fff6e5;
  --muted: #bdb9cc;
  --accent: #5cc6c0;
  --card: #1a1d34;
  --line: rgba(255, 246, 229, 0.13);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --wall: #1d2038;
  --wall-2: #15172b;
  --frame: #0a0b16;
  --frame-hi: #2e3150;
  --seat: #1a5f63;
  --bezel: #3a3d58;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--text);
  font-kerning: normal;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- the top bar ---------- */

.bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 19px/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 6px 0;
}
.wordmark .dot {
  color: var(--orange);
}
.wordmark .roundel {
  width: 26px;
  height: 26px;
  flex: none;
}

/* the theme switch: three round train-door buttons */
.doors {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--frame);
  box-shadow: inset 0 1px 0 var(--frame-hi), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
}
.door {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #3a3a52;
  background: radial-gradient(circle at 50% 38%, #fbf8f1 0 46%, #e4dfd2 70%, #bfb8a6 100%);
  box-shadow: inset 0 0 0 2px #8e8b9c, inset 0 -2px 3px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, box-shadow 0.25s ease, color 0.2s ease, transform 0.12s ease;
}
.door svg {
  width: 16px;
  height: 16px;
  margin: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.door:hover {
  color: var(--ink);
}
.door:active {
  transform: scale(0.92);
}
.door[aria-pressed="true"] {
  color: #0d3a24;
  background: radial-gradient(circle at 50% 38%, #b8f5d3 0 30%, var(--door) 66%, #2a9a62 100%);
  box-shadow: inset 0 0 0 2px #2a8a5a, 0 0 0 2px rgba(63, 191, 127, 0.35), 0 0 12px 2px rgba(63, 191, 127, 0.6);
}
.door:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}

/* ---------- buttons and small things ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--fg);
  font: 700 16px/1 var(--display);
  font-stretch: 108%;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-go {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn-go:hover {
  background: #ff8446;
}
.btn-line {
  background: transparent;
  color: var(--fg);
}
.btn-line:hover {
  background: var(--fg);
  color: var(--bg);
}

.eyebrow {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding: 2px 0;
}
.maps-link:hover {
  color: var(--fg);
}
.maps-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.credit {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.credit a {
  color: inherit;
}

/* sections that rise into view */
.js .rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .rise.in {
  opacity: 1;
  transform: none;
}

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

.foot {
  margin-top: 0;
  background: var(--frame);
  color: #fff6e5;
  padding: 34px var(--gutter) 40px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.foot .mark {
  font: 800 16px/1 var(--display);
  font-stretch: 125%;
}
.foot .mark .dot {
  color: var(--orange);
}
.foot p {
  font-size: 15px;
  color: #e9e3d6;
}
.foot a {
  color: #fff6e5;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.foot nav a {
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 246, 229, 0.35);
}
.foot nav a:hover,
.foot nav a[aria-current="page"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.foot .foot-note {
  font-size: 13.5px;
  color: #bdb9cc;
}
.foot .stripe {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal) 0 40%, var(--orange) 40% 62%, var(--yellow) 62% 80%, var(--green) 80%);
  max-width: 220px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .foot-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .foot .foot-note,
  .foot .stripe {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .rise {
    opacity: 1;
    transform: none;
  }
}
