@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;
  --success: #1f8a65;
  --error: #cf2d56;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.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-links a.active { color: var(--ink); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* MOBILE NAV */
.nav-mobile {
  display: none;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: 80px 0;
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  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: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.hero-image-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-image-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--surface-card);
  line-height: 1.4;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--canvas-soft);
  padding: 80px 0;
}

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

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
  margin-bottom: 48px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--hairline-soft);
}

.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.card-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-hero {
  padding: 64px 0 0;
  background: var(--canvas);
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-tag {
  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;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
}

.article-hero h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 40px;
}

.article-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 4px;
}

.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-cover-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 40px;
}

.article-body {
  padding: 0 0 80px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 20px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li { list-style: decimal; }

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--primary-active); }

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-strong);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}

.data-table tr:last-child td { border-bottom: none; }

.sources-list {
  margin: 0;
  padding: 0;
}

.sources-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  list-style: none;
}

.sources-list li:last-child { border-bottom: none; }

.sources-list a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* INLINE IMAGE IN ARTICLE */
.article-inline-img {
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.article-inline-img img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.article-inline-img figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--surface-card);
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* TOPICS BAND */
.topics-band {
  background: var(--canvas);
  padding: 80px 0;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}

.topic-item {
  background: var(--surface-card);
  padding: 32px;
}

.topic-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.topic-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* CONTACT FORM */
.form-section {
  background: var(--canvas-soft);
  padding: 80px 0;
}

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.form-wrap .section-title { text-align: center; }
.form-wrap .section-lead { text-align: center; margin-left: auto; margin-right: auto; }

.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 40px;
  margin-top: 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: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  height: 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-group textarea {
  height: auto;
  min-height: 120px;
  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(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--success);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--body);
  margin-top: 20px;
  text-align: center;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand h2 span { color: var(--primary); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  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);
}

.footer-bottom-links a:hover { color: var(--ink); }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb span {
  font-size: 13px;
  color: var(--muted-soft);
}

.breadcrumb-current {
  font-size: 13px;
  color: var(--body);
}

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
}

/* ARTICLE UPDATED */
.article-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* COOKIE BANNER */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--canvas-soft);
  flex: 1;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .section, .section-alt, .topics-band, .form-section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-hero h1 { font-size: 30px; }
  .article-cover img { height: 240px; }
  .contact-form { padding: 24px; }
  .page-header h1 { font-size: 30px; }
}

@media (max-width: 639px) {
  .container { padding: 0 16px; }
  .hero-image-wrap img { height: 240px; }
}
