/* ============================================================
   Joe Delfgauw · Speaker — v5 "Main Stage"
   White room, black type, one loud red. Single family: Manrope.
   The competitive speaker-page look: big type, hard contrast,
   conversion bands. No outlines, no grain, no gradients.
   Distinct from joedelfgauw.com (dark indigo Authority) and
   joedelfgauwcontent.com (warm paper Notebook serif).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f3;
  --ink: #111111;
  --ink-soft: #444444;
  --ink-faint: #8a8a86;
  --red: #e62b1e;
  --red-deep: #c01e13;
  --red-wash: #fdeae8;
  --black: #0c0c0c;
  --line: #e3e3de;
  --line-dark: #111111;
  --radius: 14px;
  --measure: 64ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

a { color: var(--red-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand .tag {
  font-weight: 800; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; border-radius: 4px; padding: 4px 9px 3px;
  background: var(--red);
}
nav.primary { display: flex; gap: 26px; }
nav.primary a {
  font-size: 0.94rem; font-weight: 700; color: var(--ink-soft);
  text-decoration: none; position: relative;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 3px; width: 0;
  background: var(--red); transition: width 0.18s ease;
}
nav.primary a:hover::after, nav.primary a.active::after { width: 100%; }
nav.primary a.active, nav.primary a:hover { color: var(--ink); }

/* ---------- hero (shared) ---------- */
.hero { padding: 88px 0 64px; }
.hero .kicker {
  display: inline-block;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.6vw, 4.4rem);
  margin: 16px 0 26px; max-width: 21ch;
  text-wrap: balance;
}
.hero h1 .flip { color: var(--red); }
.hero .lede { max-width: var(--measure); font-size: 1.2rem; font-weight: 500; color: var(--ink-soft); }
.hero .actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .byline { color: var(--ink-faint); font-size: 0.92rem; font-weight: 600; margin-top: 14px; }

/* home hero: same white room, bigger voice */
.hero-stage { padding: 104px 0 88px; position: relative; }
.hero-stage h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); max-width: 16ch; }
.hero-stage .onair {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 0;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 26px;
}
.hero-stage .onair i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-stage .kicker { margin-top: 4px; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--black); color: #fff;
  overflow: hidden; white-space: nowrap; padding: 15px 0;
}
.marquee .track { display: inline-block; animation: slide 30s linear infinite; }
.marquee span {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #cfcfca; padding: 0 1.5rem;
}
.marquee b { color: var(--red); font-weight: 800; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  font-size: 1rem; border-radius: 8px; padding: 16px 32px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- section scaffolding ---------- */
section.block { padding: 84px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: 12px;
  max-width: 24ch;
}
.block .sub { color: var(--ink-faint); font-size: 1.05rem; font-weight: 500; margin-bottom: 44px; max-width: var(--measure); }
.block-alt { background: var(--bg-alt); }

/* ---------- stats band ---------- */
.stats-band { padding: 0 !important; border-top: 0 !important; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 38px 26px 38px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 26px; }
.stat b {
  display: block; font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--red);
}
.stat span { display: block; margin-top: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- setlist / keynotes ---------- */
.setlist { border-top: 3px solid var(--ink); }
.set-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 38px 12px 38px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.set-item:hover { background: var(--red-wash); padding-left: 16px; }
.set-item .num {
  font-size: 1rem; font-weight: 800; color: var(--red);
  letter-spacing: 0.08em; padding-top: 10px;
}
.set-item h3 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 10px; }
.set-item p { color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }
.for-line {
  margin-top: 12px;
  font-size: 0.78rem !important; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-deep) !important;
}

/* ---------- event ticket ---------- */
.ticket-live {
  display: grid; grid-template-columns: 180px 1fr 74px;
  background: var(--black); color: #fff;
  border-radius: var(--radius); overflow: hidden;
}
.ticket-live .date {
  background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 12px; text-align: center;
}
.ticket-live .date .mon { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.ticket-live .date .day { font-size: 4rem; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.ticket-live .date .yr { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.ticket-live .body { padding: 32px 36px; position: relative; }
.ticket-live h3 { font-size: 1.75rem; margin-bottom: 10px; color: #fff; }
.ticket-live p { color: #c9c9c4; max-width: 60ch; }
.ticket-live a { color: #fff; }
.ticket-live a:hover { color: var(--red); }
.ticket-live .stub {
  border-left: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.ticket-live .stub span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  color: #8f8f8a;
}

/* ---------- reverse grid ---------- */
.reverse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rev {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.rev .no, .rev .yes {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px 4px; border-radius: 4px; margin-bottom: 8px;
}
.rev .no { background: #efefeb; color: var(--ink-faint); }
.rev .yes { background: var(--red); color: #fff; margin-top: 18px; }
.rev p { color: var(--ink-faint); font-size: 0.98rem; }
.rev p.ip { color: var(--ink); font-weight: 700; }

/* ---------- planner cards ---------- */
.planner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
}
.plan-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.plan-card p { color: var(--ink-soft); font-size: 0.96rem; }
.biobox {
  border-left: 3px solid var(--red); background: var(--red-wash);
  padding: 14px 16px; border-radius: 0 8px 8px 0;
  font-size: 0.92rem !important; color: var(--ink) !important;
}

/* ---------- book shelf ---------- */
.shelf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.spine {
  font-weight: 700; font-size: 0.95rem;
  padding: 22px 16px; border-radius: 6px 6px 3px 3px;
  border: 1.5px solid var(--ink);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease;
  cursor: default; background: var(--bg-alt);
}
.spine:hover { transform: translateY(-6px) rotate(-1.5deg); }
.spine.s2 { background: #efe6d8; }
.spine.s4 { background: #e8e2ee; }
.spine.s6 { background: var(--red); color: #fff; border-color: var(--red-deep); }

/* ---------- prose / articles ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: 1.7rem; margin-top: 2em;
  padding-top: 0.9em; border-top: 3px solid var(--ink);
}
.prose .standfirst { font-size: 1.28rem; line-height: 1.5; color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 20px; color: var(--ink-soft); font-size: 1.05rem;
}
.byline { color: var(--ink-faint); font-size: 0.9rem; font-weight: 600; margin: 16px 0 0; }

/* article list */
.article-list { border-top: 3px solid var(--ink); }
.article-card {
  display: block; text-decoration: none; color: inherit;
  padding: 40px 12px 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.article-card:hover { background: var(--red-wash); padding-left: 16px; }
.article-card h3 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: 10px; }
.article-card p { color: var(--ink-soft); font-size: 1rem; max-width: 66ch; }
.article-card .read { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--red-deep); font-size: 0.95rem; }

/* next-read */
.next-read {
  margin-top: 60px; padding: 30px 34px;
  background: var(--black); color: #fff;
  border-radius: var(--radius);
}
.next-read .label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.next-read a {
  font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  text-decoration: none; color: #fff; letter-spacing: -0.02em;
}
.next-read a:hover { color: var(--red); }

/* ---------- CTA band ---------- */
.ticket {
  margin: 0; background: var(--black); color: #fff;
  border-radius: var(--radius); padding: 60px 52px;
}
.ticket h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 14px; }
.ticket p { color: #c9c9c4; max-width: 58ch; font-size: 1.08rem; }
.ticket .means { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.ticket .means a {
  display: inline-block; text-decoration: none;
  font-weight: 800; font-size: 1.05rem;
  background: var(--red); color: #fff;
  border-radius: 8px; padding: 15px 28px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ticket .means a:hover { background: var(--red-deep); transform: translateY(-2px); }
.ticket .means a + a { background: transparent; border: 2px solid #fff; }
.ticket .means a + a:hover { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
footer.site {
  border-top: 3px solid var(--ink); margin-top: 84px;
  padding: 34px 0 46px; font-size: 0.9rem; font-weight: 600; color: var(--ink-faint);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .hero-stage .onair i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; }
  .reverse-grid, .planner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { padding: 60px 0 48px; }
  .hero-stage { padding: 72px 0 60px; }
  nav.primary { gap: 14px; }
  nav.primary a { font-size: 0.85rem; }
  .set-item { grid-template-columns: 1fr; gap: 6px; padding: 26px 6px 26px 0; }
  .set-item .num { padding-top: 0; }
  .ticket-live { grid-template-columns: 1fr; }
  .ticket-live .date { flex-direction: row; gap: 12px; padding: 16px; }
  .ticket-live .date .day { font-size: 2.4rem; }
  .ticket-live .stub { display: none; }
  .ticket { padding: 38px 26px; }
}

/* 404 */
.lost { padding: 110px 0; text-align: center; }
.lost h1 { font-size: clamp(4rem, 16vw, 9rem); color: var(--red); }
.lost p { color: var(--ink-soft); margin-top: 12px; }
