@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #030303;
  --ink-soft: #1a1a1a;
  --graphite: #404040;
  --slate: #676f7b;
  --slate-soft: #727a85;
  --mute: #6b7280;
  --stone: #939393;
  --ash: #999999;
  --hairline: #e7eaf0;
  --hairline-soft: #c9ccd1;
  --surface-cool: #d0d4d4;
  --canvas: #ffffff;
  --canvas-warm: #fefefe;
  --scrim: #1a1a1a;
  --footer-bg: #030303;
  --primary: #000000;
  --on-primary: #ffffff;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--canvas); font-weight: 400; line-height: 1.5; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav { background: var(--canvas); height: 64px; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; }
.site-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-nav .wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px; border-radius: 4px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; border-radius: 9999px; padding: 10px 20px !important; font-size: 14px; font-weight: 600; }
.nav-cta:hover { opacity: 0.88; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); z-index: 99; padding: 24px; flex-direction: column; gap: 8px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); }

/* LAYOUT: sidebar + content */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2px; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.sidebar-links a { font-size: 14px; color: var(--graphite); padding: 6px 8px; border-radius: 4px; }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--hairline); color: var(--ink); text-decoration: none; }
.main-content { min-width: 0; }

/* HERO */
.hero { background: var(--scrim); color: var(--on-primary); border-radius: 16px; padding: 96px 48px; margin: 32px 0; }
.hero-eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.35px; text-transform: uppercase; opacity: 0.7; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1; letter-spacing: -1.2px; margin-bottom: 20px; }
.hero-sub { font-size: 20px; font-weight: 400; line-height: 1.5; opacity: 0.85; max-width: 600px; margin-bottom: 32px; }
.btn-primary-dark { display: inline-block; background: var(--on-primary); color: var(--primary); font-size: 14px; font-weight: 600; padding: 10px 24px; border-radius: 9999px; height: 40px; line-height: 20px; }
.btn-primary-dark:hover { opacity: 0.88; text-decoration: none; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 8px; padding: 24px; }
.card-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.2px; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.card h3 { font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--graphite); line-height: 1.6; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.card-link:hover { text-decoration: none; opacity: 0.7; }

/* SECTION HEADINGS */
.section-eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.35px; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 36px); font-weight: 400; line-height: 1; letter-spacing: -0.9px; margin-bottom: 16px; }
.section-lead { font-size: 16px; color: var(--graphite); line-height: 1.6; max-width: 680px; }
.section-divider { border: none; border-top: 1px solid var(--hairline); margin: 64px 0; }

/* ARTICLE */
.article-header { margin-bottom: 48px; }
.article-header .eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.35px; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.article-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.article-header .lead { font-size: 18px; color: var(--graphite); line-height: 1.6; }
.article-img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin: 32px 0; }
.article-body h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.5px; margin: 40px 0 16px; }
.article-body h3 { font-size: 18px; font-weight: 500; margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--graphite); line-height: 1.7; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 20px 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 16px; color: var(--graphite); line-height: 1.7; margin-bottom: 8px; }

/* DISCLAIMER BOX */
.disclaimer-box { background: var(--hairline); border-left: 3px solid var(--graphite); padding: 16px 20px; border-radius: 8px; margin: 24px 0; font-size: 13px; color: var(--graphite); line-height: 1.5; }

/* TOC */
.toc { background: var(--canvas-warm); border: 1px solid var(--hairline); border-radius: 8px; padding: 20px 24px; margin-bottom: 40px; }
.toc-title { font-size: 13px; font-weight: 600; letter-spacing: 0.2px; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.toc ol { list-style: decimal; padding-left: 20px; }
.toc li { font-size: 14px; color: var(--graphite); margin-bottom: 6px; }
.toc a { color: var(--graphite); border-bottom: 1px solid var(--hairline-soft); }
.toc a:hover { color: var(--ink); text-decoration: none; }

/* BREADCRUMB */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 24px; font-size: 13px; color: var(--slate); }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--stone); }

/* RELATED */
.related-block { border-top: 1px solid var(--hairline); padding-top: 40px; margin-top: 60px; }
.related-block h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.35px; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card { padding: 16px; border: 1px solid var(--hairline); border-radius: 8px; }
.related-card .tag { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2px; color: var(--slate); margin-bottom: 6px; }
.related-card h4 { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.4; }
.related-card h4 a:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--footer-bg); color: var(--on-primary); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--ash); line-height: 1.6; max-width: 280px; }
.footer-col-label { font-size: 10px; font-weight: 500; letter-spacing: 0.2px; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--on-primary); }
.footer-links a:hover { opacity: 0.7; text-decoration: none; }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; }
.footer-disclaimers { font-size: 12px; color: var(--ash); line-height: 1.6; margin-bottom: 16px; max-width: 900px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--stone); }
.footer-legal a { color: var(--stone); }
.footer-legal a:hover { color: var(--on-primary); text-decoration: none; }

/* FORMS */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; background: var(--canvas); color: var(--ink); font-size: 16px; font-family: inherit; padding: 12px; border: none; border-bottom: 1px solid var(--hairline-soft); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--ink); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit { background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; padding: 10px 28px; border: none; border-radius: 9999px; cursor: pointer; height: 40px; font-family: inherit; }
.btn-submit:hover { opacity: 0.88; }
.form-msg { display: none; font-size: 14px; color: var(--graphite); padding: 12px; border: 1px solid var(--hairline); border-radius: 8px; margin-top: 16px; }

/* COOKIE BANNER */
.cookie-banner { display: none; position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 600px; background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: 16px; padding: 20px 24px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.cookie-banner p { font-size: 14px; color: var(--graphite); line-height: 1.5; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 12px; }
.btn-accept { background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; padding: 8px 20px; border: none; border-radius: 9999px; cursor: pointer; font-family: inherit; }
.btn-reject { background: transparent; color: var(--graphite); font-size: 14px; font-weight: 600; padding: 8px 20px; border: 1px solid var(--hairline-soft); border-radius: 9999px; cursor: pointer; font-family: inherit; }
.btn-accept:hover, .btn-reject:hover { opacity: 0.8; }

/* ABOUT / STATIC */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); margin-bottom: 48px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: -1px; }
.page-content h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.5px; margin: 32px 0 12px; }
.page-content p, .page-content li { font-size: 15px; color: var(--graphite); line-height: 1.7; margin-bottom: 14px; }
.page-content ul { padding-left: 20px; list-style: disc; }
.page-content a { color: var(--ink); border-bottom: 1px solid var(--hairline); }
.page-content a:hover { text-decoration: none; border-bottom-color: var(--ink); }

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 24px; }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
