/* ==========================================================================
   Renaro Lab — main stylesheet
   Structure: 1 fonts · 2 tokens · 3 base · 4 layout · 5 header/nav
              6 components · 7 page-specific · 8 footer · 9 utilities · 10 motion/print
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL OFL 1.1 — see assets/fonts/) -------------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* 2. Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #fafaf8;
  --bg-raised: #ffffff;
  --bg-sunk: #f1f1ee;
  --fg: #121212;
  --fg-2: #353533;
  --muted: #61615e;
  --line: #e0e0db;
  --line-strong: #c3c3bd;
  --accent: #00bcd4;          /* brand cyan — graphics, rules, marks */
  --accent-ink: #00717e;      /* accessible cyan for text on light bg (5.4:1) */
  --accent-wash: rgba(0, 188, 212, 0.09);
  --plate: #ffffff;           /* figure backing; stays white in dark mode */
  --focus: #00717e;

  /* map ramp (cool → hot) */
  --grid-0: #e6e6e2;
  --grid-1: #cacac5;
  --grid-2: #a5a5a0;
  --grid-3: #7a7a76;
  --grid-4: #464644;
  --grid-x: #c9c9c3;
  --grid-top: #0097a7;

  --serif: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.75rem + 2.3vw, 3.75rem);
  --step-5: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);

  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --maxw: 77.5rem;
  --measure: 40rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0f;
    --bg-raised: #161616;
    --bg-sunk: #1a1a19;
    --fg: #ececE8;
    --fg-2: #cfcfca;
    --muted: #a2a29d;
    --line: #2b2b29;
    --line-strong: #44443f;
    --accent-ink: #5fd6e6;
    --accent-wash: rgba(0, 188, 212, 0.12);
    --plate: #ffffff;
    --focus: #5fd6e6;
    --grid-0: #2a2a29;
    --grid-1: #424240;
    --grid-2: #63635f;
    --grid-3: #8f8f8a;
    --grid-4: #c4c4bf;
    --grid-x: #3a3a37;
    --grid-top: #26c6da;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f;
  --bg-raised: #161616;
  --bg-sunk: #1a1a19;
  --fg: #ececE8;
  --fg-2: #cfcfca;
  --muted: #a2a29d;
  --line: #2b2b29;
  --line-strong: #44443f;
  --accent-ink: #5fd6e6;
  --accent-wash: rgba(0, 188, 212, 0.12);
  --plate: #ffffff;
  --focus: #5fd6e6;
  --grid-0: #2a2a29;
  --grid-1: #424240;
  --grid-2: #63635f;
  --grid-3: #8f8f8a;
  --grid-4: #c4c4bf;
  --grid-x: #3a3a37;
  --grid-top: #26c6da;
}

/* 3. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--accent-wash); color: var(--fg); }

abbr[title] { text-decoration: none; border-bottom: 1px dotted var(--line-strong); cursor: help; }

code, kbd, samp, pre { font-family: var(--mono); font-size: 0.9em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--step--1);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

/* 4. Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--sunk { background: var(--bg-sunk); }

/* Asymmetric section: narrow label column + content */
.split {
  display: grid;
  gap: 2rem var(--gutter);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .split--wide-aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

.section-label {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0 0 1rem;
}
.section-label__index { color: var(--accent-ink); }
@media (min-width: 960px) {
  .split > .section-label { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}

.section-title {
  font-size: var(--step-3);
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.section-intro {
  color: var(--fg-2);
  max-width: var(--measure);
  font-size: var(--step-1);
  font-family: var(--serif);
  line-height: 1.5;
}

.section-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* 5. Header & navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header { background: var(--bg); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}
/* Logo mark: square + R. Inverts with the theme so it always contrasts with the page. */
.logo-mark { display: block; flex-shrink: 0; }
.logo-mark__bg { fill: var(--fg); }
.logo-mark__r { fill: var(--bg); }
.wordmark__mark { width: 28px; height: 28px; }
.wordmark__text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1;
}
.wordmark__text span { color: var(--muted); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.925rem;
  color: var(--fg-2);
  text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.3rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--fg); }

.icon-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  cursor: pointer;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.menu-toggle { display: none; }

@media (max-width: 879px) {
  .menu-toggle { display: inline-grid; }
  .nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }
  .nav__list.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }
  .nav__link {
    padding: 0.9rem 0;
    font-family: var(--serif);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent-ink); }
  .menu-toggle .i-close { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
}
/* Without JS the list stays visible and wraps instead of collapsing */
.no-js .nav__list { position: static; visibility: visible; opacity: 1; transform: none; flex-wrap: wrap; flex-direction: row; padding: 0; border: 0; }
.no-js .menu-toggle, .no-js .theme-toggle { display: none; }

/* 6. Components --------------------------------------------------------- */

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.15rem;
}
.arrow-link::after {
  content: "\2192";
  transition: transform 200ms var(--ease);
}
.arrow-link:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.arrow-link:hover::after { transform: translateX(3px); }
.arrow-link--quiet { border-bottom-color: var(--line-strong); color: var(--fg-2); }

/* Buttons (real actions or downloads only) */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  font: 500 0.92rem/1.2 var(--sans);
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn__meta { font-family: var(--mono); font-size: 0.75rem; opacity: 0.7; font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}
.kicker__rule { width: 2rem; height: 1px; background: var(--accent); display: inline-block; }

/* Status badge: preprint / manuscript / published */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-2);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.status--preprint { border-color: var(--accent); color: var(--accent-ink); }
.status--preprint::before { background: transparent; border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--accent); }
.status--manuscript::before { background: transparent; }
.status--published { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.status--published::before { background: var(--bg); border-color: var(--bg); }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list li {
  font-size: 0.8rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-2);
}

/* Author line */
.authors { font-size: 0.98rem; color: var(--fg-2); margin: 0; }
.authors a { text-decoration-color: var(--line-strong); }
.authors a:hover { text-decoration-color: var(--accent); }
.authors sup { font-family: var(--mono); font-size: 0.7em; color: var(--muted); margin-left: 0.1em; }

/* Figure plate */
.figure { margin: 0; }
.figure__plate {
  background: var(--plate);
  border: 1px solid var(--line);
  padding: clamp(0.5rem, 0.3rem + 1vw, 1.25rem);
}
.figure__plate img { width: 100%; }
.figure__caption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62rem;
}
.figure__caption b { color: var(--fg); font-weight: 600; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; margin-right: 0.4rem; }
.figure__credit { display: block; margin-top: 0.4rem; font-size: 0.78rem; }

/* Data callout numbers */
.figures-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid var(--line);
}
.datum {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .datum + .datum { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.datum__value {
  font-family: var(--serif);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  display: block;
  margin-bottom: 0.75rem;
}
.datum__value small { font-size: 0.45em; letter-spacing: 0; color: var(--muted); margin-left: 0.15em; }
.datum__label { font-size: 0.9rem; color: var(--fg-2); line-height: 1.5; margin: 0; max-width: 30ch; }

/* Principle / interest columns */
.columns {
  display: grid;
  gap: 2.5rem var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 3rem;
}
.column h3 {
  font-size: var(--step-1);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.column p { color: var(--fg-2); font-size: 0.97rem; }
.column__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-ink);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

/* Publication entry */
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.pub {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) {
  .pub { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
.pub__year {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
  padding-top: 0.35rem;
}
.pub__head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin-bottom: 0.9rem; }
.pub__title {
  font-size: var(--step-2);
  line-height: 1.22;
  margin-bottom: 0.7rem;
  max-width: 34ch;
}
.pub__title a { text-decoration: none; }
.pub__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.pub__venue { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.pub__venue em { font-style: normal; color: var(--fg-2); }
.pub__actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.1rem; align-items: center; }
.pub__actions a, .pub__actions summary {
  font-size: 0.88rem;
  font-weight: 500;
}

/* Disclosure (abstract / cite) */
.disclosure { margin-top: 1rem; border-top: 1px solid var(--line); }
.disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 180ms var(--ease);
  margin-right: 0.15rem;
}
.disclosure[open] summary::before { transform: rotate(45deg); }
.disclosure summary:hover { color: var(--accent-ink); }
.disclosure__body { padding: 0 0 1.25rem; color: var(--fg-2); font-size: 0.95rem; max-width: 46rem; }
.disclosure + .disclosure { margin-top: 0; }

/* Citation block */
.cite { display: grid; gap: 1rem; }
.cite__block {
  position: relative;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.cite__label { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0 0 0.5rem; }
.cite__text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--fg); padding-right: 4.5rem; }
pre.cite__text { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; }
.copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  appearance: none;
  font: 500 0.75rem/1 var(--sans);
  padding: 0.45rem 0.65rem;
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--fg); }
.copy-btn[data-state="done"] { border-color: var(--accent); color: var(--accent-ink); }

/* People */
.people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 200ms var(--ease);
  min-height: 15rem;
}
.person-card:hover { background: var(--bg-raised); }
.person-card:focus-within { background: var(--bg-raised); }
.monogram {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 0.5rem; height: 0.5rem;
  background: var(--accent);
}
.monogram--lg { width: 5.5rem; height: 5.5rem; font-size: 1.9rem; }
.monogram--lg::after { width: 0.8rem; height: 0.8rem; }
.person-card__name { font-size: var(--step-1); line-height: 1.25; margin: 0 0 0.3rem; }
.person-card__name a { text-decoration: none; }
.person-card__name a::after { content: ""; position: absolute; inset: 0; }
.person-card__aff { font-size: 0.88rem; color: var(--muted); margin: 0; }
.person-card__work {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-2);
}
.person-card__work span { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.3rem; }
.person-card__go {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--muted);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}
.person-card:hover .person-card__go { transform: translate(2px, -2px); color: var(--accent-ink); }

/* Project entry (research index) */
.project {
  display: grid;
  gap: 2rem var(--gutter);
  padding: 2.5rem 0;
  border-top: 1px solid var(--fg);
}
@media (min-width: 960px) {
  .project { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.project__title { font-size: var(--step-3); margin: 0 0 1rem; max-width: 20ch; }
.project__title a { text-decoration: none; }
.project__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.project__summary { color: var(--fg-2); max-width: var(--measure); }
.project__media { display: block; text-decoration: none; }

/* Definition table / data table */
.dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 0.95rem;
}
.dl dt, .dl dd { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.dl dt { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 1rem; padding-right: 1rem; }
.dl dd { color: var(--fg-2); }
@media (max-width: 559px) {
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
}

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-top: 1px solid var(--fg); }
.table-wrap:focus-visible { outline-offset: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.data-table caption { text-align: left; caption-side: bottom; padding-top: 0.8rem; font-size: 0.82rem; color: var(--muted); }
.data-table th, .data-table td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.data-table tbody th { font-family: var(--mono); font-weight: 400; color: var(--fg); white-space: nowrap; }
.data-table td { color: var(--fg-2); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Prose (long-form) */
.prose { max-width: var(--measure); font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--fg-2); }
.prose h2 { font-size: var(--step-2); color: var(--fg); margin: 2.75rem 0 1rem; }
.prose h3 { font-size: var(--step-1); color: var(--fg); margin: 2rem 0 0.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2rem; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose .lead { font-size: var(--step-1); color: var(--fg); line-height: 1.5; }

.note {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--fg-2);
  font-size: 0.95rem;
  max-width: var(--measure);
}
.note strong { color: var(--fg); font-weight: 600; }

/* Numbered findings */
.findings { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.finding {
  counter-increment: f;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.finding::before {
  content: counter(f, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-ink);
  padding-top: 0.35rem;
}
.finding h3 { font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.5rem; }
.finding p { color: var(--fg-2); max-width: var(--measure); font-size: 0.98rem; }

/* Negative claims list */
.not-claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.not-claims li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 0.97rem;
}
.not-claims li::before {
  content: "";
  width: 0.75rem; height: 1px;
  background: var(--muted);
  margin-top: 0.8rem;
}

/* Page header (interior pages) */
.page-head {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-head__title { font-size: var(--step-5); max-width: 16ch; letter-spacing: -0.025em; line-height: 1.04; }
.page-head__lead {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 38rem;
}

.breadcrumb { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin-bottom: 2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }

/* 7. Page-specific ------------------------------------------------------ */

/* Home hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.hero__grid {
  display: grid;
  gap: 3.5rem var(--gutter);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.hero__title {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 13ch;
  font-weight: 380;
}
.hero__title em { font-style: italic; color: var(--fg-2); font-weight: 350; }
.hero__lead {
  margin-top: 2rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-2);
}
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

.hero__meta {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem var(--gutter);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__meta dt { font-family: var(--mono); font-size: 0.72rem; margin-bottom: 0.25rem; }
.hero__meta dd { margin: 0; color: var(--fg-2); }

/* Heat grid figure */
.heat-grid { margin: 0; position: relative; }
.heat-grid__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.heat-grid__frame { position: relative; border-top: 1px solid var(--fg); padding-top: 1rem; }
.heat-grid__svg { width: 100%; height: auto; aspect-ratio: 65 / 65; max-height: 34rem; margin-inline: auto; }
.heat-grid__svg .hg-l0 { fill: var(--grid-0); }
.heat-grid__svg .hg-l1 { fill: var(--grid-1); }
.heat-grid__svg .hg-l2 { fill: var(--grid-2); }
.heat-grid__svg .hg-l3 { fill: var(--grid-3); }
.heat-grid__svg .hg-l4 { fill: var(--grid-4); }
.heat-grid__svg .hg-x { fill: none; stroke: var(--grid-x); stroke-width: 0.12; }
.heat-grid__svg .hg-top { fill: var(--grid-top); transition: opacity 320ms var(--ease); }
.heat-grid[data-model="m1"] .hg-m4,
.heat-grid[data-model="m4"] .hg-m1 { opacity: 0; }

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}
.segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 0.78rem/1 var(--sans);
  padding: 0.5rem 0.7rem;
  border-radius: 1px;
  cursor: pointer;
}
.segmented button:hover { color: var(--fg); }
.segmented button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.heat-grid__legend {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.heat-grid__legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.swatch { width: 0.7rem; height: 0.7rem; display: inline-block; flex-shrink: 0; }
.swatch--ramp { width: 3.5rem; background: linear-gradient(90deg, var(--grid-0) 0 20%, var(--grid-1) 20% 40%, var(--grid-2) 40% 60%, var(--grid-3) 60% 80%, var(--grid-4) 80%); }
.swatch--top { background: var(--grid-top); }
.swatch--x { border: 1px solid var(--grid-x); }
.heat-grid__caption { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.heat-grid__caption strong { color: var(--fg); font-weight: 500; }
.heat-grid__stat { font-family: var(--mono); color: var(--fg); }

/* Featured research (home) */
.feature {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.feature__body {
  display: grid;
  gap: 1.5rem var(--gutter);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1040px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem var(--gutter); align-items: start; }
  .feature > .figures-row { grid-column: 1 / -1; }
  .feature__body { padding-top: 0.25rem; }
}
.feature__body > div:last-child > p { color: var(--fg-2); }
.feature__media .figure__plate { transition: border-color 200ms var(--ease); }
.feature__media:hover .figure__plate { border-color: var(--line-strong); }
.feature__title { font-size: var(--step-3); margin: 0 0 1.25rem; max-width: 24ch; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.feature__body > p { color: var(--fg-2); }

/* Research article page */
.article-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.article-head__title { font-size: var(--step-4); letter-spacing: -0.022em; line-height: 1.06; max-width: 22ch; margin-bottom: 1.75rem; }
.article-head__aff { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }
.article-head .btn-row { display: grid; gap: 0.6rem; max-width: 22rem; }
.article-head .btn { justify-content: flex-start; }
.article-head .btn__meta { margin-left: auto; }
.article-head__grid { display: grid; gap: 2rem var(--gutter); }
@media (min-width: 1040px) { .article-head__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }

.article-layout { display: grid; gap: 3rem var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
}
.toc { font-size: 0.88rem; }
@media (min-width: 1040px) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.toc__title { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0 0 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -1px; text-decoration: none; color: var(--muted); border-left: 1px solid transparent; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current="true"] { color: var(--fg); border-left-color: var(--accent); }
@media (max-width: 1039px) {
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; border: 0; }
  .toc a { padding: 0.2rem 0; border: 0; }
}

.article-section { padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.article-section:last-child { border-bottom: 0; margin-bottom: 0; }
.article-section > h2 { font-size: var(--step-3); margin-bottom: 1.5rem; max-width: 22ch; }
.article-section .figure { margin-block: 2.5rem; }

.model-ladder { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); border-top: 1px solid var(--fg); }
.model-ladder li { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .model-ladder li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); } }
.model-ladder b { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.8rem; color: var(--accent-ink); margin-bottom: 0.4rem; }
.model-ladder strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.4rem; }
.model-ladder span { font-size: 0.88rem; color: var(--muted); }

/* Profile page */
.profile-head { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 720px) { .profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; } }

/* Contact */
.contact-card {
  border-top: 1px solid var(--fg);
  padding-top: 1.5rem;
}
.contact-card h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.contact-card p { color: var(--fg-2); }
.contact-card .email { font-family: var(--serif); font-size: var(--step-2); text-decoration-color: var(--accent); word-break: break-word; }

/* Status legend */
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.legend-list li p { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }

/* 8. Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--fg);
  padding-block: 3.5rem 2rem;
  font-size: 0.9rem;
  color: var(--fg-2);
  margin-top: 0;
}
.site-footer__grid { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 880px) {
  .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
}
.site-footer__about { max-width: 26rem; color: var(--muted); margin-top: 1rem; }
.site-footer h2 { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer__base {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* 9. Utilities ---------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.nowrap { white-space: nowrap; }

/* 10. Motion & print ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header, .site-footer, .toc, .copy-btn, .segmented, .skip-link, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: none; }
  .section { padding-block: 1.5rem; }
  .disclosure:not([open]) > :not(summary) { display: block; }
}

/* 11. Brand art: the Renaro field (dot SVG art, see tools/brand_art.py) ------ */
.rf { display: block; width: 100%; height: auto; overflow: visible; }
.rf-d circle { fill: var(--fg); transition: r 420ms var(--ease); }
.rf-a circle { fill: var(--accent); }
.rf-ring { fill: none; stroke: var(--accent); stroke-width: 0.09; }
.rf-ring--outer {
  stroke-dasharray: 0.26 0.36;
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-orbit 40s linear infinite;
}
@keyframes rf-orbit { to { transform: rotate(360deg); } }
@keyframes rf-in { from { opacity: 0; } to { opacity: 1; } }

.brand-art {
  justify-self: end;
  align-self: center;
  width: min(100%, 31rem);
  animation: rf-in 900ms var(--ease) both;
}
@media (max-width: 1039px) {
  .brand-art { justify-self: center; width: min(88%, 26rem); margin-top: 1rem; }
}

.page-head .wrap { position: relative; }
.page-head__art { pointer-events: none; }
.page-head__art .rf-d circle { fill: var(--fg-2); }
@media (min-width: 960px) {
  .page-head__art {
    position: absolute;
    right: var(--gutter);
    bottom: calc(-1 * clamp(2.5rem, 2rem + 2vw, 4rem) + 1.5rem);
    width: min(44%, 36rem);
  }
  .page-head__title, .page-head__lead, .page-head .breadcrumb, .profile-head { position: relative; z-index: 1; }
}
@media (max-width: 959px) {
  .page-head__art { margin: 0 0 2rem; width: 100%; max-width: 30rem; }
}
.page-head--lost { border-bottom: 0; }
@media (min-width: 960px) {
  .page-head--lost .page-head__art { width: min(38%, 26rem); bottom: auto; top: 0; }
}

.site-footer__art { margin-bottom: 2.5rem; }
.site-footer__art .rf-d circle { fill: var(--line-strong); }

@media (prefers-reduced-motion: reduce) {
  .rf-ring--outer, .brand-art { animation: none; }
  .rf-d circle { transition: none; }
}

.fields {
  list-style: none;
  margin: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-top: 1px solid var(--fg);
}
.fields li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .fields li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.fields__n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-ink); }
.fields strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); line-height: 1.25; }
.fields li > span:last-child { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* Featured research heat grid inside the feature block */
.feature .heat-grid__svg { max-height: 30rem; }

/* 12. Full-text article ------------------------------------------------- */
.article-head__kicker { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin: 0 0 0.5rem; }
.article-head__title--supp { font-size: var(--step-3); }
.article-head__title a { text-decoration: none; }
.article-head__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.paper-notice {
  margin: 2.25rem 0 0;
  max-width: 46rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}
.section--paper { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

.toc--paper ol { counter-reset: none; }
.toc--paper a { display: flex; gap: 0.6rem; line-height: 1.35; }
.toc__num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); min-width: 1.1rem; padding-top: 0.1rem; }
@media (min-width: 1040px) {
  .toc--paper { max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-right: 0.5rem; }
}

.paper { min-width: 0; }
.paper-section { margin-bottom: 3.5rem; }
.paper-section + .paper-section { padding-top: 3rem; border-top: 1px solid var(--line); }
.paper h2 { font-size: var(--step-3); margin: 0 0 1.5rem; max-width: 26ch; scroll-margin-top: calc(var(--header-h) + 1rem); }
.paper h3 { font-size: var(--step-1); margin: 2.5rem 0 0.9rem; max-width: var(--measure); line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 1rem); }
.paper h4 { font-size: 1.05rem; font-style: italic; margin: 2rem 0 0.75rem; }
.paper-num { font-family: var(--mono); font-size: 0.55em; color: var(--accent-ink); margin-right: 0.8rem; vertical-align: 0.25em; letter-spacing: 0; }
.paper h3 .paper-num { font-size: 0.7em; vertical-align: 0.1em; }
.paper p,
.paper .paper-list {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--fg-2);
  max-width: 44rem;
  hyphens: auto;
}
.paper p { margin: 0 0 1.05em; }
.paper p.cont { margin-top: 0; }
.paper .paper-list { padding-left: 1.4rem; }
.paper .paper-list li { margin-bottom: 0.8em; padding-left: 0.3rem; }
.paper .paper-list li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--muted); }
.paper strong { color: var(--fg); font-weight: 600; }
.paper code { font-size: 0.82em; background: var(--bg-sunk); padding: 0.05em 0.3em; border-radius: 2px; overflow-wrap: anywhere; }
.paper a { text-decoration-color: var(--line-strong); }
.paper .cref { white-space: nowrap; font-family: var(--sans); font-size: 0.82em; color: var(--muted); }
.paper .cref a { color: var(--accent-ink); text-decoration: none; }
.paper .cref a:hover { text-decoration: underline; }

.paper-abstract p:first-of-type { font-size: 1.12rem; color: var(--fg); }
.paper-keywords { font-family: var(--sans) !important; font-size: 0.88rem !important; color: var(--muted) !important; }
.paper-keywords span { font-family: var(--mono); font-size: 0.75rem; color: var(--fg); margin-right: 0.6rem; }

.math { font-family: var(--serif); white-space: nowrap; }
.math i { font-style: italic; }
.math sub, .math sup { font-size: 0.72em; }
.m-up { font-style: normal; }

.equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 1.4rem 0;
  padding: 0.25rem 0;
  overflow-x: auto;
  color: var(--fg);
}
.equation + .equation { margin-top: -0.6rem; }
.equation math { font-size: 1.12rem; justify-self: center; }
.equation__num { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.paper-figure { margin: 2.75rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.paper-figure .figure__caption b { margin-right: 0.5rem; }

.paper-table { margin: 2.75rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.paper-table figcaption { font-size: 0.88rem; line-height: 1.55; color: var(--fg-2); max-width: 46rem; margin-bottom: 0.9rem; }
.paper-label { font-family: var(--mono); font-size: 0.8rem; color: var(--fg); margin-right: 0.35rem; }
.paper-table .table-wrap { margin: 0; }
.paper-table .data-table { font-size: 0.84rem; min-width: 30rem; }
.paper-table--wide .data-table { min-width: 44rem; }
.paper-table .data-table thead th { white-space: normal; vertical-align: bottom; }
.paper-table .data-table tbody th { white-space: normal; font-family: var(--sans); font-size: 0.84rem; color: var(--fg); }
.paper-table .data-table th, .paper-table .data-table td { padding: 0.6rem 0.9rem 0.6rem 0; line-height: 1.45; }
.paper-table .data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paper-table .data-table .ctr { text-align: center; font-variant-numeric: tabular-nums; }
.paper-table .data-table .span { border-bottom: 1px solid var(--line-strong); }
.paper-table .data-table .indent { padding-left: 1.25rem; color: var(--fg-2); }
.paper-table .data-table tbody tr:last-child > * { border-bottom: 1px solid var(--fg); }
.paper-table__notes p { font-family: var(--sans); font-size: 0.8rem; line-height: 1.55; color: var(--muted); max-width: 52rem; margin: 0.75rem 0 0; }

.references { font-size: 0.86rem; line-height: 1.55; color: var(--fg-2); padding-left: 2.2rem; margin: 0; max-width: 52rem; }
.references li { padding: 0.45rem 0 0.45rem 0.4rem; scroll-margin-top: calc(var(--header-h) + 1rem); overflow-wrap: anywhere; }
.references li::marker { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.references li:target { background: var(--accent-wash); }
.references a { color: var(--accent-ink); text-decoration: none; }
.references a:hover { text-decoration: underline; }

.paper-cite .cite { max-width: 52rem; }
.equation__lines { justify-self: center; display: grid; gap: 0.35rem; }
.equation__lines math { justify-self: start; }
.equation__lines math + math { padding-left: 2.6em; }
/* Equations: centred when they fit, scrollable from the left edge when they do not
   (auto margins never go negative, so nothing is clipped on narrow screens). */
.equation { display: flex; align-items: center; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; }
.equation > math, .equation > .equation__lines { flex: none; margin-inline: auto; }
.equation__num { flex: none; }
@media (max-width: 719px) {
  .equation math { font-size: 1rem; }
  .equation__lines math + math { padding-left: 1.2em; }
}

/* 13. Renaro field interaction (see main.js) ---------------------------- */
.rf { cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rf-d circle { transition: r 280ms var(--ease), transform 280ms var(--ease); }
.rf-a circle { transition: r 260ms var(--ease); }
.rf--pre .rf-d circle, .rf--pre .rf-a circle { r: 0; }
.rf--pre .rf-d circle { transition: none; }
.rf:not(.rf--pre) .rf-d circle { transition: r 280ms var(--ease), transform 280ms var(--ease); }
.rf--signal .rf-a circle { r: 0.46px; }
.page-head__art { pointer-events: auto; }
.page-head__art .rf { cursor: crosshair; }

/* Article header art (full-text pages) */
.article-head__side { display: grid; gap: 1.75rem; align-content: end; }
.article-head__art { width: 100%; max-width: 24rem; }
.article-head__art .rf-d circle { fill: var(--fg-2); }
@media (max-width: 1039px) { .article-head__art { max-width: 20rem; } }

/* People: card metadata, ORCID */
.person-card__meta {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--fg-2);
}
.person-card__meta dt { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.15rem; }
.person-card__meta dd { margin: 0; overflow-wrap: anywhere; }
.person-card__meta .mono { font-size: 0.8rem; }
.people-grid { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }

.orcid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}
.orcid:hover { color: var(--accent-ink); }
.orcid__badge {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  font: 600 0.62rem/1 var(--sans);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.profile-head__ids { margin: 1rem 0 0; }

/* 14. CMS additions: draft preview banner and extra full-text elements --- */
.draft-banner { background: var(--fg); color: var(--bg); font-size: 0.85rem; padding: 0.5rem 1rem; text-align: center; }
.draft-banner a { color: inherit; }
.paper blockquote.paper-quote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--line-strong); max-width: 42rem; font-family: var(--serif); color: var(--fg-2); }
.paper pre.paper-code { max-width: 46rem; overflow-x: auto; background: var(--bg-sunk); border: 1px solid var(--line); padding: 1rem; font-size: 0.82rem; line-height: 1.5; margin: 1.5rem 0; }
.paper pre.paper-code code { background: none; padding: 0; font-size: inherit; }
.paper .paper-callout { max-width: 44rem; margin: 1.75rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--bg-raised); }
.paper .paper-callout__title { font-family: var(--mono) !important; font-size: 0.78rem !important; color: var(--accent-ink) !important; margin: 0 0 0.5rem !important; }
.paper .paper-dl { max-width: 44rem; display: grid; grid-template-columns: minmax(6rem, 12rem) minmax(0, 1fr); gap: 0.4rem 1.25rem; font-family: var(--serif); font-size: 1.05rem; }
.paper .paper-dl dt { font-weight: 600; color: var(--fg); }
.paper .paper-dl dd { margin: 0; color: var(--fg-2); }
.paper sup.fn a { font-family: var(--sans); font-size: 0.75em; color: var(--accent-ink); text-decoration: none; padding: 0 0.1em; }
.paper .figure__fallback { margin: 0; padding: 2rem 1rem; text-align: center; font-family: var(--sans); }
.paper code.tex { white-space: normal; }
.smallcaps { font-variant: small-caps; letter-spacing: 0.02em; }
