:root {
  --primary: #111111;
  --primary-active: #242424;
  --ink: #111111;
  --body: #374151;
  --muted: #6b7280;
  --muted-soft: #898989;
  --hairline: #e5e7eb;
  --hairline-soft: #f3f4f6;
  --canvas: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-card: #f5f5f5;
  --surface-dark: #101010;
  --surface-dark-elevated: #1a1a1a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #a1a1aa;
  --brand-accent: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
}

.brand-logo svg { flex-shrink: 0; }

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1;
}

.brand-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  display: none;
}

@media (min-width: 640px) { .brand-tagline { display: block; } }

.primary-nav { display: none; }

@media (min-width: 768px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
  }
  .primary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
  }
  .primary-nav a:hover, .primary-nav a.active {
    color: var(--ink);
    background: var(--surface-soft);
  }
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .burger-btn { display: none; } }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--canvas);
  z-index: 99;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; }

.mobile-nav a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-section {
  background: var(--canvas);
  padding: var(--spacing-section) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
  background: var(--surface-card);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
}

.hero-summary {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
  margin-bottom: var(--spacing-xl);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.hero-image-wrap {
  margin-top: var(--spacing-xxl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: var(--spacing-section) 0;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
  line-height: 1.15;
}

.section-intro {
  font-size: 16px;
  color: var(--body);
  max-width: 640px;
  margin-bottom: var(--spacing-xxl);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.article-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: box-shadow 0.15s;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-category {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

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

.card-meta {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--hairline);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--spacing-sm);
}

.read-more:hover { text-decoration: underline; }

.main-article-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.main-article-card-image {
  background: var(--surface-card);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.main-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-article-card-body {
  padding: var(--spacing-xl);
}

.main-article-card-body .card-title {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: var(--spacing-md);
}

.main-article-card-body .card-excerpt {
  font-size: 16px;
  margin-bottom: var(--spacing-lg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { background: var(--surface-soft); }

.divider { border: none; border-top: 1px solid var(--hairline-soft); }

.section-alt { background: var(--surface-soft); }

.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding: 64px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
  border-bottom: 1px solid #1f1f1f;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: var(--spacing-sm);
}

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

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--on-dark);
  margin-bottom: var(--spacing-md);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--spacing-xs); }

.footer-links a {
  font-size: 14px;
  color: var(--on-dark-soft);
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 13px;
  color: var(--on-dark-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--hairline); }

.page-header {
  padding: var(--spacing-xxl) 0;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: var(--spacing-xxl);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.page-subtitle {
  font-size: 18px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.6;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--spacing-md);
}

.prose ul, .prose ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--spacing-xs);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--spacing-xxl);
  font-size: 13px;
  color: var(--muted);
}

.article-meta-bar span { display: flex; align-items: center; gap: 4px; }

.article-summary-box {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  border-left: 3px solid var(--ink);
}

.article-summary-box p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}

.toc {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

.toc ol { padding-left: var(--spacing-lg); }

.toc li {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 6px;
}

.toc a { color: var(--ink); }
.toc a:hover { text-decoration: underline; }

.key-context-box {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xxl) 0;
}

.key-context-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.not-covered-box {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xxl) 0;
}

.not-covered-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}

.related-articles {
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-xxl);
  margin-top: var(--spacing-xxl);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.sidebar-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

.form-group { margin-bottom: var(--spacing-md); }

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

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

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

textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-success {
  display: none;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  font-size: 16px;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  font-size: 12px;
  color: var(--muted-soft);
  padding: var(--spacing-xs) 0;
  line-height: 1.4;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
  z-index: 200;
  padding: var(--spacing-lg);
  border-top: 1px solid #2a2a2a;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  justify-content: space-between;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a { color: var(--on-dark); text-decoration: underline; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }

.cookie-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}

.cookie-btn-accept { background: var(--on-dark); color: var(--ink); }
.cookie-btn-reject { background: transparent; color: var(--on-dark-soft); border: 1px solid #333; }
.cookie-btn-settings { background: transparent; color: var(--on-dark-soft); text-decoration: underline; padding-left: 0; padding-right: 0; }

@media (min-width: 768px) {
  .cookie-banner { padding: var(--spacing-md) var(--spacing-lg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--muted);
}

.text-muted { color: var(--muted); }
.text-sm { font-size: 14px; }

.page-section { padding: var(--spacing-section) 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}

@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

.highlight-card {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxl);
}

.highlight-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

.highlight-card p {
  font-size: 15px;
  color: var(--on-dark-soft);
  line-height: 1.6;
}
