/* ── Shea McCrary — design system ──────────────────────────────────────
   Deliberately distinct from the AWE brand: no slate blue, no dusty rose,
   no Jost/Barlow/Roboto. Bone ground, ink type, blaze orange as structure. */

:root {
  --bone:      #f2f1ec;
  --ink:       #15211c;
  --blaze:     #c9952f;   /* brass: fills, rules, large display type */
  --blaze-ink: #7d5a14;   /* small text on the light ground: 5.55:1.
                             The brighter brass is only 2.4:1 there. */
  --muted:     #3a4440;   /* body copy on bone */
  --dim:       #5f6661;   /* captions on bone */
  --dim-ink:   #9aa39d;   /* body copy on ink */
  --faint-ink: #848d87;   /* captions on ink: 5.2:1 */
  --line:      #d2d2cb;   /* rules on bone */
  --line-ink:  #2a3832;   /* rules on ink */

  --display: Syne, system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, sans-serif;

  --gutter: 56px;
  --measure: 68ch;
}

@media (max-width: 900px) { :root { --gutter: 32px; } }
@media (max-width: 560px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing. Every img carries width/height attributes so
   the browser can reserve space before the file loads; without height:auto,
   CSS shrinking the width leaves the attribute height in place and the image
   stretches vertically. The object-fit rules below set their own height and
   override this. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blaze-ink); }

:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bone);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: var(--gutter); top: 12px; }

/* ── type ───────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 8.4vw, 6.75rem);
  line-height: 0.86;
  letter-spacing: -0.048em;
  text-transform: uppercase;
  max-width: 14ch;
}

.headline {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  max-width: 20ch;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule-eyebrow { display: flex; align-items: center; gap: 14px; }
.rule-eyebrow::before {
  content: ""; flex: none;
  width: 44px; height: 4px; background: var(--blaze);
}

.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.62; color: var(--muted); }
.caption { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* ── shell ──────────────────────────────────────────────────────────── */

.wrap { padding-inline: var(--gutter); }
.band { padding-block: clamp(48px, 7vw, 86px); }
.band-ink { background: var(--ink); color: var(--bone); }
.band-ink .lede { color: var(--dim-ink); }
.band-ink .caption { color: var(--faint-ink); }
.band-blaze { background: var(--blaze); color: var(--ink); }

.blaze-rule { height: 8px; background: var(--blaze); }

.link-cta {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 2px solid var(--blaze);
  padding-bottom: 5px;
}

/* ── masthead ───────────────────────────────────────────────────────── */

.masthead {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding-block: 26px;
}
.masthead .wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: 17px; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap;
}
.masthead nav { display: flex; flex-wrap: wrap; gap: 14px 26px; min-width: 0; }
@media (max-width: 620px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .masthead nav { gap: 12px 20px; }
  .masthead nav a { font-size: 12px; letter-spacing: 0.04em; }
}
.masthead nav a {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.masthead nav a[aria-current="page"] { color: var(--blaze-ink); }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); }
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Two scrims: a vertical one to seat the masthead and the bottom edge, and a
   diagonal one from the left so the headline never sits on bare snow. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(102deg,
      rgba(16,16,16,0.82) 0%, rgba(16,16,16,0.62) 30%,
      rgba(16,16,16,0.22) 58%, rgba(16,16,16,0) 80%),
    linear-gradient(180deg,
      rgba(16,16,16,0.60) 0%, rgba(16,16,16,0.10) 26%,
      rgba(16,16,16,0.28) 62%, rgba(16,16,16,0.90) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: min(84vh, 840px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 64px; padding-bottom: clamp(36px, 5vw, 52px);
}
.hero-inner .masthead nav a[aria-current="page"] { color: var(--bone); }
.band-ink .masthead nav a[aria-current="page"] { color: var(--blaze); }
.hero-statement { display: flex; flex-direction: column; gap: 24px; }

/* ── grids ──────────────────────────────────────────────────────────── */

.split {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-portrait { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) {
  .split, .split-even, .split-portrait { grid-template-columns: minmax(0, 1fr); }
}

.cards { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 18px; }
.card-figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.card-figure img { width: 100%; height: 100%; object-fit: cover; }
.card-num {
  position: absolute; left: 0; bottom: 0;
  background: var(--blaze); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 14px;
  padding: 7px 12px;
}
.card h3 { font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.022em; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

.pairs { display: grid; gap: 30px 52px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .pairs { grid-template-columns: minmax(0, 1fr); } }
.pair { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); padding-top: 15px; }
.band-ink .pair { border-top-color: var(--line-ink); }
.pair dt { font-size: 19px; font-weight: 600; }
.pair dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--dim); }
.band-ink .pair dd { color: var(--dim-ink); }

/* ── entries (writing index) ────────────────────────────────────────── */

.entries { display: flex; flex-direction: column; }
.entry {
  display: grid; gap: 10px 32px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding-block: 26px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 700px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.entry-date { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap; }
.entry h2 { font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.022em; }
.entry p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ── log table ──────────────────────────────────────────────────────── */

.log-scroll { overflow-x: auto; }
.log { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.log th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink);
}
.log td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.log .col-name { font-size: 19px; font-weight: 600; }
.log .col-elev { font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .col-role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.log tr[data-status="unverified"] { opacity: 0.55; }
.badge-unverified {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--blaze); color: var(--blaze);
  padding: 2px 6px; white-space: nowrap;
}

/* ── article ────────────────────────────────────────────────────────── */

.article-head { margin-bottom: clamp(32px, 4vw, 48px); }
.article-grid {
  display: grid; gap: clamp(20px, 4vw, 56px);
  grid-template-columns: 150px minmax(0, var(--measure));
  align-items: start;
}
@media (max-width: 860px) { .article-grid { grid-template-columns: minmax(0, 1fr); } }
.article-meta {
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 32px;
}
@media (max-width: 860px) { .article-meta { position: static; } }

.article { max-width: var(--measure); }
.article h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.1;
  letter-spacing: -0.022em; margin-top: 2.1em; margin-bottom: 0.6em;
}
.article h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.15;
  letter-spacing: -0.015em; margin-top: 1.8em; margin-bottom: 0.45em;
}
.article p { margin: 0 0 1.15em; color: var(--muted); }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.3em; color: var(--muted); }
.article li { margin-bottom: 0.45em; }
.article strong { color: var(--ink); font-weight: 600; }
.article a { border-bottom: 1px solid var(--blaze); }
.article img { margin: 2em 0; }
.article blockquote {
  margin: 2em 0; padding-left: 24px; border-left: 4px solid var(--blaze);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink);
}

/* ── footer ─────────────────────────────────────────────────────────── */

.colophon {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 40px;
}
.colophon .shout {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  line-height: 0.94; letter-spacing: -0.038em;
  text-transform: uppercase; max-width: 13ch; margin: 0;
}
.colophon-contact {
  display: flex; flex-direction: column; gap: 11px;
  font-size: 15px; font-weight: 600; text-align: right;
}
@media (max-width: 700px) { .colophon-contact { text-align: left; } }

/* ── print ──────────────────────────────────────────────────────────────
   Chiefly for /press/: someone will hit ⌘P to get the bio as a PDF. Ink on
   white, no photographic grounds, and link targets spelled out. */

@media print {
  :root { --gutter: 0; }

  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }

  .masthead nav,
  .colophon-contact a[href^="http"],
  .link-cta,
  .skip,
  .plot,
  .blaze-rule { display: none; }

  /* dark and coloured grounds cost ink and print muddy */
  .band-ink, .band-blaze, .hero {
    background: #fff !important;
    color: #000 !important;
  }
  .band-ink .lede, .band-ink .caption, .band-ink .pair dd,
  .country-note, .hl-note, .row-note { color: #333 !important; }
  .hero::after, .hero > img { display: none; }
  .hero-inner { min-height: 0; padding: 0; }

  .band { padding-block: 12pt; }
  .counter-num, .stat-num, .upcoming-when, .hl-kind,
  .eyebrow, .country-coord { color: #000 !important; }

  h1, h2, h3 { break-after: avoid; }
  .hl, .pair, .entry, .upcoming-row, tr { break-inside: avoid; }
  .log { min-width: 0; }
  img { max-width: 3in; }

  /* a printed page cannot be clicked, so name the destination */
  .article a[href^="http"]::after,
  .colophon a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt; word-break: break-all;
  }

  a { text-decoration: none; border-bottom: none !important; }
  .colophon .shout { font-size: 20pt; }
}

/* ── upcoming ───────────────────────────────────────────────────────────
   The forward-facing band. Big, high-contrast, and above the cards — this
   is what a first-time visitor should leave knowing. */

.upcoming-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 20px 56px; margin-bottom: clamp(32px, 4vw, 52px);
}
.upcoming-head .eyebrow { margin: 0; }
.upcoming-head .headline { color: var(--bone); }

.upcoming-list { list-style: none; margin: 0; padding: 0; }

.upcoming-row {
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr) 210px;
  grid-template-areas:
    "when name  role"
    "when meta  role"
    "when note  role";
  gap: 6px 40px;
  padding-block: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--line-ink);
  align-items: baseline;
}
.upcoming-row:last-child { border-bottom: 1px solid var(--line-ink); }

.upcoming-when {
  grid-area: when;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  letter-spacing: -0.03em; color: var(--blaze);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.upcoming-name {
  grid-area: name;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.0; letter-spacing: -0.03em;
}
.upcoming-name a { border-bottom: 2px solid transparent; }
.upcoming-name a:hover { border-bottom-color: var(--blaze); }
.upcoming-meta { grid-area: meta; font-size: 16px; color: var(--dim-ink); }
.upcoming-note {
  grid-area: note; font-size: 16px; color: var(--dim-ink);
  margin-top: 6px;
}
.upcoming-role {
  grid-area: role; justify-self: end; text-align: right;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
}

@media (max-width: 820px) {
  .upcoming-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "when" "name" "meta" "note" "role";
    gap: 8px;
  }
  .upcoming-role { justify-self: start; text-align: left; margin-top: 10px; }
}

/* ── countries: counter + locator plot ──────────────────────────────────
   The plot is a locator, not a map: an equirectangular graticule with
   markers. No borders, no coastlines, no pretence of cartography. */

.counter {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.counter-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4.5rem, 15vw, 11rem); line-height: 0.8;
  letter-spacing: -0.055em; color: var(--blaze);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em; color: var(--bone);
}

.plot { width: 100%; margin-bottom: clamp(28px, 4vw, 44px); }
.plot svg { width: 100%; height: auto; display: block; }
.plot .grat line { stroke: #2a3832; stroke-width: 1; }
.plot .equator { stroke: #6d7a74; stroke-width: 1; stroke-dasharray: 6 7; }
.plot .marks circle { fill: var(--blaze); }
.plot .marks circle.halo { fill: none; stroke: var(--blaze); stroke-width: 1.5; opacity: 0.45; }
.plot .marks text {
  fill: var(--bone); font-family: var(--body);
  font-size: 20px; font-weight: 600;
}
/* The SVG scales with its container, so on a phone a 20px label renders at
   about 7px. Drop the labels there and let the markers read as pure shape —
   every country is named in the list directly below. */
@media (max-width: 700px) {
  .plot .marks text { display: none; }
  .plot .marks circle { r: 9; }
  .plot .marks circle.halo { r: 19; }
}

.country-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .country-list { grid-template-columns: minmax(0, 1fr); } }

.country {
  display: flex; flex-direction: column; gap: 5px;
  border-top: 1px solid var(--line-ink); padding-top: 14px;
}
.country-name { font-size: 19px; font-weight: 600; }
.country-coord {
  font-size: 12px; letter-spacing: 0.1em; color: var(--blaze);
  font-variant-numeric: tabular-nums;
}
.country-note { font-size: 15px; line-height: 1.45; color: var(--dim-ink); }

/* ── highlights ─────────────────────────────────────────────────────────
   The climbing résumé proper: four numbers, then the routes worth naming. */

.stats {
  display: grid; gap: 24px 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--ink); padding-top: 14px; }
.stat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 0.9;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 14px; line-height: 1.35; color: var(--dim); }

.hl-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px; background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 700px) { .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hl {
  background: var(--bone);
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 28px 28px;
}
.hl-kind {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blaze-ink);
}
.hl-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem); line-height: 1.0;
  letter-spacing: -0.025em;
}
.hl-name a { border-bottom: 2px solid transparent; }
.hl-name a:hover { border-bottom-color: var(--blaze); }
.hl-area { font-size: 16px; color: var(--muted); }
.hl-spec {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dim); font-variant-numeric: tabular-nums;
}
.hl-note {
  margin-top: 6px; font-size: 16px; line-height: 1.45;
  color: var(--muted); font-style: italic;
}

.row-note {
  display: block; margin-top: 5px;
  font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--dim);
}

/* ── split hero ─────────────────────────────────────────────────────────
   The headline sits beside the photograph rather than on top of it, so a
   portrait-orientation image can carry a person at full size without type
   across their face. */

.hero-split { background: var(--ink); color: var(--bone); }
.hero-split .masthead { padding-block: 26px; }
.hero-split .masthead nav a[aria-current="page"] { color: var(--blaze); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  gap: 0;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: 26px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 56px) clamp(52px, 7vw, 96px);
  min-height: min(72vh, 720px);
}
.hero-copy .display { color: var(--bone); }
.hero-sub {
  margin: 0; max-width: 30ch;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--blaze);
}

.hero-figure { margin: 0; position: relative; min-height: 320px; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-figure figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 10px 14px; background: rgba(16,16,16,0.72); color: var(--bone);
}
@media (max-width: 860px) {
  .hero-figure { aspect-ratio: 4 / 5; min-height: 0; }
  .hero-copy { min-height: 0; }
}

/* The display clamp is tuned to a full-bleed hero; inside the split's
   narrower column it overflows. Scale it to the panel, not the viewport. */
.hero-copy .display {
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  max-width: 11ch;
}
@media (max-width: 860px) {
  .hero-copy .display { font-size: clamp(2.4rem, 9vw, 4rem); max-width: 14ch; }
}

/* Cap the hero so the tall portrait doesn't stretch the row and leave the
   copy floating in dead black. The photo crops; the type keeps its weight. */
@media (min-width: 861px) {
  .hero-grid { max-height: min(80vh, 760px); overflow: hidden; }
  .hero-copy { min-height: 0; padding-block: clamp(32px, 4vw, 56px); }
}

/* Leader line for a marker whose label had to drop clear of a neighbour. */
.plot .marks .leader { stroke: var(--blaze); stroke-width: 1.5; opacity: 0.55; }
