:root {
  --bg: #0B0F14;
  --surface: #121821;
  --surface-alt: #17202C;
  --text: #F1F5F9;
  --body: #CBD5E1;
  --muted: #94A3B8;
  --line: #212B38;
  --accent: #38BDF8;
  --accent-hover: #7DD3FC;
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-sub: 1.375rem;
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.68;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #0B0F14; padding: 10px 16px; font-weight: 700; z-index: 50;
}
.skip-link:focus { left: 16px; top: 16px; }

.sl-wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; }

.sl-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sl-head-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sl-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.sl-nav { display: flex; align-items: center; gap: 26px; }
.sl-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sl-nav a:hover, .sl-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 8px;
}
.meta-cat { color: var(--accent); font-weight: 600; }
.meta-cat:hover { color: var(--accent-hover); text-decoration: underline; }

.sl-split {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 36px;
  align-items: start;
}

.sl-hero { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.sl-hero-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 18px; background: var(--surface); }
.sl-hero-media img { width: 100%; height: 100%; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.sl-hero-media:hover img { transform: scale(1.02); }
.sl-hero-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.sl-hero-title a:hover { color: var(--accent); }
.sl-deck { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }

.sl-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.sl-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.sl-card-img img { width: 100%; height: 100%; }
.sl-card h3, .sl-strip-copy h2, .sl-row-copy h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--text-sub);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sl-card h3 a:hover, .sl-strip-copy h2 a:hover, .sl-row-copy h3 a:hover, .sl-rail-item h3 a:hover { color: var(--accent); }

.sl-feature-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  padding: 20px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.sl-strip-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.sl-strip-img img { width: 100%; height: 100%; }

.sl-rail {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.sl-rail-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--text-sub);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 6px;
}
.sl-rail-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sl-rail-item h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--text-body);
  line-height: 1.35;
  font-weight: 600;
}

.sl-lower { padding-top: 20px; padding-bottom: 24px; }
.sl-sec-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--text-sub);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.sl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
.sl-row-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sl-row-card:hover { border-color: var(--accent); }
.sl-row-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.sl-row-img img { width: 100%; height: 100%; }

.sl-archive-top { padding-top: 38px; }
.sl-page-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.sl-cat-desc { font-size: var(--text-body); color: var(--muted); max-width: 65ch; margin-bottom: 26px; }

.sl-article { max-width: 820px; padding-top: 44px; padding-bottom: 28px; }
.sl-art-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 26px; }
.sl-art-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.sl-art-deck { font-size: var(--text-body); color: var(--muted); max-width: 65ch; }
.article-body { max-width: 65ch; }
.article-body p { font-size: var(--text-body); line-height: 1.8; margin-bottom: 18px; color: var(--body); }
.article-body h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: var(--text-sub);
  line-height: 1.25;
  margin: 32px 0 14px;
}
.article-lead-img { width: 100%; aspect-ratio: 3 / 2; margin: 24px 0 28px; border: 1px solid var(--line); }

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 36px;
}
.pn-link { display: flex; flex-direction: column; gap: 6px; }
.pn-next { text-align: right; }
.pn-dir { font-size: var(--text-sm); color: var(--accent); font-weight: 600; }
.pn-title { font-family: var(--font-display); color: var(--text); font-size: var(--text-body); font-weight: 600; line-height: 1.35; }
.pn-link:hover .pn-title { color: var(--accent); }

.pager { display: flex; justify-content: center; gap: 8px; padding: 34px 0 18px; }
.pager a, .pager .current {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .current { background: var(--accent); border-color: var(--accent); color: #0B0F14; }

.doc-shell { max-width: 780px; margin: 0 auto; padding: 44px 24px 36px; }
.doc-shell h1 { font-family: var(--font-display); color: var(--text); font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: 24px; }
.doc-section { margin-bottom: 24px; }
.doc-section h2 { font-family: var(--font-display); color: var(--text); font-size: var(--text-sub); margin-bottom: 8px; }
.doc-shell p { font-size: var(--text-body); line-height: 1.78; color: var(--body); max-width: 65ch; margin-bottom: 14px; }
.doc-shell p a { color: var(--accent); text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin-top: 18px; }
.contact-form label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
  padding: 12px 24px;
  background: var(--accent);
  color: #0B0F14;
  border: none;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-form button:hover { background: var(--accent-hover); }
.form-status { display: none; font-size: var(--text-sm); padding: 12px 14px; background: var(--surface-alt); border-left: 3px solid var(--accent); color: var(--text); }
.form-status.show { display: block; }
.form-status a { color: var(--accent); text-decoration: underline; }

.sl-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; padding: 38px 0; }
.sl-foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.sl-foot-tag { font-size: var(--text-sm); color: var(--muted); max-width: 44ch; margin-top: 12px; }
.sl-foot-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.sl-foot-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: var(--text-sm); color: var(--body); }
.sl-foot-nav a:hover { color: var(--accent); }
.sl-copy { font-size: var(--text-sm); color: var(--muted); }

@media (max-width: 980px) {
  .sl-split { grid-template-columns: 1fr; gap: 32px; }
  .sl-rail { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .sl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sl-wrap { padding: 0 16px; }
  .sl-head-inner { height: auto; padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .sl-nav { gap: 8px 16px; flex-wrap: wrap; }
  .sl-nav a, .sl-foot-nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .sl-pair, .sl-feature-strip, .sl-row-card, .prev-next { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .sl-foot-right { align-items: flex-start; }
}
main[id], .article-body h2[id], .article-sources h2[id] { scroll-margin-top: 84px; }
.article-tools {
  max-width: 65ch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.article-stats { font-size: var(--text-sm); color: var(--muted); font-weight: 500; }
.copy-link-btn {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.copy-link-btn:hover { border-color: var(--accent); color: var(--accent); }
.article-toc {
  margin: 22px 0 26px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.toc-label { font-size: var(--text-sm); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.article-toc ol { padding-left: 20px; display: grid; gap: 4px; }
.article-toc a { font-size: var(--text-sm); color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; }
.article-sources {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-sources h2 { margin-top: 0; font-size: 1.125rem; color: var(--text); }
.article-sources ul { list-style: disc; padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }
.article-sources a { font-size: var(--text-sm); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-sources a:hover { color: var(--accent-hover); }
.pager a, .pager .current { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
