/* =====================================================================================
   ABOUT — the page that explains the piece (about.html), plus the one quiet link that
   points at it from the globe (index.html).

   It rides on styles.css: the palette variables (--ink, --ink-soft, --ink-faint, --line,
   --gold, --serif, --sans) and the warm sepia ground come from there, so this page stays
   in step with the piece if the palette moves. Nothing here is a plate: no borders, no
   rounding, no shadows. Structure is carried by whitespace and single hairline rules,
   and nothing is set below 13px.

   Everything page-level is scoped to .aboutpage so index.html can load this file purely
   for .lg-about, the link in the legend, without inheriting a scrolling document.
   ===================================================================================== */

/* ---------- The link on the globe (index.html) ----------
   Last line of the legend column, right-aligned with everything above it. Reads as text,
   not as a button; the gold only arrives on hover. */
.lg-about {
  margin-top: 6px;
  font-family: var(--grot);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s ease;
}
.lg-about:hover,
.lg-about:focus-visible { color: var(--gold); }
.lg-about .lg-about-arrow { display: inline-block; margin-left: 3px; transition: transform 0.2s ease; }
.lg-about:hover .lg-about-arrow,
.lg-about:focus-visible .lg-about-arrow { transform: translateX(3px); }

/* =====================================================================================
   THE PAGE
   ===================================================================================== */

/* styles.css locks the document for the globe (height:100%, overflow:hidden). The About
   page is a document again: it scrolls, and it is as tall as its text. */
html.aboutpage,
body.aboutpage {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.aboutpage {
  font-family: var(--grot);
  color: var(--ink);
  /* the sepia ground of the piece, held still behind the text */
  background: #eae0cd;
}

.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(52px, 9vw, 108px) clamp(20px, 6vw, 44px) clamp(72px, 12vw, 140px);
}

/* Prose keeps a readable measure even when the page is wider (the sources block opens
   out past it, deliberately). */
.about-wrap p,
.about-wrap .lede,
.about-wrap h2 { max-width: 680px; }

/* ---------- Masthead ---------- */
/* Eyebrow: the number face, uppercase and widely tracked, with the WC tick rule. */
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 clamp(22px, 4vw, 34px);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 34px; height: 1px;
  background: var(--line);
}
.about-title {
  margin: 0;
  font-family: var(--grot);
  font-weight: 700;
  font-size: clamp(34px, 6.5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.026em;
  color: var(--ink);
  text-wrap: balance;
}
.lede {
  margin: clamp(28px, 4.4vw, 42px) 0 0;
  font-family: var(--grot);
  font-weight: 400;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.58;
  letter-spacing: -0.006em;
  color: var(--ink-soft);
  max-width: 620px;
  /* NOT `balance`: on a three-line standfirst it squeezes the measure to ~470px to even
     the lines out. `pretty` only prevents the orphan. */
  text-wrap: pretty;
}

/* ---------- Hairline rule: a line, never a box ---------- */
.rule {
  height: 1px;
  width: 100%;
  margin: clamp(46px, 8vw, 78px) 0 clamp(26px, 4vw, 38px);
  background: var(--line);
}

/* ---------- Sections ---------- */
.about-wrap h2 {
  margin: 0 0 clamp(14px, 2.4vw, 20px);
  font-family: var(--grot);
  font-weight: 600;
  font-size: clamp(23px, 3.4vw, 30px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
}
/* The reading surface: WC's body measure exactly — Grotesk 400, 16.5px, 1.72. */
.about-wrap p {
  margin: 0 0 clamp(14px, 2vw, 19px);
  font-family: var(--grot);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.about-wrap p:last-child { margin-bottom: 0; }
.about-wrap b,
.about-wrap strong { color: var(--ink); font-weight: 600; }
.about-wrap i,
.about-wrap em { font-style: italic; }

/* A pulled-out line for the piece's own principle — bigger, serif, no plate. */
.about-say {
  margin: clamp(24px, 4vw, 34px) 0;
  font-family: var(--grot);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 640px;
  text-wrap: balance;
}

/* ---------- Sources: credits set as a designed block, not a footnote ---------- */
.sources { margin-top: clamp(6px, 1.5vw, 12px); }
.src {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: clamp(22px, 3.4vw, 30px);
}
.src:last-child { margin-bottom: 0; }
.src dt,
.src-label {
  font-family: var(--grot);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.5;
}
.src dd,
.src-body {
  margin: 0;
  font-family: var(--grot);
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
/* The licence line is the source block's footnote — the number face, WC's source line. */
.src-body .lic {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
}
@media (min-width: 760px) {
  .src {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 8px 30px;
  }
  .src-label { padding-top: 3px; }
}

/* ---------- Colophon + the way back ---------- */
.colophon p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-faint);
}
.about-back {
  display: inline-block;
  margin-top: clamp(26px, 4vw, 38px);
  font-family: var(--grot);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 0.2s ease;
}
.about-back:hover,
.about-back:focus-visible { color: var(--ink); }
.about-back .ab-arrow { display: inline-block; margin-right: 6px; transition: transform 0.2s ease; }
.about-back:hover .ab-arrow,
.about-back:focus-visible .ab-arrow { transform: translateX(-4px); }

/* Links inside prose: the piece's gold, underlined, never a button. */
.about-wrap a:not(.about-back) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}
/* WC's link tell: quiet until touched, then the underline thickens rather than a colour
   swap doing all the work. */
.about-wrap a:not(.about-back):hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .about-back, .about-back .ab-arrow,
  .lg-about, .lg-about .lg-about-arrow,
  .about-wrap a { transition: none; }
}
