/* Naming The Real — podcast landing (dev preview)
   Palette + type extracted from the client draft; refactored into a
   maintainable stylesheet. Design intent preserved 1:1. */

:root {
  --ink: #20242a;
  --muted: #62666d;
  --soft-ink: #343941;
  --paper: #fbfaf6;
  --paper-2: #f3efe7;
  --card: rgba(255, 255, 255, .82);
  --line: rgba(32, 36, 42, .12);
  --shadow: 0 18px 48px rgba(40, 34, 28, .10);
  --green: #4d744b;
  --moss: #93a93c;
  --gold: #f4b13f;
  --coral: #e5654f;
  --mauve: #8f6384;
  --blue: #4b7c9b;
  --indigo: #4d5791;

  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* Ensure the [hidden] attribute always wins over component display rules
   (e.g. .browse-all sets display:flex, which would otherwise show it). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

/* Offset anchor jumps so section tops clear the sticky nav (82px tall). */
main section[id],
footer[id],
#training { scroll-margin-top: 100px; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(244, 177, 63, .14), transparent 30rem),
    radial-gradient(circle at 10% 18%, rgba(75, 124, 155, .10), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.045em;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 40;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(32, 36, 42, .16);
  background: rgba(255, 255, 255, .7);
  min-height: 44px;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform .12s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.dark { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 24px rgba(32, 36, 42, .16); }
.button.ghost { color: var(--ink); background: rgba(255, 255, 255, .62); }
.button.small { padding: 10px 14px; min-height: 38px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, .78);
  border-bottom: 1px solid rgba(32, 36, 42, .08);
}
.nav-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 196px; }
.brand img.logo { width: 170px; height: auto; object-fit: contain; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 14px; color: #30343a; white-space: nowrap; }
.nav-links a { opacity: .84; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: inline-flex; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(32, 36, 42, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Bottom padding must clear the quiet-swash wave anchored to the hero's
   bottom edge (130px band, but its visible wave starts ~36% down), or
   the wave overlays the CTA buttons. */
.hero { padding: 84px 0 110px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 64px; align-items: center; }
.eyebrow {
  color: var(--mauve);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  margin: 0 0 16px;
}
h1 { font-size: clamp(52px, 7vw, 88px); margin: 0 0 24px; max-width: 760px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft-ink); max-width: 620px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; }
.host-portrait {
  position: relative;
  margin: 0;
  width: min(340px, 78vw);
}
/* Soft halo behind the portrait, echoing the paper-toned hero glow. */
.host-portrait::before {
  content: "";
  position: absolute; inset: -30px;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  filter: blur(6px);
}
.host-portrait img {
  position: relative;
  width: 100%; height: auto;      /* full portrait, natural ratio — never cropped */
  transform: scaleX(-1);          /* mirror so Brandon faces into the page */
  border-radius: 24px;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.host-portrait figcaption {
  position: relative;
  text-align: center;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.host-portrait figcaption span {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--mauve);
}
.quiet-swash {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 130px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper) 78%),
    linear-gradient(95deg, rgba(75, 124, 155, .18), rgba(77, 116, 75, .10), rgba(244, 177, 63, .13), rgba(229, 101, 79, .12));
  opacity: .8;
  clip-path: polygon(0 36%, 14% 55%, 31% 44%, 48% 60%, 65% 42%, 82% 55%, 100% 40%, 100% 100%, 0 100%);
}

/* ---------- Latest episode ---------- */
.episode { margin: 0 auto; padding-bottom: 24px; position: relative; z-index: 5; }
.episode-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(32, 36, 42, .10);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: start;
}
.cover {
  aspect-ratio: 1;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(77, 116, 75, .92), rgba(75, 124, 155, .86) 42%, rgba(143, 99, 132, .88) 74%, rgba(229, 101, 79, .88)),
    var(--green);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 26px rgba(41, 35, 31, .16);
  position: relative;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .22), transparent 32%), radial-gradient(circle at 84% 78%, rgba(255, 255, 255, .16), transparent 34%);
  mix-blend-mode: screen;
}
.cover small { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: 10px; position: relative; z-index: 1; }
.cover strong { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: .96; letter-spacing: -.035em; position: relative; z-index: 1; }
.episode h2 { font-size: clamp(30px, 3vw, 43px); margin: 4px 0 10px; }
.episode p { color: var(--muted); max-width: 560px; margin: 0 0 18px; }
.latest-actions { margin-top: 4px; }
.listen-stack { display: grid; gap: 12px; }
.platform {
  border: 1px solid rgba(32, 36, 42, .10);
  background: rgba(255, 255, 255, .72);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.platform b { font-size: 15px; }
.platform > span { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.plogo { flex: 0 0 auto; display: block; }
.viewall { color: var(--ink); font-size: 14px; font-weight: 700; padding-left: 2px; }

/* ---------- Episode browser (audio list + video grid) ---------- */
.browse { max-width: 720px; margin: 40px auto 0; }
.browse-head {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px; text-align: center;
}
.browse-head h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); margin: 0; letter-spacing: -.03em; }

/* Accordion list */
.acc-list { display: grid; gap: 10px; }
.acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 100px; /* clear the sticky nav when deep-linked */
}
/* A pick opened from the pathway cards. */
.acc.is-featured { border-color: var(--green); box-shadow: 0 10px 30px rgba(77, 116, 75, .16); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 16px 20px;
}
.acc-title { flex: 1; min-width: 0; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.acc-date { flex: 0 0 auto; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
.acc-icon { flex: 0 0 auto; color: var(--muted); font-size: 15px; transition: transform .2s ease; }
.acc-head[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-head:hover .acc-title { color: var(--green); }
.acc-panel { padding: 0 20px 20px; }
.acc-sub { margin: 0 0 8px; font-size: 12px; color: var(--mauve); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.acc-desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 16px; max-width: 66ch; }
.acc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Inline media (audio player / embedded video) inside the panel */
.ep-media { margin-top: 16px; max-width: 640px; }
.ep-media audio { width: 100%; height: 40px; }
.ep-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.ep-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Scoped under .browse so these beat the `.episode p` rule (which else
   forces a 560px left-aligned box with margin:0 0 18px). */
.browse .browse-status { max-width: none; color: var(--muted); font-size: 14px; text-align: center; margin: 20px 0 0; }
.browse .browse-note { max-width: none; color: var(--muted); font-size: 14px; text-align: center; margin: -6px 0 26px; }
.browse-note a { color: var(--green); font-weight: 700; }
.browse-all { display: flex; margin: 20px auto 0; }

/* Paginated archive */
.archive { margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.pager-info { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Generic section ---------- */
section { padding: 62px 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-intro h2 { font-size: clamp(38px, 5vw, 58px); margin: 0; max-width: 620px; }
.section-intro p { color: var(--muted); font-size: 17px; margin: 0; max-width: 420px; }

/* ---------- Pathway cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(32, 36, 42, .10);
  border-radius: 24px;
  padding: 24px;
  min-height: 232px;
  box-shadow: 0 12px 34px rgba(40, 34, 28, .06);
  position: relative;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent, var(--blue)); opacity: .7; }
.icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--blue)), white 62%);
  margin-bottom: 26px; position: relative;
}
.icon::after { content: ""; position: absolute; inset: 14px; border: 2px solid color-mix(in srgb, var(--accent, var(--blue)), black 8%); border-radius: 999px 999px 999px 0; transform: rotate(45deg); opacity: .72; }
.card h3 { font-size: 27px; margin: 0 0 12px; letter-spacing: -.04em; }
.card p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.card-eps { display: grid; gap: 9px; }
.card-ep {
  font-weight: 700; font-size: 14px; line-height: 1.25;
  color: var(--accent, var(--blue));
}
.card-ep:hover { text-decoration: underline; }
.pathways { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(243, 239, 231, .75)); }

/* ---------- Practice ---------- */
.practice { padding-top: 76px; background: var(--paper-2); }
.practice-layout { display: grid; grid-template-columns: .82fr 1.6fr; gap: 44px; align-items: start; }
.practice h2 { font-size: clamp(38px, 5vw, 58px); margin: 0 0 18px; }
.practice .intro-text { color: var(--muted); font-size: 17px; max-width: 320px; margin: 0; }
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* With an odd card count, let the straggler fill its row. */
.mini-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mini-card {
  display: block;
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid rgba(32, 36, 42, .10);
  background: rgba(255, 255, 255, .66);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(40, 34, 28, .055);
  transition: transform .14s ease, box-shadow .2s ease;
}
a.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.mini-card strong { color: var(--green); }
.mini-card .tag { display: inline-block; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 18px; }
.mini-card h3 { font-size: 27px; margin: 0 0 9px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Reviews ---------- */
.reviews { background: #fffdf9; border-block: 1px solid rgba(32, 36, 42, .08); padding: 42px 0; }
.reviews-grid { display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 28px; align-items: start; }
.rating { border-right: 1px solid rgba(32, 36, 42, .12); padding-right: 26px; }
.stars { color: var(--gold); letter-spacing: .18em; font-size: 18px; }
.rating strong { display: block; font-family: var(--serif); font-size: 58px; line-height: .9; font-weight: 500; margin: 8px 0 8px; }
.quote { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--ink); margin: 0; }
.byline { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 70px 0; background: linear-gradient(110deg, rgba(75, 124, 155, .92), rgba(77, 116, 75, .86) 45%, rgba(143, 99, 132, .86)); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: .95fr 1.1fr; gap: 48px; align-items: center; }
.newsletter h2 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 12px; }
.newsletter p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 18px; max-width: 490px; }
.form { display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); padding: 10px; border-radius: 26px; }
.form-row { display: flex; gap: 10px; }
.form input { flex: 1; border: 0; outline: 0; background: #fff; border-radius: 999px; padding: 0 18px; font-size: 15px; min-width: 0; min-height: 46px; }
.form .button { border-color: var(--ink); }
.form-note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* ---------- Footer ---------- */
footer { background: var(--paper); padding: 42px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start; }
.monogram { width: 112px; height: auto; margin-bottom: 22px; }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.foot-links h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; color: var(--mauve); }
.foot-links a { display: block; color: var(--muted); font-size: 14px; margin: 7px 0; }
.foot-links a:hover { color: var(--ink); }
.fine { color: var(--muted); font-size: 12px; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 82px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(251, 250, 246, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(32, 36, 42, .10);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; opacity: 1; border-bottom: 1px solid rgba(32, 36, 42, .06); font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .hero { padding-top: 58px; }
  .hero-grid, .episode-card, .practice-layout, .newsletter-inner, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; margin-top: 30px; }
  .host-portrait { width: min(260px, 62vw); }
  .episode-card { gap: 18px; }
  .cover { width: 188px; }
  .listen-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .rating { border-right: 0; border-bottom: 1px solid rgba(32, 36, 42, .12); padding: 0 0 22px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav-inner { height: 72px; }
  .nav-links { top: 72px; }
  main section[id], footer[id], #training { scroll-margin-top: 86px; }
  .host-portrait { width: min(220px, 56vw); }
  .brand img.logo { width: 142px; }
  h1 { font-size: 46px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .cards, .mini-cards { grid-template-columns: 1fr; }
  /* Platform links sit three-across, logo above a short label. */
  .listen-stack { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .platform { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 12px 6px; }
  .platform > span { flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.2; }
  .platform b { display: none; }
  /* Compact the accordion + let action buttons fill the row on phones. */
  .browse-head { gap: 14px; }
  .acc-head { padding: 14px 16px; gap: 10px; }
  .acc-title { font-size: 17px; }
  .acc-panel { padding: 0 16px 18px; }
  .acc-actions .button { flex: 1 1 auto; }
  .pager { gap: 12px; }
  /* Keep footer link groups two-up so the footer doesn't sprawl. */
  .foot-links { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
  .foot-links a { margin: 6px 0; }
  footer { padding: 34px 0 26px; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 14px; }
  .form-row { flex-direction: column; }
  .form input { min-height: 48px; }
  .form .button { width: 100%; }
}

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