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

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

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #000000;
  --c-gray-100: #f5f5f5;
  --c-gray-200: #e8e8e8;
  --c-gray-300: #cccccc;
  --c-gray-500: #777777;
  --c-gray-700: #333333;
  --c-border: #000000;
  --radius-card: 28px;
  --unit: 8px;
  --font-main: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-w: 1200px;
  --nav-h: 112px;
  --transition-fast: 0.15s ease;
  --transition-mid: 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* =========================================
   TYPOGRAPHY SCALE
   ========================================= */
h1 {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  color: var(--c-white);
  border-bottom: 2px solid var(--c-black);
}

.header-brand-row {
  display: flex;
  align-items: center;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 1.5);
  text-decoration: none;
  min-height: 40px;
  padding: 4px 0;
}

.brand-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 calc(var(--unit) * 3);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 44px;
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-link:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.page-main {
  min-height: calc(100vh - var(--nav-h) - 80px);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 calc(var(--unit) * 3);
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--unit) * 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-gray-500);
  padding: calc(var(--unit) * 2) 0 calc(var(--unit) * 1.5);
  text-transform: uppercase;
}

.breadcrumb-row a {
  color: var(--c-gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-row a:hover {
  color: var(--c-black);
}

.breadcrumb-row span[aria-hidden] {
  opacity: 0.4;
}

/* =========================================
   EYEBROW / SMALL LABELS
   ========================================= */
.section-eyebrow,
.hero-eyebrow,
.card-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-bottom: calc(var(--unit) * 1);
  padding-left: 12px;
  border-left: 3px solid var(--c-black);
}

/* =========================================
   HERO — HOME ONLY
   ========================================= */
.hero-section {
  background: var(--c-black);
  color: var(--c-white);
  min-height: 70vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-article {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: calc(var(--unit) * 5) calc(var(--unit) * 3) calc(var(--unit) * 8);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-slash-decor {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

.hero-text-block {
  max-width: 800px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.55);
  margin-bottom: calc(var(--unit) * 2);
}

.hero-h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--c-white);
  margin-bottom: calc(var(--unit) * 3);
  max-width: 14ch;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 55ch;
  margin-bottom: calc(var(--unit) * 4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 1.5);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
  background: var(--c-white);
  color: var(--c-black);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--c-white);
  min-height: 48px;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--c-black);
  color: var(--c-white);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
  background: transparent;
  color: var(--c-black);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--c-black);
  min-height: 48px;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  margin-right: calc(var(--unit) * 1);
  margin-bottom: calc(var(--unit) * 1);
}

.btn-ghost:hover {
  background: var(--c-black);
  color: var(--c-white);
  text-decoration: none;
}

.hero-section .btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  border-color: var(--c-white);
}

/* =========================================
   SECTION LAYOUT BLOCKS
   ========================================= */
.content-section,
.children-section,
.topics-section,
.article-header-section,
.article-hero-section,
.article-body-section,
.related-section,
.back-section,
.about-intro-section,
.about-body-section,
.about-cta-section,
.privacy-header-section,
.privacy-body-section,
.privacy-nav-section,
.nav-section,
.page-hero-section {
  padding: calc(var(--unit) * 6) 0;
  border-bottom: 1px solid var(--c-gray-200);
}

.content-section:last-child,
.children-section:last-child,
.back-section:last-child,
.privacy-nav-section:last-child,
.about-cta-section:last-child,
.nav-section:last-child {
  border-bottom: none;
}

.content-article,
.children-article,
.topics-article,
.article-header-article,
.article-hero-article,
.article-body-article,
.related-article,
.back-article,
.about-intro-article,
.about-body-article,
.about-cta-article,
.privacy-header-article,
.privacy-body-article,
.privacy-nav-article,
.nav-article,
.page-hero-article {
  display: block;
}

.section-h2 {
  margin-top: calc(var(--unit) * 1);
  margin-bottom: calc(var(--unit) * 4);
}

/* =========================================
   PAGE META (dates)
   ========================================= */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 2);
  margin: calc(var(--unit) * 1.5) 0 calc(var(--unit) * 2);
}

.page-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-gray-500);
  background: var(--c-gray-100);
  padding: 4px 10px;
  text-transform: uppercase;
}

.page-date--mod {
  background: var(--c-gray-200);
}

.page-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--c-gray-700);
  max-width: 60ch;
  margin-top: calc(var(--unit) * 2);
}

/* =========================================
   CHILD CARDS
   ========================================= */
.child-list {
  display: grid;
  gap: calc(var(--unit) * 2);
}

.child-list--grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.child-list--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.child-card {
  border: 2px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: calc(var(--unit) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 1.5);
  background: var(--c-white);
  transition: transform var(--transition-mid), background var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.child-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-mid);
}

.child-card:hover {
  transform: translateY(-3px);
  background: var(--c-gray-100);
}

.child-card:hover::before {
  transform: scaleX(1);
}

.child-card--sm {
  border-radius: 16px;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 2.5);
}

.child-card--faq {
  border-radius: var(--radius-card);
}

.child-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.child-card h3 a {
  text-decoration: none;
  color: var(--c-black);
  transition: color var(--transition-fast);
}

.child-card h3 a:hover {
  color: var(--c-gray-700);
  text-decoration: underline;
}

.child-card p {
  font-size: 0.875rem;
  color: var(--c-gray-500);
  line-height: 1.6;
  flex: 1;
}

.card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-black);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid var(--c-black);
  align-self: flex-start;
  transition: padding-left var(--transition-fast);
}

.card-cta:hover {
  padding-left: 6px;
  text-decoration: none;
}

/* =========================================
   PAGE CONTENT (injected HTML)
   ========================================= */
.page-content {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: calc(var(--unit) * 5) 0 calc(var(--unit) * 2);
  padding-bottom: calc(var(--unit) * 1);
  border-bottom: 2px solid var(--c-black);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: calc(var(--unit) * 3.5) 0 calc(var(--unit) * 1.5);
}

.page-content h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: calc(var(--unit) * 3) 0 calc(var(--unit) * 1);
}

.page-content p {
  margin-bottom: calc(var(--unit) * 2.5);
}

.page-content a {
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.page-content a:hover {
  background: var(--c-black);
  color: var(--c-white);
  text-decoration: none;
  padding: 0 2px;
}

.page-content ul,
.page-content ol {
  padding-left: calc(var(--unit) * 3);
  margin-bottom: calc(var(--unit) * 2.5);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: calc(var(--unit) * 1);
  line-height: 1.75;
}

.page-content strong {
  font-weight: 700;
}

.page-content em {
  font-style: italic;
}

.page-content blockquote {
  border-left: 4px solid var(--c-black);
  margin: calc(var(--unit) * 3) 0;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  background: var(--c-gray-100);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: calc(var(--unit) * 3) 0;
  font-size: 0.9rem;
}

.page-content table th {
  background: var(--c-black);
  color: var(--c-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  text-align: left;
}

.page-content table td {
  border: 1px solid var(--c-gray-200);
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  vertical-align: top;
}

.page-content table tr:nth-child(even) td {
  background: var(--c-gray-100);
}

.page-content code {
  font-family: 'Courier New', monospace;
  background: var(--c-gray-100);
  padding: 2px 6px;
  font-size: 0.88em;
  border: 1px solid var(--c-gray-200);
}

.page-content pre {
  background: var(--c-black);
  color: var(--c-white);
  padding: calc(var(--unit) * 2.5);
  overflow-x: auto;
  margin: calc(var(--unit) * 3) 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.page-content time {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* article-specific content width */
.article-content {
  max-width: 68ch;
}

.privacy-content {
  max-width: 72ch;
}

/* =========================================
   ARTICLE HERO IMAGE
   ========================================= */
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid var(--c-black);
}

/* =========================================
   FAQ PAGE SPECIFIC
   ========================================= */
.page-type-faq .page-hero-section {
  background: var(--c-black);
  color: var(--c-white);
  padding: calc(var(--unit) * 7) 0 calc(var(--unit) * 6);
}

.page-type-faq .page-hero-article h1 {
  color: var(--c-white);
  margin-top: calc(var(--unit) * 2);
}

.page-type-faq .page-hero-article .page-lead {
  color: rgba(255, 255, 255, 0.75);
}

.page-type-faq .page-hero-article .breadcrumb-row {
  color: rgba(255, 255, 255, 0.5);
}

.page-type-faq .page-hero-article .breadcrumb-row a {
  color: rgba(255, 255, 255, 0.5);
}

.page-type-faq .page-hero-article .breadcrumb-row a:hover {
  color: var(--c-white);
}

.page-type-faq .page-hero-article .section-eyebrow {
  color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.55);
}

.page-type-faq .page-hero-article .page-date {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.page-type-about .about-intro-section {
  background: var(--c-black);
  color: var(--c-white);
  padding: calc(var(--unit) * 7) 0 calc(var(--unit) * 6);
}

.page-type-about .about-intro-article h1 {
  color: var(--c-white);
  margin-top: calc(var(--unit) * 2);
}

.page-type-about .about-intro-article .page-lead {
  color: rgba(255, 255, 255, 0.75);
}

.page-type-about .about-intro-article .breadcrumb-row {
  color: rgba(255, 255, 255, 0.5);
}

.page-type-about .about-intro-article .breadcrumb-row a {
  color: rgba(255, 255, 255, 0.5);
}

.page-type-about .about-intro-article .breadcrumb-row a:hover {
  color: var(--c-white);
}

.page-type-about .about-intro-article .section-eyebrow {
  color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.55);
}

/* =========================================
   ARTICLE PAGE
   ========================================= */
.page-type-article .article-header-section {
  background: var(--c-gray-100);
  border-bottom: 2px solid var(--c-black);
}

.page-type-article .article-header-article h1 {
  margin-top: calc(var(--unit) * 2);
}

/* =========================================
   PRIVACY PAGE
   ========================================= */
.page-type-privacy .privacy-header-section {
  background: var(--c-gray-100);
  border-bottom: 2px solid var(--c-black);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: calc(var(--unit) * 5) calc(var(--unit) * 3);
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 4);
  max-width: 100%;
  margin-top: 0;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

.footer-col dt {
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: calc(var(--unit) * 1.5);
  padding-bottom: calc(var(--unit) * 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col dd {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: calc(var(--unit) * 0.75);
  color: rgba(255, 255, 255, 0.7);
}

.footer-col dd a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.footer-col dd a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.footer-col dd small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   PARALLAX / MICRO-INTERACTIONS
   ========================================= */
@media (prefers-reduced-motion: no-preference) {
  .child-card {
    will-change: transform;
  }

  .hero-h1 {
    animation: fadeInUp 0.6s ease both;
  }

  .hero-desc {
    animation: fadeInUp 0.6s 0.1s ease both;
  }

  .hero-actions {
    animation: fadeInUp 0.6s 0.2s ease both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */
@media (max-width: 900px) {
  .child-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .hero-h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .site-footer {
    gap: calc(var(--unit) * 3);
  }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 600px) {
  :root {
    --nav-h: 96px;
  }

  .header-brand-row {
    padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  }

  .site-nav {
    padding: 0 calc(var(--unit) * 1.5);
  }

  .nav-link {
    padding: calc(var(--unit) * 1.5) calc(var(--unit) * 1.5);
    font-size: 0.7rem;
  }

  .wrap {
    padding: 0 calc(var(--unit) * 2);
  }

  .hero-article {
    padding: calc(var(--unit) * 4) calc(var(--unit) * 2) calc(var(--unit) * 8);
    min-height: 70vh;
    justify-content: center;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .child-list--grid,
  .child-list--compact {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .content-section,
  .children-section,
  .topics-section,
  .article-header-section,
  .article-hero-section,
  .article-body-section,
  .related-section,
  .back-section,
  .about-intro-section,
  .about-body-section,
  .about-cta-section,
  .privacy-header-section,
  .privacy-body-section,
  .privacy-nav-section,
  .nav-section,
  .page-hero-section {
    padding: calc(var(--unit) * 4) 0;
  }

  .site-footer {
    flex-direction: column;
    gap: calc(var(--unit) * 3);
    padding: calc(var(--unit) * 4) calc(var(--unit) * 2);
  }

  .footer-col {
    min-width: 0;
  }

  .page-content {
    max-width: 100%;
  }

  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .back-section .back-article {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1.5);
  }

  .hero-slash-decor {
    height: 50px;
  }

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