/* ==========================================================================
   Latter-Day Sex — site stylesheet
   Brand colors come from the logo (navy #1C2B44 on white). Change the
   tokens in :root and the whole site follows.
   ========================================================================== */

:root {
  --navy: #1C2B44;          /* logo navy */
  --navy-deep: #13203A;
  --navy-soft: #2E4468;
  --sky: #EAF1FA;           /* light tinted section background */
  --sky-2: #F6F9FD;
  --cream: #FFFDF9;         /* bright page background */
  --white: #FFFFFF;
  --ink: #1A2233;
  --muted: #5B6677;
  --line: #DCE4EF;
  --accent: #E0805F;        /* warm coral for calls to action */
  --accent-dark: #C8674A;
  --accent-soft: #FBEDE6;
  --gold: #E8B86D;
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 43, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 43, 68, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.measure { max-width: 66ch; }
.center { text-align: center; }
.center .lede, .center .measure { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.75rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
.section-tint { background: var(--sky); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #E9EEF7; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lede, .section-navy p { color: #D5DDEA; }
.section-navy a { color: #fff; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 1rem; z-index: 100; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-text small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-dark); }
.nav-links .btn { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.6rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 0.9rem 1.25rem; }
  .nav-links .btn { margin: 0.75rem 1.25rem; display: inline-block; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.9rem 1.6rem; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.02rem; border: 2px solid var(--accent); cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(224, 128, 95, 0.3);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); border-color: var(--navy); box-shadow: 0 6px 18px rgba(28, 43, 68, 0.25); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-quiet:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.btn-light:hover { background: var(--sky); border-color: var(--sky); }
.btn svg { width: 1.1em; height: 1.1em; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 5.5rem 0 5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sky) 100%);
}
.hero-art {
  position: absolute; inset: auto 0 0 0; width: 100%; height: auto; pointer-events: none;
  opacity: 0.55;
}
.hero-glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; top: -35vw; right: -20vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 184, 109, 0.22), rgba(232, 184, 109, 0));
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.6em; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.hero .lede { font-size: 1.3rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted); }
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: 24px; box-shadow: var(--shadow-lg); object-fit: cover; width: 100%; aspect-ratio: 4 / 3;
}
.hero-badge {
  position: absolute; left: -1rem; bottom: -1rem; background: var(--white); border-radius: 16px;
  padding: 0.85rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.75rem;
  max-width: 300px;
}
.hero-badge img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--navy); line-height: 1.2; }
.hero-badge span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-badge { left: 0.75rem; bottom: -1rem; }
}

/* Inner-page hero (smaller) */
.page-hero {
  position: relative; overflow: hidden; padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sky) 100%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .hero-art { opacity: 0.4; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sky);
  display: grid; place-items: center; color: var(--navy); margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.card .more { color: var(--accent-dark); font-weight: 600; font-family: var(--font-head); }
.card-accent { border-top: 4px solid var(--accent); }

/* --------------------------------------------------------------------------
   Episodes
   -------------------------------------------------------------------------- */
.episode-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.75rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.episode-card + .episode-card { margin-top: 1.5rem; }
.episode-art {
  aspect-ratio: 1 / 1; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; font-family: var(--font-head);
}
.episode-art img { width: 60%; margin-bottom: 0.5rem; }
.episode-art .num { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; }
.episode-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.92rem; color: var(--muted); margin-bottom: 0.6rem; }
.episode-meta .tag {
  display: inline-block; background: var(--sky); color: var(--navy); border-radius: 999px;
  padding: 0.15rem 0.7rem; font-weight: 600; font-size: 0.82rem;
}
.episode-card h3 a { color: var(--navy); text-decoration: none; }
.episode-card h3 a:hover { color: var(--accent-dark); }
.listen-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.listen-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 0.45rem 0.95rem; font-weight: 600; font-size: 0.92rem;
  font-family: var(--font-head);
}
.listen-btn:hover { border-color: var(--navy); }
.listen-btn svg { width: 18px; height: 18px; }
.listen-btn.is-soon { opacity: 0.6; cursor: default; }
.listen-btn.is-soon::after { content: "soon"; font-size: 0.7rem; background: var(--sky); border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.2rem; }
@media (max-width: 640px) {
  .episode-card { grid-template-columns: 1fr; }
  .episode-art { max-width: 180px; }
}

/* Single episode page */
.episode-page .player {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); margin: 2rem 0;
}
.episode-page .player .embed { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 10px; background: var(--sky); }
.episode-page .player .embed-placeholder {
  aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; background: var(--navy);
  display: grid; place-items: center; color: #fff; text-align: center; padding: 2rem;
}
.episode-page .player .embed-placeholder img { width: 120px; margin-bottom: 0.75rem; opacity: 0.9; }
.takeaways { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.takeaways li {
  background: var(--white); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 1rem 1.25rem; box-shadow: var(--shadow);
}
.takeaways li strong { font-family: var(--font-head); color: var(--navy); display: block; margin-bottom: 0.2rem; }
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.quotes blockquote {
  margin: 0; background: var(--sky); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); line-height: 1.4;
}
.quotes blockquote::before { content: "\201C"; color: var(--accent); font-size: 2.2rem; line-height: 0; margin-right: 0.2rem; vertical-align: -0.6rem; }

/* --------------------------------------------------------------------------
   Hosts
   -------------------------------------------------------------------------- */
.hosts-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hosts-intro img { border-radius: 24px; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .hosts-intro { grid-template-columns: 1fr; } }
.host { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.host + .host { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.host img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.host .role { color: var(--accent-dark); font-weight: 600; font-family: var(--font-head); margin-bottom: 0.75rem; }
.host .links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
@media (max-width: 640px) { .host { grid-template-columns: 1fr; } .host img { max-width: 260px; } }
.host-mini { display: flex; gap: 1.25rem; align-items: center; }
.host-mini img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); flex: none; }
.host-mini h3 { margin: 0 0 0.2rem; }
.host-mini p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Forms (newsletter / ask a question)
   -------------------------------------------------------------------------- */
form { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-family: var(--font-head); color: var(--navy); }
input, textarea, select {
  width: 100%; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--white); color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.note { font-size: 0.9rem; color: var(--muted); }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-family: var(--font-body); color: var(--ink); }
.checkbox input { width: auto; margin-top: 0.3rem; }

.signup {
  background: var(--navy); color: #E9EEF7; border-radius: 24px; padding: 3rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
  position: relative; overflow: hidden;
}
.signup::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 184, 109, 0.35), rgba(232, 184, 109, 0));
}
.signup h2 { color: #fff; }
.signup p { color: #D5DDEA; }
.signup form { position: relative; }
.signup label { color: #fff; }
.signup-inline { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; }
.signup .note { color: #B9C4D6; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; padding: 2rem; } .signup-inline { grid-template-columns: 1fr; } }

.guide-art {
  background: linear-gradient(145deg, #2E4468, var(--navy-deep)); border-radius: 18px; padding: 2rem;
  color: #fff; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.1);
}
.guide-art img { width: 90px; margin: 0 auto 1rem; }
.guide-art strong { display: block; font-family: var(--font-head); font-size: 1.25rem; }
.guide-art span { display: block; font-size: 0.9rem; color: #C5D0E2; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   Misc components
   -------------------------------------------------------------------------- */
.callout {
  background: var(--accent-soft); border: 1px solid #F3D6C9; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.pill-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list a, .pill-list span {
  display: inline-block; text-decoration: none; background: var(--white); border: 1.5px solid var(--line);
  color: var(--navy); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-head);
}
.pill-list a:hover { border-color: var(--navy); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy); padding: 1rem 0; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink); padding-bottom: 1rem; max-width: 70ch; }
.breadcrumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.5rem; }
.stat-row div { font-family: var(--font-head); }
.stat-row strong { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.stat-row span { font-size: 0.9rem; color: var(--muted); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose p, .prose li { max-width: 70ch; }
.cta-band { text-align: center; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.disclaimer { background: var(--sky-2); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: 0.92rem; color: var(--muted); }
.disclaimer p { margin: 0 0 0.5em; max-width: none; }
.disclaimer p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #C5D0E2; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #DCE4F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; margin-bottom: 1rem; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.15rem; display: block; line-height: 1.1; }
.footer-brand small { color: #AAB7CC; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.88rem; color: #AAB7CC; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Make the hidden attribute win over display rules (used for unconfigured social links) */
[hidden] { display: none !important; }
.signup .note a { color: #fff; }
