@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --on-primary: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
}

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

body {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* TOP NAV */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-img-wrap {
  margin-top: 48px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* SECTION LABELS */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ARTICLE GRID */
.articles-section { padding: 80px 0; }
.articles-section h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 40px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 24px; }
.article-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* INFO BAND */
.info-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
}
.info-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.info-band-item h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 12px;
}
.info-band-item p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
}

/* TOPICS SECTION */
.topics-section { padding: 80px 0; }
.topics-section h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 40px;
}
.topics-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  background: var(--hairline);
}
.topic-item {
  background: var(--surface-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-item-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.topic-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.topic-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* CONTACT FORM */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline); }
.contact-section h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-section > .container > p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 40px;
  max-width: 520px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  height: 44px;
}
.form-group textarea { height: auto; min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group input.error,
.form-group textarea.error { border-color: var(--semantic-error); }
.form-error-msg {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 5px;
  display: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  background: #f0faf6;
  border: 1px solid #b6e0d0;
  border-radius: var(--rounded-md);
  padding: 16px;
  font-size: 15px;
  color: var(--semantic-success);
  display: none;
  margin-top: 16px;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.11px;
}
.contact-info p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-item {
  font-size: 14px;
  color: var(--body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-link-item strong { color: var(--ink); font-weight: 600; min-width: 64px; }

/* FOOTER */
footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--ink); }
.footer-logo { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.footer-logo span { color: var(--primary); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  max-width: 580px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
.cookie-banner p { font-size: 14px; line-height: 1.5; flex: 1; }
.cookie-banner p a { color: var(--canvas); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* ARTICLE PAGE */
.article-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-hero .breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.article-hero .breadcrumbs a { color: var(--muted); }
.article-hero .breadcrumbs a:hover { color: var(--ink); }
.article-hero h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  max-width: 760px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-hero-meta { font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.article-layout {
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.article-featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 36px;
}
.article-body { max-width: 720px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 36px 0 14px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body li { font-size: 16px; color: var(--body); line-height: 1.6; }
.article-body strong { color: var(--body-strong); font-weight: 600; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary); }
.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.info-box p { margin-bottom: 0; font-size: 15px; }
.info-box-title { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-sources { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.article-sources h4 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
.article-sources ul { margin: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-sources a { font-size: 14px; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.article-sources a:hover { color: var(--ink); }
.article-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.sidebar-toc { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-toc a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-toc a:hover { color: var(--ink); }
.sidebar-related-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-related-links a { font-size: 14px; color: var(--body); line-height: 1.4; border-bottom: 1px solid var(--hairline-soft); padding-bottom: 10px; display: block; }
.sidebar-related-links li:last-child a { border-bottom: none; padding-bottom: 0; }
.sidebar-related-links a:hover { color: var(--ink); }

/* PAGE (about/privacy/terms) */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 14px;
}
.page-hero p { font-size: 16px; color: var(--body); max-width: 540px; }
.page-content { padding: 48px 0 80px; }
.page-content-inner { max-width: 760px; }
.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 36px 0 14px;
}
.page-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 18px; }
.page-content ul { margin: 0 0 18px 24px; display: flex; flex-direction: column; gap: 8px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.6; }
.page-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-updated { font-size: 13px; color: var(--muted); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); }

/* DISCLAIMER BAND */
.disclaimer-band {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.disclaimer-band p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .info-band-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-img-wrap img { height: 240px; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-band-grid { grid-template-columns: 1fr; }
  .topics-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .articles-section h2, .topics-section h2 { font-size: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-hamburger { display: flex; }
  .top-nav .container { position: relative; }
  .article-hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-btns { width: 100%; }
}
@media (min-width: 1280px) {
  .container { max-width: 1200px; }
}
