/* The Logbook — a club logbook laid over OS map paper.
   Margin column carries entry details (grid refs, sources, seasons); main column carries the words.
   Contour lines and the Great Wanney ridge are the only ornament. */
@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/CourierPrime-Regular.woff") format("woff"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/CourierPrime-Bold.woff") format("woff"); }
/* Reading-option fonts: only downloaded when someone picks them (or opens the
   reading panel, which previews them). Unmodified files, OFL licences alongside. */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); }
@font-face { font-family: "OpenDyslexic"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/OpenDyslexic-Regular.otf") format("opentype"); }
@font-face { font-family: "OpenDyslexic"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/OpenDyslexic-Bold.otf") format("opentype"); }
@font-face { font-family: "Roboto Mono"; font-weight: 100 700; font-style: normal; font-display: swap; src: url("fonts/RobotoMonowght.woff") format("woff"); }

:root {
  --paper: #ECEBE3;      /* OS map paper, cool not cream */
  --paper-2: #E2E1D7;    /* ruled band, form fields */
  --ink: #1D272B;        /* slate-black text */
  --slate: #3C4A50;      /* headings, ridge silhouette */
  --whin: #5C6467;       /* secondary text (whinstone grey) */
  --heather: #74406A;    /* links, accent */
  --lichen: #7C8B4E;     /* contour lines */
  --rust: #A3392B;       /* the badge red, used sparingly */
  --rule: #C4C2B6;
  --contour-alpha: .55;
  --ridge: #3C4A50;      /* silhouettes and footer band */
  --ridge-ink: #ECEBE3;

  --f-display: "Courier Prime", "Courier New", Courier, monospace;
  --f-body: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.4rem, 6vw, 4rem);
  --measure: 64ch;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141A1D; --paper-2: #1C2428; --ink: #E4E2D8; --slate: #AEBBC0; --whin: #9AA3A6;
    --heather: #D7A6CB; --lichen: #8FA05C; --rust: #E07A5F; --rule: #2F3A3F; --contour-alpha: .35; --ridge: #2B373C; --ridge-ink: #E4E2D8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141A1D; --paper-2: #1C2428; --ink: #E4E2D8; --slate: #AEBBC0; --whin: #9AA3A6;
  --heather: #D7A6CB; --lichen: #8FA05C; --rust: #E07A5F; --rule: #2F3A3F; --contour-alpha: .35; --ridge: #2B373C; --ridge-ink: #E4E2D8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7;
  font-weight: 400;
}
img, svg { max-width: 100%; }
a { color: var(--heather); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--heather); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; color: var(--slate); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 5; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img.mark { width: 80px; height: auto; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .04em; line-height: 1; }
.brand small { display: block; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--whin); margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .875rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--rust); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--lichen); opacity: var(--contour-alpha);
  -webkit-mask: url("contours.svg") center / cover no-repeat; mask: url("contours.svg") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, transparent 70%); opacity: .75; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 9vw, 112px) clamp(72px, 12vw, 150px); display: grid; gap: 20px; }
.hero .eyebrow { font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; color: var(--whin); }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.125rem; max-width: 52ch; }
.hero.small .wrap { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 110px); }
.hero.small h1 { font-size: var(--step-3); max-width: 24ch; }
.ridge {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: clamp(34px, 7vw, 84px);
  background: var(--ridge);
  -webkit-mask: url("great-wanney.svg") bottom / 100% 100% no-repeat; mask: url("great-wanney.svg") bottom / 100% 100% no-repeat;
}
.ridge.tall { height: clamp(60px, 13vw, 170px); }
.ridge.lo { height: clamp(18px, 3vw, 34px); position: static; display: block; opacity: .9; }

/* Logbook entries: margin column + main column */
.entry { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 48px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px dashed var(--rule); }
.entry:last-of-type { border-bottom: 0; }
.margin { font-size: var(--step--1); color: var(--whin); line-height: 1.55; border-top: 2px solid var(--slate); padding-top: 10px; align-self: start; }
.margin dl { margin: 0; display: grid; gap: 10px; }
.margin dt { text-transform: uppercase; letter-spacing: .14em; font-size: .6875rem; }
.margin dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.body { display: grid; gap: 18px; min-width: 0; }
.body h2 + p, .body h3 + p { margin-top: -4px; }
@media (max-width: 760px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .margin dl { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

.lead { font-size: 1.125rem; }
.quiet { color: var(--whin); }
.tag { display: inline-block; font-size: .75rem; letter-spacing: .08em; padding: 1px 8px; border: 1px solid var(--rust); color: var(--rust); border-radius: 2px; white-space: nowrap; }

/* Three-way name card on the crags page */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--slate); }
.three > div { padding: 20px; display: grid; gap: 8px; align-content: start; }
.three > div + div { border-left: 1px solid var(--slate); }
.three .k { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--whin); }
.three h3 { font-size: 1.2rem; }
@media (max-width: 760px) { .three { grid-template-columns: minmax(0, 1fr); } .three > div + div { border-left: 0; border-top: 1px solid var(--slate); } }

/* Topo inset */
.topo { margin: 0; border: 1px solid var(--rule); background: var(--paper-2); padding: 16px; display: grid; gap: 10px; }
.topo svg { width: 100%; height: auto; display: block; color: var(--slate); }
.topo figcaption { font-size: var(--step--1); color: var(--whin); }

/* Route-card list (key facts) */
.card { border: 1px solid var(--slate); }
.card > div { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 16px; padding: 10px 16px; border-top: 1px solid var(--rule); }
.card > div:first-child { border-top: 0; }
.card dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--whin); padding-top: 3px; }
.card dd { margin: 0; }

/* Timeline (history) */
.log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--slate); }
.log li { position: relative; padding: 0 0 26px 24px; display: grid; gap: 6px; }
.log li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--slate); border-radius: 50%; }
.log .when { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.log li.club::before { background: var(--rust); border-color: var(--rust); }
.log li.blank .when { color: var(--whin); }
.log li.blank p { border-bottom: 1px dotted var(--whin); color: var(--whin); padding-bottom: 6px; }

.pull { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); max-width: 30ch; border-left: 4px solid var(--rust); padding-left: 18px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* Buttons and links out */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 500; background: transparent; font-family: var(--f-body); font-size: var(--step-0); cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--slate); border-color: var(--slate); }
.btn .arr { font-family: var(--f-display); }

/* Three ways in (get involved) */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.ways > div { border-top: 2px solid var(--slate); padding-top: 14px; display: grid; gap: 10px; align-content: start; }

/* Form */
form.contact { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--whin); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper-2); border: 0; border-bottom: 2px solid var(--slate);
  padding: 10px 12px; border-radius: 0; width: 100%;
}
.field textarea { min-height: 9em; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--heather); outline-offset: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: var(--step--1); color: var(--whin); }
.status { font-size: .9rem; min-height: 1.6em; }
.status.err { color: var(--rust); }

/* Footer */
.site-foot { margin-top: 0; }
.site-foot .band { background: var(--ridge); color: var(--ridge-ink); }
.site-foot .band .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font-size: .875rem; }
.site-foot .band a { color: var(--ridge-ink); }
.site-foot .band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot .credit { opacity: .8; font-size: var(--step--1); }
.site-foot .credit .c-ai { text-decoration: overline; }

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift 1.6s ease-out both; }
  @keyframes drift { from { transform: translateY(8px); } to { transform: none; } }
}

/* Moving contours: a fixed canvas behind the page. The hero's static
   contour SVG stays as the fallback when the script doesn't run. */
.contour-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-head, main, .site-foot { position: relative; z-index: 1; }
html.has-motion .hero::before { display: none; }

/* Standout band (home) */
.band { background: var(--ridge); color: var(--ridge-ink); position: relative; z-index: 1; }
.band .wrap { padding-block: clamp(40px, 7vw, 72px); }
.band-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; }
.band h2 { color: var(--ridge-ink); }
.band p { margin-top: 8px; }
.btn.on-dark { border-color: var(--ridge-ink); color: var(--ridge-ink); }
.btn.on-dark:hover { background: var(--ridge-ink); color: var(--ridge); }
@media (max-width: 760px) { .band-in { grid-template-columns: minmax(0, 1fr); } .band-in img { width: 56px; height: 56px; } }

/* Mobile menu: hidden behind a button only when JavaScript is running */
.nav-toggle { display: none; font: inherit; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 8px 14px; cursor: pointer; }
.nav-toggle::after { content: "\00a0+"; font-family: var(--f-display); }
.nav-toggle[aria-expanded="true"]::after { content: "\00a0–"; }

@media (max-width: 760px) {
  .site-head .wrap { padding-block: 10px; }
  .brand { gap: 10px; }
  .brand img.mark { width: 60px; }
  .brand b { font-size: 1.05rem; }
  .brand small { font-size: .6875rem; letter-spacing: .16em; }
  html.js .nav-toggle { display: inline-flex; margin-left: auto; }
  html.js .nav { width: 100%; }
  html.js .nav ul { display: none; }
  html.js .nav.open ul { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 4px; }
  html.js .nav.open a { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  html.js .nav.open a[aria-current="page"] { border-bottom: 2px solid var(--rust); }

  /* Heading and text first, logbook notes after as a compact card */
  .entry > .margin { order: 2; border-top: 1px solid var(--rule); padding-top: 12px; }
  .entry { padding-block: 36px; gap: 16px; }
  .margin dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }

  .hero .wrap { gap: 16px; }
  .hero .eyebrow { letter-spacing: .12em; font-size: .75rem; }
  .hero .lede { font-size: 1rem; }
  .hero::after { background: var(--paper); opacity: .55; }
  h2 { font-size: 1.75rem; }
  .pull { font-size: 1.25rem; padding-left: 14px; }
  .lead { font-size: 1.0625rem; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .band-in { gap: 16px; }
  .three > div { padding: 16px; }
}

/* ---------- Reading options ----------
   Typeface, size and theme choices set attributes on <html> (reading.js).
   They build on the visitor's own settings: size scales from the browser's
   default size, "Match my device" follows the system theme. */
:root {
  --stack-plain: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --stack-book: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --stack-atkinson: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif;
  --stack-dyslexic: "OpenDyslexic", "Atkinson Hyperlegible", Verdana, sans-serif;
}
:root[data-font="plain"] { --f-display: var(--stack-plain); --f-body: var(--stack-plain); }
:root[data-font="book"]  { --f-display: var(--stack-book);  --f-body: var(--stack-book); }
:root[data-font="atkinson"] { --f-display: var(--stack-atkinson); --f-body: var(--stack-atkinson); }
:root[data-font="dyslexic"] { --f-display: var(--stack-dyslexic); --f-body: var(--stack-dyslexic); }
:root[data-font="dyslexic"] body { font-size: .9375rem; line-height: 1.8; }
:root[data-font="dyslexic"] .nav ul { gap: 4px 12px; font-size: .75rem; }
:root[data-font="dyslexic"] .brand b { font-size: 1.1rem; }
:root[data-font="dyslexic"] h1, :root[data-font="dyslexic"] h2 { line-height: 1.25; letter-spacing: 0; }
:root[data-size="2"] { font-size: 112.5%; }
:root[data-size="3"] { font-size: 125%; }
:root[data-size="4"] { font-size: 150%; }

.read-toggle[hidden], .reading[hidden], .reading .note[hidden] { display: none !important; }

.site-head .wrap { justify-content: flex-start; }
.nav { margin-left: auto; }
.read-toggle {
  order: 3; display: inline-flex; align-items: baseline; gap: .4em; font: inherit; font-size: .875rem;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 6px 12px; cursor: pointer;
}
.read-toggle .aa { font-family: var(--f-display); font-weight: 700; font-size: 1.05em; }
.read-toggle:hover, .read-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.reading {
  order: 4; flex: 1 1 100%; border: 1px solid var(--slate); background: var(--paper);
  padding: 18px 20px 20px; display: grid; gap: 14px; margin-top: 4px;
}
.reading-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.reading-h { font-size: var(--step-1); }
.reading-h:focus { outline: none; }
.reading-h:focus-visible { outline: 2px solid var(--heather); outline-offset: 3px; }
.reading-x { font: inherit; font-size: .875rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; cursor: pointer; }
.reading-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; }
.reading fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; align-content: start; min-width: 0; }
.reading legend { padding: 10px 0 0; width: 100%; border-top: 2px solid var(--slate); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--whin); margin-bottom: 4px; }
.reading label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.reading input[type=radio] { accent-color: var(--heather); width: 1.1em; height: 1.1em; margin: 0; flex: none; }
.reading .s-logbook { font-family: "Courier Prime", "Courier New", monospace; }
.reading .s-plain { font-family: var(--stack-plain); }
.reading .s-book { font-family: var(--stack-book); }
.reading .s-atkinson { font-family: var(--stack-atkinson); }
.reading .s-dyslexic { font-family: var(--stack-dyslexic); font-size: .875rem; }
.reading-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.reading-foot .btn { padding: 8px 14px; font-size: .875rem; }

@media (max-width: 760px) {
  .brand { order: 0; }
  html.js .read-toggle { order: 1; margin-left: auto; padding: 8px 12px; }
  html.js .nav-toggle { order: 2; margin-left: 0; }
  html.js .nav { order: 3; margin-left: 0; }
  .reading { order: 4; padding: 14px 16px 16px; }
  .read-toggle .rt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .reading-foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Print ----------
   Words on paper: no menus, contours, ridges or footer band; black on white
   whatever theme is on screen; links show where they go. */
@media print {
  :root:root:root {
    --paper: #fff; --paper-2: #fff; --ink: #000; --slate: #000; --whin: #333; --heather: #000;
    --rust: #000; --rule: #999; --ridge: #fff; --ridge-ink: #000; color-scheme: light;
  }
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; line-height: 1.5; }
  .contour-canvas, .skip, .nav, .nav-toggle, .read-toggle, .reading, .ridge,
  .site-foot ul, .site-foot .credit, .actions, .band .btn, form.contact, .hp { display: none !important; }
  .hero::before, .hero::after { display: none !important; }
  .site-head { border-bottom: 1px solid #000; }
  .hero, .band { background: none; color: #000; border-bottom: 1px solid #999; }
  .hero .wrap, .band .wrap, .hero.small .wrap { padding-block: 12pt; }
  .band h2 { color: #000; }
  .entry { display: flex; flex-direction: column; padding-block: 12pt; break-inside: auto; }
  .entry > .margin { order: 2; margin-top: 8pt; border-top: 1px solid #999; }
  .margin dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  h1, h2, h3 { break-after: avoid; }
  p, li, .log li { orphans: 3; widows: 3; }
  .three { grid-template-columns: minmax(0, 1fr); }
  .three > div + div { border-left: 0; border-top: 1px solid #000; }
  .wrap { max-width: none; padding: 0; }
  p { max-width: none; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  .faq summary::after { content: none; }
  .site-foot .band .wrap { padding-block: 10pt 0; font-size: 9pt; }
}
:root[data-motion="still"] .hero::before { animation: none !important; }
.body ul:not([class]) { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; max-width: var(--measure); }
@media (max-width: 760px) {
  .site-head .wrap { column-gap: 8px; }
  html.js .read-toggle, html.js .nav-toggle { padding: 7px 10px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand img.mark { width: 40px; }
  .brand b { font-size: .875rem; letter-spacing: .02em; }
  .brand small { font-size: .625rem; letter-spacing: .08em; }
  html.js .nav-toggle::after { content: none; }
}

/* Field-kit icons (assets/icons.svg). Slate line, one red accent. */
.i { width: 1.25em; height: 1.25em; flex: none; color: var(--slate); --icon-accent: var(--rust); vertical-align: -.25em; overflow: visible; }
.band .i { color: var(--ridge-ink); }
.margin dt { display: flex; align-items: center; gap: 6px; }
.margin dt .i { width: 15px; height: 15px; }

/* A strip of icons with short captions, to break up a run of text */
.kit { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px 20px; max-width: var(--measure); }
.kit li { display: grid; gap: 6px; justify-items: start; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--whin); line-height: 1.4; }
.kit .i { width: 34px; height: 34px; }
@media (max-width: 760px) { .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Route-line dividers between sections (routes.py, assets/routes.js) */
.pitch { margin: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 48px; align-items: end; padding-block: 8px 0; }
.pitch figcaption { border-top: 2px solid var(--rust); padding-top: 8px; display: grid; gap: 2px; font-size: var(--step--1); color: var(--whin); line-height: 1.45; }
.pitch figcaption b { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.pitch figcaption small { font-size: .6875rem; letter-spacing: .08em; opacity: .85; }
.pitch svg { display: block; width: 100%; height: auto; aspect-ratio: 960 / 170; overflow: visible; }
.pitch .ctr { fill: none; stroke: var(--lichen); stroke-width: 1; opacity: .8; }
.pitch .face { fill: var(--paper); fill-opacity: .92; }
.pitch .bed path { fill: none; stroke: var(--whin); stroke-width: 1; opacity: .35; }
.pitch .feat { fill: none; stroke: var(--slate); stroke-width: 1.25; opacity: .7; }
.pitch .feat.strong { stroke-width: 1.75; opacity: .9; }
.pitch .shade path { fill: none; stroke: var(--slate); stroke-width: 1; opacity: .45; }
.pitch .edge { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; }
.pitch .ground { stroke: var(--whin); stroke-width: 1; stroke-dasharray: 2 5; }
.pitch .line { fill: none; stroke: var(--rust); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.pitch .foot { fill: var(--rust); }
.pitch .belay circle { fill: var(--paper); stroke: var(--rust); stroke-width: 2; }
.pitch .belay path { stroke: var(--rust); stroke-width: 1.5; stroke-linecap: round; }
.pitch .climber { fill: var(--rust); stroke: var(--paper); stroke-width: 2; opacity: 0; }
.entry:has(+ .pitch) { border-bottom: 0; }

/* Motion: only when routes.js is running (it skips reduced motion) */
html.pitch-motion .pitch .line { stroke-dasharray: 1; }
html.pitch-motion .pitch .ctr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-out; }
html.pitch-motion .pitch .ctr:nth-child(2) { transition-delay: .15s; }
html.pitch-motion .pitch .ctr:nth-child(3) { transition-delay: .3s; }
html.pitch-motion .pitch.go .ctr { stroke-dashoffset: 0; }
html.pitch-motion .pitch .belay { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .45s cubic-bezier(.3, 1.6, .5, 1); }
html.pitch-motion .pitch.topped .belay { scale: 1; }
html.pitch-motion .pitch.go .climber { opacity: 1; }
html.pitch-motion .pitch.topped .climber { opacity: 0; transition: opacity .5s .2s; }

@media (max-width: 760px) {
  .pitch { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 4px; }
  .pitch svg { aspect-ratio: auto; height: 130px; overflow: hidden; }
  .pitch figcaption { order: 2; border-top-width: 1px; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
  .pitch figcaption small { grid-column: 1 / -1; }
}
