:root {
  --bg: #0b0a09;
  --bg-soft: #131110;
  --bg-elevated: #1a1715;
  --paper: #f5f0e8;
  --ink-soft: #c7bfb2;
  --ink-muted: #8a8175;
  --line: #2a2520;
  --line-strong: #3d362e;
  --accent: #9d2b2b;
  --accent-bright: #c64049;
  --max: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Geist, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  background: rgba(11, 10, 9, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav .nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
}

.breadcrumbs {
  padding-block: 22px;
  color: var(--ink-muted);
  font-size: 13px;
}
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: " /"; margin-inline-start: 8px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }

.hero {
  padding: clamp(64px, 10vw, 118px) 0 clamp(58px, 8vw, 92px);
  background:
    radial-gradient(circle at 82% 5%, rgba(198, 64, 73, .18), transparent 32%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
.hero h1,
.article-head h1 {
  max-width: 1050px;
  margin: 20px 0 24px;
  font-size: clamp(44px, 7.5vw, 86px);
  line-height: .98;
  letter-spacing: -.047em;
}
.hero__lead,
.article-head__lead {
  max-width: 790px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 22px);
}
.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 650;
}
.button--primary { border-color: var(--accent); background: var(--accent); }
.button:hover { border-color: var(--paper); }

.section { padding: clamp(64px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section--soft { background: var(--bg-soft); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: end; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}
.card__type { color: var(--accent-bright); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.card h2,
.card h3 { margin: 18px 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--ink-soft); }
.card__link { margin-top: auto; padding-top: 28px; text-decoration: none; font-weight: 650; }
.card__link:hover { color: var(--accent-bright); }
.card--featured { grid-column: 1 / -1; min-height: 300px; background: linear-gradient(135deg, #301414, #171210 64%); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.principle { padding: 28px; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle b { display: block; margin-bottom: 10px; color: var(--accent-bright); font-size: 13px; }
.principle p { margin: 0; color: var(--ink-soft); }

.article-head { padding: clamp(44px, 7vw, 86px) 0 58px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-muted); font-size: 13px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(220px, 1fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
  padding-block: clamp(54px, 8vw, 96px);
}
.article-body { min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 2.2em 0 .7em; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.article-body h3 { margin: 1.8em 0 .55em; font-size: clamp(23px, 3vw, 30px); line-height: 1.15; }
.article-body p,
.article-body li { color: #ddd5ca; font-size: clamp(17px, 1.8vw, 19px); }
.article-body p { margin: 0 0 1.25em; }
.article-body ul,
.article-body ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.article-body li { margin-bottom: .55em; }
.article-body a { color: #f3a3a9; text-underline-offset: 3px; }
.article-body blockquote,
.callout {
  margin: 2.2em 0;
  padding: 24px 26px;
  border-left: 4px solid var(--accent-bright);
  background: var(--bg-elevated);
}
.article-body blockquote p:last-child,
.callout p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.article-body th,
.article-body td { padding: 13px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-elevated); }
.article-aside { position: sticky; top: 94px; }
.toc,
.author-card { padding: 24px; border: 1px solid var(--line); background: var(--bg-soft); }
.toc h2,
.author-card h2 { margin: 0 0 14px; font-size: 17px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.toc li { margin-bottom: 9px; }
.toc a { text-decoration: none; }
.author-card { margin-top: 14px; }
.author-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }

.article-cta {
  margin-top: 58px;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(140deg, #4a1818, #171210 68%);
  border: 1px solid rgba(245, 240, 232, .14);
}
.article-cta h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); }
.article-cta p { color: var(--ink-soft); }

.site-footer { padding: 46px 0 30px; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--paper); font-size: 22px; }
.footer-grid h3 { margin: 0 0 12px; color: var(--paper); font-size: 14px; }
.footer-grid p { margin: 0; max-width: 500px; }
.footer-grid a { display: block; margin-bottom: 8px; text-decoration: none; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }

.cookie {
  display: none;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 960px;
  margin: auto;
  padding: 18px;
  background: #171411;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.cookie.show { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.cookie p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie button { padding: 10px 13px; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); cursor: pointer; }
.cookie button.primary { background: var(--accent); border-color: var(--accent); }
.cookie-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

@media (max-width: 900px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .section-head,
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .cards { grid-template-columns: 1fr; }
  .card--featured { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie.show { align-items: stretch; flex-direction: column; }
  .cookie-actions { flex-wrap: wrap; }
  .article-body table { display: block; overflow-x: auto; }
}
