/* Meet Me Outside — Spokane after dark, lit up.
   Night ground, warm cream type, and colour pulled from the city: lilac,
   marigold, river teal, ember. Photos do the talking. */

:root {
  /* night ground and the three surface levels */
  --bg: #0d0a13;
  --bg-deep: #08060d;
  --surface: #171220;
  --surface-raised: #1d1628;
  --surface-sunken: #2a2036;

  /* type */
  --text: #f7f1e8;
  --text-soft: #c6bacf;
  --text-faint: #9a8ea7;
  --text-on-accent: #140e1c;

  /* hairlines and fills, one set for the whole page */
  --rule: rgba(247, 241, 232, 0.16);
  --rule-soft: rgba(247, 241, 232, 0.1);
  --rule-strong: rgba(247, 241, 232, 0.24);
  --tint: rgba(247, 241, 232, 0.06);

  /* accents */
  --lilac: #b79bff;
  --lilac-soft: rgba(183, 155, 255, 0.16);
  --river: #43e0c8;
  --river-soft: rgba(67, 224, 200, 0.14);
  --marigold: #ffc247;
  --marigold-soft: rgba(255, 194, 71, 0.16);
  --ember: #ff6b3d;
  --ember-soft: rgba(255, 107, 61, 0.16);
  --moss: #b8ff5c;
  --moss-soft: rgba(184, 255, 92, 0.14);

  --font-sans: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(14px, 2.6vw, 46px);
  --page: min(1180px, 100% - clamp(28px, 7vw, 96px));
  --shadow-hard: 0 28px 70px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* The city at dusk, held fixed behind the page and pushed almost down to
   night: two colour blooms (lilac top-left, ember bottom-right), a dark
   wash, then the photo. Four layers, listed the way they stack. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 8% -10%, rgba(183, 155, 255, 0.24), transparent 58%),
    radial-gradient(110% 80% at 96% 108%, rgba(255, 107, 61, 0.22), transparent 62%),
    radial-gradient(90% 70% at 52% 46%, rgba(13, 10, 19, 0.34), rgba(8, 6, 13, 0.93) 72%),
    url("/images/spokane-clocktower.webp");
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center 42%;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, multiply, normal;
}

/* Faded lane paint in the gutters: the road runs all the way down the page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --paint: repeating-linear-gradient(180deg, rgba(255, 194, 71, 0.32) 0 58px, transparent 58px 104px);
  background-image: var(--paint), var(--paint), linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 10%, transparent 90%, rgba(0, 0, 0, 0.55));
  background-size:
    2px 100%,
    2px 100%,
    100% 100%;
  background-position:
    calc(var(--gutter) / 2 - 1.5px) 0,
    calc(100% - var(--gutter) / 2 - 1.5px) 0,
    0 0;
  background-repeat: no-repeat;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--lilac);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--marigold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

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

/* Small stamped labels share one size, weight and tracking, everywhere. */
.dateline,
.hero-kicker,
.aside-kicker,
.aside-stats dt,
.band-kicker,
.plan-eyebrow,
.plan-total span,
.stop-time small,
.card-tag,
.card-time,
.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visually-hidden {
  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: -999px;
  top: 8px;
  z-index: 50;
  background: var(--marigold);
  color: var(--text-on-accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

/* ---------- masthead ---------- */

.masthead {
  width: var(--page);
  margin: 0 auto;
  padding-top: 20px;
}

.masthead-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.dateline {
  color: var(--text-soft);
}

.brand {
  display: grid;
  gap: 8px;
  padding: 20px 0 16px;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
}

.wordmark-alt {
  background: linear-gradient(96deg, var(--lilac) 0%, var(--ember) 52%, var(--marigold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark-mark {
  color: var(--marigold);
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 8px;
}

.wordmark-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 46ch;
}

.mastnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding: 14px 0 0;
}

.mastnav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: var(--text-soft);
  transition: color 140ms ease, border-color 140ms ease;
}

.mastnav a:hover {
  color: var(--text);
  border-bottom-color: var(--marigold);
}

/* ---------- hero ---------- */

.hero {
  width: var(--page);
  margin: clamp(30px, 5vw, 60px) auto clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(255, 194, 71, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 71, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 194, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 71, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  max-width: 15ch;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(94deg, var(--lilac), var(--ember) 60%, var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-deck {
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 2px;
}

.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.btn-primary {
  color: var(--text-on-accent);
  background-image: linear-gradient(100deg, var(--marigold), #ff9a52 55%, var(--ember));
  box-shadow: 0 16px 40px -16px rgba(255, 154, 82, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -16px rgba(255, 154, 82, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-quiet {
  background: transparent;
  padding: 13px 2px;
  border-radius: 2px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lilac);
  text-underline-offset: 5px;
}

.btn-quiet:hover {
  text-decoration-color: var(--marigold);
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 52ch;
}

/* aerial photo collage */

.hero-stage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 22px;
}

.shot {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  box-shadow: var(--shadow-hard);
  isolation: isolate;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06) brightness(0.92);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 500ms ease;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 19, 0.1) 0%, rgba(13, 10, 19, 0) 40%, rgba(13, 10, 19, 0.78) 100%),
    linear-gradient(120deg, rgba(183, 155, 255, 0.22), rgba(255, 107, 61, 0.16) 70%);
  pointer-events: none;
}

.shot:hover img {
  transform: scale(1.04);
  filter: saturate(1.2) contrast(1.05) brightness(1);
}

.shot figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(13, 10, 19, 0.6);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 9px;
  backdrop-filter: blur(4px);
}

.shot-a {
  grid-column: 1 / 5;
  grid-row: 1 / 2;
  aspect-ratio: 4 / 3;
  transform: rotate(-2deg);
}

.shot-b {
  grid-column: 3 / 6;
  grid-row: 1 / 2;
  align-self: end;
  aspect-ratio: 3 / 2;
  margin-bottom: -46px;
  transform: rotate(2.4deg);
  border-width: 4px;
  border-color: var(--surface);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(247, 241, 232, 0.16);
}

/* stats strip */

.hero-aside {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(24px, 4vw, 56px);
  padding: 18px clamp(20px, 2.6vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--rule);
  background:
    linear-gradient(100deg, rgba(183, 155, 255, 0.14), rgba(255, 107, 61, 0.1) 55%, rgba(255, 194, 71, 0.12)),
    rgba(23, 18, 32, 0.82);
  backdrop-filter: blur(8px);
}

.aside-lead {
  display: grid;
  gap: 2px;
  min-width: 160px;
}

.aside-kicker {
  color: var(--marigold);
}

.aside-date {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.aside-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(22px, 3.4vw, 44px);
  margin: 0;
  flex: 1;
}

.aside-stats div {
  display: grid;
  gap: 0;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
}

.aside-stats dt {
  order: 2;
  color: var(--text-faint);
}

.aside-stats dd {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.aside-foot {
  font-size: 0.84rem;
  color: var(--text-faint);
  max-width: 24ch;
}

/* ---------- city band ---------- */

.city-band {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(44px, 6vw, 78px);
  min-height: clamp(300px, 44vw, 480px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.city-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  filter: saturate(1.1) contrast(1.05) brightness(0.82);
  z-index: -2;
}

.city-band-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 10, 19, 0.86) 0%, rgba(13, 10, 19, 0.14) 34%, rgba(13, 10, 19, 0.8) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 10, 19, 0.72) 0%, rgba(13, 10, 19, 0.08) 62%),
    linear-gradient(120deg, rgba(183, 155, 255, 0.18), rgba(255, 107, 61, 0.18));
}

.city-band-copy {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 0 clamp(30px, 4vw, 46px);
  display: grid;
  gap: 10px;
}

.band-kicker {
  color: var(--marigold);
}

.band-title {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  max-width: 22ch;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.band-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--lilac), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.band-note {
  max-width: 46ch;
  color: var(--text);
  opacity: 0.86;
  font-size: 0.98rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ---------- sections ---------- */

.plan-section,
.customize,
.listings,
.sources {
  width: var(--page);
  margin: 0 auto clamp(48px, 7vw, 92px);
}

.sources {
  padding: clamp(20px, 3.2vw, 32px);
}

/* the photo runs under both panels, so they share one scrim */
.sources,
.site-foot {
  background: rgba(23, 18, 32, 0.58);
  border: 1px solid var(--rule-soft);
  border-radius: 24px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 62ch;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lilac), var(--ember) 60%, var(--marigold));
}

.section-head p {
  color: var(--text-soft);
}

/* ---------- plan ---------- */

.plan-placeholder {
  border: 1px dashed var(--rule-strong);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  background: var(--surface-raised);
}

.plan-placeholder-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-sheet {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--lilac-soft), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, var(--ember-soft), transparent 60%),
    var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 3.4vw, 40px);
  display: grid;
  gap: 20px;
}

.plan-head {
  display: grid;
  gap: 8px;
}

.plan-eyebrow {
  color: var(--marigold);
}

.plan-title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  letter-spacing: -0.045em;
}

.plan-sub {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.stop {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 26px);
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
}

.stop-time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-left: 12px;
  border-left: 4px solid var(--accent, var(--lilac));
  color: var(--text);
}

.stop-time small {
  display: block;
  color: var(--text-faint);
  margin-top: 6px;
}

.stop-body {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.stop-title {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.stop-meta {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.stop-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--accent-soft, var(--lilac-soft));
  border: 1px solid color-mix(in srgb, var(--accent, var(--lilac)) 45%, transparent);
  padding: 4px 11px;
  border-radius: 999px;
}

.stop-price span {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  color: var(--text-soft);
}

.stop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-top: 4px;
}

.stop-links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.87rem;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(247, 241, 232, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--marigold);
  text-decoration-color: var(--marigold);
}

.stop-conflict {
  font-size: 0.87rem;
  color: var(--ember);
  font-weight: 500;
}

/* the drive into each stop, in the same stamped voice as the times */
.stop-leg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.plan-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 46px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.plan-total {
  display: grid;
  gap: 2px;
}

.plan-total span {
  color: var(--text-faint);
}

.plan-total strong {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  background: linear-gradient(96deg, var(--text) 40%, var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.budget-meter {
  height: 10px;
  background: var(--surface-sunken);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.budget-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--river), var(--marigold));
}

.plan-note {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 68ch;
}

.plan-note b {
  font-family: var(--font-sans);
  color: var(--text);
}

.unpriced-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 6px;
}

.unpriced-list li {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.unpriced-list a {
  font-weight: 600;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  padding-top: 6px;
}

.empty-plan {
  background:
    linear-gradient(120deg, var(--lilac-soft), var(--river-soft)),
    var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 70ch;
}

.empty-plan h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.changes {
  background:
    linear-gradient(120deg, var(--ember-soft), var(--marigold-soft)),
    var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--ember) 55%, transparent);
  border-left-width: 6px;
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.changes h3 {
  font-size: 1.25rem;
}

.changes ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

.changes li {
  font-size: 0.96rem;
  color: var(--text-soft);
}

.changes-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

/* ---------- customize ---------- */

.customize[hidden] {
  display: none;
}

.custom-form {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(100% 90% at 100% 0%, var(--river-soft), transparent 55%),
    var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: var(--shadow-hard);
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.field-label,
.interests legend {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.interests {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  padding: 18px 0 0;
  margin: 0;
}

.interests legend {
  padding: 0 6px 0 0;
  margin-bottom: 8px;
}

.field-hint {
  font-size: 0.86rem;
  color: var(--text-faint);
}

select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 46px;
}

select option {
  background: var(--surface);
  color: var(--text);
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--lilac);
}

input[type="number"] {
  width: 78px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

::placeholder {
  color: var(--text-faint);
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.group-row label {
  font-size: 0.96rem;
  color: var(--text-soft);
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-prefix {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--marigold);
}

.budget-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.budget-chips button {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  min-height: 38px;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease;
}

.budget-chips button:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--text-on-accent);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
}

.interest-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.96rem;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  background: var(--tint);
}

.interest-chip:has(input:checked) {
  background: var(--lilac-soft);
  border-color: var(--lilac);
}

.interest-chip input {
  width: 18px;
  height: 18px;
  accent-color: var(--lilac);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px;
}

/* ---------- listings ---------- */

/* anchor jumps park the heading a little below the top edge */
#plan,
#listings,
#sources {
  scroll-margin-top: 28px;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  /* room so the last tab clears the edge fade at full scroll */
  padding-right: 36px;
  margin-bottom: 22px;
  /* no native scrollbar: the fade on the right edge is the scroll cue */
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  min-height: 42px;
  color: var(--text-soft);
  transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
}

.day-tab:hover {
  border-color: var(--lilac);
  color: var(--text);
}

.day-tab[aria-selected="true"] {
  background-image: linear-gradient(100deg, var(--lilac), var(--marigold));
  color: var(--text-on-accent);
  border-color: transparent;
}

.day-tab span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.event-card {
  --accent: var(--lilac);
  --accent-soft: var(--lilac-soft);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 62%),
    var(--surface-raised);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 0.9);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.event-card:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  transform: translateY(-4px);
  box-shadow:
    0 26px 50px -26px rgba(0, 0, 0, 0.95),
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.topic-arts {
  --accent: var(--lilac);
  --accent-soft: var(--lilac-soft);
}

.topic-games {
  --accent: var(--marigold);
  --accent-soft: var(--marigold-soft);
}

.topic-music {
  --accent: var(--ember);
  --accent-soft: var(--ember-soft);
}

.topic-outdoors {
  --accent: var(--river);
  --accent-soft: var(--river-soft);
}

.topic-learning {
  --accent: var(--river);
  --accent-soft: var(--river-soft);
}

.topic-food {
  --accent: var(--moss);
  --accent-soft: var(--moss-soft);
}

.topic-storytime {
  --accent: var(--marigold);
  --accent-soft: var(--marigold-soft);
}

.topic-community {
  --accent: var(--lilac);
  --accent-soft: var(--lilac-soft);
}

.card-band {
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
}

.card-body {
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-time {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.card-price.free {
  color: var(--river);
}

.card-price.unknown {
  color: var(--text-faint);
  font-weight: 500;
}

.card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 2px;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.card-tag {
  color: var(--accent);
}

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--rule-soft);
}

.card-links {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.card-links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
}

.card-checked {
  font-size: 0.74rem;
  color: var(--text-faint);
}

.card-add {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  align-self: start;
  min-height: 40px;
  transition: background-color 130ms ease, color 130ms ease;
}

.card-add:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.loading,
.listing-empty {
  color: var(--text-soft);
  padding: 26px 0;
}

/* ---------- sources ---------- */

.source-list {
  display: grid;
  border-top: 1px solid var(--rule);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) auto;
  gap: 10px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.source-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.source-meta {
  display: grid;
  gap: 3px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.source-meta a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
}

.status-pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.status-ok {
  background: var(--river-soft);
  border-color: color-mix(in srgb, var(--river) 45%, transparent);
  color: var(--river);
}

.status-stale {
  background: var(--marigold-soft);
  border-color: color-mix(in srgb, var(--marigold) 45%, transparent);
  color: var(--marigold);
}

.status-failing {
  background: var(--ember-soft);
  border-color: color-mix(in srgb, var(--ember) 45%, transparent);
  color: var(--ember);
}

.source-warning {
  color: var(--ember);
  font-size: 0.9rem;
}

.source-notes {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

.source-notes h3 {
  font-size: 1.16rem;
  letter-spacing: -0.025em;
  margin-top: 10px;
}

.source-notes p,
.source-notes li {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.source-notes ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.source-notes strong {
  font-family: var(--font-sans);
  color: var(--text);
}

/* ---------- footer + chrome ---------- */

.site-foot {
  width: var(--page);
  margin: 0 auto clamp(32px, 5vw, 56px);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3.2vw, 30px);
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.foot-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.foot-fix {
  background: none;
  border: 0;
  padding: 0;
  color: var(--marigold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.foot-fix:hover {
  color: var(--text);
}

.mobile-bar {
  display: none;
}

.swap-dialog,
.correction-dialog {
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  background: var(--surface-raised);
  color: var(--text);
  padding: 22px;
  width: min(560px, 92vw);
  max-height: 84vh;
  box-shadow: var(--shadow-hard);
}

.swap-dialog::backdrop,
.correction-dialog::backdrop {
  background: rgba(8, 6, 13, 0.72);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-head h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.dialog-close {
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--ember);
  color: var(--text-on-accent);
  border-color: var(--ember);
}

.dialog-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 8px 0 14px;
}

.correction-form {
  display: grid;
  gap: 14px;
}

.correction-status {
  font-size: 0.86rem;
  color: var(--marigold);
}

/* no message, no empty row above the buttons */
.correction-status:empty {
  display: none;
}

.swap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 54vh;
  overflow-y: auto;
}

.swap-option {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  background: var(--tint);
}

.swap-option.conflict {
  border-color: var(--ember);
  background: var(--ember-soft);
}

.swap-option h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.swap-option p {
  font-size: 0.87rem;
  color: var(--text-soft);
}

.swap-option .swap-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.swap-choose {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--marigold);
  color: var(--text-on-accent);
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  min-height: 38px;
}

.swap-choose:hover {
  background: var(--lilac);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: var(--text-on-accent);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-stage {
    max-width: 560px;
    padding-bottom: 30px;
  }

  .hero-aside {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 84px;
  }

  .masthead-rule {
    justify-content: flex-start;
    gap: 4px 14px;
  }

  .masthead-rule .dateline:last-child {
    flex-basis: 100%;
  }

  .mastnav {
    gap: 4px 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .hero {
    margin-top: 26px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero-stage {
    padding-bottom: 14px;
  }

  .shot-a {
    grid-column: 1 / 6;
  }

  .shot-b {
    grid-column: 3 / 6;
    margin-bottom: -26px;
  }

  .city-band {
    min-height: 62vw;
  }

  .city-band-img {
    object-position: center 62%;
  }

  .aside-stats {
    flex-basis: 100%;
  }

  .stop {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .source-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* inline links get a full tap target on phones */
  .card-links a,
  .source-meta a,
  .foot-fix {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .status-pill {
    justify-self: start;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--rule);
    z-index: 40;
    /* stays down until the hero button has scrolled away */
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
  }

  .mobile-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 200ms ease, visibility 0s linear 0s;
  }

  .mobile-bar .btn {
    width: 100%;
    text-align: center;
  }
}

@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;
  }
}
