@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&display=swap");

:root {
  --ink: #2f241d;
  --muted: #6e6158;
  --paper: #f6efe5;
  --cream: #fbf5ec;
  --parchment: #eadfcf;
  --walnut: #3c2c25;
  --brand-teal: #4f7d7a;
  --brand-sage: #8fa89b;
  --brand-navy: #3e4a61;
  --brand-gold: #c8a46b;
  --brand-cream: #e0dfd8;
  --sage: var(--brand-sage);
  --sage-dark: var(--brand-teal);
  --plum: #6e4f62;
  --midnight: #252520;
  --candle: var(--brand-gold);
  --rosewood: #ae837f;
  --line: rgba(43, 33, 27, 0.16);
  --shadow: 0 24px 70px rgba(43, 36, 30, 0.16);
  --button-filled-bg: #d8aa61;
  --button-filled-bg-hover: #c99450;
  --button-filled-text: #2b2118;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: var(--serif);
  --font-heading: var(--serif);
  --font-sans: var(--sans);
  --font-body: var(--sans);
  --hero-title-size: clamp(2.2rem, 4vw, 3.9rem);
  --section-title-size: clamp(1.75rem, 2.8vw, 2.75rem);
  --card-title-size: 1.36rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(248, 241, 232, 0.96), rgba(239, 226, 210, 0.96)),
    repeating-linear-gradient(90deg, rgba(74, 52, 40, 0.024) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(74, 52, 40, 0.018) 0 1px, transparent 1px 11px),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow,
.label {
  margin: 0 0 0.85rem;
  color: var(--brand-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: var(--hero-title-size);
}

h2 {
  margin-bottom: 1rem;
  font-size: var(--section-title-size);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: var(--card-title-size);
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  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:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--walnut);
  color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  color: #f3ebdd;
  background: rgba(31, 29, 27, 0.76);
  border-bottom: 1px solid rgba(243, 235, 221, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(10, 9, 8, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, 0.7);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.1;
  color: #f3ebdd;
}

.brand small {
  color: #d0a56b;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #f3ebdd;
  font-size: 0.95rem;
}

.site-nav .nav-home {
  display: none;
}

.site-nav a:hover {
  color: #d0a56b;
}

.site-nav a[aria-current="page"] {
  color: #d0a56b;
  font-weight: 800;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta {
  color: var(--button-filled-text);
  background: var(--button-filled-bg);
  border-color: transparent;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--button-filled-bg-hover);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 38px;
  padding: 0;
  color: #d0a56b;
  border: 1px solid rgba(243, 235, 221, 0.16);
  border-radius: 999px;
  background: rgba(243, 235, 221, 0.08);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(208, 165, 107, 0.45);
  background: rgba(243, 235, 221, 0.12);
  outline: 0;
  box-shadow: 0 10px 24px rgba(36, 29, 24, 0.1);
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  background:
    url("assets/web/lamp-on-nav.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(184, 130, 69, 0.28));
}

html:not([data-theme="dark"]) .theme-toggle-icon {
  background:
    url("assets/web/lamp-on-nav.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(184, 130, 69, 0.28));
}

html[data-theme="dark"] .theme-toggle-icon {
  background:
    url("assets/web/lamp-off-nav.webp") center / contain no-repeat;
  filter: none;
}

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

.header-theme-toggle {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 235, 221, 0.16);
  border-radius: 50%;
  background: rgba(243, 235, 221, 0.08);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(208, 165, 107, 0.45);
  background: rgba(243, 235, 221, 0.12);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #d0a56b;
}

.section {
  padding: clamp(3.1rem, 6vw, 5.2rem) clamp(1rem, 4vw, 4rem);
}

section[id],
#listen {
  scroll-margin-top: 88px;
}

.seo-section {
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.seo-section h2 {
  font-size: var(--section-title-size);
}

.seo-section p {
  max-width: 900px;
  color: var(--muted);
}

.site-footer {
  padding: 1.65rem clamp(1rem, 4vw, 4rem) 3.25rem;
  color: var(--muted);
  background:
    radial-gradient(circle at 10% 16%, rgba(199, 155, 87, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(234, 220, 200, 0.48), rgba(255, 248, 236, 0.96)),
    var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(230px, 1fr) minmax(220px, 0.95fr);
  gap: clamp(1rem, 2.5vw, 2.4rem);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

.footer-col {
  display: grid;
  gap: 0.4rem;
}

.footer-col h3 {
  margin: 0 0 0.52rem;
  color: #e0dfd8;
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0.45rem;
}

.footer-connect a,
.footer-legal a {
  color: var(--ink);
  text-decoration: none;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin: 0 0 0.36rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(243, 235, 221, 0.08);
  border: 1px solid rgba(243, 235, 221, 0.16);
}

.footer-social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  background: rgba(243, 235, 221, 0.12);
  border-color: rgba(208, 165, 107, 0.45);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(208, 165, 107, 0.24);
}

.footer-connect a:hover,
.footer-connect a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--candle);
  outline: none;
}

.footer-contact p {
  max-width: 32ch;
}

.footer-email {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.footer-legal {
  align-content: start;
}

.footer-privacy-link {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 248, 236, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 30;
  display: inline-grid;
  min-width: 54px;
  height: 38px;
  padding: 0 0.9rem;
  place-items: center;
  color: var(--cream);
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 999px;
  background: rgba(74, 52, 40, 0.86);
  box-shadow: 0 14px 34px rgba(43, 36, 30, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--walnut);
  outline: 2px solid rgba(199, 155, 87, 0.56);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .header-theme-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem 1rem 0.85rem;
    color: rgba(255, 248, 236, 0.84);
    background:
      linear-gradient(180deg, rgba(31, 29, 27, 0.96), rgba(28, 27, 25, 0.94)),
      rgba(31, 29, 27, 0.94);
    border-bottom: 1px solid rgba(255, 248, 236, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.42rem 0;
    line-height: 1.28;
  }

  .site-nav .nav-home {
    display: block;
  }

  .site-nav .theme-toggle {
    display: none;
  }

  .nav-cta {
    width: fit-content;
    margin-top: 0.2rem;
    padding-inline: 1rem !important;
  }

}

@media (max-width: 680px) {
  .back-to-top {
    display: none;
  }

  .section {
    padding-inline: 1rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.35rem);
  }

  .site-footer {
    padding: 1.45rem 1rem 2.4rem;
    background:
      linear-gradient(180deg, rgba(42, 38, 32, 0.94) 0%, rgba(29, 27, 24, 0.98) 100%);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .footer-legal {
    order: 1;
  }

  .footer-connect {
    order: 2;
  }

  .footer-contact {
    order: 3;
  }

  .footer-privacy-link {
    display: inline-flex;
    width: fit-content;
    color: #d0a56b;
    font-size: 0.92rem;
  }

  .footer-copyright {
    max-width: 34ch;
    font-size: 0.78rem;
  }

  .footer-contact p {
    max-width: none;
  }
}

html[data-theme="dark"] .back-to-top {
  color: var(--cream);
  border-color: rgba(199, 155, 87, 0.55);
  background: #6a452f;
}

.site-footer {
  color: #f3ebdd;
  background:
    linear-gradient(180deg, rgba(42, 38, 32, 0.94) 0%, rgba(29, 27, 24, 0.98) 100%);
  border-top: 1px solid rgba(243, 235, 221, 0.18);
}
.footer-col h3,
.footer-connect a,
.footer-email,
.footer-legal .footer-privacy-link,
.footer-privacy-link { color: #d0a56b; }
.footer-col h3 { color: #e0dfd8; }
.footer-contact p,
.footer-copyright { color: #d3c5b0; }
.footer-connect a:hover,
.footer-email:hover,
.footer-legal .footer-privacy-link:hover,
.footer-legal .footer-privacy-link:focus-visible,
.footer-privacy-link:hover { color: #f3ebdd; }

/* Quiet Corner: dark mode visual system override (token + surface only) */
html[data-theme="dark"] {
  --nav-glass-bg: rgba(29, 27, 25, 0.82);
  --nav-glass-border: rgba(243, 235, 221, 0.12);
  --section-bridge: #252520;
  --section-dark: #1f211f;
  --section-dark-alt: #25221e;
  --card-parchment: #2f2a24;
  --card-parchment-hover: #383126;
  --card-parchment-lifted: #3b3328;
  --card-warm: #342d24;
  --card-border: rgba(208, 165, 107, 0.18);
  --card-border-strong: rgba(208, 165, 107, 0.28);
  --card-heading: var(--brand-cream);
  --card-body: #d8ccb8;
  --card-muted: #b8a995;
  --card-glass: rgba(243, 235, 221, 0.07);
  --card-glass-hover: rgba(243, 235, 221, 0.11);
  --card-glass-border: rgba(243, 235, 221, 0.14);
  --accent-primary: #b88245;
  --accent-primary-hover: #c89458;
  --accent-link-dark: var(--brand-gold);
  --accent-link-parchment: var(--brand-gold);
  --accent-link-parchment-hover: #f0c987;
  --shadow-soft-dark: rgba(0, 0, 0, 0.34);
  --shadow-soft-paper: rgba(0, 0, 0, 0.24);
  --shadow-episode-card: rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .hero-latest-play,
html[data-theme="dark"] .episode-play-button,
html[data-theme="dark"] .quiet-listener-button {
  background: var(--button-filled-bg);
  color: var(--button-filled-text);
  border-color: transparent;
}

html[data-theme="dark"] .nav-cta:hover,
html[data-theme="dark"] .hero-latest-play:hover,
html[data-theme="dark"] .hero-latest-play:focus-visible,
html[data-theme="dark"] .episode-play-button:hover,
html[data-theme="dark"] .quiet-listener-button:hover,
html[data-theme="dark"] .quiet-listener-button:focus-visible {
  background: var(--button-filled-bg-hover);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: rgba(243, 235, 221, 0.07);
  border-color: rgba(243, 235, 221, 0.16);
  color: #f3ebdd;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #b8a995;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #d0a56b;
  box-shadow: 0 0 0 3px rgba(208, 165, 107, 0.18);
}

html[data-theme="dark"] select,
html[data-theme="dark"] option {
  background: #2f2a24;
  color: #f3ebdd;
  border-color: rgba(208, 165, 107, 0.22);
}
