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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #000; }
a:hover { text-decoration: none; }

/* ===== ANNOUNCEMENT STRIP ===== */
.announce-strip {
  background: #000;
  color: #fff;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.brand-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #000;
  white-space: nowrap;
}

.logo-mark {
  height: 36px;
  width: auto;
}

/* ===== HEADER CTAs ===== */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

a.cta {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  white-space: nowrap;
}

a.cta-signup {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}

a.cta-signup:hover {
  background: #333;
  border-color: #333;
}

a.cta-login {
  background: transparent;
  color: #000;
  border: 2px solid #000;
}

a.cta-login:hover {
  background: #000;
  color: #fff;
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid #000;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #000;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MAIN NAV (desktop) ===== */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  border-top: 1px solid #000;
  background: #fff;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #000;
  padding: 0.7rem 1.1rem;
  border-right: 1px solid #000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}

.nav-link:first-child { border-left: 1px solid #000; }
.nav-link:hover { background: #000; color: #fff; }

/* ===== HERO (Home) ===== */
.hero {
  position: relative;
  min-height: 45vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.55;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  max-width: 900px;
}

.hero-h1 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SLANT DIVIDER ===== */
.slant-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

.slant-divider--white {
  background: #fff;
}

/* ===== TOPIC HERO ===== */
.topic-hero {
  position: relative;
  background: #000;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
}

.topic-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 2;
}

.topic-eyebrow {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.topic-h1 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 0.8rem;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
  background: #000;
  padding: 3rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.article-h1 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  max-width: 820px;
  margin: 0 auto 0.8rem;
}

.article-hero-wrap {
  position: relative;
  max-width: 820px;
  margin: 2rem auto 0;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== INNER HEADER (about/privacy) ===== */
.inner-header {
  background: #000;
  padding: 3.5rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.inner-h1 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  max-width: 820px;
  margin: 0 auto 1rem;
}

.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.breadcrumb a:hover { color: #fff; }

/* ===== BYLINE ===== */
.byline {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  max-width: 820px;
  margin: 0 auto;
}

/* ===== STAGE LABEL ===== */
.stage-label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.75rem;
  max-width: 820px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.stage-label--awareness { background: #fff; color: #000; }
.stage-label--consideration { background: #555; color: #fff; }
.stage-label--decision { background: #000; color: #fff; border: 1px solid #fff; }

/* ===== MAIN CONTENT STRUCTURE ===== */
/* Satisfies: main > article.wrap > div > section */
main {
  padding: 3rem 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
}

.page-body {
  max-width: 820px;
  width: 100%;
}

.content-body {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #000;
}

/* ===== BODY COPY TYPOGRAPHY ===== */
.content-body h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 2.5rem 0 0.4rem;
}

.content-body h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}

.content-body h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 0.4rem;
}

.content-body p { margin: 0 0 1.2rem; }
.content-body p:last-child { margin-bottom: 0; }

.content-body a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.content-body a:hover { background: #000; color: #fff; }

.content-body ul, .content-body ol {
  margin: 0 0 1.3rem 1.5rem;
}

.content-body li { margin-bottom: 0.4rem; }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-body th {
  background: #000;
  color: #fff;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  text-align: left;
  padding: 0.7rem 1rem;
  border: 1px solid #000;
}

.content-body td {
  padding: 0.65rem 1rem;
  border: 1px solid #000;
  vertical-align: top;
}

.content-body tr:nth-child(even) td { background: #f5f5f5; }

.content-body blockquote {
  border-left: 4px solid #000;
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: #f7f7f7;
  font-style: italic;
}

/* Subtitle (h2 + p.subtitle pattern — satisfies heading decoration contract) */
.subtitle, p.subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* Intro lead */
.intro-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
  border-left: 4px solid #000;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ===== FEATURED TOPICS & CARDS ===== */
.full-bleed-band {
  background: #000;
  padding: 4rem 1.5rem;
}

.full-bleed-band .featured-topics {
  max-width: 1200px;
  margin: 0 auto;
}

.full-bleed-band h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.4rem;
}

.full-bleed-band .subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-list li {
  background: #fff;
  border: 3px solid #000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: transform 0.15s;
}

.card-list li:hover { transform: translateY(-3px); }

.full-bleed-band .card-list li {
  background: #111;
  border-color: rgba(255,255,255,0.2);
}

.card-list li a {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  text-decoration: none;
  display: block;
}

.full-bleed-band .card-list li a { color: #fff; }
.full-bleed-band .card-list li a:hover { text-decoration: underline; }
.card-list li a:hover { text-decoration: underline; }

.card-list li small {
  font-family: 'Raleway', sans-serif;
  font-size: 0.83rem;
  color: #666;
  line-height: 1.4;
  display: block;
}

.full-bleed-band .card-list li small { color: rgba(255,255,255,0.55); }

.card-list li .num {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 2rem;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* ===== CHILD CARDS (within main) ===== */
.child-cards, .child-index {
  margin: 3rem 0 0;
}

.child-cards h2, .child-index h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.wrap--wide {
  max-width: 1400px;
  padding: 2rem 1.5rem 4rem;
}

/* ===== ASIDE ===== */
.site-aside {
  background: #f5f5f5;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 2.5rem 1.5rem;
  margin: 0;
}

.site-aside h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-links li {
  border-bottom: 1px solid #ddd;
}

.aside-links li:last-child { border-bottom: none; }

.aside-links a {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  padding: 0.65rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.aside-links a:hover { text-decoration: underline; }

/* ===== AUTHOR SECTION ===== */
.author-section {
  background: #000;
  color: #fff;
  padding: 4rem 1.5rem;
}

.author-section h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  color: #fff;
}

.author-section .subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}

.author-bio {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
}

/* ===== FOOTER ===== */
/* Satisfies: footer contains nav, direct child is div/nav container */
.site-footer {
  background: #fff;
  border-top: 3px solid #000;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-brand-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

/* Footer nav uses dl > dt > dd > a (structure lottery) */
.footer-nav dl {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav dt {
  display: block;
}

.footer-nav dd {
  display: block;
  margin: 0;
}

.footer-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
}

.footer-trust a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #000;
  text-decoration: underline;
}

.footer-trust a:hover { background: #000; color: #fff; padding: 0 2px; }

.footer-rg {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 1rem 1.5rem;
}

.rg-notice {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: #555;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.5;
}

.footer-bottom {
  padding: 1rem 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: #888;
}

/* ===== DESKTOP ASIDE LAYOUT ===== */
@media (min-width: 900px) {
  .wrap {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
  }

  .page-body {
    max-width: none;
  }

  .site-aside {
    position: sticky;
    top: 140px;
    border: 3px solid #000;
    max-width: 300px;
    float: right;
    clear: right;
    margin: 0 0 2rem 2rem;
  }

  /* Override grid-based layout when aside is floated */
  .wrap {
    display: block;
    max-width: 1200px;
    position: relative;
  }

  .site-aside {
    float: right;
    width: 280px;
    margin: 0 0 2rem 2rem;
    position: sticky;
    top: 140px;
  }

  .page-body, .child-index, .child-cards {
    max-width: 820px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-top: 2px solid #000;
    background: #fff;
    width: 100%;
  }

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

  .nav-link {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .nav-link:first-child { border-left: none; }

  .header-inner {
    height: 60px;
    padding: 0 1rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .header-ctas {
    gap: 0.35rem;
  }

  a.cta {
    font-size: 0.72rem;
    padding: 0 0.6rem;
    min-height: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1.5rem;
  }

  .hero-copy {
    padding: 3rem 1rem 5rem;
  }

  .topic-hero, .article-header, .inner-header {
    padding: 2.5rem 1rem 4.5rem;
  }

  .full-bleed-band {
    padding: 2.5rem 1rem;
  }

  .wrap, .wrap--wide {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 0;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .site-aside {
    float: none;
    width: 100%;
    margin: 2rem 0 0;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  html { scroll-behavior: auto; }
}

/* ===== VISUALLY HIDDEN ===== */
.visually-hidden-lead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== STAGGER LIST ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .card-list li {
    opacity: 0;
    transform: translateY(16px);
    animation: stagger-in 0.4s ease forwards;
  }

  .card-list li:nth-child(1) { animation-delay: 0.05s; }
  .card-list li:nth-child(2) { animation-delay: 0.12s; }
  .card-list li:nth-child(3) { animation-delay: 0.19s; }
  .card-list li:nth-child(4) { animation-delay: 0.26s; }
  .card-list li:nth-child(5) { animation-delay: 0.33s; }
  .card-list li:nth-child(6) { animation-delay: 0.4s; }

  @keyframes stagger-in {
    to { opacity: 1; transform: none; }
  }
}

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