/* ================================================================
   Emmanuel Martínez Alcocer — hoja de estilos
   Fuentes alojadas en la propia web (sin peticiones a terceros).
   ================================================================ */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/cormorant.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/cormorant-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --card: #fbf8f2;
  --ink: #1d1b18;
  --ink-2: #3b3731;
  --muted: #6c655a;
  --line: rgba(29, 27, 24, .14);
  --line-strong: rgba(29, 27, 24, .32);
  --accent: #8a1c2b;
  --accent-soft: rgba(138, 28, 43, .08);
  --on-accent: #fbf6ee;
  --gold: #a07a33;
  --band: #1d1b18;
  --on-band: #f1ebdf;
  --on-band-muted: rgba(241, 235, 223, .66);
  --shadow: 0 1px 2px rgba(29,27,24,.05), 0 8px 24px -12px rgba(29,27,24,.18);

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141311;
    --paper-2: #1b1917;
    --card: #1f1d1a;
    --ink: #ece5d8;
    --ink-2: #d3cbbd;
    --muted: #a39b8d;
    --line: rgba(236, 229, 216, .13);
    --line-strong: rgba(236, 229, 216, .3);
    --accent: #e0848f;
    --accent-soft: rgba(224, 132, 143, .1);
    --on-accent: #1a1311;
    --gold: #d2ad65;
    --band: #0d0c0b;
    --on-band: #ece5d8;
    --on-band-muted: rgba(236, 229, 216, .62);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper: #141311;
  --paper-2: #1b1917;
  --card: #1f1d1a;
  --ink: #ece5d8;
  --ink-2: #d3cbbd;
  --muted: #a39b8d;
  --line: rgba(236, 229, 216, .13);
  --line-strong: rgba(236, 229, 216, .3);
  --accent: #e0848f;
  --accent-soft: rgba(224, 132, 143, .1);
  --on-accent: #1a1311;
  --gold: #d2ad65;
  --band: #0d0c0b;
  --on-band: #ece5d8;
  --on-band-muted: rgba(236, 229, 216, .62);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font: 600 .74rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }
h2 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; }
.mini-title { margin: 0 0 .25rem; font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .9rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; background: none;
}
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.link-button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); min-height: 68px; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.wordmark-mark {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font: italic 600 1.3rem/1 var(--serif); padding-bottom: 2px;
}
.wordmark-text { font: 600 1.28rem/1.1 var(--serif); letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-initial { display: none; }
.site-nav { margin-left: auto; display: flex; gap: clamp(.9rem, 2vw, 1.8rem); }
.site-nav a { position: relative; padding: .4rem 0; text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; gap: .4rem; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); }
.icon-button svg { width: 19px; height: 19px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.menu-toggle { display: none; }

/* ---------- Portada ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8.2vw, 6.9rem);
  line-height: .9;
  letter-spacing: -.025em;
  font-weight: 500;
}
.hero h1 em { display: block; font-style: italic; font-weight: 400; color: var(--accent); }
.hero-lede { max-width: 38rem; margin: 1.8rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.latest { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem .6rem; box-shadow: var(--shadow); }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.latest-head h2 { font-size: 1.6rem; font-style: italic; white-space: nowrap; }
.latest-updated { font-size: .7rem; color: var(--muted); letter-spacing: .03em; text-align: right; line-height: 1.35; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li + li { border-top: 1px solid var(--line); }
.latest-list a { display: block; padding: .95rem 0; text-decoration: none; }
.latest-list a:hover .latest-title { color: var(--accent); }
.latest-meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.latest-meta .tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.latest-title { display: block; margin-top: .3rem; font: 500 1.18rem/1.25 var(--serif); transition: color .2s; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.stat { padding: 1.4rem 1rem 1.4rem 0; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.stat dt { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.stat dd { margin: 0 0 .15rem; font: 500 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); color: var(--ink); }
.stat { display: flex; flex-direction: column-reverse; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-note { max-width: 25rem; margin: 0; color: var(--muted); font-size: .92rem; }

/* Perfil */
.profile { background: var(--band); color: var(--on-band); }
.profile h2 { color: var(--on-band); }
.profile .kicker { color: var(--gold); }
.profile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 6rem); }
.profile .section-head { margin: 0; }
.profile .section-head h2 { position: sticky; top: 100px; }
.profile-text p { margin: 0 0 1.2rem; font: 400 clamp(1.2rem, 1.8vw, 1.42rem)/1.55 var(--serif); color: var(--on-band); }
.profile-text p:first-child::first-letter { float: left; font: 500 4.1em/.8 var(--serif); padding: .08em .1em 0 0; color: var(--gold); }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 2.2rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.fact { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.fact:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.14); }
.fact dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-band-muted); }
.fact dd { margin: .25rem 0 0; font-weight: 500; }
.fact a { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .2em; }
.topics-block { margin-top: 2.4rem; }
.profile .mini-title { color: var(--gold); }
.topics-help { margin: 0 0 .9rem; font-size: .85rem; color: var(--on-band-muted); }
.topic-shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-shortcuts button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: transparent; color: var(--on-band); cursor: pointer; font-size: .86rem;
}
.topic-shortcuts button:hover { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.topic-shortcuts .n { font-size: .74rem; opacity: .6; font-variant-numeric: tabular-nums; }

/* Selección */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-card { position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 230px; padding: 1.6rem 1.5rem 1.4rem; background: var(--card); text-decoration: none; transition: background .2s; }
.feature-card:hover { background: var(--paper-2); }
.feature-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.feature-kind { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }
.feature-card h3 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.feature-outlet { margin-top: auto; font: italic 500 1.02rem/1.2 var(--serif); color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.feature-outlet .arrow { font-style: normal; font-family: var(--sans); color: var(--accent); transition: transform .2s; }
.feature-card:hover .arrow { transform: translate(3px, -3px); }

/* Conferencias */
.talks { background: var(--paper-2); }
.talk-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.talk-feature .thumb { border-radius: var(--radius); box-shadow: var(--shadow); }
.talk-feature h3 { margin: .6rem 0 .8rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; }
.talk-feature .venue { color: var(--ink-2); margin: 0 0 1.4rem; }
.talk-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.6rem); }
.talk-card { display: flex; flex-direction: column; }
.talk-card .thumb { border-radius: var(--radius); }
.talk-card h3 { margin: .9rem 0 .35rem; font-size: 1.3rem; line-height: 1.2; }
.talk-card h3 a { text-decoration: none; }
.talk-card h3 a:hover { color: var(--accent); }
.talk-card .venue { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.talk-card .page-link { margin-top: .5rem; font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.talk-card .page-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.talk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.talk-meta .tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; }

.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--band); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .5s ease, filter .3s; filter: saturate(.92); }
.thumb:hover img { transform: scale(1.05); filter: saturate(1); }
.thumb .play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(20, 18, 16, .72); color: #fff; backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.thumb .play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.thumb:hover .play { background: var(--accent); transform: scale(1.06); }
.thumb .dur { position: absolute; right: .5rem; bottom: .5rem; padding: .12rem .42rem; border-radius: 3px; background: rgba(0,0,0,.78); color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }

/* Catálogo */
.controls { display: grid; gap: .9rem; padding: 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.search { position: relative; display: block; }
.search svg { position: absolute; left: .95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; min-height: 50px; padding: .8rem 1rem .8rem 2.7rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  font-size: 1rem; outline: none; -webkit-appearance: none; appearance: none;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: start; gap: .8rem; }
.filter-label { padding-top: .45rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 34px; padding: .3rem .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; font-size: .84rem; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { font-size: .72rem; opacity: .6; font-variant-numeric: tabular-nums; }

.result-bar { display: flex; align-items: baseline; gap: 1rem; margin: 1.6rem 0 .4rem; }
.result-count { margin: 0; font-size: .88rem; color: var(--muted); }

.year-group { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; border-top: 1px solid var(--line-strong); }
.year-label { padding-top: 1.1rem; }
.year-label span { position: sticky; top: 92px; display: block; font: 500 2.4rem/1 var(--serif); color: var(--ink); font-variant-numeric: oldstyle-nums; }
.year-label small { display: block; margin-top: .35rem; font: 400 .74rem/1 var(--sans); color: var(--muted); position: sticky; top: 132px; }
.year-items { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1.5rem; padding: 1.1rem 0; }
.pub + .pub { border-top: 1px solid var(--line); }
.pub h3 { margin: 0; font-size: 1.32rem; line-height: 1.25; }
.pub h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .2s, color .2s; }
.pub h3 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.pub-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .2rem .55rem; font-size: .8rem; color: var(--muted); }
.pub-meta .outlet { color: var(--ink-2); font-weight: 600; }
.pub-meta .sep { opacity: .5; }
.pub-type { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 3px; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pub-type.t-resena { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.pub-type.t-serie, .pub-type.t-editorial { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.empty { padding: 2.5rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.more-wrap { display: flex; justify-content: center; margin-top: 2rem; }

/* Enlaces */
.links { padding-top: 0; }
.links .wrap { padding-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.link-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  min-height: 150px; padding: 1.3rem 1.3rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card strong { font: 500 1.4rem/1.15 var(--serif); }
.link-card .lc-foot { display: flex; justify-content: space-between; align-items: end; gap: .8rem; font-size: .8rem; color: var(--muted); }
.link-card .lc-count { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Pie */
.site-footer { background: var(--band); color: var(--on-band-muted); font-size: .84rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding-block: 2.2rem; }
.footer-inner p { margin: 0; }
.footer-name { font: italic 500 1.25rem/1 var(--serif); color: var(--on-band); }
.to-top { color: var(--on-band); text-decoration: none; }
.to-top:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Adaptación ---------- */
@media (max-width: 1020px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: .8rem; }
  .featured-grid, .talk-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav:not(.open) { display: none; }
  .site-nav a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .hero-grid, .profile-grid, .talk-feature { grid-template-columns: 1fr; }
  .profile .section-head h2 { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head-row { flex-direction: column; align-items: start; gap: 1rem; }
  .year-group { grid-template-columns: 1fr; gap: 0; }
  .year-label { padding-top: 1rem; display: flex; align-items: baseline; gap: .8rem; }
  .year-label span, .year-label small { position: static; }
  .year-label span { font-size: 2rem; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wordmark-text { font-size: 1.15rem; }
  .wm-first { display: none; }
  .wm-initial { display: inline; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4rem); }
  .latest { padding-inline: 1.1rem; }
  .featured-grid, .talk-grid, .link-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .controls { padding: 1rem; }
  .filter-row { grid-template-columns: 1fr; gap: .4rem; }
  .filter-label { padding-top: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .2rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .pub { grid-template-columns: 1fr; }
  .pub-type { grid-column: 1; grid-row: auto; justify-self: start; }
  .pub h3 { font-size: 1.22rem; }
  .footer-inner { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .controls, .more-wrap, .hero-actions, .talks, .topics-block { display: none !important; }
  body { background: #fff; color: #000; }
  .profile, .site-footer { background: #fff; color: #000; }
}
