:root {
  /* Dark is the default; the toggle in the header switches to light. */
  --bg: #0f0f0f;
  --ink: #f2f2f2;
  --muted: #a0a0a0;
  --line: #2a2a2a;
  --soft: #1b1b1b;
  --accent: #ff5a2e;
  --podcasts: #3ddc78;
  --social: #ff5fa8;
  --textos: #ffb733;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --wrap: 1240px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e3e3e3;
  --soft: #f3f2ef;
  --accent: #ff4b1f;
  --podcasts: #0d8a3b;
  --social: #c4166a;
  --textos: #b86e00;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--display);
  font-stretch: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 70%; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* masthead */
.masthead { border-bottom: 4px solid var(--ink); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-stretch: 62%; font-weight: 900; font-size: clamp(26px, 6vw, 40px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-color: var(--accent); }
.masthead-right { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
:root[data-theme='dark'] .icon-moon, :root[data-theme='light'] .icon-sun { display: none; }

/* shared bits */
.kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; color: var(--accent); }
.k-podcasts { color: var(--podcasts); }
.k-social { color: var(--social); }
.k-textos { color: var(--textos); }
.meta { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.thumb.tall { aspect-ratio: 9 / 16; }
.thumb-empty { display: grid; place-items: center; font-stretch: 62%; font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--muted); }
a:hover .thumb img { transform: scale(1.03); }
a:hover h1, a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-podcasts .thumb { aspect-ratio: 1; }
.more { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.more:hover { color: var(--accent); }

/* sections */
.block { padding-top: 28px; padding-bottom: 36px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 4px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.block-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-stretch: 62%; text-transform: uppercase; }
.row { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row-social { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card a { display: block; }
.card-body { padding-top: 12px; }
.card h3 { font-size: 22px; }
.about-strip img { height: auto; }
@media (max-width: 560px) {
  .row, .row-social, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card h3 { font-size: 17px; }
}
.row-social .card h3 { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* about strip */
.about-strip { display: flex; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.about-strip img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.about-lede { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; margin: 0 0 10px; max-width: 52ch; }
@media (max-width: 560px) { .about-strip { flex-direction: column; align-items: flex-start; } }

/* archive */
.page-head { padding: 32px 0 20px; }
.page-head h1 { font-size: clamp(48px, 9vw, 104px); font-stretch: 62%; text-transform: uppercase; }
.page-head p { font-family: var(--serif); font-size: 19px; color: var(--muted); margin: 6px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 24px; border-top: 4px solid var(--ink); }
.chip { font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 14px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px; }
.chip span { font-weight: 500; opacity: 0.7; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.grid .thumb.tall { aspect-ratio: 4 / 5; }
.js .card.is-hidden { display: none; }
.load { text-align: center; padding: 32px 0 56px; }
.button { font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 28px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.button:hover { background: var(--accent); color: #fff; }

/* bio */
.bio { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 64px; }
@media (min-width: 860px) { .bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } .bio-photo { position: sticky; top: 100px; } }
.bio-photo { margin: 0; }
.bio-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.bio-text h1 { font-size: clamp(48px, 8vw, 96px); font-stretch: 62%; text-transform: uppercase; margin-bottom: 20px; }
.bio-text p:not(.kicker) { font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); line-height: 1.55; margin: 0 0 1em; max-width: 60ch; }
.bio-text h2 { font-size: 14px; font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.1em; margin: 40px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }

/* social */
.social { list-style: none; margin: 0; padding: 0; }
.social a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.social-handle { color: var(--muted); font-size: 0.6em; font-weight: 500; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
.social-big li { border-bottom: 1px solid var(--line); }
.social-big a { padding: 14px 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 1.05; }
.social-big a:hover { color: var(--accent); }
.social-footer { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.social-footer a { font-size: clamp(26px, 4vw, 38px); font-weight: 800; font-stretch: 62%; text-transform: uppercase; }
.social-footer a:hover { color: var(--accent); }
.social-footer .social-handle { display: none; }

/* footer */
.footer { border-top: 4px solid var(--ink); padding: 32px 0 40px; margin-top: 8px; }
.footer-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.fineprint { color: var(--muted); font-size: 13px; margin: 28px 0 0; }

.empty { padding-top: 64px; padding-bottom: 64px; }
.empty h1 { font-size: clamp(48px, 9vw, 96px); font-stretch: 62%; text-transform: uppercase; }
.empty p { font-family: var(--serif); font-size: 20px; color: var(--muted); }
.empty a { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }

@media (max-width: 480px) {
  .masthead-inner { gap: 10px; }
  .masthead-right, .nav { gap: 12px; }
  .nav { font-size: 12px; letter-spacing: 0.04em; }
  .theme-toggle { width: 32px; height: 32px; }
}
