/* =====================================================================
   ONE OF ONE — article pages
   ---------------------------------------------------------------------
   Loaded only by article-*.html, after styles.css. Every component is
   drawn from the site's tokens and scoped to article-only class names,
   so nothing else on the site can shift. An article picks its look with
   a theme class on <main> (see THEMES at the end); with none, it wears
   the site's own navy and gold.
   ===================================================================== */

/* Article-level tokens; a theme may reassign them (see THEMES). */
:root {
  --display-weight: 400;                      /* Archivo Black has one weight */
  --guide: rgba(183, 198, 217, 0.07);         /* faint chart guide lines */
  --hover: rgba(183, 198, 217, 0.035);        /* row hover wash */
  --glow: rgba(196, 172, 100, 0.55);          /* selected-mark glow */
}

/* -------------------------------------------------- Reading progress */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* -------------------------------------------------- Hero */
.article-hero {
  position: relative; z-index: 2;
  padding-top: clamp(7.5rem, 13vw, 9.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.article-hero .eyebrow { margin-bottom: 1.6rem; }
.article-hero__title { font-size: var(--fs-display); line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 1.6rem; }
.article-hero .lead { max-width: 44ch; }

.byline {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.4rem); padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.byline__name { color: var(--cream); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.byline__name a { transition: color var(--t-fast); }
.byline__name a:hover { color: var(--gold-soft); }
.byline__meta { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); line-height: 1.6; }

.article-hero__media { width: min(100%, calc((100svh - 12rem) * 0.75)); justify-self: end; }
.article-hero__media .shot { aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .article-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .article-hero__media { width: 100%; justify-self: stretch; }
  .article-hero__media .shot { aspect-ratio: 4 / 5; max-height: 72svh; }
}

/* -------------------------------------------------- Cover hero (full-bleed photo, text on it)
   The alternative to the split hero above: the photo fills the first
   screen and the headline sits on it, bottom-left. White on the photo in
   every theme; the top of the veil keeps the site header legible. */
.article-cover {
  position: relative; z-index: 2; overflow: hidden;
  min-height: 92svh; display: flex; align-items: flex-end;
  background: #111212;
}
.article-cover__media { position: absolute; inset: 0; }
.article-cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.article-cover__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.73) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.55) 100%);
}
.article-cover__inner { position: relative; z-index: 2; padding-top: 8rem; padding-bottom: clamp(3rem, 8vw, 7rem); }
.article-cover .breadcrumbs { color: rgba(255, 255, 255, 0.6); }
.article-cover .breadcrumbs a:hover, .article-cover .breadcrumbs span { color: #fff; }
.article-cover__kicker {
  font-family: var(--font-sans); font-size: 0.6875rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8); margin-bottom: 1.25rem;
}
.article-cover .article-cover__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(3.625rem, 9vw, 8rem); line-height: 0.84; letter-spacing: -0.065em;
  color: #fff;
}
.article-cover__deck {
  max-width: 680px; margin-top: 1.9rem;
  font-size: clamp(1.125rem, 2vw, 1.5625rem); line-height: 1.35; color: #eee;
}
.article-cover__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 2.25rem;
  font-family: var(--font-sans); font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.article-cover__meta a { transition: color var(--t-fast); }
.article-cover__meta a:hover { color: #fff; }
.article-cover__expand {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 3vw, 2.5rem); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.95rem; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.article-cover__expand:hover { border-color: #fff; background: rgba(0, 0, 0, 0.5); }
.article-cover__expand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.article-cover__expand svg { width: 13px; height: 13px; }
@media (max-width: 700px) {
  /* on a phone the text runs the full width, over the busiest part of the
     photo; the side-lit veil is not enough, so shade from the bottom up */
  .article-cover__veil {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0.82) 100%);
  }
  /* bottom-right would collide with the wrapped meta line */
  .article-cover__expand { top: 5.6rem; bottom: auto; padding: 0.6rem; }
  .article-cover__expand span { display: none; }
}

/* -------------------------------------------------- Section label ("01 / The experience") */
.article-label {
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft);
}
.article-body .article-label { margin-top: clamp(3rem, 6vw, 4.5rem); }
.article-body > .article-label:first-child { margin-top: 0; }
.article-body .article-label + h2 { margin-top: 0.85rem; }
.rarity__head .article-label { margin-bottom: 0.9rem; }

/* -------------------------------------------------- Photos (every one opens the lightbox) */
.shot {
  display: block; position: relative;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); filter: none; }
.shot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* expand hint: appears on hover / focus, always shown on touch screens */
.shot__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream); background: rgba(16, 24, 32, 0.55);
  border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(0.9);
  transition: opacity var(--t-fast), transform var(--t-fast);
  pointer-events: none;
}
.shot__zoom svg { width: 14px; height: 14px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot__zoom { opacity: 0.85; transform: none; } }

.shot-caption { margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.06em; line-height: 1.5; color: var(--muted-2); }
.article-hero__media .shot-caption { text-align: right; }

/* -------------------------------------------------- Body layout */
.article-main { position: relative; z-index: 2; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem); }
.article-main .article-body { margin-inline: auto; }
.article-body .lead { color: var(--text); }
.article-pullquote--lg { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.02em; }
.article-pullquote em { font-style: normal; color: var(--gold-soft); }
/* narrow inset photo inside the text column */
.article-body .article-inset { max-width: 420px; margin-inline: auto; }
.article-body .article-inset .shot { aspect-ratio: 3 / 4; }

/* -------------------------------------------------- Triptych (three portrait photos, wide) */
.triptych { margin-block: clamp(3rem, 6vw, 4.5rem); }
.triptych__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
  padding: 0; margin: 0;
}
.triptych__grid li { min-width: 0; }
.triptych .shot { aspect-ratio: 3 / 4; }
/* phones: a swipeable row with the next photo peeking in */
@media (max-width: 700px) {
  .triptych__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .triptych__grid::-webkit-scrollbar { display: none; }
  .triptych__grid li { scroll-snap-align: start; }
}

/* -------------------------------------------------- Rarity scale */
.rarity {
  position: relative;
  margin-block: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  --cols: minmax(0, 10.5rem) minmax(0, 1fr) 4.2rem;
}
.rarity__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.rarity__head .eyebrow { margin-bottom: 1.1rem; }
.rarity__head h2 { margin-bottom: 0.8rem; }
.rarity__layout {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: stretch;
}

/* axis header row: shares its columns with every data row */
.rarity__axis {
  display: grid; grid-template-columns: var(--cols); gap: 0 1rem; align-items: end;
  padding: 0 0.75rem 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
}
.rarity__axis-label:last-child { text-align: right; }
.rarity__ticks { position: relative; height: 1.1em; margin-inline: 10px; }
.rarity__ticks > span {
  position: absolute; left: var(--x); transform: translateX(-50%);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rarity__ticks > span:first-child { transform: none; }
.rarity__ticks > span:last-child { transform: translateX(-100%); }

.rarity__rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rarity__row {
  width: 100%; min-height: 46px;
  display: grid; grid-template-columns: var(--cols); gap: 0 1rem; align-items: center;
  padding: 0.35rem 0.75rem;
  text-align: left; cursor: default;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.rarity__name { font-size: 0.9rem; line-height: 1.3; color: var(--muted); transition: color var(--t-fast); }
.rarity__value {
  text-align: right; font-size: 0.9rem; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--muted); transition: color var(--t-fast);
}
.rarity__track { position: relative; height: 30px; }
/* decade gridlines + a faint guide from the name to the dot */
.rarity__plot {
  position: absolute; inset: 0 10px;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20% 100%;
  border-right: 1px solid var(--line);
}
.rarity__plot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--guide);
}
.rarity__dot {
  position: absolute; top: 50%; left: var(--x);
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 2px var(--bg-2);
  transition: left 1.3s var(--ease), opacity 0.6s var(--ease),
              background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  transition-delay: calc(var(--i) * 90ms), calc(var(--i) * 90ms), 0s, 0s, 0s;
}
/* the one-of-one gets the compass star from the logo instead of a dot */
.rarity__dot--star {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 0; background: none; box-shadow: none;
  color: var(--muted-2);
}
.rarity__dot--star svg { width: 100%; height: 100%; display: block; }

/* hover / focus / selected */
.rarity.is-live .rarity__row { cursor: pointer; }
.rarity.is-live .rarity__row:hover { background: var(--hover); }
.rarity__row:hover .rarity__name, .rarity__row:focus-visible .rarity__name { color: var(--cream); }
.rarity__row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rarity__row.is-selected { background: var(--gold-dim); }
.rarity__row.is-selected .rarity__name { color: var(--cream); font-weight: 700; }
.rarity__row.is-selected .rarity__value { color: var(--cream); }
.rarity__row.is-selected .rarity__dot { background: var(--gold); transform: scale(1.35); box-shadow: 0 0 0 2px var(--bg-2), 0 0 14px var(--glow); }
.rarity__row.is-selected .rarity__dot--star { background: none; color: var(--gold-bright); transform: scale(1.3); box-shadow: none; filter: drop-shadow(0 0 8px var(--glow)); }
.rarity__row:not(.is-selected):hover .rarity__dot { background: var(--muted); }
.rarity__row:not(.is-selected):hover .rarity__dot--star { background: none; color: var(--muted); }

/* entrance: JS parks the dots at the "common" end, then lets them travel to their value */
.rarity.is-live:not(.is-in) .rarity__dot { left: 0; opacity: 0; }
.rarity.is-parking .rarity__dot { transition: none; }

/* detail panel */
.rarity__detail {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
}
.rarity__count {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--cream);
}
.rarity__approx { font-size: 0.42em; letter-spacing: 0; color: var(--muted); margin-right: 0.12em; }
.rarity__unit { margin-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.rarity__car { margin-top: 1.4rem; }
.rarity__years { margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted-2); }
.rarity__note { margin-top: 1rem; font-size: 0.96rem; line-height: 1.65; }
.rarity__nav { display: none; gap: 1.4rem; margin-top: auto; padding-top: 1.8rem; }
.rarity.is-live .rarity__nav { display: flex; }
.rarity__step { padding: 0.35rem 0; }
.rarity__step:first-child:hover .btn__arrow { transform: translateX(-4px); }
.rarity__step:disabled { opacity: 0.35; cursor: default; }
.rarity__step:disabled::after { display: none; }
.rarity__foot { margin-top: 1.4rem; font-size: 0.78rem; line-height: 1.6; color: var(--muted-2); max-width: 80ch; }

@media (max-width: 900px) {
  .rarity__layout { grid-template-columns: minmax(0, 1fr); }
  .rarity__detail { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  /* with JS the panel opens under the selected row, sharing its highlight */
  .rarity.is-inline .rarity__detail {
    border-top: 0; border-bottom: 1px solid var(--line);
    padding: 0.4rem 0.75rem 1.3rem;
    background: var(--gold-dim);
  }
  .rarity.is-inline .rarity__count { font-size: 2.6rem; }
  .rarity.is-inline .rarity__unit { margin-top: 0.45rem; }
  .rarity.is-inline .rarity__car { display: none; }      /* the row above already names it */
  .rarity.is-inline .rarity__years { margin-top: 0.7rem; }
  .rarity.is-inline .rarity__note { margin-top: 0.5rem; font-size: 0.92rem; }
  .rarity.is-inline .rarity__nav { padding-top: 1rem; }
}
/* phones: name and figure on one line, the track full-width beneath */
@media (max-width: 560px) {
  .rarity { padding-inline: 1rem; }
  .rarity__axis { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0.5rem; row-gap: 0.5rem; }
  .rarity__axis .rarity__ticks { grid-column: 1 / -1; grid-row: 2; }
  .rarity__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "track track"; padding: 0.55rem 0.5rem 0.25rem; }
  .rarity__name { grid-area: name; }
  .rarity__value { grid-area: value; }
  .rarity__track { grid-area: track; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rarity__dot { transition: none; }
}

/* -------------------------------------------------- Related cars (compact cards) */
.related { margin-block: clamp(2.5rem, 5vw, 3.5rem); }
.related__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.4rem;
}
.related__title { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-h3); line-height: 1.2; color: var(--cream); letter-spacing: -0.01em; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; }
.mini-car {
  display: grid; grid-template-columns: 44% minmax(0, 1fr); height: 100%;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--t), border-color var(--t);
}
.mini-car:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.mini-car .media { height: 100%; min-height: 6.5rem; }
.mini-car:hover .media img { transform: scale(1.06); filter: saturate(1.05) brightness(0.98); }
.mini-car__body { padding: 0.9rem 1rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mini-car__marque { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.mini-car__name { font-weight: 800; font-size: 1rem; line-height: 1.2; color: var(--cream); }
.mini-car__detail { margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted-2); }
@media (max-width: 900px) { .related__grid { grid-template-columns: minmax(0, 1fr); } .mini-car { grid-template-columns: 38% minmax(0, 1fr); } }

/* -------------------------------------------------- In brief */
.facts { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--bg-2); }
.article-body .facts__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
}
.facts dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.75rem 1.5rem; }
.facts dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); padding-top: 0.3em; line-height: 1.5; }
.facts dd { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
@media (max-width: 560px) { .facts dl { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } .facts dd + dt { margin-top: 0.8rem; } }

/* -------------------------------------------------- Author + share */
.author {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.3rem; align-items: start;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.8rem;
  border-block: 1px solid var(--line);
}
.author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.author__label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); }
.author__name { margin-top: 0.2rem; font-weight: 800; font-size: 1.1rem; color: var(--cream); line-height: 1.3; }
.author__role { font-size: 0.85rem; color: var(--muted); }
.article-body .author__bio { margin-top: 0.7rem; font-size: 0.93rem; line-height: 1.65; }
.author__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 0.9rem; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.share__label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-right: 0.3rem; }
.share__btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.share__btn svg { width: 16px; height: 16px; }
.share__btn:hover, .share__btn:focus-visible { border-color: var(--gold); color: var(--gold-soft); }
.share__btn.is-done { border-color: var(--gold); color: var(--gold-bright); }
.share__btn[hidden] { display: none; }
.share__status { font-size: 0.78rem; color: var(--gold-soft); min-height: 1.2em; }

/* -------------------------------------------------- Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: rgba(8, 13, 18, 0.96);
  opacity: 0; transition: opacity var(--t-fast);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
  display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden;
  padding: clamp(3.8rem, 7vw, 4.6rem) clamp(0.75rem, 7vw, 6rem) 0;
  touch-action: pan-y pinch-zoom;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100svh - 10rem); width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: opacity var(--t-fast);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-loading { opacity: 0.35; }
.lightbox__bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1rem clamp(1rem, 7vw, 6rem) 1.4rem;
}
.lightbox__caption { font-size: 0.88rem; line-height: 1.5; color: var(--text); max-width: 70ch; }
.lightbox__count { flex: none; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream); background: rgba(16, 24, 32, 0.6);
  border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { border-color: var(--gold); color: var(--gold-soft); }
.lightbox__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox__close { top: 0.9rem; right: 0.9rem; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -24px; }
.lightbox__prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(0.5rem, 2vw, 1.5rem); }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 4.6rem; margin-top: 0; width: 42px; height: 42px; }
  .lightbox__bar { padding-right: 1rem; }
}

/* -------------------------------------------------- Utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =====================================================================
   THEMES — an article can carry its own look
   ---------------------------------------------------------------------
   The site's tokens are roles, not colours: --cream is headline ink,
   --text body ink, --gold the accent, --bg the page, --bg-2 a panel,
   --surface a card. A theme is a class on the article's <main> that
   re-assigns those roles, so every component above (and every site
   component used inside the article) follows it, while the header and
   footer outside <main> keep the site's own colours.
   ===================================================================== */

/* -------------------------------------------------- theme-paper
   Arnau Garcia's Chantilly draft: cream paper, ink and burnt orange;
   Inter headlines, Georgia text. Small orange and grey TEXT uses a shade
   darker than the draft's #c76b32 / #77736d so it passes WCAG AA on the
   paper; marks, rules and large type keep the draft's own values. */
.theme-paper {
  --bg: #f4f2ed;   --bg-2: #e9e5de;   --surface: #ffffff;   --surface-2: #f8f6f2;
  --cream: #151515;   --text: #151515;   --muted: #57534d;   --muted-2: #6b675f;
  --line: #d9d5ce;   --line-strong: #bdb7ad;
  --gold: #c76b32;   --gold-soft: #a4531f;   --gold-bright: #d9854c;   --gold-dim: rgba(199, 107, 50, 0.12);
  --font-display: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--font-display);
  --display-weight: 750;
  --radius: 0px;   --radius-sm: 0px;
  --shadow: 0 30px 60px -30px rgba(21, 21, 21, 0.35);
  --guide: rgba(21, 21, 21, 0.07);   --hover: rgba(21, 21, 21, 0.035);   --glow: rgba(199, 107, 50, 0.45);
  /* <body> resolved its font and colour from the site's tokens before this
     class re-assigned them, so both must be set again here to inherit */
  font-family: var(--font-sans);
  color: var(--text);
}
.theme-paper .article-main { background: var(--bg); }
.theme-paper h1, .theme-paper h2, .theme-paper h4 { font-weight: var(--display-weight); letter-spacing: -0.04em; }
.theme-paper h2 { line-height: 0.98; }
.theme-paper .media { background: var(--bg-2); }
.theme-paper .media img { filter: none; }          /* the site dims photos for its dark pages; paper doesn't */
.theme-paper ::selection { background: var(--gold); color: #fff; }

/* text: Georgia at the draft's 21px (19px on phones) */
.theme-paper .article-body { max-width: 770px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3125rem; line-height: 1.65; }
.theme-paper .article-body p + p { margin-top: 1.15em; }
.theme-paper .article-body h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
@media (max-width: 800px) { .theme-paper .article-body { font-size: 1.1875rem; } }

/* pull-quote: the draft's own - left-aligned, ink rules, large regular Inter */
.theme-paper .article-pullquote {
  text-align: left;
  border-block: 1px solid var(--cream);
  padding-block: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-block: clamp(3rem, 6vw, 4.4rem);
  font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.5625rem); line-height: 1.04; letter-spacing: -0.035em;
}
.theme-paper .article-pullquote em { color: var(--gold); }

/* captions: small tracked capitals */
.theme-paper .shot-caption,
.theme-paper .article-body figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-sans); font-size: 0.6875rem; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}

/* the fact box wears the draft's "notes" panel; blocks of UI stay in Inter */
.theme-paper .facts { font-family: var(--font-sans); border: 0; border-left: 3px solid var(--gold); padding: clamp(1.4rem, 3vw, 2.1rem); }
.theme-paper .article-body .facts__title { color: var(--cream); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em; }
.theme-paper .author,
.theme-paper .share { font-family: var(--font-sans); }

/* the closing band is the draft's dark footer: ink ground, white type, orange accent */
.theme-paper .cta-band {
  --cream: #ffffff;   --text: #d8d4cc;   --muted: #b3aea5;   --muted-2: #8f8a82;
  --line: rgba(255, 255, 255, 0.14);   --line-strong: rgba(255, 255, 255, 0.3);
  --gold-soft: #e0915c;   --gold-bright: #eba16f;   --gold-dim: rgba(199, 107, 50, 0.2);
  background: #111212;
}
.theme-paper .cta-band__veil { background: linear-gradient(180deg, rgba(17, 18, 18, 0.86), rgba(17, 18, 18, 0.93)); }
.theme-paper .cta-band .btn:hover { box-shadow: 0 14px 34px -14px rgba(199, 107, 50, 0.6); }

/* the photo viewer is appended to <body>, outside <main>; give it the accent */
.theme-paper ~ .lightbox { --gold: #c76b32; --gold-soft: #e0915c; }

/* -------------------------------------------------- Beside the house article rules
   styles.css carries the prose system for template-built articles
   (assets/_article-template.html): a 62ch measure, 22ch headings, a one-line
   rhythm, bordered figures. This page was designed against an earlier draft
   of those rules, so where the two meet, the values below restore the
   approved design. Scoped to .article-main, which only pages built on this
   file use, so template articles keep the house rules untouched. Measured
   against the approved preview, not guessed: without this block headings
   wrapped at 585px on a 1024 screen, pull quotes fell back to Georgia,
   inset photos took a border and every heading sat 5px low. */
.article-main .article-body > p,
.article-main .article-body > ul,
.article-main .article-body > ol,
.article-main .article-body > blockquote,
.article-main .article-body > dl,
.article-main .article-body > h2,
.article-main .article-body > h3 { max-width: none; }
.article-main .article-body > h2 { margin-bottom: 0.8rem; }
.article-main .article-body > h3 { margin-bottom: 0.6rem; }
.article-main .article-body > h2 + p,
.article-main .article-body > h3 + p,
.article-main .article-body > figure + p,
.article-main .article-body > .article-pullquote + p { margin-top: 0; }
.article-main .article-body > figure { margin-block: clamp(2rem, 4vw, 3rem); }
.article-main .article-body figure img { border: 0; }
/* the house `figure img { height: auto }` would let a photo keep its own
   shape inside a .shot frame that changes shape on phones */
.article-main .article-body .shot img { height: 100%; }
.article-main .article-body figcaption::before { content: none; }
.article-main .article-pullquote { font-family: var(--font-display); }
