/* ============================================================
   Starburst Guide — style.css
   Nature Distilled · Cormorant Garamond · Muted terracotta & sand
   ============================================================ */

/* ── Tokens ── */
:root {
  --primary: #5cc6b0;
  --primary-dark: #3da890;
  --secondary: #d4c4a8;
  --ink: #172623;
  --ink-mid: #3b4f4b;
  --ink-muted: #6b7b78;
  --sand: #e8dece;
  --terracotta: #b0654a;
  --parchment: #f5f0e8;
  --card-radius: 18px;
  --col-gap: 2rem;
  --sidebar-w: 220px;
  --reading-max: 72ch;
  --transition: 220ms ease-out;
  --grain-opacity: 0.035;
  --header-h: 64px;
  --font-heading: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  --font-body: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 0.25rem; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-bottom: 0.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1rem; }
a { color: var(--terracotta); text-decoration: underline; transition: color var(--transition); }
a:hover, a:focus { color: var(--primary-dark); }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.6rem 1.2rem;
  margin: 1.4rem 0;
  background: rgba(92,198,176,0.06);
  font-style: italic;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
img { max-width: 100%; display: block; height: auto; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
th, td { padding: 0.6rem 0.8rem; border: 1px solid var(--secondary); text-align: left; }
th { background: var(--secondary); font-family: var(--font-heading); font-weight: 600; }
tr:nth-child(even) { background: rgba(212,196,168,0.18); }

/* ── Subtitle / subheading ── */
p.subtitle, p.subhead, p.desc, p.lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── Site wrap ── */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  box-shadow: 0 2px 12px rgba(23,38,35,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.25rem;
  height: var(--header-h);
  max-width: 1340px;
  margin: 0 auto;
  width: 100%;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { color: var(--primary) !important; }

/* Header CTA buttons */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.cta-signup {
  background: var(--primary);
  color: var(--ink) !important;
  border: 2px solid var(--primary);
}
.cta-signup:hover, .cta-signup:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--ink) !important;
}
.cta-login {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.cta-login:hover, .cta-login:focus {
  background: rgba(92,198,176,0.12);
  color: var(--primary) !important;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex: 0 0 auto;
}
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav */
.primary-nav {
  background: var(--ink);
  border-top: 1px solid rgba(212,196,168,0.12);
}
.primary-nav ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1340px;
  flex-wrap: wrap;
}
.primary-nav ol li { list-style: none; }
.primary-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.primary-nav ol li a:hover,
.primary-nav ol li a:focus { color: var(--primary); }
.primary-nav ol li a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Main / content layout ── */
#main-content { flex: 1; }

.content-layout {
  display: flex;
  gap: var(--col-gap);
  max-width: 1340px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  align-items: flex-start;
}

/* Sidebar LEFT */
.sidebar-left {
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: calc(var(--header-h) + 80px);
  order: -1;
}
.sidebar-inner {
  background: var(--sand);
  border: 1px solid var(--secondary);
  border-radius: var(--card-radius);
  padding: 1.25rem 1rem;
}
.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: var(--ink);
}
.sidebar-inner .subtitle {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.sidebar-nav, .sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li, .sidebar-links li {
  border-bottom: 1px solid rgba(212,196,168,0.5);
  margin: 0;
}
.sidebar-nav li:last-child, .sidebar-links li:last-child { border-bottom: none; }
.sidebar-nav li a, .sidebar-links li a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.2rem;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--ink-mid);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--transition);
}
.sidebar-nav li a:hover, .sidebar-links li a:hover { color: var(--terracotta); }

/* Main content column */
.main-col {
  flex: 1;
  min-width: 0;
}

/* ── Article body ── */
.article-body {
  max-width: var(--reading-max);
}
.article-body a { color: var(--terracotta); text-decoration: underline; }
.article-body a:hover { color: var(--primary-dark); }

/* ── Hero section (home) ── */
.hero-section {
  background: var(--ink);
  display: flex;
  align-items: stretch;
  min-height: 45vh;
  position: relative;
  overflow: hidden;
}
.hero-media {
  flex: 0 0 45%;
  max-height: 60vh;
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #2a4040 0%, #1a2e2a 60%, #0e1a18 100%);
}
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 3rem 3rem 3rem 2rem;
}
.hero-copy h1 { color: var(--secondary); margin-bottom: 0.6rem; }
.hero-copy .eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.hero-desc {
  color: rgba(212,196,168,0.8);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 38ch;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: var(--primary);
  color: var(--ink) !important;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 44px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(92,198,176,0.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Slanted divider */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--parchment);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}

/* ── Content band (home) ── */
.content-band { background: var(--parchment); }

/* ── Child grid / cards ── */
.child-grid {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--secondary);
}
.child-grid h2 { margin-bottom: 0.25rem; }
.child-card {
  border: 1.5px solid var(--secondary);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  background: var(--sand);
  transition: border-color var(--transition), transform var(--transition);
}
.child-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.child-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.child-card h3 a { color: var(--ink); text-decoration: none; }
.child-card h3 a:hover { color: var(--terracotta); }
.card-desc { font-size: 0.95rem; color: var(--ink-mid); margin-bottom: 0.5rem; }
.card-date { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.card-link {
  font-size: 0.9rem;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}
.card-link:hover { color: var(--primary-dark); }

/* ── Article header ── */
.article-header-section {
  background: var(--sand);
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--secondary);
}
.article-header-section h1 {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1340px;
  margin: 0 auto 0.75rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.breadcrumb ol li + li::before { content: '/'; margin-right: 0.3rem; }
.breadcrumb ol li a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb ol li a:hover { color: var(--terracotta); text-decoration: underline; }
.breadcrumb ol li[aria-current="page"] { color: var(--ink); }

/* ── Byline ── */
.byline {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.4rem;
  margin-bottom: 0;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Stage label ── */
.stage-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.5rem;
  border: 1px solid currentColor;
}
.stage-awareness { color: var(--terracotta); }
.stage-consideration { color: var(--primary-dark); }
.stage-decision { color: var(--ink-mid); }

/* ── Article hero image ── */
.article-hero {
  max-width: 1340px;
  margin: 1rem auto 0;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.article-hero-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 0; }

/* ── Author section ── */
.author-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--sand);
  border-radius: var(--card-radius);
  border: 1.5px solid var(--secondary);
}
.author-section h2 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.author-bio { font-size: 0.97rem; color: var(--ink-mid); margin-top: 0.5rem; margin-bottom: 0; }

/* ── Contact block ── */
.contact-block {
  margin-top: 2rem;
  padding: 1.2rem;
  background: var(--sand);
  border-radius: var(--card-radius);
  border: 1px solid var(--secondary);
}
.contact-address { font-style: normal; }
.contact-author { display: block; color: var(--ink-muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ── FAQ styling ── */
.faq-body details {
  border: 1px solid var(--secondary);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  background: var(--sand);
  overflow: hidden;
}
.faq-body details summary {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.faq-body details summary::-webkit-details-marker { display: none; }
.faq-body details summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  margin-left: 0.5rem;
  transition: transform var(--transition);
}
.faq-body details[open] summary::after { transform: rotate(45deg); }
.faq-body details > *:not(summary) { padding: 0 1.1rem 0.85rem; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--secondary);
  margin-top: auto;
}

.footer-cta-band {
  background: linear-gradient(135deg, #1e3430 0%, var(--ink) 100%);
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(212,196,168,0.12);
}
.footer-cta-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.footer-cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.footer-cta-band .subtitle {
  color: rgba(212,196,168,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.footer-cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1340px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 0.3rem; }
.footer-col ul li a {
  color: rgba(212,196,168,0.8);
  text-decoration: none;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--transition);
  padding: 0.2rem 0;
}
.footer-col ul li a:hover { color: var(--primary); }

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(212,196,168,0.75);
  line-height: 1.7;
}
.footer-address strong { color: var(--secondary); display: block; margin-bottom: 0.25rem; }
.footer-address a { color: rgba(212,196,168,0.7); text-decoration: none; }
.footer-address a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(212,196,168,0.1);
  max-width: 1340px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.copyright { font-size: 0.82rem; color: rgba(212,196,168,0.5); }
.rg-notice {
  font-size: 0.78rem;
  color: rgba(212,196,168,0.45);
  max-width: 55ch;
  text-align: right;
  line-height: 1.5;
}

/* ── Parallax (CSS only) ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    will-change: transform;
  }
}

/* ── Hover micro-interactions ── */
@media (prefers-reduced-motion: no-preference) {
  .child-card { transition: border-color var(--transition), transform 200ms ease-out, box-shadow 200ms ease-out; }
  .child-card:hover { box-shadow: 0 6px 20px rgba(23,38,35,0.08); }
  .btn-primary { transition: background var(--transition), transform 160ms ease-out, box-shadow 160ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --sidebar-w: 190px; }
  .hero-copy { padding: 2rem 1.5rem 2rem 1.5rem; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  body { font-size: 17px; }

  /* Header: brand centered, toggle left, CTAs right */
  .header-inner {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas: "toggle brand ctas";
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: flex;
    grid-area: toggle;
  }
  .brand {
    grid-area: brand;
    text-align: center;
    font-size: 1rem;
  }
  .header-ctas {
    grid-area: ctas;
    gap: 0.35rem;
  }
  .cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    min-height: 44px;
  }

  /* Nav collapse */
  .primary-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height 300ms ease-out;
  }
  .primary-nav.is-open { max-height: 600px; }
  .primary-nav ol {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
  }
  .primary-nav ol li a {
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid rgba(212,196,168,0.08);
    font-size: 1rem;
  }

  /* Hero stacked */
  .hero-section { flex-direction: column; min-height: auto; }
  .hero-media { flex: none; width: 100%; max-height: 220px; }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem 1.25rem 2.5rem;
  }
  .hero-desc { max-width: 100%; }

  /* Sidebar hidden on mobile (content first) */
  .sidebar-left { display: none; }

  .content-layout {
    flex-direction: column;
    padding: 1.25rem 1rem;
  }
  .main-col { width: 100%; }
  .article-body { max-width: 100%; }

  /* Footer */
  .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rg-notice { text-align: left; }

  .footer-col ul li a { min-height: 44px; }
}

/* Very small phones */
@media (max-width: 420px) {
  h1 { font-size: 1.6rem; }
  .hero-copy h1 { font-size: 1.5rem; }
  .cta { padding: 0.4rem 0.5rem; font-size: 0.72rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}