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

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

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

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

h2 > span,
h3 > span {
  display: inline;
}

p { margin-bottom: 1rem; }

a {
  color: #0057b8;
  text-decoration: underline;
}
a:hover { color: #ff5252; }

/* Body copy links distinct */
.prose-body a {
  color: #0057b8;
  text-decoration: underline;
  font-weight: 700;
}
.prose-body a:hover { color: #ff5252; }

/* ===========================
   LAYOUT WRAPPER
=========================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  white-space: nowrap;
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.site-nav ol {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
}

.site-nav ol li a {
  display: block;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.site-nav ol li a:hover {
  border-color: #000;
  background: #3bb1ff;
  box-shadow: 3px 3px 0 #000;
}

/* Header CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 3px solid #000;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: #000;
  transition: transform 0.2s, opacity 0.2s;
}

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

/* ===========================
   CTA BUTTONS
=========================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
  border-radius: 0;
}

.cta-signup {
  background: #3bb1ff;
  color: #000;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}
.cta-signup:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  color: #000;
}

.cta-login {
  background: #fff;
  color: #000;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}
.cta-login:hover {
  background: #ff5252;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  color: #000;
}

.cta-block {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

/* ===========================
   HERO (home)
=========================== */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: #3bb1ff;
  border-bottom: 3px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

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

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 24px 100px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #000;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 700;
  background: #ff5252;
  color: #000;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 0;
}

.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

/* ===========================
   PAGE BANNER (inner pages)
=========================== */
.page-banner {
  background: #3bb1ff;
  border-bottom: 3px solid #000;
  padding: 48px 24px 40px;
}

.page-banner--inner {
  background: #fff;
  border-bottom: 3px solid #000;
}

.page-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.page-banner h1 {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  display: inline-block;
  padding: 10px 20px;
}

.page-banner--inner h1 {
  background: #3bb1ff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  display: inline-block;
  padding: 10px 20px;
}

/* ===========================
   PAGE BODY (sidebar + main)
=========================== */
.page-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
  gap: 32px;
  width: 100%;
  flex: 1;
}

/* Sidebar to the LEFT */
.sidebar {
  flex: 0 0 240px;
  order: -1;
}

.sidebar-inner {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-inner h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  border-bottom: 3px solid #000;
  padding-bottom: 8px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid #000;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-nav li a:hover {
  background: #3bb1ff;
  color: #000;
}

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

/* ===========================
   PROSE SECTION
=========================== */
.prose-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.entry-hero {
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  overflow: hidden;
  margin-bottom: 0;
  max-height: 400px;
}

.entry-hero--empty {
  display: none;
}

.entry-hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-figure {
  display: none;
}

.entry-header {
  margin-bottom: 8px;
}

.entry-header h1 {
  margin-bottom: 10px;
}

.prose-body {
  max-width: 72ch;
}

.prose-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-left: 5px solid #3bb1ff;
  padding-left: 12px;
}

.prose-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-body ul,
.prose-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-body li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

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

.prose-body table th,
.prose-body table td {
  border: 2px solid #000;
  padding: 10px 12px;
  text-align: left;
}

.prose-body table th {
  background: #3bb1ff;
  font-weight: 700;
}

.prose-body table tr:nth-child(even) td {
  background: #f0f9ff;
}

/* ===========================
   BYLINE
=========================== */
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  border: 2px solid #000;
  background: #f9f9f9;
  padding: 8px 14px;
  box-shadow: 3px 3px 0 #000;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.byline-sep {
  color: #ff5252;
}

/* ===========================
   STAGE BADGE
=========================== */
.stage-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 2px solid #000;
  margin-bottom: 10px;
}

.stage-awareness { background: #3bb1ff; }
.stage-consideration { background: #ff5252; color: #fff; }
.stage-decision { background: #000; color: #fff; }

/* ===========================
   INLINE ASIDE (verdict box etc.)
=========================== */
.inline-aside {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 20px;
}

.inline-aside h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
}

.verdict-box {
  background: #3bb1ff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}

/* ===========================
   CHILD CARDS
=========================== */
.child-cards-section {
  margin-top: 40px;
}

.child-cards-section h2 {
  margin-bottom: 20px;
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
}

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

.card-list li article.card {
  background: #3bb1ff;
  border-radius: 28px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-list li article.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

.card-list li article.card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.card-list li article.card h3 a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.card-list li article.card h3 a:hover {
  text-decoration: underline;
  color: #ff5252;
}

.card-list li article.card p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.card-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  opacity: 0.7;
}

/* Stagger animation */
@media (prefers-reduced-motion: no-preference) {
  .card-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.4s forwards;
  }
  .card-list li:nth-child(1) { animation-delay: 0.05s; }
  .card-list li:nth-child(2) { animation-delay: 0.1s; }
  .card-list li:nth-child(3) { animation-delay: 0.15s; }
  .card-list li:nth-child(4) { animation-delay: 0.2s; }
  .card-list li:nth-child(5) { animation-delay: 0.25s; }
  .card-list li:nth-child(6) { animation-delay: 0.3s; }
  .card-list li:nth-child(7) { animation-delay: 0.35s; }
  .card-list li:nth-child(8) { animation-delay: 0.4s; }
  .card-list li:nth-child(9) { animation-delay: 0.45s; }
  @keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
}

.breadcrumb ol li::after {
  content: '›';
  margin-left: 6px;
  color: #000;
}
.breadcrumb ol li:last-child::after { content: ''; }

.breadcrumb ol li a {
  color: #000;
  text-decoration: underline;
}
.breadcrumb ol li a:hover { color: #ff5252; }

/* ===========================
   AUTHOR SECTION
=========================== */
.author-section {
  margin-top: 40px;
  border-top: 3px solid #000;
  padding-top: 32px;
}

.author-section h2 {
  margin-bottom: 20px;
}

.author-card {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 24px;
  max-width: 640px;
}

.author-details h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.author-credentials {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ff5252;
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid #000;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.65;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #000;
  color: #fff;
  border-top: 3px solid #000;
}

.footer-cta-block {
  background: #3bb1ff;
  border-bottom: 3px solid #000;
  padding: 40px 24px;
  text-align: center;
}

.footer-cta-headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.footer-brand-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-blurb {
  color: #ccc;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 8px;
}

.footer-links ol {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.footer-links ol li {
  border-bottom: 1px solid #333;
}

.footer-links ol li a {
  display: block;
  padding: 9px 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links ol li a:hover {
  color: #3bb1ff;
  text-decoration: underline;
}

.trust-links {
  font-size: 0.8rem;
  color: #aaa;
}

.trust-links a {
  color: #aaa;
  text-decoration: underline;
}
.trust-links a:hover { color: #3bb1ff; }

.footer-bottom {
  background: #111;
  border-top: 2px solid #333;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rg-notice {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.5;
  margin: 0;
}

.copyright {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* ===========================
   PARALLAX (subtle)
=========================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    background-attachment: fixed;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid #000;
    z-index: 99;
    box-shadow: 0 6px 0 #000;
    padding: 12px 16px;
  }

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

  .site-nav ol {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav ol li a {
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    white-space: normal;
    padding: 14px 8px;
    min-height: 44px;
  }

  .header-ctas {
    margin-left: auto;
  }

  .header-ctas .cta {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .page-body {
    flex-direction: column;
    padding: 20px 12px;
    gap: 20px;
  }

  .sidebar {
    flex: none;
    width: 100%;
    order: 1;
  }

  .sidebar-inner {
    position: static;
  }

  .main-content {
    order: 0;
  }

  .hero-section {
    min-height: 55vh;
    background-attachment: scroll;
  }

  .hero-copy {
    padding: 40px 16px 80px;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

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

  .prose-body {
    max-width: 100%;
  }

  .page-banner {
    padding: 28px 16px 24px;
  }

  .breadcrumb {
    padding: 8px 12px;
  }
}

/* ===========================
   VERY SMALL ≤400px
=========================== */
@media (max-width: 400px) {
  .hero-copy h1 {
    font-size: 1.4rem;
  }
  .cta {
    font-size: 0.78rem;
    padding: 9px 10px;
  }
}

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