:root {
  --bg: #F4EFE6;
  --bg-2: #EBE4D6;
  --ink: #111110;
  --ink-2: #2A2926;
  --muted: #6B6760;
  --line: rgba(17,17,16,0.14);
  --accent: #E89940;
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* NAV — dark banner like the main site */
.l-nav {
  background: #0E0E0D;
  color: #F4EFE6;
  border-bottom: 1px solid rgba(244,239,230,0.14);
  position: sticky;
  top: 0;
  z-index: 50;
}
.l-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.l-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.l-brand-scc {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: #F4EFE6;
}
.l-brand-scc .dot { color: var(--accent); }
.l-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.l-back:hover { color: #F4EFE6; }
.l-back .arrow { transition: transform 0.2s ease; }
.l-back:hover .arrow { transform: translateX(-3px); }

/* HEADER */
.l-header {
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.l-eyebrow {
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.l-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.l-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.l-header h1 em { font-style: italic; }
.l-updated {
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* TOC */
.l-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 32px;
}
.l-toc a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.l-toc a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* BODY */
.l-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px);
}
.l-lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0 0 56px;
}
.l-section {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.l-section .l-num {
  font-family: var(--mono);
  color: var(--muted);
  padding-top: 10px;
  font-size: 12px;
}
.l-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.l-section h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 28px 0 8px;
}
.l-section p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 64ch;
}
.l-section ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  max-width: 64ch;
}
.l-section li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.l-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.l-section a.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.l-section strong { color: var(--ink); font-weight: 600; }

/* Callout box for important disclaimers */
.l-callout {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 24px 26px;
  margin: 8px 0 16px;
  max-width: 64ch;
}
.l-callout p:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
  .l-section { grid-template-columns: 1fr; gap: 4px; }
  .l-section .l-num { padding-top: 0; margin-bottom: 4px; }
}

/* FOOTER */
.l-footer {
  background: #0E0E0D;
  color: #F4EFE6;
  padding: 48px 0;
  font-size: 13px;
}
.l-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  color: rgba(244,239,230,0.6);
  font-family: var(--mono);
  font-size: 12px;
}
.l-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.l-footer-links a {
  text-decoration: none;
  color: rgba(244,239,230,0.6);
  transition: color 0.2s ease;
}
.l-footer-links a:hover { color: #F4EFE6; }
.l-footer-links a.current { color: var(--accent); }
.l-footer-note {
  max-width: 1320px;
  margin: 28px auto 0;
  padding: 24px clamp(20px, 4vw, 56px) 0;
  border-top: 1px solid rgba(244,239,230,0.14);
  color: rgba(244,239,230,0.42);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
}
