/* Region pages share the editorial grid, with the photograph setting the ink. */
.rg-region, .rg-index {
  --edge: clamp(20px, 3.75vw, 64px);
  --rule: rgb(239 233 221 / .25);
  --bone: #efe9dd;
  --dark: #0a0a0b;
  color: var(--bone);
}
.rg-region {background: var(--region-tint)}
.rg-region :is(h1,h2,h3,blockquote), .rg-index :is(h1,h2,h3) {margin: 0}
.rg-region figure, .rg-index figure {margin: 0; position: relative}
.rg-region figure img, .rg-index figure img {display:block;width:100%;height:100%;object-fit:cover}
.rg-region figure picture, .rg-index figure picture {display:block;height:100%}
:is(.rg-region,.rg-index) .credit {
  position:absolute; inset:auto 0 0 auto; max-width:100%; padding:4px 8px;
  font:400 12px/1.25 'IBM Plex Mono',monospace;
  color:var(--bone);background:#111; text-transform:uppercase; z-index:2;
}
.rg-kicker,.rg-slate,.rg-source,.rg-ledger small,.rg-caption span,.rg-strip-number,.rg-places {
  font: 400 12px/1.45 'IBM Plex Mono', monospace; letter-spacing:.045em; text-transform:uppercase;
}
.rg-region h1,.rg-index h1,.rg-next strong,.rg-strip h2,.rg-station h3,
.rg-facts h2,.rg-other h2 {
  font-family:var(--display);font-weight:900;font-stretch:125%;
  font-variation-settings:'wdth' 125; text-transform:uppercase; line-height:.9; letter-spacing:-.035em;
}
.rg-hero {
  height: max(580px, 92svh); width:100%; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end; isolation:isolate;
}
.rg-hero figure {
  position:absolute;inset:0; z-index:-1; view-transition-name:region-hero;
}
.rg-slate {display:flex;justify-content:space-between;gap:1em; margin-inline:var(--edge); color:var(--bone)}
.rg-hero .rg-film::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,transparent 34%,rgb(0 0 0 / .18) 48%,rgb(0 0 0 / .66) 69%,rgb(0 0 0 / .9) 100%);
}
.rg-hero .rg-film .credit {
  background:transparent;right:var(--edge);bottom:12px;padding:0;
  max-width:calc(100% - 2 * var(--edge) - 76px);text-align:right;text-wrap:balance;
}
.rg-hero h1 {
  align-self:flex-start; max-width:100%; padding: .07em var(--edge) .1em;
  margin-bottom:38px;font-size:min(11.5vw,205px);text-wrap:balance;
  position:relative;isolation:isolate;
}
.rg-hero h1::before {
  content:attr(data-type-fit);position:absolute;inset:0;padding:inherit;z-index:-1;
  pointer-events:none;user-select:none;color:transparent;
  -webkit-text-stroke:1px rgb(239 233 221 / .58);transform:translate(.02em,-.043em);
}
@media(forced-colors:active){.rg-hero h1::before{content:none}}
/* The longest single word is set at normal width; multiword names can wrap. */
.rg-hero[data-region="grassrivers"] h1,
.rg-hero[data-region="mount-kalaga"] h1 {
  font-stretch:100%;font-variation-settings:'wdth' 100;
}
.rg-editorial,.rg-facts,.rg-other,.rg-station {
  padding:clamp(52px,7.5vw,130px) var(--edge);
}
.rg-editorial {
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start;
}
.rg-editorial > * {grid-column:1 / -1}
.rg-editorial blockquote {grid-column:1 / span 10}
.rg-editorial .rg-source {justify-self:start}
.rg-editorial .rg-kicker + .rg-kicker {margin-top:.6em;color:var(--bone)}
.rg-region .rg-kicker {color:var(--region-accent)}
.rg-editorial blockquote p, .rg-caption p,.rg-other li p,.rg-other>p,.rg-ledger li span,.rg-unconfirmed {
  font-family:var(--body);font-weight:400; margin:0;max-width:34em;
}
.rg-editorial blockquote p:first-child {font-style:italic;font-size:clamp(34px,5.1vw,82px);line-height:1.06;margin:.4em 0 .55em;max-width:none;text-wrap:pretty}
.rg-editorial blockquote p+p,.rg-unconfirmed,.rg-other>p {font-size:clamp(19px,1.65vw,28px);line-height:1.4}
.rg-editorial blockquote p+p {width:60%;max-width:34em;font-size:clamp(18px,1.5vw,21px);line-height:1.5}
.rg-source {
  color:inherit;display:inline-flex;align-items:center;min-height:44px;margin-top:.8rem;
  text-decoration:underline; text-underline-offset:.35em;
}
.rg-gallery {background:var(--dark);padding-block:1px}
.rg-pin {padding:32px 0}
.rg-pin h2 {padding:0 var(--edge) 16px}
.rg-port {overflow:auto;scroll-snap-type:x proximity;scroll-padding-inline:var(--edge); overscroll-behavior-x:contain}
.rg-track {display:flex;gap:16px;width:max-content;padding:0 var(--edge);box-sizing:content-box}
.rg-frame {width:85vw;scroll-snap-align:start; flex:none}
.rg-frame figure {width:100%;height:var(--gallery-height,70svh);overflow:hidden;background:var(--region-tint)}
.rg-caption {
  display:grid;grid-template-columns:auto 1fr; align-items:baseline; gap:clamp(12px,2vw,40px);
  border-top:2px solid var(--region-accent);padding-block:12px;
}
.rg-caption span {color:var(--region-accent)}
.rg-caption p {font-size:clamp(18px,1.5vw,21px);line-height:1.35;max-width:54em}
.rg-gallery.is-pinned {height:calc(100svh + var(--run))}
.is-pinned .rg-pin {
  position:sticky;top:0;height:100svh;display:flex;flex-direction:column;
  justify-content:center;padding:72px 0 16px;box-sizing:border-box;
}
.is-pinned .rg-port {overflow:clip;scroll-snap-type:none}
.is-pinned .rg-track {transform:translate3d(var(--slide,0px),0,0)}
@supports (animation-timeline:view()) and (animation-range:contain) {
  .rg-gallery.is-pinned {view-timeline:--rg-gallery block}
  .is-pinned .rg-track {
    animation:rg-gallery-run linear both;animation-timeline:--rg-gallery;animation-range:contain;
  }
  @keyframes rg-gallery-run {from {transform:translateX(0)} to {transform:translateX(calc(-1 * var(--run)))}}
}
.rg-facts,.rg-other {background:var(--dark)}
.rg-facts h2,.rg-other h2 {font-size:clamp(36px,5.5vw,94px);max-width:16ch;margin-bottom:.55em}
.rg-facts h2 {font-size:clamp(32px,3.6vw,56px);margin-bottom:12px}
.rg-checked {margin:0 0 clamp(32px,4vw,64px)}
.rg-ledger,.rg-places,.rg-other ul {padding:0;margin:0;list-style:none}
.rg-ledger li {
  display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:clamp(24px,3vw,46px) 0;
  position:relative; overflow:hidden
}
.rg-ledger li::before {content:'';position:absolute;inset:0 0 auto;border-top:1px solid var(--rule);transform-origin:left}
.rg-ledger li span {font-size:1.5rem;line-height:1.3}
.rg-ledger small {color:var(--region-accent);flex:none}
.rg-facts h3 {margin-top:36px}
.rg-places {display:flex;gap:.25em 1.25em;flex-wrap:wrap;margin-top:12px}
.rg-unconfirmed {margin-top:2em}
.rg-station {display:flex;align-items:center;gap:24px;flex-wrap:wrap;border-top:1px solid var(--rule)}
.rg-station h3 {font-size:clamp(26px,3.8vw,60px);margin-top:.25em}
.rg-station button {min-height:44px;border:1px solid var(--region-accent);background:transparent;color:var(--bone);padding:8px 16px;cursor:pointer}
.rg-station button:hover {background:var(--region-accent);color:var(--dark)}
.rg-receipt {color:var(--region-accent);display:inline-grid;place-items:center}
.rg-receipt:empty {display:none}
.rg-receipt img,.rg-receipt svg {display:block;width:180px;height:auto;max-width:100%}
.rg-station > div:last-child {margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
.rg-next {display:grid;position:relative;align-content:center;min-height:230px;overflow:hidden;padding:32px var(--edge);text-decoration:none;color:var(--bone);isolation:isolate}
.rg-next figure {position:absolute;inset:0;z-index:-1;background:var(--region-tint)}
.rg-next :is(strong,span) {width:fit-content;background:var(--dark);padding:.12em .18em}
.rg-next strong {font-size:clamp(36px,7vw,115px);max-width:100%}
.rg-index {padding-top:100px}
.rg-index h1 {font-size:clamp(40px,13vw,210px);padding:0 var(--edge) .17em}
.rg-strips {display:flex}
.rg-strip {min-width:0; flex:1;position:relative;color:inherit;text-decoration:none;display:flex;flex-direction:column;background:var(--region-tint);border-right:1px solid var(--dark)}
.rg-strip-number {color:var(--region-accent);padding:12px; display:flex;align-items:center;gap:8px}
.rg-strip-number i:not([hidden]) {width:12px;height:12px;border:2px solid currentColor;border-radius:100%}
.rg-strip figure {height:clamp(280px,52vh,640px);overflow:hidden}
.rg-strip h2 {font-size:clamp(20px,2vw,36px);padding:12px;line-height:1.02;overflow-wrap:anywhere}
.rg-other>p {margin-bottom:1.5em}
.rg-other li {display:grid;grid-template-columns:1fr 1.5fr;gap:20px;border-top:1px solid var(--rule);padding:16px 0}
.rg-other li p {font-size:clamp(18px,1.6vw,27px);line-height:1.3}
.rg-other li h3 {font:700 clamp(18px,2vw,32px)/1.15 var(--display)}
@media (hover:hover) and (min-width:900px) {
  .rg-strip:hover,.rg-strip:focus-visible {flex:1.8}
}
@media (prefers-reduced-motion:no-preference) {
  .rg-hero figure {animation:rg-open .85s cubic-bezier(.16,1,.3,1) both}
  .rg-ledger .rg-reveal::before {animation:rg-rule .65s cubic-bezier(.16,1,.3,1) both}
  .rg-ledger .rg-reveal span,.rg-ledger .rg-reveal small {animation:rg-rise .7s cubic-bezier(.16,1,.3,1) both}
  @keyframes rg-open {from{clip-path:inset(40% 0)}to{clip-path:inset(0)}}
  @keyframes rg-rule {from{transform:scaleX(.02)}}
  @keyframes rg-rise {from{transform:translateY(105%);clip-path:inset(0 0 100%)} to{transform:translateY(0);clip-path:inset(0)}}
}
@media(max-width:899px) {
  .rg-strips {display:grid;grid-template-columns:minmax(0,1fr)}
  .rg-strip {display:grid;grid-template-columns:56px minmax(0,1fr);position:relative;isolation:isolate;align-content:center;height:clamp(146px,23svh,260px);border-bottom:2px solid var(--dark)}
  .rg-strip figure {position:absolute;inset:0;z-index:-1;height:100%}
  .rg-strip h2 {font-size:clamp(27px,6vw,54px); align-self:center;padding:6px 10px;width:fit-content;background:var(--region-tint)}
  .rg-strip-number {background:var(--region-tint);align-self:center;width:fit-content}
}
@media(max-width:700px) {
  .rg-hero {height:max(470px,85svh)}
  .rg-hero h1 {font-size:min(13.5vw,84px);margin-bottom:42px}
  .rg-hero[data-region="grassrivers"] h1 {font-size:min(12.4vw,80px)}
  .rg-slate {flex-direction:column;align-items:flex-start;gap:1px}
  .rg-editorial {display:block}
  .rg-editorial blockquote p+p {width:100%}
  .rg-frame {width:86vw}
  .rg-frame figure {height:42svh;aspect-ratio:auto}
  .rg-caption {grid-template-columns:minmax(0,1fr);gap:5px}
  .rg-ledger li {align-items:flex-start; flex-direction:column-reverse;gap:6px}
  .rg-other li {grid-template-columns:1fr;gap:6px}
  .rg-station {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
  .rg-station:has(.rg-receipt:empty)>div:first-child {grid-column:1 / -1}
  .rg-station h3 {font-size:clamp(20px,5vw,32px);overflow-wrap:anywhere}
  .rg-receipt svg {width:min(35vw,180px)}
  .rg-station>div:last-child {grid-column:1 / -1;margin-left:0}
  .rg-next {min-height:200px}
}
@media (pointer:coarse) and (prefers-reduced-motion:no-preference) {
  .rg-frame picture {transform:scale(1.05) translateX(var(--inner-shift,0%))}
}

.rg-hero .rg-film {animation:none;overflow:hidden;background:var(--dark)}
.rg-film :is([data-film-fallback],canvas) {
  position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;
}
.rg-film [hidden], .rg-film-control[hidden] {display:none}
.rg-film-control {
  position:absolute;bottom:0;left:var(--edge);min-width:64px;min-height:44px;padding:0;text-align:left;
  background:transparent;color:var(--bone);border:0;
  font:600 13px var(--display);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
}
.rg-film-control:is(:hover,:focus-visible) {text-decoration:underline;text-underline-offset:.26em}
.rg-film-control:focus-visible {outline-offset:-2px}

.rg-film [data-film-retry]:not([hidden]) {
  position:absolute;top:22%;left:var(--edge);z-index:2;
  min-height:44px;padding:8px 14px;background:var(--dark);color:var(--bone);cursor:pointer;
}
