/* Longlight — tokens are documented in DESIGN.md with their contrast ratios. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --ground: #07090C;
  --ground-2: #0E1218;
  --ground-3: #161B22;
  --bone: #ECE6DA;
  --mute: #B9B2A4;
  --dim: #8E887C;
  --ember: #E2874F;
  --line: rgba(236, 230, 218, .14);
  --line-soft: rgba(236, 230, 218, .08);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --d1: clamp(2.8rem, 7.2vw, 7rem);
  --d2: clamp(2rem, 4.2vw, 3.6rem);
  --d3: clamp(1.5rem, 2.4vw, 2.1rem);
  --label: .6875rem;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1360px;
  --measure: 40em;
  --sec: clamp(5rem, 12vw, 11rem);
  --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--bone);
  font: 400 17px/1.6 var(--sans); font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (max-width: 760px) { body { font-size: 16px; } }
img, picture, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--ground); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: var(--gutter); z-index: 100; padding: .75rem 1rem; background: var(--bone); color: var(--ground); font-family: var(--sans); font-size: .875rem; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.display-1, .display-2, .display-3, .serif {
  font-family: var(--serif); font-weight: 340; font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0;
  letter-spacing: -.01em; text-wrap: balance;
}
.display-1 { font-size: var(--d1); line-height: .98; letter-spacing: -.02em; }
.display-2 { font-size: var(--d2); line-height: 1.04; }
.display-3 { font-size: var(--d3); line-height: 1.12; font-variation-settings: 'opsz' 48, 'SOFT' 40, 'WONK' 0; }
.label { font-family: var(--sans); font-size: var(--label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.label--bone { color: var(--bone); }
.label--ember { color: var(--ember); }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--bone); max-width: 30em; text-wrap: pretty; }
.prose { max-width: var(--measure); color: var(--mute); text-wrap: pretty; }
.prose p + p { margin-top: 1.25em; }
.prose strong { color: var(--bone); font-weight: 500; }
.prose a, .link { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .3s; }
.prose a:hover, .link:hover { text-decoration-color: var(--bone); }
.quote { font-family: var(--serif); font-style: italic; font-weight: 320; font-variation-settings: 'opsz' 96, 'SOFT' 60; font-size: var(--d3); line-height: 1.25; color: var(--bone); max-width: 24em; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .55); }
.section + .section { padding-top: 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.head--right { justify-content: flex-end; text-align: right; }
.head .label { display: block; margin-bottom: var(--s-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px; }
.nav::before, .nav::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
/* over a hero top: a soft fade only */
.nav::before { inset: 0; background: linear-gradient(var(--ground), transparent); opacity: .85; }
/* once scrolled (data-solid, set in site.js): ground stays opaque through the link row and fades only below it */
.nav::after { inset: 0 0 -44px 0; background: linear-gradient(var(--ground) 0%, var(--ground) 56%, rgba(7, 9, 12, .55) 78%, transparent 100%); opacity: 0; transition: opacity .35s var(--ease); }
.nav[data-solid]::after { opacity: 1; }
.nav-inner { position: relative; height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav-side { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav-side--r { justify-content: flex-end; }
.nav-side a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: var(--label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-decoration: none; transition: color .3s; }
.nav-side a:hover, .nav-side a[aria-current="page"] { color: var(--bone); }
.nav-side a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 6px; }
.mark { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding-inline: .5rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: .02em; font-variation-settings: 'opsz' 24, 'SOFT' 20; view-transition-name: mark; }
.mark svg { width: 18px; height: 18px; color: var(--ember); }
.nav-toggle { display: none; position: absolute; right: 0; top: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--bone); position: relative; transition: transform .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: var(--bone); transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.menu { display: none; position: fixed; inset: 0; z-index: 40; background: var(--ground); padding: 96px var(--gutter) var(--s-6); flex-direction: column; justify-content: space-between; }
.menu[data-open] { display: flex; }
.menu ul { display: grid; gap: .25rem; }
.menu a { display: block; padding: .35rem 0; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 340; font-variation-settings: 'opsz' 96, 'SOFT' 40; text-decoration: none; line-height: 1.1; }
.menu a[aria-current="page"] { color: var(--ember); }
.menu .label { display: block; }
@media (max-width: 760px) {
  .nav-side { display: none; }
  .nav-inner { grid-template-columns: 1fr; justify-items: center; }
  .nav-toggle { display: flex; }
}
body[data-menu-open] { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 480px; height: 72svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero--full { height: 100svh; min-height: 560px; }
.hero-media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero-media picture, .card-media picture, .route figure picture, .jlist figure picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, var(--ground) 0%, rgba(7, 9, 12, .86) 18%, rgba(7, 9, 12, .82) 42%, rgba(7, 9, 12, .28) 72%, rgba(7, 9, 12, .35) 100%); }
.hero-body { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero--center .hero-body { text-align: center; display: grid; justify-items: center; }
.hero .label { display: block; margin-bottom: var(--s-3); }
.hero h1 { max-width: 12ch; }
.hero--center h1 { max-width: 16ch; }
.hero-sub { margin-top: var(--s-4); max-width: 34em; color: var(--mute); font-size: 1.0625rem; text-wrap: pretty; }
.hero--center .hero-sub { margin-inline: auto; }
.hero-meta { margin-top: var(--s-4); display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero--center .hero-meta { justify-content: center; }
.hero-cue { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); opacity: .6; }
.hero-film { position: absolute; right: var(--gutter); bottom: 1.25rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.5rem; border: 1px solid var(--bone); color: var(--bone); font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color .3s, color .3s, background .3s; }
.btn:hover { border-color: var(--ember); color: var(--ember); }
.btn--ember { background: var(--ember); border-color: var(--ember); color: var(--ground); }
.btn--ember:hover { background: var(--bone); border-color: var(--bone); color: var(--ground); }
.btn svg { width: 16px; height: 16px; }
.arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--sans); font-size: var(--label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--bone); }
.arrow svg { width: 18px; height: 18px; color: var(--ember); transition: transform .3s var(--ease); }
.arrow:hover svg { transform: translateX(4px); }

/* ---------- relief ---------- */
.relief { position: relative; min-height: 88svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.relief-canvas { position: absolute; inset: 0; z-index: -1; }
.relief-canvas canvas { width: 100%; height: 100%; }
.relief-text { padding-block: var(--sec); max-width: 36em; }
.relief-text .label { display: block; margin-bottom: var(--s-3); }
.relief-text .display-2 { max-width: 14ch; }
.relief-text .prose { margin-top: var(--s-4); }
.relief-fade { position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--ground)); pointer-events: none; }
.relief-fade--top { inset: 0 0 auto 0; background: linear-gradient(var(--ground), transparent); }
.relief-fade--left { inset: 0 auto 0 0; height: auto; width: 62%; background: linear-gradient(to right, rgba(7, 9, 12, .92) 0%, rgba(7, 9, 12, .7) 45%, transparent 100%); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
.cards--offset > :nth-child(2) { transform: translateY(clamp(1.5rem, 5vw, 5rem)); }
.card { position: relative; display: block; text-decoration: none; aspect-ratio: 3 / 4; overflow: hidden; transform-style: preserve-3d; --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); background: var(--ground-2); }
.card-media { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-band { position: absolute; inset: auto 0 0 0; padding: clamp(1rem, 2.5vw, 1.75rem); padding-top: 5rem; background: linear-gradient(to top, rgba(7, 9, 12, .9) 0%, rgba(7, 9, 12, .86) 55%, transparent 100%); transform: translateZ(12px); }
.card-band .serif { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.05; font-variation-settings: 'opsz' 48, 'SOFT' 40; }
.card-band .label { display: block; margin-top: .5rem; color: var(--mute); }
.card-band .fact { display: block; margin-top: .9rem; font-size: .8125rem; color: var(--dim); }
.card-band .fact b { color: var(--ember); font-weight: 500; }
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :nth-child(3) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .cards--offset > :nth-child(2) { transform: none; }
}
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } .cards > :nth-child(3) { aspect-ratio: 3 / 4; } }

/* ---------- split / facts ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.split .display-2 { max-width: 12ch; }
.split .display-2 + .prose, .split .display-2 + .list, .split .display-2 + .cta { margin-top: var(--s-4); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); margin-top: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.facts dt { font-family: var(--sans); font-size: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.facts dd { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 340; font-variation-settings: 'opsz' 48, 'SOFT' 40; line-height: 1.1; }
.facts dd small { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .8125rem; color: var(--mute); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- journal ---------- */
.jgrid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.jgrid > :nth-child(2) { margin-top: clamp(2rem, 10vw, 10rem); }
.entry { display: block; text-decoration: none; }
.entry figure { overflow: hidden; background: var(--ground-2); }
.entry img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.entry:hover img { transform: scale(1.03); }
.entry .meta { display: flex; gap: 1rem; margin-top: var(--s-3); }
.entry h3, .entry .serif { margin-top: .5rem; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; }
.entry p { margin-top: .75rem; color: var(--mute); max-width: 32em; text-wrap: pretty; }
@media (max-width: 760px) { .jgrid { grid-template-columns: 1fr; } .jgrid > :nth-child(2) { margin-top: 0; } }
.jlist { display: grid; gap: var(--sec); }
.jlist .entry { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.jlist .entry:nth-child(even) figure { order: 2; }
.jlist .entry:nth-child(even) > div { padding-left: clamp(0rem, 6vw, 6rem); }
.jlist .entry:nth-child(odd) > div { padding-right: clamp(0rem, 6vw, 6rem); }
.jlist .entry .serif { font-size: var(--d3); }
.jlist .entry .meta { margin-top: 0; margin-bottom: var(--s-3); }
.jlist .entry p { margin-top: var(--s-3); max-width: 36em; }
@media (max-width: 760px) { .jlist .entry { grid-template-columns: 1fr; } .jlist .entry:nth-child(even) figure { order: 0; } .jlist .entry > div { padding: 0 !important; } }

/* ---------- route rows ---------- */
.routes { display: grid; gap: clamp(3rem, 8vw, 8rem); }
.route { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 5rem); align-items: center; text-decoration: none; }
.route:nth-child(even) { grid-template-columns: 5fr 7fr; }
.route:nth-child(even) figure { order: 2; }
.route figure { overflow: hidden; background: var(--ground-2); aspect-ratio: 3 / 2; }
.route img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.route:hover img { transform: scale(1.03); }
.route-body .label { display: block; }
.route-body .serif { margin-top: .5rem; font-size: var(--d2); line-height: 1.02; }
.route-body p { margin-top: var(--s-3); color: var(--mute); max-width: 30em; text-wrap: pretty; }
.route-facts { display: flex; gap: var(--s-4); margin-top: var(--s-4); flex-wrap: wrap; }
.route-facts div { display: grid; gap: .2rem; }
.route-facts b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; font-variation-settings: 'opsz' 48; }
.route .arrow { margin-top: var(--s-4); }
.route--flag .route-body .serif { color: var(--bone); }
.route--flag .label--ember { color: var(--ember); }
@media (max-width: 760px) { .route, .route:nth-child(even) { grid-template-columns: 1fr; } .route:nth-child(even) figure { order: 0; } }

/* ---------- pinned route relief (expedition) ---------- */
.pin { position: relative; }
.pin-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.pin-stage .relief-canvas { inset: 0; }
.pin-track { height: 380svh; }
.readout { position: absolute; left: var(--gutter); bottom: clamp(2rem, 8vh, 5rem); display: grid; gap: .5rem; max-width: min(92vw, 34rem); }
.readout .label { display: block; }
.readout .serif { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.02; }
.readout-alt { display: flex; align-items: baseline; gap: .6rem; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; font-variation-settings: 'opsz' 144, 'SOFT' 40; color: var(--ember); font-variant-numeric: tabular-nums; }
.readout-alt small { font-family: var(--sans); font-size: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.readout-bar { height: 1px; background: var(--line); position: relative; margin-top: .5rem; }
.readout-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ember); }
.pin-hint { position: absolute; right: var(--gutter); bottom: clamp(2rem, 8vh, 5rem); text-align: right; }
.pin-top { position: absolute; left: var(--gutter); top: 88px; max-width: 30em; }

/* ---------- itinerary ---------- */
.legs { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.leg { display: grid; grid-template-columns: 2fr 5fr 5fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.leg:not(:has(figure)) { grid-template-columns: 2fr 10fr; }
.leg .label { display: block; }
.leg .serif { font-size: var(--d3); margin-top: .35rem; }
.leg .prose { margin-top: 0; }
.leg figure { overflow: hidden; background: var(--ground-2); }
.leg figure img { width: 100%; height: auto; }
.leg figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--dim); }
.days { display: grid; gap: .6rem; margin-top: var(--s-3); }
.days li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; color: var(--mute); }
.days li span:first-child { font-family: var(--sans); font-size: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: .25rem; }
.days li .num { color: var(--bone); white-space: nowrap; }
@media (max-width: 900px) { .leg { grid-template-columns: 1fr 1fr; } .leg figure { grid-column: 1 / -1; } }
@media (max-width: 600px) { .leg { grid-template-columns: 1fr; } }

/* ---------- misc lists ---------- */
.list { display: grid; gap: var(--s-3); max-width: var(--measure); }
.list li { position: relative; padding-left: 1.75rem; color: var(--mute); }
.list li::before { content: ''; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--ember); }
.list li b { color: var(--bone); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.dates { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dates li { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dates .serif { font-size: 1.3rem; white-space: nowrap; }
.dates .label { text-align: right; }
.dates .label--ember { color: var(--ember); }
.price { font-family: var(--serif); font-size: var(--d2); line-height: 1; }
.price small { display: block; margin-top: .75rem; font-family: var(--sans); font-size: .875rem; color: var(--mute); max-width: 26em; }
.cta { display: grid; gap: var(--s-4); justify-items: start; }
.cta--center { justify-items: center; text-align: center; }

/* ---------- form ---------- */
.form { display: grid; gap: var(--s-4); max-width: 44em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--sans); font-size: var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; background: var(--ground-2); border: 1px solid var(--line); color: var(--bone); font: inherit; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23B9B2A4' stroke-width='1.2'/></svg>"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ember); outline-offset: 2px; border-color: var(--ember); }
.field .err { display: none; font-size: .8125rem; color: var(--ember); }
.field[data-invalid] .err { display: block; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--ember); }
.form-foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.form-foot p { font-size: .875rem; color: var(--dim); max-width: 28em; }
.done { display: none; max-width: 36em; padding: var(--s-5); border: 1px solid var(--line); }
.done[data-show] { display: grid; gap: var(--s-3); }
.done .serif { font-size: var(--d3); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); }
.footer .mark { justify-content: flex-start; padding-inline: 0; view-transition-name: none; }
.footer p { color: var(--dim); font-size: .875rem; max-width: 24em; margin-top: var(--s-3); }
.footer .label { display: block; margin-bottom: var(--s-3); }
.footer ul { display: grid; gap: .5rem; }
.footer ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--mute); text-decoration: none; font-size: .9375rem; transition: color .3s; }
.footer ul a:hover { color: var(--bone); }
.footer-base { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--line-soft); font-size: .8125rem; color: var(--dim); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveals & transitions ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal[data-in] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 320ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media { inset: 0; }
  .card { transform: none !important; }
  .card:hover .card-media img, .route:hover img, .entry:hover img { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (hover: none), (pointer: coarse) { .card { transform: none !important; } }

/* journal list figures keep their own aspect */
.jlist figure { aspect-ratio: 3 / 2; }
.jlist figure.tall { aspect-ratio: 4 / 5; }
.jlist figure img { width: 100%; height: 100%; object-fit: cover; }
.jlist .entry > div { margin-top: var(--s-3); }
blockquote { margin: 0; max-width: 40em; }
blockquote .label { display: block; margin-top: var(--s-3); }
.head > .prose { max-width: 26em; }

/* mobile hero: after the hero rules so the cascade wins */
@media (max-width: 760px) {
  .hero { height: 86svh; }
  .hero--full { height: 100svh; }
  .hero-scrim { background: linear-gradient(to top, var(--ground) 0%, rgba(7, 9, 12, .88) 10%, rgba(7, 9, 12, .82) 48%, rgba(7, 9, 12, .55) 62%, rgba(7, 9, 12, .12) 80%, rgba(7, 9, 12, .22) 100%); }
  .hero--full .hero-scrim { background: linear-gradient(to top, var(--ground) 0%, rgba(7, 9, 12, .88) 10%, rgba(7, 9, 12, .82) 42%, rgba(7, 9, 12, .3) 62%, rgba(7, 9, 12, .06) 82%, rgba(7, 9, 12, .22) 100%); }
  .hero-body { padding-bottom: 2.25rem; }
  .hero .label { margin-bottom: 1rem; }
  .hero-sub { margin-top: 1.25rem; font-size: 1rem; }
  .hero-meta { margin-top: 1.5rem; gap: .5rem 1.5rem; align-items: center; }
  .hide-m { display: none; }
  .relief .relief-canvas { opacity: .9; }
  .relief-fade--left { width: 100%; background: linear-gradient(rgba(7, 9, 12, .45), transparent 70%); }
}
