@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;
  --rounded-pill: 9999px;
}

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;
}

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-color: 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-wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-wordmark span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-menu 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;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero-band {
  padding: 80px 0;
  background-color: var(--canvas);
}

.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image-wrap {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}

.hero-image-wrap img {
  width: 100%;
  height: 360px;
  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: 12px;
}

/* ─── SECTION HEADINGS ─────────────────────────────────────── */
.display-lg {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
}

.display-md {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
}

.display-sm {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
}

.title-md {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ─── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-alt {
  padding: 80px 0;
  background-color: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  margin-bottom: 48px;
}

/* ─── CARDS ────────────────────────────────────────────────── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}

.feature-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-sm);
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* ─── ARTICLE CARDS ────────────────────────────────────────── */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
}

.article-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

/* ─── FILTER TABLE ─────────────────────────────────────────── */
.filter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.filter-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas-soft);
}

.filter-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}

.filter-table tr:last-child td {
  border-bottom: none;
}

.filter-table .td-name {
  font-weight: 600;
  color: var(--ink);
}

.table-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

/* ─── CONTACT FORM ─────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: var(--canvas);
}

.form-wrap {
  max-width: 560px;
}

.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: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea {
  height: auto;
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
}

.form-msg.success {
  background: #e8f5f0;
  color: var(--semantic-success);
  border: 1px solid #b8ddd0;
  display: block;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ─── COOKIE BANNER ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 200;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: #d0cfc8;
  flex: 1;
  min-width: 260px;
}

.cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
}

.cookie-buttons {
  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: var(--rounded-md);
  border: none;
  cursor: pointer;
  height: 36px;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid #4a4940;
  cursor: pointer;
  height: 36px;
}

/* ─── ARTICLE PAGE ─────────────────────────────────────────── */
.article-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 680px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 64px 0;
  align-items: start;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--body-strong);
  font-weight: 600;
}

.article-img {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: 32px 0;
}

.article-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-img figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
}

.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-card ul li a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}

.sidebar-card ul li a:hover {
  color: var(--primary);
}

.sidebar-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.callout-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin: 24px 0;
}

.callout-box p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

/* ─── ABOUT / PAGES ────────────────────────────────────────── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-body {
  padding: 64px 0;
  max-width: 720px;
}

.page-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 12px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 16px;
}

.page-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

/* ─── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* ─── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .sep {
  color: var(--hairline-strong);
}

/* ─── BACK LINK ────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--ink);
}

/* ─── DISCLAIMER ───────────────────────────────────────────── */
.disclaimer-bar {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-band .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-h1 {
    font-size: 42px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .hero-h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
  .display-lg {
    font-size: 28px;
  }
  .article-h1 {
    font-size: 30px;
  }
  .page-h1 {
    font-size: 30px;
  }
  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .section,
  .section-alt {
    padding: 56px 0;
  }
  .hero-band {
    padding: 48px 0;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-img img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-h1 {
    font-size: 28px;
  }
}
