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

:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --accent: #000000;
  --accent-inv: #ffffff;
  --col-gap: 1rem;
  --header-h: 60px;
  --max-w: 1280px;
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --base: 8px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--black); text-decoration: underline; }
a:hover { opacity: 0.72; }
ol, ul { list-style: none; }
hr { border: none; border-top: 2px solid var(--black); margin: calc(var(--base)*2) 0; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.375rem); }
p { margin-bottom: 1rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: calc(var(--base)*1.5);
}

/* === Site Wrapper === */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* === Header / Nav Rail === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
  z-index: 100;
  border-bottom: 1px solid #222;
}

.header-rail {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 1.5rem;
  padding: 0 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  background: var(--white);
  color: var(--black);
  padding: 4px 8px;
  line-height: 1;
}

.primary-nav ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav ol::-webkit-scrollbar { display: none; }
.primary-nav ol li a {
  display: block;
  padding: 0 0.75rem;
  height: var(--header-h);
  line-height: var(--header-h);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #222;
  transition: background 0.15s;
  min-height: 44px;
}
.primary-nav ol li a:hover { background: #1a1a1a; }

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

/* === CTA Buttons === */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0 1rem;
  height: 44px;
  min-width: 80px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  border: 2px solid var(--white);
}
.cta-signup {
  background: var(--white);
  color: var(--black);
}
.cta-signup:hover { opacity: 0.85; }
.cta-login {
  background: transparent;
  color: var(--white);
}
.cta-login:hover { background: rgba(255,255,255,0.08); }

/* Footer CTA buttons */
.site-footer .cta-signup {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.site-footer .cta-signup:hover { opacity: 0.8; }

/* === Page offset for fixed header === */
main, .site-footer { margin-top: var(--header-h); }
main { margin-top: var(--header-h); }

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--base)*6) 1rem calc(var(--base)*5);
  display: flex;
  justify-content: flex-end;
}

.hero-copy {
  max-width: 52%;
  text-align: right;
  color: var(--white);
}
.hero-h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

/* === Page Banner (non-home) === */
.page-banner {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--base)*5) 1rem calc(var(--base)*4);
}
.banner-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
.banner-copy {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-banner h1 { color: var(--white); }
.banner-desc {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin-bottom: 0;
}
.page-banner--inner { min-height: 20vh; }

/* === Layout: content + aside === */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--base)*5) 1rem;
}

.layout-content-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: calc(var(--base)*4);
  align-items: start;
}

/* === Body Copy === */
.body-copy {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.body-copy a { color: var(--black); font-weight: 500; text-decoration: underline; }
.body-copy h2 { margin-top: 2rem; margin-bottom: 0.25rem; }
.body-copy h2 + hr { margin-top: 0; margin-bottom: 1rem; }
.body-copy h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.body-copy table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.body-copy th { background: var(--black); color: var(--white); padding: 0.6rem 0.75rem; text-align: left; }
.body-copy td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--gray-200); }
.body-copy tr:nth-child(even) td { background: var(--gray-100); }
.body-copy ol, .body-copy ul { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.body-copy ul { list-style: disc; }
.body-copy li { margin-bottom: 0.4rem; }

/* Prose (privacy/legal pages) */
.prose { max-width: 72ch; }

/* === Article Layout === */
.article-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--base)*4) 1rem calc(var(--base)*3);
  border-bottom: 2px solid var(--black);
}
.article-header-section h1 { margin: 0.5rem 0; }

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb span[aria-current] { color: var(--black); font-weight: 500; }

.byline {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.5rem 0 1rem;
  font-family: var(--font-display);
}

.stage-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--black);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.stage-awareness { background: #222; }
.stage-consideration { background: #444; }
.stage-decision { background: #111; }

.article-hero { margin-top: 1rem; }
.article-hero-img { width: 100%; max-height: 360px; object-fit: cover; }

.article-meta-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: calc(var(--base)*2);
  margin-top: calc(var(--base)*2);
}

.card {
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 4px 4px 0 var(--black);
  transform: translate(-2px, -2px);
}

.card-body { padding: 1.25rem; }
.card-date { display: block; font-size: 0.75rem; color: var(--gray-600); margin-bottom: 0.4rem; font-family: var(--font-display); }
.card-title { font-size: 1rem; margin-bottom: 0.5rem; }
.card-title a { text-decoration: none; color: var(--black); font-weight: 600; }
.card-title a:hover { text-decoration: underline; }
.card-desc { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.card-link { font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--black); border-bottom: 2px solid var(--black); }
.card-link:hover { opacity: 0.65; }

/* === Topic Grid (home) === */
.topic-grid, .article-grid { margin-top: calc(var(--base)*4); }
.topic-grid h2, .article-grid h2 { margin-bottom: 0.25rem; }

/* === Child Blocks === */
.child-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--base)*2);
  margin-top: calc(var(--base)*2);
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--black);
  background: var(--white);
  text-decoration: none;
  min-width: 200px;
  flex: 1 1 200px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.child-block:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: 4px 4px 0 #555;
}
.child-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}
.child-block span {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.7;
}
.child-block:hover strong,
.child-block:hover span { color: var(--white); }

/* Topic strip (tag pages) */
.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--base)*2);
  margin-top: calc(var(--base)*3);
  margin-bottom: calc(var(--base)*4);
}

/* === Aside === */
.content-aside { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }

.aside-block {
  border: 1px solid var(--black);
  padding: 1.25rem;
  margin-bottom: calc(var(--base)*2);
}

.aside-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.aside-nav { margin-top: 0.75rem; }
.aside-nav li { border-bottom: 1px solid var(--gray-200); }
.aside-nav li:last-child { border-bottom: none; }
.aside-nav li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  min-height: 36px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.aside-nav li a:hover { text-decoration: underline; }

.rg-block { border-left: 3px solid var(--black); }
.rg-notice {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0;
}

/* === Author Section === */
.author-section {
  margin-top: calc(var(--base)*5);
  padding: calc(var(--base)*3);
  background: var(--gray-100);
  border-left: 4px solid var(--black);
}
.author-section h2 { margin-bottom: 0.25rem; }
.author-credentials {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--gray-600);
}
.author-bio { font-size: 0.9375rem; margin-bottom: 0; }

/* === Footer === */
.site-footer {
  margin-top: auto;
  background: var(--black);
  color: var(--white);
}

.footer-cta-block {
  border-bottom: 1px solid #222;
  padding: calc(var(--base)*5) 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-cta-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0;
}

.footer-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--base)*3) 1rem;
  border-bottom: 1px solid #222;
}
.footer-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.footer-nav ol li a {
  display: block;
  padding: 0.5rem 1rem 0.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.footer-nav ol li a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--base)*3) 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.trust-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.trust-links a:hover { color: var(--white); }
.footer-bottom-right { max-width: 360px; }
.rg-footer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 0;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .child-block { transition: none; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .layout-content-aside {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .header-rail {
    grid-template-columns: auto 1fr auto;
    gap: 0 0.5rem;
    padding: 0 0.75rem;
  }

  .primary-nav ol {
    gap: 0;
    font-size: 0.75rem;
  }
  .primary-nav ol li a {
    padding: 0 0.5rem;
    font-size: 0.75rem;
    height: 56px;
    line-height: 56px;
  }

  .hero-copy { max-width: 80%; }

  .layout-content-aside {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    border-top: 2px solid var(--black);
    padding-top: calc(var(--base)*3);
  }

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

  .footer-cta-block { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-copy { max-width: 100%; text-align: left; }
  .hero-inner { justify-content: flex-start; }
  .header-ctas .cta-login { display: none; }
  .primary-nav { display: none; }
  .header-rail { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 375px) {
  h1 { font-size: 1.5rem; }
  .hero-section { min-height: 38vh; }
}

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