/* ============================================================
   David Tarazona — portfolio
   Static, dependency-free. Self-hosted fonts (SIL OFL).
   ============================================================ */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --paper: #f8f5f1;
  --paper-2: #fdfcf9;
  --ink: #150d0a;
  --ink-soft: #39312d;
  --muted: #615955;
  --rule: rgba(21, 13, 10, 0.14);
  --rule-strong: rgba(21, 13, 10, 0.32);
  --accent: #ba4600;
  --accent-soft: #f7e3d6;
  --wash: #f3ebe3;
  --band: #190f0b;
  --band-ink: #faf5ef;
  --band-muted: rgba(250, 245, 239, 0.64);
  --band-link: #f0a878;
  --band-rule: rgba(250, 245, 239, 0.18);

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --serif: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-top: 100;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #14100e;
    --paper-2: #1c1714;
    --ink: #f6f1ea;
    --ink-soft: #cec3ba;
    --muted: #9d918a;
    --rule: rgba(246, 241, 234, 0.16);
    --rule-strong: rgba(246, 241, 234, 0.34);
    --accent: #ffa374;
    --accent-soft: #2c1d14;
    --wash: #221c18;
    --band: #0b0806;
    --band-ink: #faf5ef;
  }
}
:root[data-theme='dark'] {
  --paper: #14100e;
  --paper-2: #1c1714;
  --ink: #f6f1ea;
  --ink-soft: #cec3ba;
  --muted: #9d918a;
  --rule: rgba(246, 241, 234, 0.16);
  --rule-strong: rgba(246, 241, 234, 0.34);
  --accent: #ffa374;
  --accent-soft: #2c1d14;
  --wash: #221c18;
  --band: #0b0806;
  --band-ink: #faf5ef;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-top);
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root:not([data-theme='light']) body::after { mix-blend-mode: multiply; }
:root[data-theme='dark'] body::after { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) body::after { mix-blend-mode: screen; }
}

img,
svg { max-width: 100%; }
img { height: auto; }

a { color: inherit; }

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.contact :focus-visible,
.colophon :focus-visible { outline-color: var(--band-link); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.anchor { display: block; position: relative; top: -100px; visibility: hidden; }

/* Visually hidden but still announced, and not selectable — so the copy buffer
   carries the visible figure ("143K"), not the spoken form ("143 thousand").
   Used where a decorative glyph carries meaning the prose should spell out. */
.sr-only {
  position: absolute;
  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;
  user-select: none;
  -webkit-user-select: none;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- masthead (N6 newspaper) ---------- */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter) 0;
  text-align: center;
}
.mast-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast-name {
  display: inline-block;
  margin-top: clamp(0.5rem, 1.2vw, 0.85rem);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.mast-name:hover { color: var(--accent); }
.mast-role {
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 0.84rem;
  color: var(--muted);
}
.mast-rule {
  height: 4px;
  margin-top: clamp(0.8rem, 1.6vw, 1.1rem);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

/* ---------- sticky section bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__brand {
  display: none;
  justify-self: start;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav__list {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}
.nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after,
.nav__list a[aria-current='true']::after { transform: scaleX(1); }
.nav__list a[aria-current='true'] { color: var(--ink); }

.nav__tools { display: flex; align-items: center; justify-self: end; gap: 0.35rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.icon-btn:hover { color: var(--ink); background: var(--wash); border-color: var(--rule); }
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.icon-btn .i-moon { display: none; }
:root[data-theme='dark'] .icon-btn .i-sun { display: none; }
:root[data-theme='dark'] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .i-sun { display: none; }
  :root:not([data-theme='light']) .icon-btn .i-moon { display: block; }
}

.menu-btn { display: none; }
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.25s var(--ease); }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--sm { padding: 0.52rem 0.95rem; font-size: 0.76rem; }
.btn--invert {
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: #150d0a;
  padding: 0.95rem 1.6rem;
}
.btn--invert:hover {
  background: var(--band-link);
  border-color: var(--band-link);
  color: #150d0a;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) var(--gutter) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.68fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: end;
}
.hero__body { padding-bottom: 0.4rem; }

.kicker {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.kicker__dot {
  width: 6px;
  height: 6px;
  margin-top: 0.42em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.85rem, 7.1vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.7rem);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: 47ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link span[aria-hidden] { transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link:hover span[aria-hidden] { transform: translateX(3px); }

.hero__figure { margin: 0; }
/* the portrait is a cut-out: no frame, no wash, no inset hairline — it sits
   directly on the paper in both themes */
.portrait img {
  display: block;
  width: 100%;
  filter: saturate(0.94) contrast(1.02);
}
.hero__figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}
.fig-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.5em;
}

/* ---------- pressmark (a masthead fact strip — not a stat row) ---------- */
.pressmark {
  list-style: none;
  margin: clamp(38px, 6vw, 72px) 0 0;
  padding: 1.2rem 0 1.3rem;
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
}
.pressmark li { display: flex; align-items: baseline; gap: 0.45em; }
.pressmark li:not(:last-child)::after {
  content: '·';
  margin: 0 1.15rem;
  color: var(--accent);
}
@media (max-width: 780px) {
  .pressmark { flex-direction: column; gap: 0.5rem; }
  .pressmark li:not(:last-child)::after { content: none; }
}
.num {
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--ink);
  /* lining, tabular figures: uniform cap-height, so 13 and 100 read at the
     same size. Old-style figures dropped 13 to x-height and broke the strip. */
  font-variant-numeric: lining-nums tabular-nums;
}
.num--word { font-style: italic; }
/* a unit set small but on the baseline — newspaper stat setting, not a
   superscript or a subscript */
.num__unit {
  font-size: 0.74em;
  letter-spacing: 0.02em;
  margin-left: 0.06em;
}
.num__plus {
  font-size: 0.46em;
  vertical-align: 0.7em;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-left: 0.04em;
}
.slash { color: var(--accent); padding: 0 0.05em; }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7.5vw, 100px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.hero + .section { border-top: 0; }
#investigations { padding-top: clamp(40px, 6vw, 82px); }
#desk { padding-bottom: clamp(44px, 6.4vw, 88px); }

.section__head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-bottom: clamp(26px, 4vw, 46px);
}
.section__index {
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.6rem;
}
.section__index::after {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--accent);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
/* rhythm: not every section head is the same size. 01 carries the display
   weight, 03 is a quiet label, 02 and 04 sit in between. */
.section__title--lead {
  font-size: clamp(2.15rem, 4.7vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.033em;
}
.section__title--quiet {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  letter-spacing: -0.01em;
}
.section__note {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}
.section__note--standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ---------- lead story ---------- */
.lead-story {
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(18px, 2.6vw, 28px);
}
.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-line__outlet { color: var(--accent); }
.meta-line__year { white-space: nowrap; }

.lead-story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 4.3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 1rem;
  max-width: 22ch;
  text-wrap: balance;
}
.lead-story__dek {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 1.25rem;
}
.lead-story__dek em,
.story__dek em { font-style: italic; }

.story-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin-bottom: 1.25rem;
}
.story-links a {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), background-size 0.25s var(--ease);
}
.story-links a:hover { color: var(--accent); background-size: 100% 2px; }

.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.kv span { display: inline-block; }
.kv span:not(:last-child)::after {
  content: '·';
  margin: 0 0.65rem;
  color: var(--rule-strong);
}

/* ---------- story list ---------- */
.stories {
  list-style: none;
  padding: 0;
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--rule);
}
.story {
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
}
.story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.story__title a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
.story__title a:hover { color: var(--accent); }
.story__dek {
  margin-top: 0.45rem;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 70ch;
  text-wrap: pretty;
}
.story .kv { margin-top: 0.75rem; }

/* ---------- language toggle (selected work) ---------- */
.lang-toggle {
  display: none;
  margin-top: 1.15rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--rule-strong);
}
html[data-lang] .lang-toggle { display: flex; }
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.5rem 1.05rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-btn + .lang-btn { border-left: 1px solid var(--rule-strong); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html[data-lang='en'] #work [data-lang='es'] { display: none; }
html[data-lang='es'] #work [data-lang='en'] { display: none; }
/* ---------- featured story (Cuestión Pública) ---------- */
.story--feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(20px, 3.2vw, 44px);
  align-items: start;
}
.story--feature .story__title { max-width: 26ch; }
.story--feature .story__dek { max-width: 58ch; }

.awards {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  align-self: stretch;
}
.awards li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.72rem;
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.585rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.35;
}
.awards__mark {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.story__figure { margin: 0; }
.story__shot {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--wash);
  transition: border-color 0.25s var(--ease);
}
.story__shot:hover,
.story__shot:focus-visible { border-color: var(--rule-strong); }
.story__shot img { display: block; width: 100%; height: auto; }
.story__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}
.story__figure figcaption a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.story__figure figcaption a:hover { color: var(--accent); border-color: var(--accent); }



/* ---------- index rows ---------- */
.index-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.index-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 148px;
  gap: 1.1rem;
  padding: 1.4rem 0.6rem 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.index-row:hover { background: color-mix(in srgb, var(--wash) 65%, transparent); padding-left: 0.6rem; }
.index-row__year {
  font-family: var(--sans);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 0.35rem;
}
.index-row__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.26;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.index-row__title a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
.index-row__title a:hover { color: var(--accent); }
.index-row__dek {
  margin-top: 0.35rem;
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 72ch;
  text-wrap: pretty;
}
.index-row__outlet {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.45rem;
  text-align: right;
  line-height: 1.5;
}

.aside-note {
  margin-top: 2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 72ch;
}
.aside-note strong { font-weight: 500; color: var(--ink); }

/* ---------- desk ---------- */
.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.92fr);
  align-items: start;
}
/* asymmetric columns divided by a newspaper column rule, not two equal boxes */
.desk-card {
  display: flex;
  flex-direction: column;
}
.desk-card + .desk-card {
  border-left: 1px solid var(--rule);
  padding-left: clamp(26px, 3.4vw, 50px);
  margin-left: clamp(26px, 3.4vw, 50px);
}
.desk-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.78rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin-bottom: 0.8rem;
  text-wrap: balance;
}
.desk-card:first-child .desk-card__title {
  font-size: clamp(1.55rem, 2.85vw, 2.22rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
}
.desk-card + .desk-card .desk-card__title {
  font-size: clamp(1.16rem, 1.75vw, 1.42rem);
}
.desk-card__dek {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
  max-width: 46ch;
}
.desk-card .story-links { flex-direction: column; gap: 0.45rem; margin-bottom: auto; }
.desk-card .story-links a { font-size: 0.82rem; align-self: flex-start; }
.desk-card .kv { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }

.repos { margin-top: clamp(30px, 4.5vw, 48px); }
.repos__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.repo-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.repo-list a {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.9rem 0.4rem 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
}
.repo-list a:hover { background: color-mix(in srgb, var(--wash) 55%, transparent); }
.repo-list__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.repo-list__desc { font-size: 0.84rem; color: var(--muted); }
.repo-list__arrow {
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.repo-list a:hover .repo-list__name { color: var(--accent); }
.repo-list a:hover .repo-list__arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(258px, 0.8fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}
.about__prose p {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.74;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 1.15rem;
  text-wrap: pretty;
}
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.55em;
  line-height: 0.84;
  padding: 0.07em 0.12em 0 0;
  color: var(--ink);
  font-weight: 400;
}
.principle {
  margin-top: 1.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
  font-size: 1.05rem !important;
  line-height: 1.6;
  color: var(--ink) !important;
}
.principle__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cred-card { background: var(--paper-2); padding: 1.15rem 1.25rem 1.25rem; }
.cred-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.cred-list { margin: 0; }
/* dot leaders: the page's second identity gesture (see .num's lining figures) */
.cred-list > div {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
}
.cred-list > div + div { margin-top: 0.62rem; }
.cred-list dt {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 0.55em;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.cred-list dt::after {
  content: '';
  flex: 1 1 auto;
  min-width: 1.4em;
  border-bottom: 1px dotted var(--rule-strong);
  transform: translateY(-0.32em);
}
.cred-list dd {
  margin: 0;
  flex: 0 1 auto;
  max-width: 62%;
  font-family: var(--sans);
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

/* ---------- contact ---------- */
.contact {
  margin-top: clamp(30px, 5vw, 64px);
  padding: clamp(56px, 8.5vw, 108px) 0 0;
  background: var(--band);
  color: var(--band-ink);
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
}
.kicker--invert { color: var(--band-muted); }
.kicker--invert .kicker__dot {
  background: var(--band-ink);
  box-shadow: 0 0 0 3px rgba(244, 241, 233, 0.16);
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.9vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.032em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.contact__dek {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--band-muted);
  max-width: 50ch;
  margin-bottom: 2.1rem;
}
.contact__links {
  list-style: none;
  padding: 1.35rem 0 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--band-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.9rem;
  font-size: 0.8rem;
  color: var(--band-muted);
}
.contact__links a {
  color: var(--band-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 233, 0.32);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact__links a:hover { color: var(--band-link); border-color: var(--band-link); }

/* ---------- colophon ---------- */
.colophon {
  background: var(--band);
  color: var(--band-muted);
  padding-bottom: 2.2rem;
}
.colophon__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 0;
  border-top: 1px solid var(--band-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.69rem;
  line-height: 1.6;
}

/* ---------- motion ---------- */
/* ---------- one orchestrated entrance ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.js .hero__body { animation: rise 0.7s var(--ease) 0.05s both; }
.js .hero__figure { animation: rise 0.7s var(--ease) 0.16s both; }
.js .pressmark { animation: rise 0.7s var(--ease) 0.28s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .hero__body,
  .js .hero__figure,
  .js .pressmark { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
  .hero__figure { max-width: 400px; }
  .hero__figure figcaption { max-width: 44ch; }
  .about { grid-template-columns: 1fr; }
  .about__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__inner { height: 54px; grid-template-columns: auto 1fr auto; }
  .nav__brand { display: block; }
  .nav__list {
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.35rem var(--gutter) 1.35rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav__list li:last-child a { border-bottom: 0; }
  .nav__list a::after { display: none; }
  .menu-btn { display: inline-grid; }
  .desk-grid { grid-template-columns: 1fr; }
  .desk-card + .desk-card {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    margin-top: clamp(30px, 5vw, 46px);
    padding-top: clamp(26px, 4.5vw, 40px);
    border-top: 1px solid var(--rule);
  }
  .story--feature { grid-template-columns: 1fr; gap: 1.35rem; }
  .story--feature .story__figure { max-width: 470px; }

  .repo-list a { grid-template-columns: 1fr auto; gap: 0.25rem 1rem; }
  .repo-list__desc { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 0.4rem; }
  .section__index { padding-top: 0; }
  .section__index::after { display: none; }
  .index-row { grid-template-columns: 52px minmax(0, 1fr); gap: 0.4rem 0.9rem; padding: 1.1rem 0; }
  .index-row:hover { padding-left: 0; }
  .index-row__outlet { grid-column: 2; text-align: left; padding-top: 0.3rem; }
  .meta-line { flex-direction: column; gap: 0.2rem; }
  .about__side { grid-template-columns: 1fr; }
  .contact__links { flex-direction: column; gap: 0.7rem; }
  .colophon__inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .text-link { font-size: 0.8rem; }
}

/* ---------- print ---------- */
@media print {
  .masthead,
  .nav,
  .progress,
  .menu-btn,
  .contact__links { display: none !important; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .contact { background: #fff; color: #000; padding-top: 2rem; }
  .contact__title, .contact__dek, .colophon { color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1.6rem 0; page-break-inside: avoid; }
}
