/* ==================================================================
   uvo.dk — Ulrik Vorsaa Oldenburg
   Full-bleed colour fields, one grotesque, no cards or borders.
   Archivo stands in for ABC Diatype, which is a licensed retail face.

    1. Tokens        2. Reset         3. Chrome + menu
    4. Splash        5. Masthead      6. Statements
    7. Plates        8. Chapters      9. Index rows
   10. Page content 11. Outro        12. Motion
   ================================================================== */

/* ---------------------------- 1. Tokens --------------------------- */
:root {
  --red:    #E72604;
  --paper:  #EDEAE3;
  --ink:    #330000;
  --grey:   #C9C4B9;
  --grey-2: #8A8479;
  --red-deep: #8C1703;   /* map borders between visited countries */
  --hair:   rgba(51, 0, 0, 0.25);

  --pad:  clamp(1rem, 2.5vw, 2rem);
  --maxw: 1600px;

  /* Three roles. Display carries the big type, label-face the small caps
     labels, grot the running text — condensed faces tire at length. The
     labels are Archivo, same as the body; swap --label-face for a monospace
     if you ever want the technical look back. */
  --display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --label-face: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --grot:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* One small-caps label size used everywhere labels appear. */
  --label: 0.8rem;
  /* The persistent chrome: UVO / MENU / CLOSE. --chrome-h is its full height,
     used by everything that has to start below the bar. */
  --chrome-size: clamp(1.2rem, 2vw, 1.75rem);
  --chrome-pad-y: calc(var(--pad) * 0.6);
  /* The signature lines at the foot of the page and of the menu. Bigger than
     a label, deliberately smaller than the chrome. */
  --sig-size: clamp(0.95rem, 1.3vw, 1.3rem);
  --chrome-h: calc(var(--chrome-pad-y) * 2 + var(--chrome-size));
}

/* ------------------------ Fonts (self-hosted) ----------------------- */
/* Latin subset only — the site's text is English/Danish. Hosting these here
   removes three third-party connections and a render-blocking stylesheet.
   Archivo is one variable file covering every weight. The unicode-range is
   Google's own, so characters outside it (-> and the infinity sign) fall back
   exactly as they did before. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-var.woff2) format('woff2');
  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: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/saira-condensed-700.woff2) format('woff2');
  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: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/saira-condensed-800.woff2) format('woff2');
  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: 'Saira Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/saira-condensed-900.woff2) format('woff2');
  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;
}

/* Windows has no country-flag glyphs — Chrome and Edge fall back to showing
   the two-letter code ("TH" instead of the Thai flag). This font supplies
   them, scoped to the regional-indicator range so nothing else is affected. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("../fonts/twemoji-country-flags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF;
  font-display: swap;
}

/* ---------------------------- 2. Reset ---------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grot);
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
/* Chrome's UA sheet sets text-transform on buttons, so inherit it back. */
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-transform: inherit; letter-spacing: inherit;
}

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 200;
  font-size: var(--label); text-transform: uppercase;
}
.skip-link:focus { left: var(--pad); top: var(--pad); }

.label {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ---- Who gets which face --------------------------------------------
   Everything else inherits --grot from <body>. Keep this list as the one
   place the typographic system is decided. */
.logotype, .logotype__name, .masthead__title, .statement h2,
.chapter__num, .chapter__title, .row__title, .menu__name,
.entry__what, .stat__num, .countries, .outro__big, .outro__mail,
.ledger__what, .summary__num, .dives__name {
  font-family: var(--display);
}

.label, .chrome, .skip-link, .btn, .logotype sup, .splash__foot,
.menu__num, .menu__close, .menu__foot, .section__label, .index__label,
.row__num, .row__meta, .entry__when, .entry__where, .entry__dates,
.stat__label, .corner-label, .map__key, .plate, .caption,
.outro__foot, .facts h3, .facts span, .ledger__year, .ledger__note, .chips li,
.summary__label, .summary__note,
.dives__n, .dives__site, .dives__when, .dives__stat {
  font-family: var(--label-face);
}

/* ------------------------ 3. Chrome + menu ------------------------ */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--chrome-pad-y) var(--pad);
  background: var(--red);
  color: var(--ink);
  font-size: var(--chrome-size); font-weight: 900; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em;
}

.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--red);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  overflow-y: auto;
}
.menu[hidden] { display: none; }

.menu__close {
  align-self: flex-end;
  font-size: var(--chrome-size); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em;
}

.menu__list { margin: 8vh 0; }
.menu__item + .menu__item { border-top: 1px solid rgba(51, 0, 0, 0.3); }
.menu__link {
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.4rem 0;
  transition: padding-left 0.25s ease;
}
.menu__link:hover,
.menu__link:focus-visible { padding-left: 1rem; }

/* Current page: the whole line inverts — ink bar edge to edge, type in red.
   The negative inline margin cancels the menu's padding so the bar bleeds. */
.menu__link[aria-current="page"] {
  background: var(--ink);
  color: var(--red);
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}

/* auto basis so the number column is exactly as wide as its digits;
   tabular figures keep them aligned now that the face is proportional. */
.menu__num {
  flex: 0 0 auto;
  font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;   /* keep 00-06 the same width */
}
.menu__name {
  font-size: clamp(2rem, 7.5vw, 6.5rem);
  font-weight: 800; line-height: 0.94; letter-spacing: -0.045em;
  text-transform: uppercase;
}

.menu__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--sig-size); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.menu__foot ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.menu__foot a { border-bottom: 2px solid transparent; }
.menu__foot a:hover { border-bottom-color: currentColor; }
.menu__foot ul a,
.menu__foot ul a:hover { border-bottom: 0; }

/* Social marks. Inline SVG so they inherit the ink colour and need no
   extra request; sized in em so they track the signature type. */
.icon {
  display: block;
  width: 1.4em; height: 1.4em;
  fill: currentColor;
  transition: opacity 0.18s ease;
}
a:hover > .icon,
a:focus-visible > .icon { opacity: 0.55; }

body.is-locked { overflow: hidden; }

/* ---------------------------- 4. Splash --------------------------- */
.splash {
  position: relative;
  min-height: 100svh;
  background: var(--red);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--chrome-h) var(--pad) var(--pad);
  overflow: hidden;          /* the glyph run's right side bearing overhangs */
}
/* Added by main.js on the home page. The red the splash fades away from:
   behind all content, above the paper canvas. Only its opacity animates. */
.fade-layer {
  position: fixed; inset: 0; z-index: -1;
  background: var(--red);
  pointer-events: none;
  will-change: opacity;
}
/* The monogram keeps Archivo deliberately. A condensed face has to grow far
   taller to span three letters edge to edge — in Saira the splash stopped
   fitting one screen, and capping the height shrank UVO to 39% of the width.
   Archivo 900 "UVO" inks 2.321em wide with a 0.07em left side bearing; at
   -0.045em tracking that is 2.231em, so 44.8vw lands it exactly edge to edge.
   The negative margin cancels the padding and the bearing. */
.logotype {
  font-family: var(--grot);
  font-size: 44.8vw;
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: -0.045em;
  margin: 0 0 0 calc(var(--pad) * -1 - 0.07em);
}
.logotype sup {                /* sits on the cap line, clear of the chrome */
  position: absolute; top: var(--chrome-h); right: var(--pad);
  font-size: 0.9rem; line-height: 1;
  letter-spacing: 0; font-weight: 700;
}
/* Sits under the logotype, sized so its right edge lands on the bottom vertex
   of the V. Measured: that vertex is at 48.17vw, the name starts at one
   gutter in, and the string inks 13.93em wide in Saira Condensed 800 — so the
   size is the available run divided by 8.882. No max cap: it has to keep
   growing with the logotype, which is sized in vw. */
.logotype__name {
  margin-top: 0.75rem;
  font-size: max(1.05rem, calc((48.17vw - var(--pad)) / 8.882));
  font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Pinned to the bottom of the splash, above the footer line — the name
   stays glued to the logo, the portrait and footer glue to each other. */
.splash__bottom {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

/* The cutout carries its own ink-on-transparent colouring (baked into the
   PNG), so it just needs a ceiling — it shouldn't out-grow the splash.
   align-self overrides the column's default stretch: without it a flex
   item with width:auto is stretched to the container's full width,
   distorting the aspect ratio instead of sizing off the height alone. */
.splash__portrait {
  display: block;
  align-self: flex-start;
  height: clamp(11rem, 34vh, 22rem);
  width: auto;
}

.splash__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem;
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.splash__foot p { max-width: 30ch; }

/* The scroll cue is a call to action, not a caption — sized to read as one. */
.splash__scroll {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.03em;
}

/* --------------------------- 5. Masthead -------------------------- */
/* Subpage opener. Paper, not red — red stays an event. */
/* Top padding only has to clear the fixed chrome, not hold a screen of air —
   so it is derived from the chrome's own height (its padding plus a line of
   type) plus a small gap. Change --chrome-size and this follows. */
.masthead {
  padding:
    calc(var(--chrome-h) + clamp(0.9rem, 2.5vh, 2rem))
    var(--pad)
    clamp(1.75rem, 3.5vh, 3rem);
  max-width: var(--maxw); margin-inline: auto;
}
.masthead__num { margin-bottom: 0.9rem; }
/* 10.6vw is set by the longest title: "ACHIEVEMENTS" inks 8.224em wide in
   Saira Condensed 800, and the measure is 100vw minus two gutters. */
.masthead__title {
  font-size: clamp(2.3rem, 10.6vw, 11rem);
  font-weight: 800; line-height: 0.82; letter-spacing: -0.045em;
  text-transform: uppercase;
}
.masthead__lede {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.9vw, 1.6rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.025em;
}

/* -------------------------- 6. Statements ------------------------- */
.statement {
  display: grid; place-items: center;
  padding: 16vh var(--pad);
  text-align: center;
}
.statement--tall { min-height: 95svh; padding: 18vh var(--pad); }
.statement h2 {
  font-size: clamp(1.75rem, 5.4vw, 5rem);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 22ch;
}

/* ---------------------------- 7. Plates --------------------------- */
/* Grey blocks are placeholders — swap each for <img class="plate__img">. */
.strip { display: flex; gap: 3px; width: 100%; overflow: hidden; }
.strip > * { flex: 1 0 22%; aspect-ratio: 4 / 3; }
.strip--tall > * { aspect-ratio: 3 / 4; }

.plate {
  position: relative;
  background: var(--grey);
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--grey-2);
  overflow: hidden;
}
.plate--red  { background: var(--red);  color: #F6B6A4; }
.plate--ink  { background: var(--ink);  color: #6B4444; }
.plate--wide { width: 100%; aspect-ratio: 21 / 9; }
.plate__img  { width: 100%; height: 100%; object-fit: cover; }

/* Corner label — place on a travel photo, year on a painting. A solid ink block rather than text on a scrim —
   these photos run from Antarctic snow to a night dive, and only an opaque
   ground is legible across all of them. */
.corner-label {
  position: absolute; right: 0; bottom: 0;
  max-width: calc(100% - 1.5rem);
  padding: 0.35rem 0.55rem;
  background: var(--ink); color: var(--paper);
  font-size: 0.62rem; font-weight: 800;
  line-height: 1.25; text-align: right;
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* --------------------------- 8. Chapters -------------------------- */
.chapter {
  padding: 10vh var(--pad) 0;
  max-width: var(--maxw); margin-inline: auto;
}
.chapter__num {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
}
.chapter__title {
  font-size: clamp(2.75rem, 11vw, 11rem);
  font-weight: 800; line-height: 0.82; letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.chapter__body {
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  font-weight: 800; line-height: 1.35;
  text-transform: uppercase; letter-spacing: 0.01em;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

/* -------------------------- 9. Index rows ------------------------- */
.index {
  padding: 14vh var(--pad);
  max-width: var(--maxw); margin-inline: auto;
}
.index__label { margin-bottom: 3rem; }

.row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hair);
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.row:last-child { border-bottom: 1px solid var(--hair); }
.row:hover, .row:focus-visible { padding-left: 1.25rem; color: var(--red); }
.row__num { flex: 0 0 2.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; }
.row__title {
  flex: 1;
  font-size: clamp(1.75rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase;
}
.row__meta {
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  text-align: right;
}
@media (max-width: 640px) { .row__meta { display: none; } }

/* ------------------------- 10. Page content ----------------------- */
.section {
  padding: clamp(2rem, 4.5vh, 3.5rem) var(--pad);
  max-width: var(--maxw); margin-inline: auto;
}
.section__label { margin-bottom: 1.4rem; }

/* Two-column prose: sticky heading, running text. */
.prose { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .prose { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; }
}
.prose p {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500; line-height: 1.35; letter-spacing: -0.02em;
  max-width: 58ch;
}
.prose p + p { margin-top: 1.25rem; }

/* Dated entries — CV roles, achievements, trips. */
.entry {
  display: grid; gap: 0.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--hair);
}
@media (min-width: 800px) {
  .entry { grid-template-columns: 9rem minmax(0, 1fr) 12rem; align-items: baseline; }
}
.entry:last-child { border-bottom: 1px solid var(--hair); }
.entry__when {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.entry__what {
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.entry__note {
  margin-top: 0.5rem;
  font-size: 0.95rem; font-weight: 500; line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 52ch;
}
.entry__where {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
@media (min-width: 800px) { .entry__where { text-align: right; } }

.entry__dates {
  margin-top: 0.35rem;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--grey-2);
}

/* A trip is a route: flag, country, arrow, repeat. */
.route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.45em; }
.leg { display: inline-flex; align-items: baseline; gap: 0.3em; }
.leg::after {
  content: "\2192";                /* → */
  margin-left: 0.45em;
  font-size: 0.72em; opacity: 0.4;
}
.leg:last-child::after { content: none; }

.flag {
  font-family: "Twemoji Country Flags", var(--grot);
  font-size: 0.78em;
  line-height: 1;
}

/* Big number stats — the group centred on the page, each number centred over
   its own label. Flex rather than a grid so the items size to their content
   and sit together instead of being stretched across the full measure. */
.stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2.5rem clamp(2.5rem, 9vw, 8rem);
}
.stat { text-align: center; }
.stat__num {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800; line-height: 0.85; letter-spacing: -0.05em;
}
/* In Saira Condensed the digits ink 0.69em tall while ∞ inks only 0.41em, so
   at the same font-size it looks half-sized. 0.69/0.41 = 1.683 matches the cap
   height exactly, and the 75.2% origin is the point that lands the scaled
   glyph's top on the digits' cap line and its bottom on the baseline.
   Done with a transform, not font-size, so the row's layout is untouched.
   Both numbers are font-specific — recompute if the display face changes. */
.stat__num .glyph {
  display: inline-block;
  transform: scale(1.683);
  transform-origin: 50% 75.2%;
}
.stat__label { margin-top: 0.5rem; }

/* World map — inline SVG, so it takes its colours from the tokens.
   Equirectangular, clipped at 84N/60S. */
.map { margin: 0; width: 100%; }
.map__svg { display: block; width: 100%; height: auto; }
/* Borders are a fixed width in map units, stepped by breakpoint so they land
   near a half-pixel hairline at every size. (vector-effect:non-scaling-stroke
   did this automatically, but it forces every one of ~14,000 vertices to be
   re-stroked in screen space each time the map paints — slow on phones.) */
.map { --map-hair: 1.4; }                       /* the map is 1000 units wide and fills the screen: */
@media (min-width: 480px)  { .map { --map-hair: 1;   } }   /* 0.5px = 0.5 x 1000 / screen width */
@media (min-width: 768px)  { .map { --map-hair: 0.7; } }
@media (min-width: 1100px) { .map { --map-hair: 0.5; } }
@media (min-width: 1600px) { .map { --map-hair: 0.35; } }
.map__c {
  fill: var(--grey);
  stroke: var(--grey-2); stroke-width: var(--map-hair);
}
.map__c--on { fill: var(--red); stroke: var(--red-deep); stroke-width: calc(var(--map-hair) * 1.5); }
.map__dot { fill: var(--red); stroke: var(--red-deep); stroke-width: calc(var(--map-hair) * 2); }

.map__key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  padding: 1rem var(--pad) 0;
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.map__swatch {
  width: 0.9rem; height: 0.9rem;
  background: var(--red);
}
.map__note {
  flex: 1 1 22rem;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--grey-2);
}

/* Gallery — masonry columns so every canvas keeps its own proportions.
   Cropping paintings to a uniform grid would cut the work itself. */
.gallery { columns: 2; column-gap: 3px; }
@media (min-width: 700px)  { .gallery { columns: 3; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }

.gallery figure {
  position: relative;
  break-inside: avoid;
  margin: 0 0 3px;
}
.gallery img { width: 100%; height: auto; }


/* Headline summary — the three things worth knowing before the lists. */
.summary {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair);
  padding-top: 2rem;
}
@media (min-width: 720px) { .summary { grid-template-columns: repeat(3, 1fr); } }

.summary__item { text-align: center; }

.summary__icon {
  display: block; margin-inline: auto;
  width: clamp(2.25rem, 4vw, 3.25rem);
  height: clamp(2.25rem, 4vw, 3.25rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.9rem;
}
.summary__num {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 0.85; letter-spacing: -0.045em;
}
/* Words need to be smaller than figures to occupy the same space — at the
   numeric size "GROUNDLAUNCHING" (7.12em wide) overruns its column. */
.summary__num--word { font-size: clamp(1.6rem, 3.9vw, 3.4rem); }
.summary__label {
  margin-top: 0.55rem;
  font-size: clamp(1.1rem, 1.9vw, 1.65rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.summary__note {
  margin-top: 0.3rem;
  font-size: var(--label); font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--grey-2);
  max-width: 26ch; margin-inline: auto;
}

/* Ledger — a dated list. Compact enough to carry twenty rows without turning
   the page into a scroll, but still typographic rather than tabular. */
.ledger { border-top: 1px solid var(--hair); }
.ledger li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 760px) {
  /* The note column takes exactly the width its text needs, so a long note
     stays on one line while there is room, and only wraps when the row runs
     out of space. A fixed width wrapped them even on a wide screen. */
  .ledger li { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, max-content); }
}
.ledger__year {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ledger__what {
  font-size: clamp(1.1rem, 2.3vw, 1.85rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.ledger__note {
  grid-column: 2;
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--grey-2);
}
@media (min-width: 760px) {
  .ledger__note { grid-column: 3; text-align: right; }
}

/* Dive log — five fields per row, so it gets its own grid rather than
   squeezing into the ledger. Stacks under the number on narrow screens. */
.dives { border-top: 1px solid var(--hair); }
.dives li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.1rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hair);
}
.dives__n { grid-column: 1; grid-row: 1; font-variant-numeric: tabular-nums; }
.dives__name, .dives__site, .dives__when, .dives__stat { grid-column: 2; }
/* The flag leads each row's headline, sized against the display type. */
.dives__name { display: flex; align-items: baseline; gap: 0.45em; }
.dives__name .flag { font-size: 1em; }

.dives__n, .dives__when, .dives__stat, .dives__site {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.dives__n, .dives__site, .dives__when { color: var(--grey-2); }
.dives__name {
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.dives__stat { font-variant-numeric: tabular-nums; }

@media (min-width: 860px) {
  .dives li {
    /* The stat column is a fixed width, not auto: "50 min · 8 m" is narrower
       than "50 min · 30 m", and an auto column let that one row's flexible
       columns grow, nudging its site 4px out of line with the rest. */
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr) 7.5rem 8.25rem;
    gap: 0 1.5rem;
    align-items: baseline;
  }
  .dives__name { grid-column: 2; }
  .dives__site { grid-column: 3; }
  .dives__when { grid-column: 4; }
  .dives__stat { grid-column: 5; text-align: right; }
}

/* A year's countries — like .route but with no arrows, since these are
   separate trips rather than one journey. */
.trail {
  display: flex; flex-wrap: wrap; gap: 0.15em 0.9em;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
}
.trail span { display: inline-flex; align-items: baseline; gap: 0.35em; }

/* Undated things — a simple run of boxes. */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--ink);
}

/* The country list — one continuous run of display type, diamond-separated. */
.countries {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.15em 0.55em;
  font-size: clamp(1.15rem, 3.4vw, 2.75rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.countries span { display: inline-flex; align-items: baseline; gap: 0.55em; }
.countries span::after {
  content: "\25C6";              /* ◆ */
  font-size: 0.3em; opacity: 0.45;
  transform: translateY(-0.25em);
}
.countries span:last-child::after { content: none; }

/* Media grid — art, travels. */
.grid { display: grid; gap: 3px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid .plate { aspect-ratio: 1; }
.grid .plate--portrait { aspect-ratio: 3 / 4; }
.grid .plate--tall { grid-row: span 2; aspect-ratio: 3 / 5; }

.caption {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 0.6rem;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Simple key/value facts. */
.facts { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts h3 {
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  padding-bottom: 0.75rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--hair);
}
.facts li { margin-bottom: 0.9rem; }
.facts b { display: block; font-weight: 800; letter-spacing: -0.02em; }
.facts span { font-size: 0.8rem; font-weight: 600; color: #55504A; }
.facts a { border-bottom: 2px solid var(--hair); }
.facts a:hover { border-bottom-color: var(--red); color: var(--red); }

.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  background: var(--ink); color: var(--paper);
  font-size: var(--label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--red); }

/* ---------------------------- 11. Outro --------------------------- */
.outro {
  background: var(--red);
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
}
.outro__big {
  font-size: clamp(2.5rem, 11.5vw, 12rem);
  font-weight: 800; line-height: 0.82; letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-top: 18vh;
}
.outro__mail {
  display: inline-block;
  font-size: clamp(1.1rem, 3.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-top: 2rem;
  border-bottom: 0.08em solid currentColor;
}
.outro__foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: var(--sig-size); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.outro__foot ul { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.outro__foot a { border-bottom: 2px solid transparent; }
.outro__foot a:hover { border-bottom-color: currentColor; }
.outro__foot ul a,
.outro__foot ul a:hover { border-bottom: 0; }

/* ---------------------------- 12. Motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  .row, .menu__link, .btn, .icon { transition: none; }
}
