/* ==========================================================================
   1. BRAND VARIABLES
   Every color and font in the site is defined once here as a CSS "variable"
   (written --like-this). Every other rule below just points at these names,
   so re-theming the whole site means editing only this block.
   ========================================================================== */
:root {
  /* Primary purple scale, from the Circady brand guide (lightest to darkest) */
  --purple-100: #E1D0F8;
  --purple-200: #CBAAFA;
  --purple-300: #B785FC;
  --purple-400: #A260FF;
  --purple-600: #773FC7; /* main brand purple, used in the logo */

  /* Secondary accents — used sparingly, for small tags/highlights only */
  --accent-teal: #93E2DD;
  --accent-pink: #FFE6E6;
  --accent-blue: #D0E2FF;

  /* Neutrals, light to dark */
  --neutral-0: #FFFFFF;
  --neutral-100: #F2F2F3;
  --neutral-200: #DFE0E3;
  --neutral-300: #CBCCD1;
  --neutral-500: #8A8B98;
  --neutral-600: #6B6D7B;
  --neutral-800: #353745;
  --neutral-900: #10111B;

  /* Typography */
  --font-body: "Lexend Deca", sans-serif;

  /* Layout */
  --content-width: 700px;
  --page-padding: 24px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   Browsers apply their own default spacing/fonts; this section clears that
   so the site looks the same everywhere before we add our own design.
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--neutral-900);
  background-color: var(--neutral-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-600);
  text-decoration: none;
}

a:hover {
  color: var(--purple-400);
}

ul {
  list-style: none;
}

/* A reusable centered column every page section drops content into */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ==========================================================================
   3. TYPOGRAPHY
   Headlines follow the brand's signature look: a bold word (600) next to a
   very light word (200) — the ".light" span is what creates that contrast.
   ========================================================================== */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; margin-bottom: 16px; }
h2 { font-size: 1.9rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

.light {
  font-weight: 200;
}

p {
  margin-bottom: 16px;
  color: var(--neutral-800);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 8px;
}

.meta {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--neutral-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 1300px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo-icon {
  height: 102px;
}

.logo-wordmark {
  height: 84px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--neutral-800);
  font-size: 2.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-600);
}

/* The menu button only appears on small screens; JS toggles .nav-open */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-900);
  margin: 5px 0;
}

/* ==========================================================================
   5. BUTTONS & TAGS
   ========================================================================== */
.button {
  display: inline-block;
  background-color: var(--purple-600);
  color: var(--neutral-0);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.button:hover {
  background-color: var(--purple-400);
  color: var(--neutral-0);
}

.button-outline {
  background-color: transparent;
  color: var(--purple-600);
  border: 1px solid var(--purple-600);
}

.button-outline:hover {
  background-color: var(--purple-100);
  color: var(--purple-600);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--accent-teal);
  color: var(--neutral-900);
}

/* ==========================================================================
   6. HERO (used on the home page)
   ========================================================================== */
.hero {
  padding: 80px 0 64px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--neutral-600);
  max-width: 520px;
}

.hero-tight {
  padding-bottom: 16px;
}

/* ==========================================================================
   6b. LAVENDER PAGE BACKGROUND
   Lavender background behind a page's main content. The header/footer
   stay white so nav and footer links keep good contrast.
   ========================================================================== */
.lavender-bg {
  background-color: var(--purple-100);
}

.lavender-bg .site-header,
.lavender-bg .site-footer {
  background-color: var(--neutral-0);
}

.home-grid {
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.home-photos {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 80px;
}

.photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.photo-card img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background-color: var(--neutral-0);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 17, 27, 0.18);
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-photos {
    position: static;
    flex-direction: row;
    padding-top: 0;
    margin-top: 32px;
  }
}

.episode-audio {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   7. CONTENT LISTS (blog post & episode previews)
   Each item is separated by a hairline rule instead of a boxed "card" —
   keeps the page feeling open and uncluttered.
   ========================================================================== */
.section-title {
  padding-top: 48px;
}

.section-title-tight {
  padding-top: 8px;
}

.list-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.list-item:first-of-type {
  border-top: 1px solid var(--neutral-200);
}

.list-item h3 a {
  color: var(--neutral-900);
}

.list-item h3 a:hover {
  color: var(--purple-600);
}

.list-item .meta {
  margin-bottom: 8px;
}

.list-item .excerpt {
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.read-more {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ==========================================================================
   7b. HOST BIO CARDS (About page)
   ========================================================================== */
.host-card {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.host-card:first-of-type {
  border-top: 1px solid var(--neutral-200);
}

.host-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.host-info h3 {
  margin-bottom: 2px;
  font-size: 1.95rem;
}

.host-role {
  display: block;
  color: var(--purple-600);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.host-info p {
  font-size: 1.5rem;
}

@media (max-width: 640px) {
  .host-card {
    flex-direction: column;
  }
}

/* ==========================================================================
   8. SINGLE POST / EPISODE PAGE
   ========================================================================== */
.post-header {
  padding: 56px 0 32px;
}

.post-body {
  padding-bottom: 64px;
}

.post-body h2 {
  margin-top: 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ==========================================================================
   9. FORMS (contact page)
   ========================================================================== */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background-color: var(--neutral-0);
  color: var(--neutral-900);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple-600);
}

#form-status {
  margin-top: 16px;
  font-weight: 500;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--neutral-200);
  margin-top: 64px;
}

.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--neutral-500);
  max-width: 560px;
  margin-bottom: 12px;
}

.copyright {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   11. RESPONSIVE (small screens)
   ========================================================================== */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  h1 { font-size: 2.1rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--neutral-0);
    border-bottom: 1px solid var(--neutral-200);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links a {
    padding: 12px var(--page-padding);
  }

  .site-header {
    position: relative;
  }

  .nav-open .nav-links {
    display: flex;
  }
}
