:root {
  color-scheme: light;
  --ink: #15191c;
  --paper: #f2f3ef;
  --surface: #fff;
  --signal: #f2c230;
  --pine: #1e5f4f;
  --muted: #5e686c;
  --line: #d9dcd4;
  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* top bar: brand, search, mode switch, filters */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding: .7rem var(--gutter) 0; background: var(--ink); color: #fff;
}
.topbar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; }
.topbar-end { grid-column: 3; display: flex; align-items: center; gap: .75rem; }
.account { display: flex; align-items: center; gap: .5rem; margin: 0; }
.account-name { font-weight: 600; font-size: .95rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* as tall as .modes: its padding plus a pill's, minus the border */
.account-link { padding: calc(.6rem - 1.5px) .9rem; border: 1.5px solid #ffffff66; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.account-link:hover { border-color: #fff; }
.modes { display: flex; gap: .25rem; padding: .25rem; background: #ffffff1a; border-radius: 999px; white-space: nowrap; }
.modes a, .modes .soon { padding: .35rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.modes a[aria-current="page"] { background: var(--signal); color: var(--ink); }
.modes .soon { color: #ffffff99; cursor: not-allowed; }
.modes small { font-weight: 500; opacity: .8; }

.search { display: flex; width: 100%; max-width: 42rem; margin-inline: auto; padding: .2rem; background: var(--surface); border-radius: 999px; color: var(--ink); }
.search:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.field { flex: 1; display: flex; min-width: 0; }
.field input { width: 100%; border: 0; background: transparent; padding: .5rem 1rem; font: inherit; color: var(--ink); }
.field input:focus-visible { outline: none; }
.go { border: 0; border-radius: 999px; padding: .5rem 1.4rem; cursor: pointer; background: var(--signal); color: var(--ink); font: inherit; font-weight: 700; }
.go:hover { background: #ffd24d; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 0 .85rem; }
.chip, .filters summary {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none;
  padding: .3rem .9rem; border: 1.5px solid #ffffff55; border-radius: 999px;
  background: transparent; color: #fff; font-weight: 600; font-size: .9rem; user-select: none;
}
.chip:hover, .filters summary:hover { border-color: #fff; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.filters details[open] summary { background: #fff; color: var(--ink); border-color: #fff; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle:has(input:checked) { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.toggle:has(input:focus-visible), .filters summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.filters details { position: relative; }
.panel {
  position: absolute; z-index: 5; top: calc(100% + .4rem); left: 0; min-width: 13rem;
  display: grid; gap: .1rem; padding: .5rem; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 28px #15191c55;
}
.panel label { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; }
.panel label:hover { background: var(--paper); }
.panel input { accent-color: var(--pine); width: 1.05rem; height: 1.05rem; }

/* the one memorable thing: a dashed centre line under the bar */
.centerline {
  height: 5px; margin-inline: calc(-1 * var(--gutter));
  background: repeating-linear-gradient(90deg, var(--signal) 0 36px, transparent 36px 64px);
}

main { max-width: 72rem; margin: 0 auto; padding: 1.75rem var(--gutter) 4rem; }

/* results: a vertical feed, one wide horizontal card per route */
.feed { width: 75vw; max-width: 100%; margin-inline: auto; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.results h2 { margin: 0; font-size: 1.6rem; font-stretch: 108%; letter-spacing: -.02em; }
.empty { margin: 0 0 1.5rem; padding: 1.25rem; border: 1.5px dashed var(--ink); border-radius: var(--radius); }
.note { margin: 0; color: var(--muted); font-size: .95rem; }
.more { margin: 1.5rem 0 0; text-align: center; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.route-card {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.route-card:hover { box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); transition: transform .12s, box-shadow .12s; }

.media { display: grid; grid-template-columns: minmax(0, 1fr); border-right: 1.5px solid var(--ink); }
.media figure { margin: 0; }
.map {
  position: relative; display: flex; flex-direction: column; min-height: 14rem; color: var(--pine);
  background:
    repeating-linear-gradient(0deg, #15191c0d 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #15191c0d 0 1px, transparent 1px 28px),
    #e6e9e1;
}
.trace, .map-view { isolation: isolate; } /* keep Leaflet panes under the sticky header */
.trace { flex: 1 1 auto; width: 100%; min-height: 15rem; } /* fills the card, however tall the text */

.info { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.info h3 { margin: 0; font-size: 1.35rem; font-stretch: 108%; line-height: 1.2; letter-spacing: -.01em; }
.info h3 a { color: inherit; text-decoration: none; }
.info h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.description { margin: -.4rem 0 0; color: var(--muted); font-size: .95rem; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .25rem 0 0; }
.stats dt { font-size: .85rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; font-size: 1.15rem; }

@media (max-width: 48rem) {
  /* the feed runs edge to edge; everything else keeps the gutter */
  .feed { width: auto; max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .results-head, .empty, .feed-notice, .more { margin-inline: var(--gutter); }
  .route-card { border-radius: 0; border-inline: 0; }
  .map { min-height: 10rem; }
  .trace { min-height: 10rem; }
  .info { padding: .8rem .9rem 1rem; gap: .5rem; }
  .info h3 { font-size: 1.05rem; }
  .stats dd { font-size: 1rem; }
  /* brand and account on the first row, search on its own row */
  .topbar-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: .6rem; }
  .search { grid-column: 1 / -1; order: 3; max-width: none; }
  .topbar-end { grid-column: 2; gap: .5rem; }
  /* a rider's four modes don't fit beside the brand: they get a row of their own */
  .topbar-end:has(.account) { display: contents; }
  .topbar-end:has(.account) .account { grid-column: 2; grid-row: 1; }
  .topbar-end:has(.account) .modes { grid-column: 1 / -1; grid-row: 2; }
  .topbar-end:has(.account) .modes a { flex: 1; padding-inline: .5rem; text-align: center; }
  .account-name { display: none; }
  /* the last filter opens leftwards so its panel stays on screen */
  .filters details:last-of-type .panel { left: auto; right: 0; }
}
@media (max-width: 32rem) {
  /* on phones the card stacks: map above, text below */
  .route-card { grid-template-columns: minmax(0, 1fr); }
  .media { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .info h3 { font-size: 1.2rem; }
}
@media (max-width: 30rem) {
  .nav-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .route-card:hover { transform: none; transition: none; }
}

/* route detail */
.detail { max-width: 64rem; margin-inline: auto; }
.detail h1 { margin: .5rem 0 0; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; font-weight: 850; font-stretch: 118%; letter-spacing: -.03em; }
.detail h2 { margin: 2rem 0 .6rem; font-size: 1.2rem; font-stretch: 108%; }
.detail .description { margin: .25rem 0 1.25rem; }
.back { display: inline-block; font-weight: 600; color: var(--pine); }
.map-wrap { position: relative; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.map-view { height: clamp(22rem, 62vh, 40rem); background: #e6e9e1; }
.map-error { display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); }
.stats.big { margin-top: 1.25rem; gap: .5rem 2.5rem; }
.stats.big dd { font-size: 1.6rem; }
.leaflet-container .leaflet-control-attribution { font-size: .65rem; }

/* draw a route */
main:has(.draw) { max-width: none; padding-block: 1rem; }
.draw { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 1.5rem; align-items: start; }
.draw-map-wrap { position: relative; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.draw-map { isolation: isolate; height: calc(100vh - 8rem); min-height: 26rem; background: #e6e9e1; cursor: crosshair; }
.draw-hint { position: absolute; z-index: 500; left: .75rem; bottom: .75rem; margin: 0; padding: .35rem .8rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; pointer-events: none; }
.draw-pt { display: block; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); cursor: grab; }
.draw-pt-mid { transform: scale(.65); background: var(--pine); border-color: #fff; }
.draw-pt-start { background: var(--signal); }
.draw-pt-end { background: var(--ink); border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.draw-form { display: grid; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.draw-form h1 { margin: 0; font-size: 1.6rem; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.draw-stats { margin: 0; gap: .5rem 2rem; }
.draw-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 1rem; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--paper); }
.btn:disabled, .go:disabled { opacity: .45; cursor: not-allowed; }
.draw-field { display: grid; gap: .3rem; font-weight: 600; }
.draw-field small { font-weight: 500; color: var(--muted); }
.draw-field input, .draw-field textarea { width: 100%; padding: .55rem .75rem; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.draw-field textarea { resize: vertical; }
.draw-submit { justify-self: start; padding-inline: 1.6rem; }
.draw-form .note { font-size: .88rem; }
.form-errors { padding: .75rem 1rem; border: 1.5px solid #b3261e; border-radius: 10px; background: #fdecea; color: #6b140f; }
.form-errors p { margin: 0; font-weight: 700; }
.form-errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.notice { margin: 0; padding: .75rem 1rem; border: 1.5px solid var(--pine); border-radius: 10px; background: #e3efe9; color: var(--pine); font-weight: 600; }
.notice a { color: inherit; }
@media (max-width: 60rem) {
  .draw { grid-template-columns: minmax(0, 1fr); }
  .draw-map { height: clamp(20rem, 55vh, 32rem); }
}
.draw-search { position: absolute; z-index: 500; top: .75rem; left: .75rem; right: 4rem; max-width: 26rem; display: flex; padding: .2rem; background: var(--surface); border-radius: 999px; box-shadow: 0 4px 14px #15191c40; flex-wrap: wrap; }
.draw-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .45rem 1rem; font: inherit; color: var(--ink); }
.draw-search input:focus-visible { outline: none; }
.draw-search:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.draw-results { flex-basis: 100%; list-style: none; margin: .3rem 0 0; padding: .3rem; border-top: 1px solid var(--line); max-height: 14rem; overflow-y: auto; }
.draw-results button { display: block; width: 100%; padding: .5rem .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.draw-results button:hover { background: var(--paper); }
.draw-result-note { padding: .5rem .7rem; color: var(--muted); font-size: .9rem; }
.draw-snap { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.draw-snap input { width: 1.1rem; height: 1.1rem; accent-color: var(--pine); }
.draw-status { color: #b3412b; font-weight: 600; }

/* login, signup */
.auth { display: grid; place-items: start center; }
.auth-form { display: grid; gap: 1rem; width: 100%; max-width: 26rem; padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.auth-form h1 { margin: 0; font-size: 1.6rem; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.auth-form p { margin: 0; }
/* the two buttons of the form share one height */
.auth-submit, .auth-google { justify-self: stretch; display: grid; place-items: center; height: 2.6rem; padding-block: 0; }
.auth-or { text-align: center; color: var(--muted); font-size: .9rem; }
.auth-google { text-decoration: none; font-size: 1rem; font-weight: 700; }
.notice.mock { border-style: dashed; }

/* the rider's own routes */
.route-actions { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.route-actions .btn, .more .go, .draw-tools .btn { text-decoration: none; }
.more .go { display: inline-block; }
.feed-notice { margin-bottom: 1.5rem; }
.detail .route-actions { margin-top: .75rem; }
.export .route-actions { margin-top: 0; }
.export .note { margin-top: .6rem; }
.go.danger { background: #b3261e; color: #fff; }
.go.danger:hover { background: #8f1d17; }

/* landing: the dark bar runs on into a hero with a winding road */
main:has(.landing) { max-width: none; padding: 0 0 4rem; }
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 0; background: var(--ink); color: #fff; }
.hero-text { max-width: 72rem; margin-inline: auto; }
.hero h1 { max-width: 14ch; margin: 0; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .95; font-weight: 850; font-stretch: 125%; letter-spacing: -.035em; }
.lede { max-width: 40rem; margin: 1.25rem 0 1.75rem; color: #ffffffcc; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-search { margin-inline: 0; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.1rem 0 0; }
.hero-link { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-link:hover { color: var(--signal); }
.hero-road { display: block; width: calc(100% + 2 * var(--gutter)); height: clamp(5rem, 14vw, 11rem); margin: 1.5rem calc(-1 * var(--gutter)) 0; }
.hero-road path { fill: none; }
.road { stroke: #2e3539; stroke-width: 34; }
/* the same 36/28 dash as the bar's centre line, here in path units */
.road-line { stroke: var(--signal); stroke-width: 4; stroke-dasharray: 18 14; animation: road-in 1.6s ease-out both; }
@keyframes road-in { from { stroke-dashoffset: 1000; opacity: 0; } 30% { opacity: 1; } to { stroke-dashoffset: 0; } }

.how, .coming, .landing .results { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; padding-block: 2.75rem 3.25rem; }
.how div { border-top: 1.5px solid var(--ink); padding-top: .9rem; }
.how h3 { margin: 0 0 .35rem; font-size: 1.35rem; font-stretch: 112%; letter-spacing: -.01em; }
.how p { margin: 0; color: var(--muted); }
.results-head .back { margin-left: auto; }
.coming { margin-top: 3rem; }
.coming h2 { margin: 0 0 .3rem; font-size: 1.2rem; font-stretch: 108%; }
.coming p { max-width: 44rem; margin: 0; }
.coming { padding-block: 1.25rem; border: 1.5px dashed var(--ink); border-radius: var(--radius); }
@media (max-width: 72rem) { .coming { margin-inline: var(--gutter); } }
@media (max-width: 48rem) {
  .how { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .road-line { animation: none; }
}

/* likes and bookmarks */
.reactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.detail .reactions { margin-block: .9rem 1.25rem; }
.reactions form { margin: 0; }
.react { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.25rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 .9rem; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; }
.react:hover { background: var(--paper); }
.react svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.react.like[aria-pressed="true"] svg { fill: #b3261e; stroke: #b3261e; }
.react.save[aria-pressed="true"] { background: var(--signal); }
.react.save[aria-pressed="true"] svg { fill: currentColor; }
.react.htmx-request { opacity: .6; }

/* «Scopri la tua regione»: a tour of Italy in twenty stops. Dark heroes with
   the landing's road, chapters of tiles, and places as stops along a road. */
main:has(.journey) { max-width: none; padding: 0 0 4rem; }
.kicker { margin: 0 0 .6rem; color: var(--pine); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero .kicker, .tour .kicker { color: var(--signal); }
.hero .kicker a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tile-n { font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; }

/* home: the tour as a dark band of numbered stops */
.tour { margin-block: 0 3rem; padding: 2.75rem 0 2.25rem; background: var(--ink); color: #fff; }
.tour-inner { max-width: 72rem; margin-inline: auto; }
.tour-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-inline: var(--gutter); margin-bottom: 1.5rem; }
.tour-head h2 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; font-weight: 850; font-stretch: 120%; letter-spacing: -.03em; }
.tour-head p { max-width: 38rem; margin: .8rem 0 0; color: #ffffffcc; }
.tour-strip, .stops {
  list-style: none; margin: 0; padding: .25rem var(--gutter) 1.25rem;
  display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
}
.tour-strip { grid-auto-columns: 13.5rem; gap: .75rem; scrollbar-color: var(--signal) transparent; }
.tour-strip li { scroll-snap-align: start; }
.tour-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; min-height: 11rem; padding: 1rem 1.1rem 1.1rem; border: 1.5px solid #ffffff33; border-radius: var(--radius); background: #1f2528; text-decoration: none; }
.tour-card:hover { border-color: var(--signal); }
.tour-card .tile-n { font-size: 2.4rem; color: var(--signal); }
.tour-part { margin-top: auto; color: #ffffff99; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tour-card strong { font-size: 1.15rem; font-stretch: 110%; line-height: 1.15; }
.tour-tagline { color: #ffffffcc; font-size: .9rem; line-height: 1.35; }

/* region and tour pages: the hero is the landing's, a little shorter */
.region-hero h1 { max-width: none; overflow-wrap: anywhere; }
.tagline { margin: .7rem 0 0; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; font-stretch: 112%; line-height: 1.15; color: var(--signal); }
.region-hero .lede { margin-top: 1rem; }

/* the tour: chapters (Nord, Centro, ...) of region tiles */
.chapter { max-width: 72rem; margin: 3rem auto 0; padding-inline: var(--gutter); }
.chapter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.5rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.chapter-n { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--signal); border: 1.5px solid var(--ink); font-size: 1.5rem; font-weight: 850; font-stretch: 125%; }
.chapter-head .kicker { margin-bottom: .2rem; }
.chapter-head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.05; font-weight: 850; font-stretch: 118%; letter-spacing: -.025em; }
.chapter-head p:last-child { max-width: 40rem; margin: .5rem 0 0; color: var(--muted); }
.region-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.region-tile { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem 1.2rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none; }
.region-tile:hover { box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); transition: transform .12s, box-shadow .12s; }
.region-tile .tile-n { font-size: 2.2rem; color: var(--pine); }
.region-tile h3 { margin: .3rem 0 0; font-size: 1.3rem; font-stretch: 110%; line-height: 1.15; letter-spacing: -.01em; }
.tile-tagline { margin: 0; color: var(--muted); font-size: .95rem; }
.tile-places { list-style: none; margin: .5rem 0 0; padding: .6rem 0 0; border-top: 1.5px dashed var(--line); display: grid; gap: .15rem; font-size: .88rem; font-weight: 600; }
.tile-places li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--signal); border: 1.5px solid var(--ink); vertical-align: .05rem; }
.tile-go { margin-top: auto; padding-top: .7rem; color: var(--pine); font-weight: 700; font-size: .9rem; }
.tile-go::after { content: " →"; }

/* a region: its places as stops along a road that runs through the cards */
.trip { max-width: 72rem; margin: 2.75rem auto 0; }
.trip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-inline: var(--gutter); margin-bottom: 1rem; }
.trip-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 850; font-stretch: 118%; letter-spacing: -.025em; }
.stops { grid-auto-columns: minmax(16rem, 21rem); gap: 0; scrollbar-color: var(--ink) transparent; }
.stop { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; padding: 3.4rem .5rem 0; }
/* the road: dark asphalt with the dashed centre line, unbroken from stop to stop */
.stop::before { content: ""; position: absolute; left: 0; right: 0; top: 1.15rem; height: 18px; background: repeating-linear-gradient(90deg, var(--signal) 0 18px, transparent 18px 32px) 0 50% / 100% 3px no-repeat, #2e3539; }
.stop:first-child::before { left: 1.25rem; border-radius: 9px 0 0 9px; }
.stop:last-child::before { right: auto; width: 2.5rem; border-radius: 0 9px 9px 0; }
.stop-pin { position: absolute; z-index: 1; top: .35rem; left: 1.25rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); font-weight: 850; font-stretch: 120%; font-size: 1.1rem; }
.stop-pin::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: .65rem; background: var(--ink); }
.stop-card { flex: 1; display: flex; flex-direction: column; gap: .45rem; min-height: 12rem; padding: 1.15rem 1.2rem 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.stop-label { margin: 0; color: var(--pine); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stop-card h3 { margin: 0; font-size: 1.4rem; font-stretch: 112%; line-height: 1.1; letter-spacing: -.015em; }
.stop-card p:not(.stop-label) { margin: 0; color: var(--muted); }
.stop.suggested .stop-pin { background: var(--surface); }
.stop.suggested .stop-card { border-style: dashed; }
.stop-add .stop-pin { background: var(--ink); color: var(--signal); }
.stop-add .stop-card { background: transparent; border-style: dashed; }
.stop-add .stop-card:hover { background: var(--signal); }
.stop-add .stop-card:hover p { color: var(--ink); }

/* add a stop: the story on the left, the form on the right */
.add-stop { max-width: 72rem; margin: 3rem auto 0; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem 3rem; align-items: start; }
.add-stop h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.05; font-weight: 850; font-stretch: 118%; letter-spacing: -.025em; }
.add-stop-text p:not(.kicker) { max-width: 36rem; margin: .8rem 0 0; }
.add-stop-form { display: grid; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.add-stop-form p { margin: 0; }
.suggest-form { display: grid; gap: 1rem; }

/* the tour goes on: the stop before and the one after */
.onward { max-width: 72rem; margin: 3rem auto 0; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.onward-link { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.onward-link.next { background: var(--ink); color: #fff; text-align: right; }
.onward-link:hover { box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); transition: transform .12s, box-shadow .12s; }
.onward-link.next:hover { box-shadow: 0 5px 0 var(--signal); }
.onward-dir { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); }
.onward-link.next .onward-dir { color: var(--signal); }
.onward-link strong { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 850; font-stretch: 118%; line-height: 1.1; letter-spacing: -.02em; }
.onward-link span:last-child { color: var(--muted); font-size: .95rem; }
.onward-link.next span:last-child { color: #ffffffcc; }
.journey .coming { margin-top: 3rem; }
.journey .coming a { font-weight: 700; color: var(--pine); }

@media (max-width: 48rem) {
  .add-stop { grid-template-columns: minmax(0, 1fr); }
  .onward { grid-template-columns: minmax(0, 1fr); }
  .stops { grid-auto-columns: 82%; }
  .tour-strip { grid-auto-columns: 11.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .region-tile:hover, .onward-link:hover { transform: none; transition: none; }
}
