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

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

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

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

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

a {
  color: inherit;
}

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

/* ── Navigation ── */

.site-nav {
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 200;
}

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

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.4px;
  flex-shrink: 0;
}

.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);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
  padding: 0;
}

/* ── Hero ── */

.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--hairline-soft);
}

.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 48px;
}

.hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}

/* ── Sections ── */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

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

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

.section-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  max-width: 680px;
}

.section-body p {
  margin-bottom: 16px;
}

/* ── Article cards ── */

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

.article-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  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;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

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

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

.article-card-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Article page ── */

.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.breadcrumb .sep {
  margin: 0 8px;
}

.article-page {
  padding: 56px 0 80px;
}

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

.article-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

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

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

.article-meta {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.article-meta time {
  font-weight: 500;
  color: var(--body);
}

.article-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin: 32px 0;
}

.article-image-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.33px;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

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

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 7px;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
}

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

.callout {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.article-sources {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-soft);
}

.article-sources h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-sources ul {
  list-style: none;
  padding: 0;
}

.article-sources li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.article-sources a {
  color: var(--body);
  text-decoration: underline;
}

/* ── Related articles ── */

.related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.related-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.11px;
  margin-bottom: 28px;
}

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

/* ── Contact form ── */

.contact-section {
  padding: 80px 0;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

.contact-inner {
  max-width: 560px;
}

.contact-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  margin-bottom: 12px;
}

.contact-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--ink);
}

.form-control::placeholder {
  color: var(--muted-soft);
}

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

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-msg {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.form-msg.show-success {
  display: block;
  background: #e6f5ee;
  color: var(--success);
  border: 1px solid #b6dcc9;
}

.form-msg.show-loading {
  display: block;
  background: var(--canvas-soft);
  color: var(--muted);
  border: 1px solid var(--hairline);
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  z-index: 500;
  box-shadow: 0 4px 20px rgba(38, 37, 30, 0.18);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 14px;
  color: #ccc9c0;
  line-height: 1.55;
  margin-bottom: 16px;
}

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

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
}

.cookie-btn-accept:hover {
  background: var(--primary-active);
}

.cookie-btn-reject {
  background: transparent;
  color: #ccc9c0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--canvas);
}

/* ── 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;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

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

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 280px;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--muted-soft);
  max-width: 480px;
  text-align: right;
}

/* ── Static pages ── */

.page-content {
  padding: 56px 0 80px;
}

.page-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-title {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.page-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.72;
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 7px;
}

.page-body a {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-disclaimer {
    text-align: left;
    max-width: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .article-title {
    font-size: 28px;
  }

  .page-title {
    font-size: 28px;
  }

  .contact-title {
    font-size: 26px;
  }
}
