/* Hidden Patterns — podcast site
   Ported from Substack design (Newsreader + Archivo, dark cool + gold) */

:root {
  --bg: oklch(15% 0.015 250);
  --bg-elevated: oklch(19% 0.015 250);
  --bg-deep: oklch(11% 0.012 250);
  --bg-slot: oklch(20% 0.015 250);
  --border: oklch(26% 0.015 250);
  --border-strong: oklch(28% 0.015 250);
  --border-input: oklch(32% 0.012 250);
  --border-btn: oklch(38% 0.012 250);
  --text: oklch(94% 0.006 250);
  --text-bright: oklch(95% 0.008 250);
  --text-body: oklch(70% 0.012 250);
  --text-muted: oklch(65% 0.01 250);
  --text-faint: oklch(52% 0.01 250);
  --text-dim: oklch(40% 0.01 250);
  --accent: oklch(78% 0.13 85);
  --accent-ink: oklch(15% 0.015 250);
  --nav-bg: oklch(15% 0.015 250 / 0.92);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 2px;
  --radius-card: 4px;
  --max: 1200px;
  --shell: calc(var(--max) + 2 * var(--pad-x));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Shared content column — every section aligns to this */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: oklch(90% 0.006 250);
  border-color: var(--border-btn);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-nav {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-color: var(--accent);
  font-size: 13px;
}

.btn-nav:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 22px;
  width: auto;
}

@media (min-width: 641px) {
  .logo img {
    height: 26px;
  }
}

/* —— Sections —— */
.section {
  padding-block: 64px;
}

.section-tight {
  padding-block: 56px;
}

.section-elevated {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-border-top {
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 30px);
}

/* —— Hero —— */
.hero {
  padding-block: clamp(48px, 8vw, 88px) clamp(48px, 7vw, 80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}

.hero-copy .eyebrow:first-child {
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.07;
  color: var(--text);
}

.hero-lede {
  margin: 0 0 20px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 46ch;
}

.hero-host {
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.media-slot {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-slot);
  overflow: hidden;
  isolation: isolate;
}

/* Placeholder wash — hide once a real photo is in the slot */
.media-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, oklch(30% 0.04 85 / 0.25), transparent 55%),
    linear-gradient(160deg, oklch(22% 0.02 250), oklch(16% 0.015 250));
  pointer-events: none;
  z-index: 0;
}

.media-slot:has(img)::after {
  display: none;
}

.media-slot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.media-slot .slot-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hero-portrait {
  /* Match source (~2:3) so cover doesn't eat the top of the frame */
  aspect-ratio: 2 / 3;
}

.hero-portrait img {
  object-fit: cover;
  object-position: center top;
  transform: none;
}

.host-photo {
  align-self: start;
  width: 100%;
  /* Exact source ratio (1122×1402) — cover without stretch */
  aspect-ratio: 1122 / 1402;
}

.host-photo img {
  object-fit: cover;
  object-position: center center;
  transform: none;
}

/* —— What / Why —— */
.what-stack {
  display: grid;
  gap: 1.35em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 72ch;
}

.what-stack p {
  margin: 0;
}

.quote-block {
  margin: 0;
  max-width: 820px;
}

.quote-block p {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.5;
  color: var(--text-bright);
}

.quote-block cite {
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-muted);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.why-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* —— What to Expect —— */
.episodes-intro {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}

.section-title + .episodes-intro {
  margin-top: -12px;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.episode-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.episode-card:hover {
  border-color: oklch(40% 0.04 85 / 0.5);
  transform: translateY(-2px);
}

.episode-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.episode-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
}

.episode-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.expect-cadence {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.expect-cta {
  margin: 12px 0 0;
}

/* —— Host —— */
.host-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}

.host-section .section-title {
  margin-bottom: 6px;
}

.host-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.host-roles {
  margin: 0 0 20px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 1.5;
}

.host-section .body {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
}

.host-section .body:last-child {
  margin-bottom: 0;
}

/* —— FAQ —— */
.faq-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.faq-section .section-title {
  margin-bottom: 8px;
}

.faq {
  display: flex;
  flex-direction: column;
  max-width: none;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-strong);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item strong {
  font-size: 15px;
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.podcast-cover {
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.podcast-cover img {
  object-fit: cover;
  object-position: center center;
}

/* —— Platform links + footer —— */
.platforms {
  padding-block: 36px;
}

.platforms-inner {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.platforms a {
  font-size: 13px;
  color: var(--text-muted);
}

.platforms .sep {
  color: var(--text-dim);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Hero must paint immediately — no blank first paint */
  .hero .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 {
    transition-delay: 0.08s;
  }

  .reveal-delay-2 {
    transition-delay: 0.16s;
  }

  .reveal-delay-3 {
    transition-delay: 0.24s;
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-portrait,
  .host-photo,
  .podcast-cover {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .host-section,
  .faq-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding-block: 18px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

}
