/* =========================================================
   STAND FOR THE BROKEN
   MAIN STYLESHEET
   ========================================================= */

/* =========================================================
   1) ROOT VARIABLES
   ========================================================= */
:root {
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-soft: #efe8e1;
  --text: #1f1f1f;
  --muted: #5f5a56;
  --line: #d8ccc2;

  --brand: #7d3f3f;
  --brand-dark: #5e2f2f;
  --accent: #2f4858;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --container: 1180px;
}

/* =========================================================
   2) RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   3) LAYOUT
   ========================================================= */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: var(--surface-soft);
}

/* =========================================================
   4) HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 243, 239, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand);
  background: rgba(125, 63, 63, 0.08);
}

.nav-link.is-active,
.nav-dropdown-toggle.is-active {
  color: var(--brand);
  font-weight: 700;
  background: rgba(125, 63, 63, 0.12);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
}

.nav-caret {
  font-size: 0.8em;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: inherit;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--brand);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(125, 63, 63, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

/* =========================================================
   5) TYPOGRAPHY / SHARED TEXT
   ========================================================= */
.eyebrow,
.section-kicker {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
}

.hero h1,
.page-hero h1,
.intro-block h2,
.cta-band h2,
.product-copy h1 {
  font-family: 'Playfair Display', serif;
  line-height: 1.06;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.hero-pretitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-text,
.page-lead,
.product-lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.content-note {
  font-weight: 600;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

/* =========================================================
   6) HERO SECTIONS
   ========================================================= */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.intro-block,
.content-flow {
  text-align: center;
}

.encouragement-hero {
  padding: 5rem 0 4rem;
}

.encouragement-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.encouragement-hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.encouragement-hero-media img {
  width: 100%;
  box-shadow: var(--shadow);
}

/* =========================================================
   7) BUTTONS / ACTIONS
   ========================================================= */
.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

/* =========================================================
   8) CARDS / CONTENT BLOCKS
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 1.2rem;
}

.card h2,
.card h3,
.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

/* =========================================================
   9) CTA BAND
   ========================================================= */
.cta-band-inner {
  background: linear-gradient(135deg, #fff, #f2e6de);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* =========================================================
   10) PRODUCT LAYOUTS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* =========================================================
   11) MESSAGE STRIP
   ========================================================= */
.message-strip {
  padding: 1rem 0 0;
}

.message-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.message-strip-inner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--brand);
}

/* =========================================================
   12) FORMS / EMBEDS
   ========================================================= */
.form-shell {
  margin-top: 1.5rem;
}

.mailer-embed-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.mailer-placeholder {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.mailer-placeholder p {
  margin: 0 0 0.75rem;
}

.mailer-placeholder p:last-child {
  margin-bottom: 0;
}

.form-note {
  margin: 1rem auto 0;
  max-width: 520px;
  text-align: center;
  color: #6f655e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.section .content-flow h2 + .form-shell {
  margin-top: 1.75rem;
}

.section-signup .content-flow {
  text-align: center;
}

.section-signup .section-kicker {
  margin-bottom: 0.75rem;
}

.section-signup h2 {
  margin-bottom: 0;
}

/* =========================================================
   13) BONUS BOX
   ========================================================= */
.bonus-box {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: #fffaf6;
  border: 1px solid #d8cec6;
  border-radius: 18px;
  text-align: left;
}

.bonus-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c7f77;
  margin-bottom: 0.5rem;
}

.bonus-box h3 {
  margin: 0 0 0.5rem;
}

.bonus-box p {
  margin-bottom: 1rem;
}

/* =========================================================
   14) FOOTER
   ========================================================= */
.site-footer {
  background: #201b1b;
  color: #f2ece7;
  margin-top: 4rem;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding: 1.2rem 0;
  color: #cbbfb6;
  font-size: 0.95rem;
}

/* =========================================================
   15) RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid,
  .cards-grid,
  .product-grid,
  .footer-grid,
  .cta-band-inner,
  .encouragement-hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-inner {
    text-align: center;
  }

  .nav-wrap {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 0.75rem 0 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link,
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
    padding: 0.9rem 1rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    margin-top: 0.5rem;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-radius: 14px;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open:hover .nav-dropdown-menu,
  .nav-dropdown.is-open:focus-within .nav-dropdown-menu {
    display: flex;
  }
}

@media (max-width: 640px) {
  .form-shell {
    margin-top: 1.25rem;
  }

  .form-note {
    margin-top: 0.85rem;
    font-size: 0.92rem;
  }

  .brand-sub {
    display: none;
  }
}

.article-audio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--stand-muted);
}

.powered-by {
  margin-top: 36px;
  font-size: 12px;
   color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.02em;
   margin-bottom: 14px;
}

.powered-by a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.powered-by a:hover {
  text-decoration: underline;
}

.article-cta-wrap {
  margin: 3rem 0;
}

.article-cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: #f7f8f6;
  border: 1px solid #e3e6e1;
  border-radius: 18px;
  text-align: center;
}

.article-cta h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.article-cta p {
  margin: 0 0 1.25rem;
  color: #5b6470;
  line-height: 1.7;
}

.article-cta .cta-button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  background: #6f8a7a;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.article-cta .cta-button:hover {
  background: #5e7567;
}

/* CONTINUE READING */
.continue-reading {
  margin: 4rem 0 2rem;
}

.continue-reading h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.continue-reading .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.continue-reading .related-card {
  padding: 1.5rem;
  border: 1px solid #e6e8eb;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.continue-reading .related-card:hover {
  border-color: #d4d9df;
  transform: translateY(-2px);
}

.continue-reading .related-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.continue-reading .related-card h3 a,
.continue-reading .related-card h3 a:link,
.continue-reading .related-card h3 a:visited,
.continue-reading .related-card h3 a:hover,
.continue-reading .related-card h3 a:active {
  color: #1f2328 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.continue-reading .related-card h3 a:hover {
  color: #2f5d62 !important;
}

.continue-reading .related-card p {
  margin: 0;
  color: #5b6470;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .continue-reading .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .continue-reading .related-grid {
    grid-template-columns: 1fr;
  }
}