@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #eb879c;
  --secondary: #ffb6c1;
  --ink: #26171a;
  --ink-light: #5a3540;
  --ink-muted: #8a5f68;
  --bg: #fff8f9;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(235, 135, 156, 0.18);
  --shadow-sm: 0 2px 6px rgba(38,23,26,0.07), 0 1px 2px rgba(38,23,26,0.04);
  --shadow-md: 0 4px 16px rgba(38,23,26,0.10), 0 2px 4px rgba(38,23,26,0.06);
  --shadow-lg: 0 8px 32px rgba(38,23,26,0.12), 0 4px 8px rgba(38,23,26,0.07);
  --radius: 10px;
  --radius-card: 4px;
  --radius-btn: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1160px;
  --content-w: 720px;
  --header-h: 64px;
  --transition: 200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: underline; transition: color var(--transition); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 0.25rem; }

/* ── Layout ── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,248,249,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.brand-mark img { width: 36px; height: 36px; border-radius: 8px; }
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

/* ── CTA Buttons ── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.cta-signup {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(235,135,156,0.35);
}
.cta-signup:hover { background: #d96f87; color: #fff; box-shadow: 0 4px 14px rgba(235,135,156,0.45); transform: translateY(-1px); }
.cta-login {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta-login:hover { background: var(--secondary); color: var(--ink); }

.header-ctas {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

/* ── Menu Toggle ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
  order: -1;
}
.menu-toggle:focus-visible { outline: 2px solid var(--primary); }
.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Navigation ── */
.main-nav { background: transparent; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.main-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.main-nav ol li a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.main-nav ol li a:hover { color: var(--primary); background: rgba(235,135,156,0.07); }

/* ── Full-screen overlay nav (mobile + desktop trigger) ── */
.main-nav.nav-open {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(38,23,26,0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav.nav-open .nav-inner { padding: 2rem; }
.main-nav.nav-open ol {
  flex-direction: column;
  gap: 0.25rem;
  border: none;
}
.main-nav.nav-open ol li a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  height: auto;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
}
.main-nav.nav-open ol li a:hover { background: rgba(255,182,193,0.12); color: #fff; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #26171a 0%, #4a2030 60%, #eb879c 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 2rem 1.5rem;
}
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero-desc { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 0.75rem; }
.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

.article-hero-wrap { position: relative; max-height: 420px; overflow: hidden; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; }

/* ── Main Content ── */
main { flex: 1; padding: 2.5rem 0; }

.content-section { display: flex; gap: 2.5rem; align-items: flex-start; }
.layout-with-aside { flex-direction: row; }

/* ── Aside (left side) ── */
.content-aside {
  flex: 0 0 260px;
  min-width: 220px;
  order: -1;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.aside-inner {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.aside-heading { font-size: 1rem; margin-bottom: 0.75rem; }
.aside-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.aside-nav li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.aside-nav li a:hover { background: rgba(235,135,156,0.10); color: var(--primary); }
.aside-cta { margin-top: 1rem; }
.aside-cta .cta { width: 100%; font-size: 0.82rem; }

/* ── Article Body ── */
.content-body { flex: 1; min-width: 0; }
.article-meta { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.byline { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.6rem; font-weight: 600; }
.byline time { color: var(--ink-muted); }

.content-body h2 { margin: 2rem 0 0.75rem; }
.content-body h3 { margin: 1.5rem 0 0.5rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body li { margin-bottom: 0.4rem; }
.content-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; }
.content-body th { background: var(--primary); color: #fff; padding: 0.6rem 0.9rem; text-align: left; }
.content-body td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
.content-body tr:nth-child(even) td { background: rgba(255,182,193,0.08); }
.content-body a { color: var(--primary); text-decoration: underline; }
.content-body blockquote { border-left: 4px solid var(--primary); padding: 0.75rem 1.25rem; background: rgba(255,182,193,0.10); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; color: var(--ink-light); font-style: italic; }

/* ── Stage Label ── */
.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  background: rgba(235,135,156,0.15);
  color: var(--primary);
}
.stage-decision { background: rgba(235,135,156,0.2); }
.stage-consideration { background: rgba(255,182,193,0.2); color: var(--ink-light); }
.stage-awareness { background: rgba(38,23,26,0.07); color: var(--ink-muted); }

/* ── Glassmorphism Cards ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.glass:hover { background: var(--bg-card-hover); }

/* ── Home Extras / Child Cards ── */
.home-extras { padding: 3rem 0; }
.home-aside { width: 100%; }
.child-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.child-card {
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.child-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.child-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.child-card h3 a { color: var(--ink); text-decoration: none; }
.child-card h3 a:hover { color: var(--primary); }
.child-card p { font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 0.5rem; }
.card-date { font-size: 0.78rem; color: var(--ink-muted); }

/* ── Topic Strip ── */
.topic-strip { padding: 2.5rem 0; }
.topic-strip h2 { margin-bottom: 1rem; }
.topic-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.topic-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.topic-links li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }

/* ── Author Section ── */
.author-section {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius);
}
.author-section h2 { margin-bottom: 0.25rem; }
.author-credentials { font-size: 0.88rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }
.author-bio { color: var(--ink-light); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,248,249,0.85);
  margin-top: auto;
}
.footer-cta-block {
  background: linear-gradient(135deg, #3a1e24 0%, var(--ink) 100%);
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-cta-text { color: rgba(255,248,249,0.9); font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 1.25rem;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { color: rgba(255,248,249,0.65); font-size: 0.9rem; }
.footer-brand address { margin-top: 1rem; font-style: normal; }
.footer-brand address ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand address ul li a { color: var(--secondary); font-size: 0.88rem; min-height: 44px; display: flex; align-items: center; }
.footer-links small { margin-bottom: 0.5rem; color: var(--secondary); }
.footer-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.footer-links ul li a { color: rgba(255,248,249,0.75); font-size: 0.88rem; text-decoration: none; min-height: 44px; display: flex; align-items: center; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--secondary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.rg-notice { color: rgba(255,182,193,0.8); font-weight: 600; }
.copyright { color: rgba(255,248,249,0.45); }

/* ── Scroll Reveal / Stagger ── */
@media (prefers-reduced-motion: no-preference) {
  .child-card, .aside-inner, .author-section {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 250ms ease, transform 250ms ease;
  }
  .child-card.revealed, .aside-inner.revealed, .author-section.revealed {
    opacity: 1;
    transform: none;
  }
  .child-list li:nth-child(1) .child-card { transition-delay: 0ms; }
  .child-list li:nth-child(2) .child-card { transition-delay: 60ms; }
  .child-list li:nth-child(3) .child-card { transition-delay: 120ms; }
  .child-list li:nth-child(4) .child-card { transition-delay: 180ms; }
  .child-list li:nth-child(5) .child-card { transition-delay: 240ms; }
  .child-list li:nth-child(6) .child-card { transition-delay: 300ms; }
}

/* ── Desktop: hide burger, show inline nav ── */
@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .main-nav ol { flex-direction: row; }
  .main-nav.nav-open { position: static; background: none; backdrop-filter: none; }
  .main-nav.nav-open ol li a { font-size: 0.88rem; color: var(--ink-light); height: 44px; padding: 0 1rem; }
  .main-nav.nav-open ol li a:hover { background: rgba(235,135,156,0.07); color: var(--primary); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; }
  .main-nav.nav-open { display: flex; }

  .content-section.layout-with-aside { flex-direction: column; }
  .content-aside { flex: none; width: 100%; position: static; order: 1; }
  .content-body { order: 0; }

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

  .hero { min-height: 60vh; }
  .hero-copy h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .header-inner { gap: 0.4rem; }
  .cta { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
  .child-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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