/* Reading pages share the approved cover palette and typographic details. */
:root { color-scheme: dark; }
.inner-page {
  --paper: #344b60;
  --ink: #f3f5f6;
  --muted: #d1dbe3;
  --line: rgba(211,224,232,.25);
  --accent: #d6c79f;
  --selection: #526d83;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 1050px 650px at 100% 0, #42627b, transparent 80%), var(--paper);
}
.inner-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: 0;
  top: 84px;
  width: min(650px, 60vw);
  height: 300px;
  background: url('../images/climbers-illustration.webp') right top / 100% auto no-repeat;
  opacity: .11;
  mask-image: linear-gradient(0deg, transparent, #000 65%);
}
.inner-page .wrap { width: min(1120px, calc(100% - 112px)); }
.inner-page .site-header { width: min(1296px, calc(100% - 112px)); min-height: 84px; }
.inner-page .identity { font-size: 16px; letter-spacing: -.035em; }
.inner-page .site-header nav { color: var(--ink); gap: 30px; }
.inner-page .site-header nav a[aria-current=page] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.page-kicker { color: var(--accent); font-size: 10px; line-height: 1.6; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px; }
.title-dot, .footer-dot { color: var(--accent); }
.inner-page .text-link { border-color: rgba(211,224,232,.45); }
.inner-page .text-link > span, .inner-page .back-top { color: var(--accent); }
.inner-page a:hover { text-decoration-color: var(--accent); }
.inner-page a:focus-visible { outline-color: var(--accent); }
.inner-page .site-footer { margin-top: 30px; padding-block: 28px 38px; gap: 32px; }
.inner-page .site-footer > div { margin-right: auto; }
.inner-page .site-footer > div > p { color: var(--muted); margin-top: 5px; font-size: 10px; letter-spacing: .04em; }
.inner-page .site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 11px; }
.inner-page .site-footer .back-top { margin-left: 0; }

/* About: short introduction followed by a labelled reading column. */
.about-page .intro { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 72px; padding-block: 68px 68px; }
.about-page .intro h1 { font-size: clamp(54px,5vw,72px); line-height: 1.05; }
.about-page .intro-copy { margin-top: 32px; }
.about-page .intro-copy > p:first-child { font-size: 24px; line-height: 1.65; }
.about-page .chapter { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 68px; padding-block: 44px 52px; }
.about-page .chapter-label { margin: 3px 0 0; align-items: baseline; }
.about-page .section-number { color: var(--accent); }
.about-page .chapter-label h2 { color: var(--muted); font-size: 12px; }
.about-page .chapter-content { min-width: 0; max-width: 760px; }
.about-page .chapter-content > .lead-title { font-size: 30px; margin-bottom: 19px; }
.about-page .chapter-content > p:not(.lead-title) { font-size: 16px; line-height: 1.85; }
.about-page .history-entry h3 { font-size: 20px; margin-bottom: 10px; }
.about-page .history-entry p { font-size: 16px; line-height: 1.85; }
.about-page .history-entry + .history-entry { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.about-page .mountain-link { margin-top: 28px; }
.about-page .mountain-link img { border: 1px solid var(--line); }
.about-page .mountain-link figcaption { font-size: 11px; }

/* Archives: one reading column with chronological entries and direct links. */
.archive-page .archive-layout { display: block; max-width: 860px; padding-block: 48px 70px; }
.archive-page .archive-main h1 { font-size: clamp(46px,4.5vw,64px); font-weight: 800; line-height: 1.13; letter-spacing: -.055em; }
.archive-page .archive-intro { font-size: 18px; line-height: 1.75; margin: 24px 0 0; padding-bottom: 36px; max-width: 760px; }
.archive-page .archive-content { max-width: 860px; }
.archive-entry { border-bottom: 1px solid var(--line); padding-block: 32px 36px; }
.archive-entry:last-child { border-bottom: 0; padding-bottom: 8px; }
.archive-entry .entry-body { min-width: 0; }
.archive-entry h2, .archive-entry h3 { margin: 0; }
.archive-entry h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.5; }
.archive-entry p { font-size: 15px; line-height: 1.9; }
.archive-entry p:last-child, .archive-entry ul:last-child { margin-bottom: 0; }
.archive-entry p:first-child { margin-top: 0; }
.archive-entry a { text-decoration-color: rgba(211,224,232,.45); text-decoration-thickness: 1px; }
.archive-entry a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.archive-entry h2 a, .archive-entry h3 a { display: inline-flex; gap: 16px; align-items: baseline; text-decoration: none; }
.archive-entry .entry-arrow { color: var(--accent); font-size: 17px; line-height: 1; font-weight: 400; flex-shrink: 0; }
.archive-entry h2 a:hover, .archive-entry h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.talk-entry h2 { font-size: 25px; line-height: 1.4; max-width: 670px; }
.talk-entry .entry-body { margin-top: 18px; max-width: 740px; }
.year-entry { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 30px; }
.year-entry > h2 { color: var(--accent); font-size: 12px; letter-spacing: 0; line-height: 2; padding-top: 4px; font-weight: 600; }
.year-entry ul { list-style: none; padding: 0; margin-top: 0; }
.year-entry li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.year-entry li:first-child { padding-top: 0; }
.year-entry li:last-child { border-bottom: 0; padding-bottom: 0; }
.year-entry li a { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; text-decoration: none; }
.year-entry li a:hover { text-decoration: underline; }
.sport-entry { margin: 0; }
.sport-entry h3 { margin-bottom: 8px; }
.sport-entry h3 + .photo-link { margin-top: 20px; }
.sport-entry .entry-body > p { color: var(--ink); font-size: 17px; margin-bottom: 20px; line-height: 1.75; }
.sport-entry .photo-link { width: fit-content; max-width: 100%; }
.sport-entry .photo-link img { width: auto; max-width: min(100%, 420px); max-height: 320px; border: 1px solid var(--line); }
.sport-entry .photo-link span { font-size: 10px; color: var(--muted); margin-top: 11px; }

@media (max-width: 1000px) {
  .inner-page .wrap { width: calc(100% - 80px); }
  .inner-page .site-header { width: calc(100% - 80px); }
  .about-page .intro { grid-template-columns: 270px minmax(0,1fr); gap: 38px; }
  .about-page .intro-copy > p:first-child { font-size: 21px; }
  .about-page .chapter { grid-template-columns: 150px minmax(0,1fr); gap: 38px; }
  .archive-page .archive-main h1 { font-size: 48px; }
  .year-entry { grid-template-columns: 66px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .inner-page .wrap, .inner-page .site-header { width: calc(100% - 64px); }
  .about-page .intro { display: block; padding-block: 40px 46px; }
  .about-page .intro-copy { margin-top: 28px; }
  .about-page .chapter { display: block; padding-block: 32px 40px; }
  .about-page .chapter-label { margin: 0 0 23px; }
  .archive-page .archive-layout { display: block; padding-top: 24px; }
}
@media (max-width: 620px) {
  .inner-page .wrap, .inner-page .site-header { width: calc(100% - 44px); }
  .inner-page .site-header { min-height: 74px; }
  .inner-page .identity { font-size: 14px; }
  .inner-page .site-header nav { gap: 20px; font-size: 11px; }
  .inner-page::before { width: 350px; height: 200px; top: 80px; opacity: .08; }
  .page-kicker { font-size: 9px; margin-bottom: 18px; }
  .inner-page .site-footer { margin-top: 18px; padding-block: 24px 30px; gap: 20px; }
  .inner-page .site-footer > div { flex-basis: 100%; }
  .inner-page .site-footer nav { gap: 10px 20px; font-size: 11px; }
  .inner-page .site-footer .back-top { margin-left: auto; }
  .about-page .intro h1 { font-size: 50px; }
  .about-page .intro-copy > p:first-child { font-size: 21px; }
  .about-page .chapter-content > .lead-title { font-size: 26px; }
  .about-page .chapter-content > p:not(.lead-title), .about-page .history-entry p { font-size: 15px; }
  .about-page .history-entry h3 { font-size: 19px; }
  .about-page .mountain-link figcaption { font-size: 10px; }
  .archive-page .archive-layout { padding-top: 17px; }
  .archive-page .archive-main h1 { font-size: 40px; }
  .archive-page .archive-intro { font-size: 16px; margin-top: 20px; padding-bottom: 28px; }
  .archive-entry { padding-block: 26px 30px; }
  .year-entry { display: block; }
  .year-entry > h2 { font-size: 11px; padding: 0; margin-bottom: 14px; }
  .archive-entry h3 { font-size: 20px; }
  .talk-entry h2 { font-size: 23px; }
  .archive-entry p, .archive-entry ul { font-size: 14px; }
  .sport-entry .entry-body > p { font-size: 16px; }
  .sport-entry .photo-link { max-width: min(100%, 300px); }
}
@media (max-width: 350px) {
  .inner-page .wrap, .inner-page .site-header { width: calc(100% - 36px); }
  .inner-page .site-header nav { gap: 16px; font-size: 10px; }
  .inner-page .site-footer nav { gap: 10px 14px; font-size: 10px; }
  .archive-page .archive-main h1 { font-size: 36px; }
}
@media print {
  :root { color-scheme: light; }
  .inner-page { --paper: #fff; --ink: #111; --muted: #444; --line: #ccc; --accent: #444; background: white; }
  .inner-page::before { display: none; }
  .inner-page .wrap, .inner-page .site-header { width: 100%; }
  .about-page .intro { padding-block: 20px; }
  .about-page .chapter { padding-block: 20px; gap: 25px; }
  .archive-page .archive-layout { display: block; padding-block: 20px; }
  .archive-entry { break-inside: avoid; }
  .sport-entry .photo-link img { width: auto; max-height: 400px; }
}

/* Archive pages are continuations of About, with one way back to their context. */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--accent); padding-block: 6px; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media print { .breadcrumb { display: none; } }
