@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --error: #c0392b;
  --success: #27ae60;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ──────────── TYPOGRAPHY ──────────── */
.display-xl {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2px;
}
.display-lg {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
}
.display-md {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.headline {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.5px;
}
.card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.subhead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.40;
  letter-spacing: -0.2px;
}
.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.50;
  letter-spacing: -0.1px;
}
.body { font-size: 16px; line-height: 1.50; }
.body-sm { font-size: 14px; line-height: 1.50; }
.caption { font-size: 12px; line-height: 1.40; color: var(--ink-subtle); }
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.30;
  color: var(--ink-muted);
  text-transform: none;
}

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.20;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-primary {
  background-color: var(--ink);
  color: #ffffff;
}
.btn-secondary {
  background-color: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-tertiary {
  background-color: transparent;
  color: var(--ink);
}

/* ──────────── TOP NAV ──────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.15s ease;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); text-decoration: none; }

/* ──────────── HERO ──────────── */
.hero {
  padding: 80px 0 96px;
  background-color: var(--canvas);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-eyebrow {
  margin-bottom: 20px;
}
.hero-heading {
  margin-bottom: 24px;
}
.hero-subhead {
  color: var(--ink-muted);
  margin-bottom: 0;
}
.hero-image-card {
  background-color: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ──────────── SECTIONS ──────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background-color: var(--surface-2); }

.section-header { margin-bottom: 48px; }
.section-header .eyebrow { margin-bottom: 12px; }

/* ──────────── ARTICLE CARDS GRID ──────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.article-card:hover { border-color: var(--ink-subtle); }
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-eyebrow {
  margin-bottom: 8px;
}
.article-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 12px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 12px;
  color: var(--ink-subtle);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.article-card a.card-link {
  display: block;
  height: 100%;
}
.article-card a.card-link:hover { text-decoration: none; }

/* ──────────── FEATURE INFO SECTION ──────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
}
.feature-card-icon {
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-card-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ──────────── CONTACT FORM ──────────── */
.contact-section { padding: 96px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.form-card {
  background-color: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.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-color: var(--surface-1);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 44px;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  background-color: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.form-btn:hover { opacity: 0.85; }
.form-btn:disabled { opacity: 0.55; cursor: default; }
.form-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}
.form-message.success {
  display: block;
  background-color: #eafaf1;
  color: var(--success);
  border: 1px solid #a9dfbf;
}
.form-message.error {
  display: block;
  background-color: #fdf3f2;
  color: var(--error);
  border: 1px solid #f1948a;
}

/* ──────────── ARTICLE PAGE ──────────── */
.article-hero {
  padding: 64px 0 0;
}
.article-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.article-hero .eyebrow { margin-bottom: 16px; }
.article-hero h1 { margin-bottom: 20px; }
.article-hero .article-meta {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-featured-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  margin-top: 0;
}

.article-body {
  padding: 64px 0 96px;
}
.article-body-inner {
  max-width: 720px;
  margin: 0 auto;
}
.article-body-inner h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
}
.article-body-inner h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}
.article-body-inner p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}
.article-body-inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body-inner ul li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 8px;
}
.article-body-inner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body-inner a:hover { opacity: 0.7; }

.article-inline-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
}
.article-inline-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.img-caption {
  font-size: 13px;
  color: var(--ink-subtle);
  text-align: center;
  margin-top: 8px;
}

.info-box {
  background-color: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}
.info-box-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.info-box p {
  font-size: 15px !important;
  color: var(--ink-muted) !important;
  margin-bottom: 8px !important;
}
.info-box p:last-child { margin-bottom: 0 !important; }

.article-sources {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  margin-top: 48px;
}
.article-sources h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}
.article-sources ul {
  list-style: disc;
  padding-left: 24px;
}
.article-sources ul li {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.article-sources a {
  color: var(--ink-muted);
}

.related-articles { padding: 64px 0; background-color: var(--canvas); }
.related-articles h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 32px;
}

/* ──────────── PAGE CONTENT (about, privacy, terms) ──────────── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero-inner { max-width: 720px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--ink-muted); font-size: 17px; line-height: 1.6; }

.page-body { padding: 64px 0 96px; }
.page-body-inner { max-width: 720px; }
.page-body-inner h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-top: 48px;
  margin-bottom: 14px;
}
.page-body-inner h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 10px;
}
.page-body-inner p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-body-inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-body-inner ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.page-updated {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* ──────────── FOOTER ──────────── */
.site-footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s ease;
}
.footer-col ul li a:hover {
  color: var(--ink);
  text-decoration: none;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* ──────────── COOKIE BANNER ──────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background-color: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.cookie-banner.visible { display: block; }
.cookie-banner p {
  font-size: 14px;
  line-height: 1.55;
  color: #e0ddd9;
  margin-bottom: 20px;
}
.cookie-banner p a {
  color: #ffffff;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-accept {
  background-color: #ffffff;
  color: var(--ink);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.cookie-accept:hover { opacity: 0.85; }
.cookie-reject {
  background-color: transparent;
  color: #d0cdc8;
  border: 1px solid #444;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cookie-reject:hover { border-color: #888; color: #ffffff; }

/* ──────────── DISCLAIMER ──────────── */
.disclaimer {
  background-color: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 48px 0 0;
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
}

/* ──────────── BREADCRUMB ──────────── */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-subtle);
}
.breadcrumb-inner a { color: var(--ink-subtle); }
.breadcrumb-inner a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb-sep { color: var(--ink-tertiary); }

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 72px; }
  .hero-text { max-width: 100%; }
  .hero-image-card img { height: 260px; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-featured-img { height: 280px; }
  .article-inline-img img { height: 220px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }
  .form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .display-xl { font-size: 32px; letter-spacing: -1px; }
  .display-lg { font-size: 28px; letter-spacing: -0.8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
