/*
Theme Name: Alpclimb
Description: Photo-led expedition journal for alpclimb.kz — trips, regions, timeline, photo albums.
Author: Vladimir Pavlyukov
Version: 0.1.0
Requires PHP: 7.4
Text Domain: alpclimb
*/

:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --ink: #151a1f;
  --night: #0d161f;
  --night-2: #16222e;
  --muted: #6c7682;
  --line: #d9d3c7;
  --accent: #d8432e;
  --snow: #ffffff;
  --edel-petal: #f8f6ef;
  --edel-line: #b9bfb2;
  --edel-heart: #d9b740;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.edel { width: 1em; height: 1em; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: var(--snow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .edel { font-size: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand b {
  display: block; font-family: var(--display); font-weight: 600; font-size: 21px;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
}
.brand small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav li a {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav li a:hover, .nav li a.on { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end;
  color: var(--snow); background: var(--night) center/cover no-repeat; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,14,20,.55) 0%, rgba(8,14,20,0) 26%, rgba(8,14,20,0) 45%, rgba(8,14,20,.82) 100%);
}
.hero-in { position: relative; width: 100%; padding-top: 180px; padding-bottom: clamp(36px, 6vw, 72px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 {
  margin: 16px 0 0; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(54px, 10.5vw, 168px); line-height: .92; letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: transparent; -webkit-text-stroke: 2px var(--snow); }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-top: clamp(24px, 4vw, 48px);
}
.hero-quote { max-width: 520px; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.stats { display: flex; gap: clamp(20px, 3vw, 44px); margin: 0; }
.stats div { border-left: 2px solid var(--accent); padding-left: 12px; }
.stats dt { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--accent); color: var(--snow); border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #bf3421; transform: translateX(3px); }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip sup { font-size: 10px; opacity: .6; margin-left: 4px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 112px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sec-head .kicker { color: var(--muted); }
.sec-head h2 {
  margin: 10px 0 0; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px); line-height: .95;
}
.sec-head h2 sup { font-size: .3em; font-weight: 500; color: var(--accent); margin-left: .4em; vertical-align: top; position: relative; top: .5em; letter-spacing: .08em; }
.sec-head.small h2 { font-size: clamp(30px, 3.6vw, 48px); }

.divider { display: flex; align-items: center; gap: 18px; color: var(--line); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.divider .edel { font-size: 34px; }

/* ---------- featured (latest trip) ---------- */
.latest { padding-bottom: 0; }
.feature { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--snow); box-shadow: 0 30px 60px -40px rgba(20,30,40,.45); }
.feature-img { position: relative; min-height: 440px; overflow: hidden; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-body { padding: clamp(26px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-body .kicker { color: var(--accent); }
.feature-body h3 { margin: 16px 0 14px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.feature-body p { margin: 0 0 28px; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: #3a434d; }

/* ---------- trip cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); grid-auto-flow: dense; }
.card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); color: var(--snow); }
.card.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card.tall { grid-row: span 2; aspect-ratio: auto; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .4s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,20,0) 40%, rgba(8,14,20,.86) 100%); transition: opacity .3s; }
.card:hover img { transform: scale(1.06); }
.card-tag {
  position: absolute; z-index: 2; top: 14px; left: 14px; padding: 7px 10px; background: rgba(13,22,31,.72); backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.card-year { position: absolute; z-index: 2; top: 8px; right: 14px; font-family: var(--display); font-weight: 600; font-size: 30px; opacity: .92; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.8vw, 26px); }
.card-body h3 { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.08; }
.card.big h3 { font-size: clamp(30px, 4vw, 58px); }
.card-body p { margin: 8px 0 0; font-size: 13px; letter-spacing: .04em; opacity: .85; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card-body p span + span::before { content: "·"; margin-right: 14px; opacity: .6; }
.card .go { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.card.hide { display: none; }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- timeline ---------- */
.dark { background: var(--night); color: var(--snow); }
.dark .sec-head .kicker { color: #9fb0c0; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.decade { position: relative; padding: 30px 22px 0 0; }
.decade::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--night); }
.decade h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 60px); line-height: 1; }
.decade em { display: block; font-style: normal; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9fb0c0; margin-bottom: 18px; }
.decade ul { list-style: none; margin: 0; padding: 0; }
.decade li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 14px; line-height: 1.35; }
.decade li b { font-family: var(--display); font-weight: 500; color: var(--edel-heart); min-width: 30px; }
.decade li a:hover { color: var(--edel-heart); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-img .edel { position: absolute; right: -34px; bottom: -34px; font-size: 110px; filter: drop-shadow(0 10px 18px rgba(20,30,40,.25)); }
.about blockquote { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 29px); line-height: 1.5; }
.about cite { display: block; margin: 22px 0 30px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: var(--night); color: #b9c4cf; padding: 70px 0 40px; position: relative; overflow: hidden; }
footer .edel.mark { position: absolute; right: -60px; top: -40px; font-size: 380px; opacity: .07; }
.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-end; }
.foot .brand { color: var(--snow); }
.foot ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.foot ul a:hover { color: var(--snow); }
.fine { position: relative; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; letter-spacing: .06em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =====================  TRIP PAGE  ===================== */
.hero.trip { min-height: min(88vh, 860px); }
.hero.trip h1 { font-size: clamp(46px, 8.4vw, 128px); }
.hero.trip h1 span:last-child { color: var(--snow); -webkit-text-stroke: 0; }
.back { display: inline-flex; gap: 8px; margin-bottom: 22px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.back:hover { opacity: 1; }

.facts {
  position: relative; z-index: 3; margin-top: -46px; background: var(--snow);
  display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 30px 60px -40px rgba(20,30,40,.5);
}
.facts div { padding: 24px clamp(14px, 1.8vw, 28px); border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 3px solid var(--accent); }
.facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; }
.facts dd small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.chapters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 28px 0 0; }
.chapters span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

.story { padding: clamp(40px, 6vw, 80px) 0 20px; }
.story > * { max-width: 720px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.story p { font-family: var(--serif); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.72; margin-top: 0; margin-bottom: 1.25em; color: #20272e; }
.story p.lead::first-letter { font-family: var(--display); font-weight: 600; font-size: 4.6em; line-height: .82; float: left; padding: .06em .12em 0 0; color: var(--accent); }
.story p.dlg { margin-bottom: .5em; padding-left: calc(var(--gutter) + 26px); font-style: italic; color: #36404a; }
.story p.dlg + p:not(.dlg) { margin-top: 1.4em; }
.story h2 { margin-top: clamp(50px, 7vw, 96px); margin-bottom: 26px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4vw, 54px); line-height: 1; display: flex; align-items: baseline; gap: 18px; scroll-margin-top: 24px; }
.story h2 i { font-style: normal; font-size: .42em; color: var(--accent); letter-spacing: .12em; }
.story figure { max-width: 1240px; margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.story figure.full { max-width: none; padding: 0; }
.story figure img { width: 100%; height: auto; cursor: zoom-in; }
.story figure.full img { max-height: 92vh; object-fit: cover; }
.story .pair { max-width: 1240px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 18px); margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.story .pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; cursor: zoom-in; }

.video { display: block; position: relative; max-width: 1000px !important; margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.video-in { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.video-in img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1s, opacity .3s; }
.video:hover img { transform: scale(1.04); opacity: .68; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.play::after { content: ""; margin-left: 7px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-cap { position: absolute; left: 22px; bottom: 18px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.endmark { display: flex; justify-content: center; padding: 20px 0 10px; }
.endmark .edel { font-size: 64px; }

.gallery { columns: 3; column-gap: clamp(8px, 1vw, 14px); }
.gallery img { width: 100%; margin-bottom: clamp(8px, 1vw, 14px); cursor: zoom-in; break-inside: avoid; transition: opacity .2s; }
.gallery img:hover { opacity: .85; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.more .card { aspect-ratio: 16 / 8; }
.more .card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(6,10,14,.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font: 300 44px/1 var(--sans); cursor: pointer; padding: 18px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb .x { top: 6px; right: 10px; }
.lb .p { left: 6px; top: 50%; translate: 0 -50%; }
.lb .n { right: 6px; top: 50%; translate: 0 -50%; }
.lb .c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #9fb0c0; font-size: 12px; letter-spacing: .2em; }


/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 0; aspect-ratio: 16 / 10; }
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; border-top: 0; }
  .decade { border-top: 1px solid rgba(255,255,255,.2); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-top: 1px solid var(--line); }
  .facts div:first-child { grid-column: span 2; }
  .gallery { columns: 2; }
}
@media (max-width: 640px) {
  .nav { padding: 14px var(--gutter); }
  .nav ul { display: none; }
  .brand .edel { font-size: 34px; }
  .brand b { font-size: 18px; }
  .hero { min-height: min(92vh, 760px); }
  .hero.compact { min-height: 320px; }
  .hero h1 span:last-child { -webkit-text-stroke-width: 1.5px; }
  .stats { gap: 18px; }
  .grid, .grid.four { grid-template-columns: 1fr; }
  .card, .card.big, .card.tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 300px; }
  .about-img .edel { right: -20px; bottom: -20px; font-size: 80px; }
  .story .pair { grid-template-columns: 1fr; }
  .story p.dlg { padding-left: calc(var(--gutter) + 14px); }
  .play { width: 68px; height: 68px; }
  .play::after { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 5px; }
  .more { grid-template-columns: 1fr; }
  footer .edel.mark { font-size: 240px; }
}

/* small inline figure (e.g. a guidebook cover) */
.story figure.small { max-width: 340px; }
.story figure.small img { box-shadow: 0 24px 50px -28px rgba(20,30,40,.6); }

/* =====================  WORDPRESS CONTENT  ===================== */
.card.big.right { grid-column: 2 / span 2; }
.grid.filtered .card.big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.grid.filtered .card.big h3 { font-size: clamp(20px, 1.9vw, 28px); }
.card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }

.hero.trip h1 { font-size: clamp(36px, 5.8vw, 96px); line-height: 1; max-width: 18ch; }
.hero.compact { min-height: 440px; }
.facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.grid.four .card-body h3 { font-size: clamp(17px, 1.45vw, 22px); }
.hero .kicker, .hero .back { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.story a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.story h3, .story h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; margin-top: 2em; margin-bottom: .7em; }
.story ul, .story ol { font-family: var(--serif); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.72; }
.story ul, .story ol { padding-left: calc(var(--gutter) + 1.2em); }
.story .alignleft, .story .alignright, .story .aligncenter { float: none; }
.story figure, .story .wp-caption, .story .wp-block-image, .story .gallery, .story .wp-block-gallery, .story .tiled-gallery { max-width: 1240px; }
.story .wp-caption { width: auto !important; margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.story figure img, .story img.story-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 88vh; margin: 0 auto; cursor: zoom-in; }
.story p img.story-img { margin: 1.2em auto; }
.story figcaption, .story .wp-caption-text { font-family: var(--sans); font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.story .wp-block-embed, .story p:has(> iframe) { max-width: 1000px; }
.story iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--night); }
.story .gallery { margin-top: clamp(28px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.story .gallery img { max-height: none; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; font-weight: 700; }
.pager .page-numbers { padding: 10px 16px; border: 1.5px solid var(--line); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@media (max-width: 980px) {
  .card.big.right { grid-column: span 2; }
}
@media (max-width: 640px) {
  .card.big.right { grid-column: auto; }
}

/* ---- review round 1 */
.gallery img, .about-img img { height: auto; }
.story .wp-block-image figure, .story figure.alignleft, .story figure.alignright, .story figure.aligncenter {
  float: none !important; display: block !important; margin-left: auto !important; margin-right: auto !important; width: auto !important;
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(8,14,20,.66) 0%, rgba(8,14,20,.38) 42%, rgba(8,14,20,0) 78%),
    linear-gradient(180deg, rgba(8,14,20,.6) 0%, rgba(8,14,20,.08) 26%, rgba(8,14,20,.12) 50%, rgba(8,14,20,.86) 100%);
}
.hero h1 span:last-child { -webkit-text-stroke: 0; color: var(--snow); }
.hero:not(.trip) h1 span:last-child { opacity: .78; }
.hero-quote, .stats { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero.trip { background-position: center 30%; }
.brand .edel { font-size: 52px; }
.card-body p span:first-child { white-space: nowrap; }
@media (max-width: 640px) { .brand .edel { font-size: 42px; } }

/* ---- review round 2 */
.hero-quote a { border-bottom: 1px solid rgba(255,255,255,.5); font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; margin-left: 6px; }
.hero-quote a:hover { border-color: var(--accent); }
.notes { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.notes span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.notes a { display: block; font-family: var(--serif); font-size: 19px; padding: 5px 0; }
.notes a::after { content: " →"; color: var(--accent); }
.notes a:hover { color: var(--accent); }

/* ---- review round 3: larger interface text */
body { font-size: 17px; }
.nav { padding-top: 26px; padding-bottom: 26px; }
.nav li a { font-size: 15px; letter-spacing: .12em; }
.nav ul { gap: clamp(16px, 2.4vw, 36px); }
.brand b { font-size: 24px; }
.brand small { font-size: 12.5px; }
.kicker { font-size: 13.5px; letter-spacing: .2em; }
.stats dt { font-size: clamp(36px, 4vw, 56px); }
.stats dd { font-size: 13.5px; letter-spacing: .14em; margin-top: 8px; }
.stats div { padding-left: 16px; }
.hero-quote { font-size: clamp(18px, 1.75vw, 23px); max-width: 600px; }
.hero-quote a { font-size: 13px; }
.btn { font-size: 14px; padding: 16px 26px; }
.chip { font-size: 13.5px; padding: 12px 18px; }
.chip sup { font-size: 11px; }
.card-tag { font-size: 12px; padding: 8px 11px; }
.card-year { font-size: 34px; }
.card-body p { font-size: 15px; }
.card small, .back { font-size: 12.5px; }
.sec-head h2 sup { font-size: .26em; }
.decade em { font-size: 12.5px; }
.decade li { font-size: 16px; padding: 8px 0; }
.decade li b { min-width: 34px; }
.facts dt { font-size: 12px; }
.facts dd { font-size: clamp(19px, 1.7vw, 25px); }
.facts dd small { font-size: 14px; }
.chapters span { font-size: 12.5px; }
.about cite, .notes span { font-size: 13px; }
.foot ul { font-size: 13.5px; }
.fine { font-size: 13.5px; }
.story figcaption, .story .wp-caption-text { font-size: 14.5px; }
@media (max-width: 640px) {
  .brand b { font-size: 19px; }
  .brand small { font-size: 11px; }
  .stats dd { font-size: 12px; }
}

.card-body p span:first-child { white-space: normal; }

/* ---- review round 4: the home hero always fits the screen it is opened on */
.hero:not(.trip) { min-height: 100vh; min-height: 100svh; }
.hero:not(.trip) .hero-in { padding-top: clamp(96px, 15vh, 180px); padding-bottom: clamp(44px, 8vh, 88px); }
.hero:not(.trip) h1 { font-size: clamp(46px, min(10.5vw, 15.5vh), 168px); margin-top: clamp(8px, 1.6vh, 16px); }
.hero:not(.trip) .hero-foot { margin-top: clamp(18px, 3.4vh, 48px); }
@media (max-height: 760px) { .hero-quote { font-size: 17px; max-width: 560px; } .stats dt { font-size: 34px; } }

/* ---- review round 5: one video player everywhere, trip map */
.story figure.video, .story .wp-block-embed { max-width: 1000px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); border: 0; }
a.yt img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; opacity: .84; transition: transform 1s, opacity .3s; cursor: pointer !important; }
a.yt:hover img { transform: scale(1.04); opacity: .68; }
a.yt .video-cap { font-family: var(--sans); font-size: 12.5px; text-decoration: none; }
.story p a.yt { margin: 1.2em 0; }
.story td a.yt, .story li a.yt { min-width: 260px; }
.story a.yt { text-decoration: none; }
.map-sec { padding-top: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.tripmap { height: min(70vh, 560px); background: var(--night-2); }
.maptip { background: rgba(13,22,31,.86); color: #fff; border: 0; border-radius: 2px; box-shadow: none; font: 700 12.5px/1.2 var(--sans); letter-spacing: .04em; padding: 5px 8px; }
.maptip::before { display: none; }
.maptip.summit { background: var(--accent); font-size: 13.5px; }
@media (max-width: 640px) { .tripmap { height: 420px; } }

/* ---- review round 6: phone layout and menu */
.burger { display: none; }
.hero.trip .hero-in { padding-bottom: calc(46px + clamp(24px, 3vw, 40px)); }
@media (max-width: 900px) {
  .nav ul { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 9px; background: none; border: 0; cursor: pointer; position: relative; z-index: 42; }
  .burger span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav.open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .nav.open nav { position: fixed; inset: 0; z-index: 41; background: rgba(13,22,31,.97); display: flex; align-items: center; justify-content: center; }
  .nav.open ul { display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .nav.open li a { font-size: 24px; font-family: var(--display); letter-spacing: .08em; }
  .nav.open .brand { position: relative; z-index: 42; }
}
@media (max-width: 640px) {
  .hero.trip { min-height: min(72vh, 560px); }
  .hero.trip .hero-in { padding-top: 120px; }
  .hero.trip h1 { font-size: clamp(30px, 8.6vw, 44px); max-width: none; overflow-wrap: anywhere; }
  .hero.compact { min-height: 300px; }
  .kicker { font-size: 12px; letter-spacing: .16em; }
  .back { margin-bottom: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 16px 16px; }
  .facts div:first-child { grid-column: auto; }
  .hero:not(.trip) h1 { font-size: clamp(44px, min(15vw, 12vh), 96px); }
  .hero-foot { gap: 20px; }
  .stats { gap: 14px; flex-wrap: wrap; }
  .stats dt { font-size: 32px; }
  .sec-head h2 sup { display: block; position: static; margin: 8px 0 0; font-size: 14px; }
  .foot ul { gap: 14px 20px; }
  .gallery { columns: 2; }
  .story p, .story ul, .story ol { font-size: 18px; }
  .tripmap { height: 380px; }
}
@media (max-width: 900px) {
  .nav > nav { display: none; }
  .nav.open > nav { display: flex; }
}
@media (max-width: 640px) {
  .facts div:last-child:nth-child(odd) { grid-column: span 2; }
}

/* ---- review round 7: ice-blue accent (deep glacier blue on paper, pale ice on photos and dark sections) */
:root { --accent: #1a7db3; --accent-dark: #125f8a; --ice: #8fd6f5; }
.hero, .dark, footer, .card, .lb { --accent: var(--ice); }
.btn { background: #1a7db3; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }
.play { background: #1a7db3; }
.maptip.summit { background: #125f8a; }
.decade::before { background: var(--edel-heart); }
@media (max-width: 900px) {
  .burger { width: 30px; padding: 0; margin: 0; }
}

/* ---- review round 8 */
.facts > a { display: block; padding: 24px clamp(14px, 1.8vw, 28px); border-left: 1px solid var(--line); transition: background .2s; }
.facts > a:hover { background: var(--paper); }
.facts > a:hover dd { color: var(--accent); }
.story .wp-block-embed__wrapper::before { display: none !important; }
.story .wp-block-embed__wrapper { position: static; }
.story iframe.yt { position: static !important; height: auto !important; }
.card-body p { display: block; }
.card-body p span { display: block; }
.card-body p span + span::before { content: none; }
.card-body p span + span { margin-top: 2px; }
@media (max-width: 980px) { .facts > a { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .facts > a { padding: 16px; } .facts > a:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---- video hints */
.card-body p span:last-child:not(:first-child) { opacity: .95; }
#video { scroll-margin-top: 24px; }
