:root {
  --canvas: #f5f1ec;
  --surface: #ffffff;
  --surface-2: #ebe7e1;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --hairline: #d3cec6;
  --hairline-soft: #ebe7e1;
  --accent: #ff5600;
  --semantic-error: #c41c1c;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-w: 1280px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  flex-direction: column;
  gap: 5px;
}

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
}

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

.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-nav a:hover { background: var(--surface-2); }

/* ─── HERO ─── */
.hero {
  background: var(--canvas);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -1.4px;
  margin-bottom: 20px;
  max-width: 740px;
}

.hero-summary {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-subtle);
  flex-wrap: wrap;
}

.hero-meta span { display: flex; align-items: center; gap: 6px; }

.hero-image-wrap {
  margin-top: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

/* ─── SECTION ─── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--ink-muted); text-decoration: none; }

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

.card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

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

.card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--hairline-soft);
}

.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: -24px -24px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ─── ARTICLE PAGE ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-header { margin-bottom: 40px; }

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}

.article-summary {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 24px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-subtle);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}

.article-byline strong { color: var(--ink-muted); font-weight: 500; }

.article-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.article-hero-img img { width: 100%; height: 380px; object-fit: cover; }

.article-body { font-size: 16px; line-height: 1.75; color: var(--ink); }

.article-body h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 3px solid var(--hairline);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--ink-muted);
  font-style: italic;
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-box h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.toc-box ol {
  margin: 0;
  padding-left: 20px;
}

.toc-box li {
  font-size: 14px;
  margin-bottom: 6px;
}

.toc-box a { color: var(--ink-muted); }
.toc-box a:hover { color: var(--ink); }

.key-context {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

.key-context h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.key-context p { font-size: 15px; color: var(--ink-muted); margin-bottom: 0; }

.not-covered {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
}

.not-covered h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.not-covered ul { margin-left: 20px; }
.not-covered li { font-size: 14px; color: var(--ink-muted); margin-bottom: 6px; }

/* ─── SIDEBAR ─── */
.article-sidebar { position: sticky; top: 84px; }

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-block h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.sidebar-article {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-article a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  text-decoration: none;
  display: block;
}

.sidebar-article a:hover { color: var(--ink-muted); }

.sidebar-article .meta {
  font-size: 11px;
  color: var(--ink-tertiary);
  margin-top: 4px;
}

/* ─── BREADCRUMBS ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-subtle);
  padding: 16px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--hairline); }

/* ─── STATIC PAGES ─── */
.page-header {
  background: var(--canvas);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.page-content { max-width: 760px; padding: 56px 0; }

.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
}

.page-content p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  margin: 0 0 18px 20px;
}

.page-content li {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-content a { color: var(--ink); text-decoration: underline; }

/* ─── CONTACT FORM ─── */
.contact-form { max-width: 560px; margin-top: 40px; }

.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 select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--ink);
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-muted);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}

.btn:hover { background: #222; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--ink);
  margin-top: 16px;
}

.form-message.show { display: block; }

.field-error {
  font-size: 13px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.field-error.show { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { grid-column: span 1; }

.footer-brand .logo-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  margin-top: 8px;
}

.footer-links h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-subtle);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-handle {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.cookie-banner.hidden { display: none; }

.cookie-banner p {
  font-size: 13px;
  color: var(--ink-muted);
  flex: 1;
  min-width: 200px;
}

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

.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-cookie-accept {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 36px;
}

.btn-cookie-accept:hover { background: #222; }

.btn-cookie-reject {
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  min-height: 36px;
}

.btn-cookie-reject:hover { border-color: var(--ink-muted); color: var(--ink); }

.btn-cookie-settings {
  background: transparent;
  color: var(--ink-subtle);
  font-size: 13px;
  font-family: var(--font);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: underline;
  min-height: 36px;
}

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

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

.gallery-caption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-subtle);
  background: var(--surface);
  line-height: 1.5;
}

/* ─── EDITORIAL SUMMARY STRIP ─── */
.editorial-strip {
  background: var(--ink);
  color: #fff;
  padding: 48px 0;
  border-radius: 0;
}

.editorial-strip h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.editorial-strip p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
}

/* ─── RELATED ARTICLES ─── */
.related-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hairline); }

.related-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ink);
}

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.related-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--ink-muted); text-decoration: none; }

.related-card .cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
}

.related-card .title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.related-card .meta {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* ─── COVERAGE PAGE ─── */
.coverage-intro { padding: 56px 0 40px; }
.coverage-list { display: flex; flex-direction: column; gap: 24px; padding-bottom: 72px; }

.coverage-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.coverage-item:hover { border-color: var(--ink-muted); }

.coverage-item-img img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }

.coverage-item-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }

.coverage-item .cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
}

.coverage-item .title {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.coverage-item .excerpt { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

.coverage-item .meta { font-size: 12px; color: var(--ink-tertiary); margin-top: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  body.nav-open { overflow: hidden; }

  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .coverage-item { grid-template-columns: 1fr; }
  .coverage-item-img { max-height: 180px; overflow: hidden; }
  .coverage-item-body { padding: 16px; }
  .editorial-strip { padding: 36px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-image-wrap img { height: 240px; }
  .article-hero-img img { height: 220px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
