/* Pura Firma site. Written from scratch; layout family: editorial podcast magazine. Fonts are self-hosted (/fonts/). */
@font-face { font-family: "EB Garamond"; src: url(/fonts/eb-garamond-var.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #000000;
  --paper: #ffffff;
  --orange: #e65a00;
  --muted: #444444;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: none;
  --gut: clamp(16px, 3vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.preview-banner {
  background: var(--orange); color: var(--ink);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  padding: 6px 16px;
}

/* Top bar (as on davidsenra.com): the latest episode, or when they start; the social icons at the right on wide screens */
.topbar { background: var(--ink); color: var(--paper); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.topbar p { margin: 0; text-align: center; }
.topbar a { color: var(--paper); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.topbar .topbar-icons { display: none; }  /* phones: the message only (the icons are in the footer) */
@media (min-width: 900px) {
  .topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .topbar p { grid-column: 2; }
  .topbar .topbar-icons { display: flex; grid-column: 3; justify-self: end; }
}
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.social-icons a { display: block; line-height: 0; }
.social-icons svg { width: 18px; height: 18px; }
.social-icons a:hover { color: var(--orange); }

/* Small caps-style labels used everywhere */
.label, .meta, .nav a, .btn, .card-strip, .topics a, .crumbs, .footer-cols h2 {
  font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 0; }
.logo-mark { height: 36px; width: auto; }
.logo-word { height: 20px; width: auto; display: block; }
.logo .tm { font-size: 8px; }
/* ™ beside the name and the phrase (founder 2026-10-08): claimed marks, not registered yet, so ™ and never ®. Beside a
   wordmark image it sits just past its top right corner; in text it is a small superscript. */
.tm { font-family: var(--sans); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; line-height: 1; }
.word-tm { position: relative; display: block; }
.word-tm > .tm { position: absolute; top: 0; left: 100%; margin-left: 0.25em; }
.kicker .tm, .prose .tm { vertical-align: super; margin-left: 0.06em; }
.kicker .tm { font-size: 0.45em; }
.prose .tm { font-size: 0.32em; }  /* founder 2026-10-08: "make this TM smaller" (after the phrase) */
.site-header .btn { margin-left: auto; }
.nav { order: 3; width: 100%; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 13px; text-decoration: none; white-space: nowrap; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
@media (min-width: 860px) {
  .nav { order: 0; width: auto; margin-left: auto; gap: 22px; }
  .site-header .btn { margin-left: 0; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--off, .btn--off:hover { background: transparent; color: var(--muted); border-color: var(--muted); cursor: default; }
/* The list's form: an email and a button (16 px so phones do not zoom in); the "web" field is for bots, off-screen */
.lista { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.lista input[type="email"] {
  flex: 1 1 160px; min-width: 0; max-width: 360px; font: inherit; font-size: 16px; padding: 8px 16px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.lista--light input[type="email"] { border-color: var(--paper); }
.lista .btn { font-family: inherit; cursor: pointer; padding: 10px 18px; }
.lista-aviso { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.box .lista-aviso { margin: 10px 0 0; }  /* two classes: outranks .box p and .prose p */
.lista-aviso a { white-space: nowrap; }
.site-footer .lista-aviso { color: #bdbdbd; }
.site-footer .lista-aviso a { text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }

/* Masthead: the PURA FIRMA wordmark across the page */
.masthead { padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(16px, 3vw, 28px); }
.masthead h1 { margin: 0; line-height: 0; }
/* The line above the name (as on davidsenra.com) */
.kicker {
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
  margin: 0 0 clamp(10px, 1.6vw, 22px); text-wrap: balance;
}
.masthead img { width: 100%; height: auto; display: block; }
.masthead .word-tm > .tm { font-size: clamp(9px, 1.1vw, 18px); }  /* only the big wordmark's ™, not the line above's */

/* Topic bar: a ticker. The strip holds the topic list five times (build.py TICKER_LISTS; the copies are hidden from
   screen readers and the tab order) and moves one list per loop, about 40 px a second, so the seam never shows.
   Hover or keyboard focus pauses it; with reduced motion it stands still, as before, and scrolls by hand. */
.topics { background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.topics:hover .ticker, .topics:focus-within .ticker { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-20%); } }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker-list li { border-left: 1px solid #4d4d4d; }
.topics a { display: block; text-align: center; padding: 12px 32px; font-size: 12px; text-decoration: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .topics { overflow-x: auto; scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
  .ticker { animation: none; width: auto; }
  .ticker-list { flex: 1 0 auto; padding: 0 var(--gut); }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list li { flex: 1 0 auto; }
  .ticker-list li:first-child { border-left: 0; }
  .topics a { padding: 12px 18px; }
}
.topics a:hover, .topics a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* Home intro */
.intro { display: grid; gap: 40px; padding: 48px 0 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; align-items: start; } }
.intro h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.2vw, 5.4rem); line-height: 1.04;
  margin: 0 0 18px; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.1vw, 20px); max-width: 46ch; margin: 0 0 28px; color: var(--muted); }
/* Episode pages: a wide centered column, so the video fits a normal screen */
.ep > .wrap { max-width: 1440px; }

.box { background: var(--paper); border: 1px solid var(--ink); padding: 22px; max-width: 520px; }
.box h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.box p { margin: 0 0 16px; color: var(--muted); }

/* Episode cards */
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ink); }
.card-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--ink); padding: 7px 10px; font-size: 11px;
}
.card-strip .no::before {
  content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: 8px; vertical-align: 1px;
}
.thumb { position: relative; aspect-ratio: 16 / 9; background: #d4d4d4; border-bottom: 1px solid var(--ink); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Black-and-white photos everywhere (as on both reference sites): the orange stays the only colour */
.thumb img, .player img { filter: grayscale(1); }
/* Cards: the guest's name in big type over the photo, the same look as the YouTube thumbnails */
.thumb-name {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; line-height: 0.92;
  font-size: clamp(26px, 2.6vw, 38px); color: var(--paper); text-wrap: balance;
}
.thumb--named:not(.thumb--sample)::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
}
.thumb--named:not(.thumb--sample) .thumb-name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.thumb--sample .thumb-name { margin-top: auto; }  /* on the black tiles, the name at the bottom */
.thumb--sample {
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px;
  background: var(--ink); color: var(--paper);
}
.thumb--sample .n { font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; }
.thumb--sample .t {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-top: 2px solid var(--orange); padding-top: 8px; align-self: flex-start;
}
.card-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--muted); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin: 0; text-wrap: balance; }
.card a.stretch { text-decoration: none; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card--featured h3 { font-size: clamp(26px, 3vw, 34px); }
.tag { border: 1px solid var(--muted); border-radius: 999px; padding: 0 7px; }

/* Latest guests (as on davidsenra.com): the name huge, one line, a button, a big photo */
.guests { border-top: 1px solid var(--ink); }
.guest { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) { .guest { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.guest .label { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 11px; color: var(--muted); }
.guest-name {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; line-height: 0.92;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem); margin: 12px 0 16px; text-wrap: balance; hyphens: auto;
}
.guest-name a { text-decoration: none; }
.guest-name a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.guest-role { color: var(--muted); max-width: 40ch; margin: 0 0 22px; }
.guest-photo { display: block; border: 1px solid var(--ink); }
.guest-photo .thumb { border-bottom: 0; }

/* Lines the guests said (as on davidsenra.com): a row that scrolls sideways */
.quote-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 460px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
}
.quote { margin: 0; scroll-snap-align: start; border-top: 3px solid var(--orange); padding-top: 18px; }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.22; }
.quote figcaption { font-size: 13px; color: var(--muted); }
.quote figcaption a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* before the first episode: the one question, large, across the page (its orange line edge to edge, like the rules of
   the other sections), nothing to scroll */
.quote-row--one { grid-auto-columns: 100%; overflow: visible; padding-bottom: 0; }
.quote-row--one .quote blockquote { font-size: clamp(30px, 4vw, 54px); line-height: 1.1; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1; margin: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 40px; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .topic-list { grid-template-columns: 1fr 1fr; } }
.topic-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 2px; border-bottom: 1px solid var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 28px; line-height: 1.1;
}
.topic-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.topic-list span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.big { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin: 0; text-wrap: balance; }
.big strong { font-weight: 600; } /* EB Garamond semibold, a real weight of the variable font (founder 2026-10-09: the phrase "in bold") */

/* Inner pages */
.page-head { padding: 44px 0 28px; }
.page-head .lead:last-child { margin-bottom: 0; } /* the head's padding alone; the lead's margin doubled the gap */
.crumbs { font-size: 12px; margin-bottom: 16px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5.5vw, 4.3rem); line-height: 1.03;
  margin: 0 0 14px; max-width: 24ch; text-wrap: balance;
}
.page-head .meta { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Video: click to load YouTube (nothing from YouTube loads before the click) */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--ink); max-width: min(100%, calc(82vh * 16 / 9)); }
.player > button {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.player > button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.player > button[disabled] { cursor: default; }
.player img, .player .thumb--sample { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player .thumb--sample { text-align: left; padding: clamp(16px, 3vw, 32px); }
.player .thumb--sample .n { font-size: clamp(4rem, 12vw, 9rem); }
.play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--paper); display: grid; place-items: center;
}
.play::before {
  content: ""; border-left: 24px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px;
}
.player > button:hover .play { background: var(--orange); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.listen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; font-size: 13px; }

.people { display: grid; grid-template-columns: 1fr; border: 1px solid var(--ink); margin: 32px 0; }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; } }
.person { padding: 18px 20px; }
.person + .person { border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .person + .person { border-top: 0; border-left: 1px solid var(--ink); } }
.person .label { font-size: 11px; color: var(--muted); }
.person .name { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 4px 0 4px; }
.person p { margin: 0; color: var(--muted); }

.prose { max-width: 68ch; font-size: 18px; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 1.4em 0 0.4em; }
.prose > h2:first-child { margin-top: 0; } /* a page that opens on a heading: the head's padding is the only gap (founder 2026-10-09) */
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.3em 0; }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.empty { border: 1px dashed var(--ink); padding: 28px; font-size: 17px; color: var(--muted); }
.prose .after-box { margin-top: 1.5em; }  /* two classes: .prose p (0,1,1) had been cancelling it */

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 72px; padding: 52px 0 28px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-logo { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); width: min(652px, 100%); line-height: 0; }
.footer-mark { flex: none; width: clamp(60px, 10vw, 104px); height: auto; }
.footer-logo .word-tm { flex: 1 1 0; min-width: 0; }
.footer-word { width: 100%; height: auto; display: block; }
.footer-logo .tm { font-size: clamp(9px, 1vw, 12px); }
.footer-tagline { font-family: var(--serif); font-size: 22px; margin: 18px 0 0; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; margin: 40px 0 36px; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(5, 1fr); } }
/* The newsletter strip on top of the footer (as on davidsenra.com) */
.footer-news { display: grid; gap: 14px; justify-items: start; padding-bottom: 40px; margin-bottom: 44px; border-bottom: 1px solid #3a3a3a; }
.footer-news h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0; }
.footer-news p { margin: 0; color: #bdbdbd; max-width: 52ch; }
.footer-news .lista { width: min(560px, 100%); }  /* room for the email and the button on one line */
.site-footer .btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer .btn--light:hover { background: var(--orange); border-color: var(--orange); text-decoration: none; }
.footer-cols h2 { font-size: 11px; font-weight: 400; color: #bdbdbd; margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fine {
  border-top: 1px solid #3a3a3a; padding-top: 18px; font-size: 13px; color: #bdbdbd;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between;
}
.footer-icons a { color: var(--paper); }
