/* Canada Stay Guide
   Palette: glacial and spruce, with one colour per time zone.
   Type: Fraunces (display) + Public Sans (text). */
:root {
  --spruce: #0f2e2a;
  --spruce-2: #0a221f;
  --milk: #eaf1ee;
  --paper: #f8fbf9;
  --ink: #14211e;
  --muted: #55665f;
  --line: #c9d7d1;
  --moraine: #2fa4b0;
  --larch: #d19a2e;

  --pacific: #4fc3ce;
  --pacific-ink: #17737d;
  --mountain: #e2ae4a;
  --mountain-ink: #8a5f0c;
  --eastern: #e46d7a;
  --eastern-ink: #a23242;

  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.15, 1);
  --display: "Fraunces", Georgia, serif;
  --text: "Public Sans", system-ui, sans-serif;
}

.zone-pacific { --z: var(--pacific); --z-ink: var(--pacific-ink); }
.zone-mountain { --z: var(--mountain); --z-ink: var(--mountain-ink); }
.zone-eastern { --z: var(--eastern); --z-ink: var(--eastern-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 48px); }
body.atlas {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.atlas::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--spruce);
  opacity: 0.07;
  -webkit-mask: url("topo.svg") center / cover no-repeat;
  mask: url("topo.svg") center / cover no-repeat;
}
img { max-width: 100%; display: block; }
a { color: var(--pacific-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce); text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 60;
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--moraine); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark path { fill: none; stroke: var(--moraine); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark circle { fill: var(--spruce); }
.brand:hover .brand-mark path { stroke-dasharray: 60; animation: brand-draw 0.9s var(--ease-out); }
@keyframes brand-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.brand-name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--moraine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-drawer { display: none; position: relative; }
.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer[open] summary { background: var(--spruce); color: white; border-color: var(--spruce); }

/* Reading trail under the header (stay guide only) */
.trail {
  position: relative;
  width: min(1192px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 6px;
  height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease-out), opacity 0.3s;
}
.trail.is-visible { height: 34px; opacity: 1; }
.trail-line { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); border-radius: 2px; }
.trail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--eastern-ink), var(--pacific-ink) 30%, var(--eastern-ink) 50%, var(--mountain-ink) 75%, var(--mountain-ink));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}
.trail-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  padding: 0 8px 0 0;
}
.trail-stop:last-of-type { padding: 0 0 0 8px; flex-direction: row-reverse; }
.trail-stop::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.trail-stop.is-passed { color: var(--ink); }
.trail-stop.is-passed::before { border-color: var(--z-ink); background: var(--z-ink); }
.trail-stop.is-current::before { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--z) 35%, transparent); }
.trail-stop.is-current { color: var(--z-ink); }

/* Entry notice on secondary pages */
.entry-note-inner { padding: 22px 0 0; }
.entry-kicker { margin: 0 0 2px; font-weight: 700; color: var(--spruce); font-size: 0.95rem; }
.entry-note p { margin: 0; max-width: 48rem; font-size: 0.93rem; color: var(--muted); }
.entry-note a { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(660px, calc(100svh - var(--header-h)));
  color: #f2f8f6;
  background: var(--spruce);
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: settle 9s var(--ease-out) both; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 34, 31, 0.5) 0%, rgba(10, 34, 31, 0.12) 30%, rgba(10, 34, 31, 0.55) 58%, var(--spruce) 92%),
    linear-gradient(90deg, rgba(10, 34, 31, 0.45), transparent 55%);
}
.hero-photo figcaption {
  position: absolute;
  top: 18px;
  right: 24px;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
@keyframes settle { from { transform: scale(1.12); filter: saturate(0.6); } to { transform: scale(1); filter: none; } }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 48px;
  align-items: end;
  align-self: end;
  padding-top: 11vh;
  padding-bottom: 28px;
}
.hero-title {
  font-size: clamp(3.2rem, 8.4vw, 7.6rem);
  font-weight: 380;
  font-variation-settings: "SOFT" 100;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: white;
  margin: 0 0 0.3em;
  text-wrap: initial;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0 0.04em 0.08em 0; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.hero-title .ln:nth-child(1) > span { animation-delay: 0.2s; }
.hero-title .ln:nth-child(2) > span { animation-delay: 0.34s; }
.hero-title .ln:nth-child(3) > span { animation-delay: 0.48s; font-style: italic; font-weight: 340; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
.lede { max-width: 34rem; font-size: 1.12rem; color: #d9e7e3; margin: 0; animation: fade 0.9s ease 0.9s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-note {
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d4e3df;
  background: rgba(10, 34, 31, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--moraine);
  border-radius: 2px 10px 10px 2px;
  animation: fade 0.9s ease 0.6s both;
}
.hero-note p { margin: 0; }
.hero-note .hero-note-title { font-weight: 700; color: white; margin-bottom: 4px; }
.hero-note a { color: var(--pacific); font-weight: 600; }
.hero-note a:hover { color: white; }

/* The transect: five places by longitude, three live clocks */
.transect { padding-bottom: 40px; }
.transect-caption { font-size: 0.82rem; color: #a9c2bb; margin: 0 0 6px; animation: fade 0.8s ease 1s both; }
.transect-map {
  position: relative;
  height: 128px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
  transform-origin: bottom;
  animation: band-in 0.9s var(--ease-out) both;
}
.band-pacific { background: color-mix(in srgb, var(--pacific) 20%, transparent); border-left: 0; animation-delay: 0.7s; }
.band-mountain { background: color-mix(in srgb, var(--mountain) 15%, transparent); animation-delay: 0.78s; }
.band-central { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px); animation-delay: 0.86s; }
.band-eastern { background: color-mix(in srgb, var(--eastern) 15%, transparent); animation-delay: 0.94s; }
@keyframes band-in { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
.transect-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  clip-path: inset(-10px 100% -10px 0);
  animation: draw 2s linear 1s forwards;
}
.transect-line path {
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
@keyframes draw { to { clip-path: inset(-10px 0 -10px 0); } }
.stop {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 0;
  height: 0;
  color: white;
  text-decoration: none;
}
.stop-dot {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--z);
  box-shadow: 0 0 0 3px var(--spruce), 0 0 0 4px rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: var(--d);
  transition: transform 0.3s var(--ease-out);
}
.stop-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--z);
  opacity: 0;
}
.stop-name {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
  line-height: 1;
  animation: fade 0.6s ease both;
  animation-delay: calc(var(--d) + 0.15s);
}
.stop.above .stop-name { bottom: 20px; }
.stop.below .stop-name { top: 20px; }
.stop.start .stop-name { left: -8px; transform: none; }
.stop.end .stop-name { left: auto; right: -8px; transform: none; }
.stop:hover, .stop:focus-visible { color: white; }
.stop:hover .stop-dot, .stop:focus-visible .stop-dot { transform: scale(1.3); }
.stop:hover .stop-dot::after, .stop:focus-visible .stop-dot::after { animation: ring 0.9s ease-out; }
.stop:hover .stop-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

.clocks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  animation: fade 0.9s ease 2.6s both;
}
.clocks li { padding-top: 10px; border-top: 2px solid var(--z); display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.clock-zone { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 600; color: var(--z); }
.clocks .clock {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 340;
  font-variant-numeric: tabular-nums lining-nums;
  color: white;
  letter-spacing: -0.02em;
}
.clock-places { font-size: 0.86rem; color: #b5ccc6; }

/* ---------- Place picker ---------- */
.route-label { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 72px 0 22px; }
.route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.plaque {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4.2;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--spruce);
}
.plaque::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  z-index: 2;
  background: var(--z);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.plaque::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 34, 31, 0.6) 55%, rgba(10, 34, 31, 0.95) 95%);
}
.plaque img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.plaque-body { display: grid; gap: 4px; padding: 16px; transition: transform 0.5s var(--ease-out); }
.plaque-meta { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.plaque-meta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--z); flex: 0 0 auto; }
.plaque strong { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 420; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; }
.plaque em { font-style: normal; font-size: 0.86rem; line-height: 1.45; color: #d7e5e1; }
.plaque:hover, .plaque:focus-visible { color: white; }
.plaque:hover img, .plaque:focus-visible img { transform: scale(1.07); }
.plaque:hover::before, .plaque:focus-visible::before { transform: scaleX(1); }
.plaque:hover .plaque-body, .plaque:focus-visible .plaque-body { transform: translateY(-4px); }

/* ---------- Place sections ---------- */
.place {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: start;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.route + .place { border-top: 0; }
.place figure { margin: 0; position: sticky; top: calc(var(--header-h) + 54px); overflow: hidden; }
.place img { width: 100%; height: min(560px, 70vh); object-fit: cover; border-radius: 14px; }
.place figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.place-flip figure { order: 2; }
.place .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--z-ink); }
.place .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--z); }
.place h2 { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 400; font-variation-settings: "SOFT" 100; letter-spacing: -0.04em; margin-bottom: 0.18em; }
.local-time {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 1.4em;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--z) 60%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--z) 10%, var(--paper));
}
.local-time .clock { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Reveal: the photograph unrolls from below when the place comes into view */
html.js .will-reveal img { clip-path: inset(100% 0 0 0 round 14px); transform: scale(1.12); transition: clip-path 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
html.js .will-reveal figcaption { opacity: 0; transition: opacity 0.6s ease 0.7s; }
html.js .will-reveal.is-in img { clip-path: inset(0 0 0 0 round 14px); transform: none; }
html.js .will-reveal.is-in figcaption { opacity: 1; }

/* Sample stays: luggage tags */
.stay {
  --notch: 16px;
  position: relative;
  display: flex;
  margin-top: 18px;
  background: var(--paper);
  border-radius: 4px 14px 14px 4px;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  box-shadow: inset 0 0 0 1px var(--line);
  transform-origin: 26px 50%;
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.3s;
}
.stay:hover { transform: rotate(-1.4deg) translateX(4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--z) 70%, var(--line)); }
.stay-hole {
  flex: 0 0 52px;
  position: relative;
  border-right: 2px dashed var(--line);
}
.stay-hole::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--milk);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 3px color-mix(in srgb, var(--z) 55%, white);
}
.stay-body { padding: 18px 22px 8px; }
.sample-flag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--z-ink);
  background: color-mix(in srgb, var(--z) 18%, white);
}
.stay h3 { margin-bottom: 0.35em; }
.stay-limit { color: var(--muted); font-size: 0.84rem; }

/* ---------- Travel notes ---------- */
.notes {
  padding: 88px 0 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.notes-intro { position: sticky; top: calc(var(--header-h) + 54px); align-self: start; }
.note-list { margin: 0; }
.note-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.note-list div:first-child { border-top: 0; padding-top: 4px; }
.note-list dt { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.015em; }
.note-list dd { margin: 0; }

/* ---------- Casino note ---------- */
.split-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin: 56px 0 96px;
  padding: 44px;
  background: var(--spruce);
  color: #dce9e5;
  border-radius: 18px;
}
.split-note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--larch);
  opacity: 0.22;
  -webkit-mask: url("topo.svg") right center / 140% auto no-repeat;
  mask: url("topo.svg") right center / 140% auto no-repeat;
}
.split-note .eyebrow { color: var(--mountain); }
.split-note h2 { max-width: 16ch; color: white; }
.split-note p { color: #c7dad4; max-width: 44rem; margin: 0; }
.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--mountain);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.text-link:hover { background: var(--mountain); color: var(--spruce); }

/* ---------- Prose pages ---------- */
.prose.wrap {
  width: min(800px, calc(100% - 48px));
  background: var(--paper);
  margin-top: 28px;
  margin-bottom: 72px;
  padding: 60px 64px 76px;
  border-radius: 20px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(15, 46, 42, 0.25);
}
.prose h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-variation-settings: "SOFT" 100; letter-spacing: -0.035em; animation: rise-soft 0.9s var(--ease-out) both; }
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.prose .eyebrow { color: var(--pacific-ink); }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0 0 0.6rem; }
.prose li::marker { color: var(--moraine); }
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.page-nav a:hover { background: var(--spruce); border-color: var(--spruce); color: white; }
.prose code { font-size: 0.88em; background: color-mix(in srgb, var(--moraine) 12%, white); padding: 1px 5px; border-radius: 4px; }
.contact-form { display: grid; gap: 16px; margin-top: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--moraine); box-shadow: 0 0 0 4px color-mix(in srgb, var(--moraine) 22%, transparent); }
.contact-form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: white;
  background: var(--spruce);
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}
.contact-form button:hover { background: var(--pacific-ink); }
.contact-form button:active { transform: scale(0.97); }
.form-result { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--mountain) 22%, white); border-left: 3px solid var(--larch); animation: rise-soft 0.5s var(--ease-out) both; }
.form-hint { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--spruce-2);
  color: #b9cdc7;
  padding: 72px 0 32px;
  font-size: 0.95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--moraine);
  opacity: 0.12;
  -webkit-mask: url("topo.svg") center / cover no-repeat;
  mask: url("topo.svg") center / cover no-repeat;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1.1fr; gap: 40px; }
.footer-mark {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 380;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 0.4em;
}
.site-footer a { color: #e3eeeb; text-decoration: none; }
.site-footer a:hover { color: var(--pacific); }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.credits ul { margin: 0; padding-left: 1rem; }
.footer-end {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #86a199;
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .route { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
  .plaque { flex: 0 0 220px; scroll-snap-align: start; }
}
@media (max-width: 980px) {
  :root { --header-h: 58px; }
  .nav-bar { display: none; }
  .nav-drawer { display: block; }
  .nav-drawer nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 50px -20px rgba(15, 46, 42, 0.35);
    transform-origin: top right;
    z-index: 10;
    animation: drawer 0.3s var(--ease-out);
  }
  .nav-drawer .nav-links { display: grid; gap: 0; }
  .nav-drawer .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-drawer .nav-links a::after { display: none; }
  .nav-drawer .nav-links a[aria-current="page"] { background: color-mix(in srgb, var(--moraine) 14%, white); }
  @keyframes drawer { from { opacity: 0; transform: scale(0.94) translateY(-6px); } to { opacity: 1; transform: none; } }

  .trail-stop span { display: none; }
  .trail-stop.is-current span { display: inline; }

  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 18vh; }
  .hero-note { max-width: 34rem; }
  .place, .place-flip { grid-template-columns: 1fr; gap: 22px; padding: 56px 0; }
  .place figure { position: static; }
  .place-flip figure { order: 0; }
  .place img { height: 300px; }
  .notes { grid-template-columns: 1fr; gap: 12px; padding-top: 56px; }
  .notes-intro { position: static; }
  .split-note { flex-direction: column; align-items: start; padding: 32px 24px; margin-bottom: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .prose.wrap { padding: 36px 24px 52px; border-radius: 16px; }
}
@media (max-width: 640px) {
  .wrap, .header-inner, .footer-end, .trail { width: calc(100% - 32px); }
  .prose.wrap { width: calc(100% - 20px); }
  .hero { min-height: max(620px, calc(100svh - var(--header-h))); }
  .hero-photo figcaption { right: 16px; left: 16px; text-align: right; }
  .transect-map { height: 112px; }
  .stop-name { font-size: 0.98rem; }
  .stop.lower .stop-name { top: 38px; }
  .clocks { gap: 10px; }
  .clocks li { grid-template-columns: 1fr; }
  .clock-places { font-size: 0.76rem; line-height: 1.35; }
  .note-list div { grid-template-columns: 1fr; gap: 6px; }
  .stay-hole { flex-basis: 40px; }
  .stay-body { padding: 16px 16px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .transect-line { clip-path: none; }
  .stay:hover, .plaque:hover img, .plaque:hover .plaque-body { transform: none; }
}
