:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --card: #ffffff;
  --ink: #26251e;
  --body-color: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --surface-strong: #e6e5e0;
  --success: #1f8a65;
  --error: #cf2d56;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body-color);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

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);
  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: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  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-color);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg { display: block; }

/* ===================== HERO ===================== */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  max-width: 760px;
}

.hero-label {
  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 12px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--body-color);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

/* ===================== SECTION ===================== */
.section {
  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;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 48px;
}

.section-title-sm {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.325px;
  margin-bottom: 20px;
}

/* ===================== ARTICLE CARDS ===================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  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;
  display: block;
}

.article-card-body {
  padding: 24px;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-link:hover { color: var(--primary-active); }

/* ===================== INTRO BAND ===================== */
.intro-band {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 80px 0;
}

.intro-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-band h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
}

.intro-band p {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.6;
  margin-top: 16px;
}

/* ===================== ARTICLE PAGE ===================== */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.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 12px;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
}

.article-h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.article-lede {
  font-size: 18px;
  color: var(--body-color);
  line-height: 1.6;
  font-weight: 400;
}

.article-body {
  padding: 48px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.325px;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.7;
  margin-bottom: 20px;
  letter-spacing: 0.08px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 20px;
  list-style: disc;
}

.article-content li {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--primary); }

.article-featured-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}

.img-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; margin: 0; }
.sidebar-card li { margin-bottom: 12px; }

.sidebar-card li a {
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.4;
}

.sidebar-card li a:hover { color: var(--ink); }

.sidebar-divider {
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 16px;
}

/* ===================== PAGES ===================== */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
  max-width: 800px;
}

.page-h1 {
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.page-lede {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.6;
}

.page-body {
  padding: 48px 0 80px;
  max-width: 800px;
}

.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.325px;
  margin: 40px 0 16px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 28px 0 12px;
}

.page-body p {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-body ul, .page-body ol {
  margin: 0 0 20px 20px;
  list-style: disc;
}

.page-body li {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================== CONTACT FORM ===================== */
.contact-section {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  padding: 80px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--body-color);
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
}

.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(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-soft);
}

.btn-submit {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.btn-submit:hover { background: #3d3c34; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-msg.success {
  background: #e8f5f0;
  color: var(--success);
  border: 1px solid #b2ddd0;
  display: block;
}

.form-msg.error {
  background: #fde8ed;
  color: var(--error);
  border: 1px solid #f4b5c2;
  display: block;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--body-color);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--muted-soft);
  max-width: 600px;
  line-height: 1.5;
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 20px 24px;
  z-index: 999;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc9be;
  margin-bottom: 16px;
}

.cookie-banner p a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: #ccc9be;
  border: 1px solid #4a4940;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-cookie-reject:hover { border-color: #807d72; color: var(--canvas); }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }
.breadcrumb li::after { content: '/'; color: var(--muted-soft); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li:last-child { color: var(--ink); }

/* ===================== DIVIDERS ===================== */
.hairline { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 16px; }
  .section-title { font-size: 28px; }
  .article-h1, .page-h1 { font-size: 30px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .intro-band-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { bottom: 16px; left: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .article-h1, .page-h1 { font-size: 26px; }
  .contact-form-card { padding: 20px; }
}
