@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;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-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: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-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.02em;
  white-space: nowrap;
}
.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);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  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;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--body); }

/* HERO */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline-soft);
}
.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);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--body);
  max-width: 580px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.hero-image-wrap {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 420px;
}
.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* ARTICLE CARDS */
.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(--radius-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: 20px 24px 24px; }
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}
.article-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 14px;
}
.article-card-link:hover { color: var(--primary-active); }

/* INFO STRIP */
.info-strip {
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.info-strip-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.info-strip-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* ARTICLE PAGE */
.article-hero {
  padding: 56px 0 0;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tag-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.article-date { font-size: 13px; color: var(--muted); }
.article-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 20px;
}
.article-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 40px;
}
.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}
.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 56px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding-bottom: 80px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.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 {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--body-strong); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--primary-active); }

.article-sidebar {}
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 10px 0;
  font-size: 14px;
  color: var(--body);
}
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li a { color: var(--ink); font-weight: 500; }
.sidebar-card li a:hover { color: var(--primary); }
.sidebar-card p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* CALLOUT BOX */
.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 { font-size: 15px; color: var(--body-strong); margin: 0; line-height: 1.6; }

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0 32px;
}
.data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline);
}
.data-table td {
  padding: 12px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}
.data-table tr:last-child td { border-bottom: none; }

/* PAGES (about, privacy, terms) */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline-soft); }
.page-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-subtitle { font-size: 16px; color: var(--body); max-width: 560px; }
.page-content { padding: 56px 0 80px; max-width: 780px; }
.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 14px;
}
.page-content h3 {
  font-size: 18px;
  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, .page-content ol {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 18px;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* CONTACT FORM */
.contact-section { padding: 80px 0; background: var(--surface-card); border-top: 1px solid var(--hairline); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-info p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 24px; }
.contact-detail { display: flex; flex-direction: column; gap: 10px; }
.contact-detail span { font-size: 14px; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-primary);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  height: 44px;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--primary-active); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: none;
}
.form-message.success {
  background: #edf7f2;
  color: var(--success);
  border: 1px solid #c1e6d9;
  display: block;
}
.form-message.error {
  background: #fef0f3;
  color: var(--error);
  border: 1px solid #f5c0cc;
  display: block;
}

/* FOOTER */
.site-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 .nav-logo { font-size: 16px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; color: var(--body); line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--body); transition: color 0.15s; }
.footer-col 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;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  width: calc(100% - 48px);
  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 a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
}
.btn-accept { background: var(--primary); color: var(--on-primary); }
.btn-accept:hover { background: var(--primary-active); }
.btn-reject { background: transparent; color: var(--muted-soft); border: 1px solid rgba(255,255,255,0.2); }
.btn-reject:hover { color: var(--canvas); }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* DISCLAIMER */
.disclaimer {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 32px 0;
}
.disclaimer p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-lead { font-size: 16px; }
  .hero-image-wrap img { height: 260px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .info-strip-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-title { font-size: 28px; }
  .page-title { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-banner { flex-direction: column; gap: 16px; }
  .cookie-actions { width: 100%; }
  .article-sidebar { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
