@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;
  --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 {
  background-color: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

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);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav .logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav .logo span.accent { 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);
  line-height: 1.4;
}

.nav-links a:hover, .nav-links a.active { 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;
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  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;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero .subhead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}

.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* SECTIONS */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-label {
  display: inline-flex;
  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;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.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-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-card-image img { transform: scale(1.03); }

.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: 8px;
  display: block;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}

.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

/* FEATURE CARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.article-header .article-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: block; }
.article-header h1 { font-size: 42px; font-weight: 400; line-height: 1.15; letter-spacing: -1px; color: var(--ink); max-width: 800px; margin-bottom: 16px; }
.article-header .article-meta { font-size: 13px; color: var(--muted); }

.article-hero-image { margin: 40px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); }
.article-hero-image img { width: 100%; max-height: 480px; object-fit: cover; }

.article-body { max-width: 740px; }
.article-body p { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 20px; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; line-height: 1.25; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; line-height: 1.3; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 6px; }
.article-body blockquote { border-left: 3px solid var(--hairline-strong); padding: 12px 20px; margin: 28px 0; background: var(--surface-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body blockquote p { margin-bottom: 0; font-style: italic; color: var(--muted); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: var(--primary-active); }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 60px; padding: 48px 0 80px; align-items: start; }

.article-sidebar {}
.sidebar-widget { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.sidebar-widget-title { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-link-list { list-style: none; }
.sidebar-link-list li { padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-link-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-link-list a { font-size: 14px; color: var(--ink); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.form-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 40px; max-width: 600px; }
.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(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  height: 44px;
  transition: border-color 0.15s;
  outline: none;
}
.form-group textarea { 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 {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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: #f0faf5;
  border: 1px solid #b7e2d1;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--success);
  font-size: 14px;
  margin-top: 16px;
}

/* ABOUT PAGE */
.page-header { padding: 60px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-header h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; }

.page-content { padding: 48px 0 80px; max-width: 740px; }
.page-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 36px 0 14px; line-height: 1.25; }
.page-content h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.page-content p { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 18px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 18px; }
.page-content li { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 6px; }

/* 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: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 14px; line-height: 1.5; color: var(--body); max-width: 260px; }

.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

.cookie-banner p { font-size: 14px; line-height: 1.5; color: #d4d3cc; margin-bottom: 16px; }
.cookie-banner p a { color: var(--canvas); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: #d4d3cc;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.4); }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 8px; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted-soft); }

/* DISCLAIMER */
.disclaimer { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px 20px; margin-top: 40px; }
.disclaimer p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.6px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 16px; }
  .articles-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-header h1 { font-size: 28px; }
  .form-card { padding: 24px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .page-header h1 { font-size: 28px; }
}
