/* Elias Pirianoy Photography
   Palette: the pale dry-season sky of his photos, acacia-shade ink, grass and dust.
   The photos bring the colour; the page stays quiet. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --haze: #E7EAE8;   /* page: hazy Serengeti sky */
  --mist: #F4F5F3;   /* raised surfaces */
  --ink: #22231D;    /* text: acacia shade */
  --earth: #5F5440;  /* secondary text: dry earth */
  --straw: #C4A35A;  /* small marks: dry grass, never for text on light */
  --night: #16170F;  /* behind photos */
  --pen: #26407C;    /* ballpoint blue: signature and the map route */
  --paper: #FAFAF6;  /* photo prints */

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  /* Content edge: the gutter, or wider on big screens so content stays within 104rem. */
  --edge: max(var(--gutter), calc((100vw - 104rem) / 2));
  --measure: 34em;
  --row: 13rem;
  --focus: var(--ink);

  /* Film grain for plain surfaces (never drawn over photos). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .12 0 0 0 0 .1 0 0 0 -.6 .33'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .95 0 0 0 -.32 .17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grain), var(--haze);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--haze); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { padding-inline: var(--edge); }

/* ---------- Masthead: a slim sticky bar ---------- */
html { scroll-padding-top: 5rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .5rem 1.75rem;
  padding: .7rem var(--edge);
  background: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.masthead.is-stuck { border-bottom-color: rgb(34 35 29 / .14); }
.wordmark {
  font-weight: 750; font-stretch: 70%; font-size: 1.45rem; letter-spacing: -.005em;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
/* Home: the small name waits until the big one has scrolled away. */
.js .home .wordmark { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.js .home .masthead.show-mark .wordmark { opacity: 1; visibility: visible; }

.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .95rem; }
.nav a { text-decoration: none; padding-block: .2rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.masthead .nav { margin-left: auto; }
.bar-end { display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 40em) { .bar-end { margin-left: auto; } }
.langs { display: flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 600; font-stretch: 110%; letter-spacing: .04em; }
.langs a { color: var(--earth); text-decoration: none; padding: .2rem .1rem; }
.langs a:hover { color: var(--ink); text-decoration: underline; }
.lang-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; padding: .2rem .1rem; }
.lang-sep { color: var(--earth); opacity: .5; font-weight: 400; }
.button-small { font-size: .9rem; padding: .5em .9em; }

.subnav { display: none; padding: .1rem var(--edge) .6rem; }
@media (max-width: 40em) {
  .masthead .nav { display: none; }
  .subnav { display: flex; }
  .masthead { padding-block: .55rem; }
  .bar-end { gap: .9rem; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .button-small { padding: .6em; }
  .wordmark { font-size: 1.3rem; }
}

/* ---------- Opening: Elias beside a pile of his prints ---------- */
.opening {
  display: grid; gap: clamp(3rem, 6vw, 4.5rem); align-items: center;
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(4rem, 9vw, 7rem);
}
@media (min-width: 60em) { .opening { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(3rem, 6vw, 6rem); } }
.opening-text { display: grid; gap: 1.4rem; justify-items: start; }
.name {
  margin: 0;
  font-weight: 780; font-stretch: 62%;
  font-size: clamp(4.25rem, 10.5vw, 12rem);
  line-height: .8; letter-spacing: -.012em;
}
.name span { display: block; }
.tagline { margin: 0; max-width: 22em; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; }
.role { margin: -.6rem 0 0; color: var(--earth); font-size: clamp(.95rem, 1.1vw, 1.1rem); }
.bio { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: .6rem; }
@media (min-width: 48em) { .bio { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.75rem; } }
@media (min-width: 90em) { .bio { grid-template-columns: 11.5rem minmax(0, 1fr); gap: 2.25rem; } .bio .signature { width: 13rem; } }
.bio-portrait img { width: 100%; }
.bio .lede { font-size: clamp(1.1rem, 1.45vw, 1.6rem); }
.bio .signature { margin-top: 1rem; }

/* Prints: photos on paper, as if laid on a desk. */
.prints { position: relative; margin: 0 .5rem; }
.print {
  display: block; margin: 0;
  background: var(--grain), var(--paper);
  padding: clamp(.55rem, 1.1vw, .95rem);
  box-shadow: 0 1px 1px rgb(34 35 29 / .1), 0 22px 40px -18px rgb(34 35 29 / .5);
}
.print img { width: 100%; }
/* The drop is a share of the column width, so the cub's face always clears it. */
.print-front { position: relative; z-index: 1; transform: rotate(-1.4deg); margin-top: 27%; }
.print-front .log { margin: .75rem .1rem .1rem; }
.print-front a { display: block; }
.print-back {
  position: absolute; z-index: 0;
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
  transform: rotate(var(--rot));
}
.pile-1 { --rot: -6deg; width: 31%; top: 9%; left: 1%; }
.pile-2 { --rot: 2deg; width: 30%; top: 8%; left: 34%; }
.pile-3 { --rot: 6deg; width: 30%; top: 0; right: 3%; }
@media (max-width: 40em) {
  .print-front { margin-top: 29%; }
}

/* ---------- Field-log captions ---------- */
.log { margin: .45rem 0 0; font-size: .875rem; line-height: 1.35; font-weight: 400; }
.log-title { display: block; font-weight: 600; }
.log-meta { display: flex; flex-wrap: wrap; gap: 0 .75em; font-size: .8125rem; color: var(--earth); }
.log-latin { font-family: var(--serif); font-size: .8125rem; }
.log-place { color: var(--earth); }
.log-place::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin: 0 .35em .08em .1em;
  background: var(--straw); vertical-align: middle;
}

/* ---------- Type ---------- */
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.5; max-width: var(--measure); margin: 0; }
.section-title, .page-title { font-weight: 700; font-stretch: 75%; line-height: 1.02; letter-spacing: -.005em; margin: 0; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.page-title { font-size: clamp(2.6rem, 7vw, 5rem); }
.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; max-width: var(--measure); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--ink); color: var(--haze);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .85em 1.25em; border-radius: .2rem;
}
.button:hover { background: var(--earth); }
.wa-icon { flex: none; }

/* ---------- Home sections ---------- */

/* ---------- Signature ---------- */
/* Traced from Elias's own signature: a filled shape, in ballpoint blue. */
.signature { display: block; width: 10.5rem; height: auto; fill: var(--pen); }
.selected .section-title { margin-bottom: 1.25rem; }
.row-more { flex: 10000 1 13rem; display: flex; min-height: 9rem; }
.rows:has(.row-more)::after { display: none; }
.row-more a {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--grain-light), var(--ink); color: var(--haze); text-decoration: none;
  --focus: var(--straw);
}
.row-more a:hover { background: var(--grain-light), var(--earth); }
.row-more-title { font-weight: 700; font-stretch: 75%; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; }
.row-more-sub { font-size: .9rem; opacity: .8; }

/* ---------- Justified rows ---------- */
.rows {
  list-style: none; margin: 0; padding: 0 var(--edge);
  display: flex; flex-wrap: wrap; gap: 1.25rem .5rem;
}
.rows::after { content: ""; flex-grow: 1e4; }
.row-item { flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row)); min-width: 0; }
.tile { display: block; background: var(--tone, var(--mist)); }
.tile img { width: 100%; }
@media (min-width: 64em) { :root { --row: 17rem; } }

/* ---------- Guests ---------- */
.guests { padding-block: clamp(4rem, 9vw, 7rem) 0; }
.guests .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.guest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 56em) { .guest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guest { margin: 0; display: grid; gap: 1rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.guest blockquote { margin: 0; }
.guest blockquote p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; }
.guest blockquote p::before { content: "\201C"; }
.guest blockquote p::after { content: "\201D"; }
.guest figcaption { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.guest-name { font-weight: 600; }
.guest-country { color: var(--earth); }

/* ---------- Photo safaris: facts beside the map ---------- */
.safaris {
  margin-top: clamp(4rem, 10vw, 8rem);
  background: var(--grain), var(--mist);
  background: var(--grain), oklch(0.93 min(calc(var(--c, 0) * .45), .028) var(--h, 0));
}
.safaris-inner { display: grid; gap: clamp(3rem, 6vw, 4rem); padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5rem, 11vw, 8.5rem); }
@media (min-width: 60em) {
  .safaris-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}
.safaris-text { display: grid; gap: 1.5rem; justify-items: start; align-content: center; }
.safaris-text .lede { font-size: clamp(1.1rem, 1.45vw, 1.4rem); }

.facts { margin: 0; display: grid; gap: 0; width: 100%; max-width: 36em; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgb(34 35 29 / .15); }
.facts div:last-child { border-bottom: 1px solid rgb(34 35 29 / .15); }
.facts dt { color: var(--earth); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 30em) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

/* The map on a sheet of paper, with a print laid across its corner. */
.desk { position: relative; }
.map-sheet {
  background: var(--grain), var(--paper);
  padding: clamp(.75rem, 2.5vw, 2rem);
  box-shadow: 0 1px 1px rgb(34 35 29 / .08), 0 26px 46px -24px rgb(34 35 29 / .45);
  transform: rotate(-.6deg);
}
.print-map { position: absolute; z-index: 1; width: 35%; left: -6%; bottom: -14%; transform: rotate(3deg); }
.print-map a { display: block; }
.print-map .log { margin: .6rem .1rem .1rem; }
@media (max-width: 40em) {
  .desk { margin-bottom: 4.5rem; }
  .print-map { width: 40%; left: -2%; bottom: -26%; }
  .print-map .log { font-size: .75rem; }
  .print-map .log-meta { display: none; }
}

/* ---------- Route map ---------- */
.map { width: 100%; height: auto; display: block; color: var(--ink); }
.map-lines path, .map-lines ellipse, .map-lines circle { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.map .water { fill: oklch(0.86 0.03 225 / .55); stroke: oklch(0.45 0.05 230); stroke-width: .9; }
.map .park { fill: oklch(0.8 0.07 95 / .32); stroke-width: 1; stroke-dasharray: 5 2.5; }
.map .border { stroke-dasharray: 7 3 1.5 3; stroke-width: .9; opacity: .7; }
.map .contour.faint { opacity: .45; }
.map .grass path { stroke-width: .8; opacity: .6; }
.map .route-line path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 5.5; }
.map .stops circle { fill: var(--pen); }
.map .stops .town { fill: var(--ink); }
.map text { fill: currentColor; }
.map .park-name { font-family: var(--serif); font-style: italic; font-size: 15px; font-weight: 500; }
.map .note { font-family: var(--serif); font-style: italic; font-size: 9.5px; fill: var(--earth); }
.map .lake { font-family: var(--serif); font-style: italic; font-size: 8.5px; fill: oklch(0.42 0.05 230); }
.map .place { font-family: var(--sans); font-size: 9px; font-weight: 500; }
.map .country { font-family: var(--sans); font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .12em; opacity: .5; }
.map .step { font-family: var(--serif); font-style: italic; font-size: 12px; font-weight: 600; fill: var(--pen); }
@media (max-width: 40em) {
  .map .note { font-size: 10.5px; }
  .map .lake { font-size: 9.5px; }
  .map .place { font-size: 10px; }
}

/* ---------- Inner pages ---------- */
.notfound { display: grid; gap: 1.5rem; padding-block: clamp(3rem, 8vw, 6rem); }
.page-head { display: grid; gap: 1.25rem; padding-block: clamp(2rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; }
.collection { margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.collection-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; margin-bottom: 1.25rem; }
.collection-head .section-title { margin: 0; }
.collection-meta { margin: 0; display: flex; gap: 1rem; color: var(--earth); }
.collection-meta i { font-family: var(--serif); font-size: 1.15rem; }
.lead { margin: 0 0 1.25rem; }
.lead .tile img { width: 100%; max-height: 80svh; object-fit: cover; }
/* In the gallery, a short last row stretches to the full width instead of ending in a gap. */
.collection .rows::after, .more-from .rows::after { display: none; }


.single { margin: 0; }
/* Photo pages take their colours from the photo. */
.photo-page { background: var(--grain), oklch(0.925 min(calc(var(--c, 0) * .5), .03) var(--h, 0)); }
.single-photo { position: relative; touch-action: pan-y; background: var(--night); background: oklch(0.21 calc(var(--c, 0) * .6) var(--h, 0)); }
.single-photo img { width: 100%; max-height: 76svh; object-fit: contain; margin-inline: auto; -webkit-user-drag: none; }
.single-step {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  color: var(--haze); text-decoration: none; font: 300 2.6rem/1 var(--sans);
  background: rgb(22 23 15 / .35); border-radius: 50%; --focus: var(--straw);
}
.single-step:hover { background: rgb(22 23 15 / .6); }
.single-prev { left: .75rem; }
.single-next { right: .75rem; }
.single-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; padding-block: 1.5rem; }
.single-info { display: grid; gap: .9rem; }
.single-title { margin: 0; font-weight: 700; font-stretch: 75%; font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.05; }
.notes { margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.notes dt { font-size: .8125rem; color: var(--earth); }
.notes dd { margin: 0; font-weight: 600; }
.notes i { font-family: var(--serif); font-weight: 400; }

.ask { display: grid; gap: .75rem; }
.ask-lead { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.ask-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ask-price { font-weight: 400; opacity: .8; margin-left: .35em; white-space: nowrap; }
.ask-list .button { flex-wrap: wrap; row-gap: .15em; }
.ask-note { margin: 0; max-width: 34em; font-size: .875rem; color: var(--earth); }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--haze); }

/* Story from the field, with Elias's voice note */
.story { display: grid; gap: 1.25rem; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid rgb(34 35 29 / .14); }
@media (min-width: 60em) { .story { grid-template-columns: 14rem minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); } }
.story-title { margin: 0; font-weight: 700; font-stretch: 75%; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; }
.story-body { display: grid; gap: 1.75rem; max-width: 40rem; }
.story-text { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.6; }
.story-text p { margin: 0; }
.story-text p + p { margin-top: .9em; }
.listen { display: grid; gap: .6rem; }
.listen-label { margin: 0; font-weight: 600; }
.listen-label span { font-weight: 400; color: var(--earth); }
.listen audio { width: 100%; max-width: 28rem; }
.player { display: flex; align-items: center; gap: .9rem; max-width: 28rem; }
.player-btn {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--pen); color: var(--paper);
}
.player-btn:hover { background: var(--ink); }
.player-btn svg { fill: currentColor; }
.player .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: inline; }
.player-bar {
  flex: 1; appearance: none; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(var(--pen), var(--pen)) 0 / var(--p, 0%) 100% no-repeat, rgb(34 35 29 / .18);
}
.player-bar::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pen); }
.player-bar::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--pen); }
.player-time { flex: none; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--earth); }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding-block: 1.5rem; margin-bottom: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgb(34 35 29 / .14); border-bottom: 1px solid rgb(34 35 29 / .14);
}
.byline-portrait { width: 4.5rem; flex: none; align-self: flex-start; }
.byline-portrait img { width: 100%; }
.byline-text { flex: 1 1 12rem; }
.byline-text p { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.1rem; }
.byline-text a { font-weight: 600; }
.signature-byline { width: 9rem; }
@media (max-width: 40em) { .signature-byline { display: none; } .byline { flex-wrap: nowrap; } }
.more-from .section-title { margin-bottom: 1.25rem; }
.more-from .section-title a { text-decoration: none; }
.more-from .section-title a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--grain-light), var(--ink); color: var(--haze); margin-top: clamp(4rem, 10vw, 8rem); --focus: var(--straw); }
main:has(> .safaris:last-child) + .footer { margin-top: 0; }
.footer-inner { padding: clamp(3.5rem, 8vw, 6rem) var(--edge) 2rem; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.footer-cta { display: grid; gap: 1.75rem; justify-items: start; }
@media (min-width: 60em) { .footer-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 4rem; } }
.footer-title { margin: 0; max-width: 17em; font-weight: 700; font-stretch: 75%; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.02; }
.button-light { background: var(--haze); color: var(--ink); }
.button-light:hover { background: var(--straw); }
.footer-sign { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.signature-footer { width: clamp(13rem, 30vw, 24rem); fill: var(--haze); opacity: .55; }
.footer-clock { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.clock-time { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 3rem;
  padding-top: 1.5rem; border-top: 1px solid rgb(231 234 232 / .18);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-weight: 600; }
.footer-small { font-size: .875rem; opacity: .75; display: grid; gap: .25rem; }
.footer-small p { margin: 0; }
@media (min-width: 48em) { .footer-small { text-align: right; } }

@media (prefers-reduced-motion: no-preference) {
  /* One opening moment: the name rises, then the prints settle on the desk. */
  .name { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .print-front { animation: settle-front 1.1s cubic-bezier(.2, .7, .2, 1) both .35s; }
  .print-back { animation: settle-back 1.1s cubic-bezier(.2, .7, .2, 1) both .5s; }
  .pile-2 { animation-delay: .6s; }
  .pile-3 { animation-delay: .7s; }
  @keyframes rise { from { opacity: 0; transform: translateY(.3em); } }
  @keyframes settle-front { from { opacity: 0; transform: translateY(1.5rem) rotate(1deg); } }
  @keyframes settle-back { from { opacity: 0; transform: translateY(1.5rem) rotate(calc(var(--rot) + 4deg)); } }
}
