:root {
  --ink: #16233d;
  --ink-deep: #0d1626;
  --brass: #b3823f;
  --brass-light: #d9ae6e;
  --brass-dark: #8e6528;
  --brass-tint: #f1e4cd;
  --cream: #f6f4ef;
  --white: #ffffff;
  --text: #26313c;
  --text-soft: #5c6672;
  --border: #e3ddd0;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 { font-family: 'IBM Plex Serif', Georgia, serif; }

/* NAV (matches index.html) */
nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--brass-dark); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word { font-family: 'IBM Plex Serif', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.2px; }
.logo-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--brass-dark); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(22,35,61,0.05); }
.nav-cta { background: var(--brass) !important; color: var(--white) !important; padding: 9px 20px !important; border-radius: var(--radius) !important; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--brass-dark) !important; }

/* ARTICLE */
.article-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 56px;
}
.article-hero .container { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--brass-light); }
.article-cat {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--brass-light);
  background: rgba(179,130,63,0.18);
  border: 1px solid rgba(217,174,110,0.4);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-meta { font-size: 13px; color: rgba(255,255,255,0.5); }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  background: var(--white);
}
.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 22px;
  color: var(--text);
}
.article-body li { margin-bottom: 8px; font-size: 16px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--brass-dark); text-decoration: underline; }
.article-body a:hover { color: var(--ink); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-body th {
  background: var(--brass-tint);
  color: var(--brass-dark);
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.article-footnote {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.6;
}

.article-cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 64px;
  background: var(--white);
}
.article-cta-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.article-cta-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.article-cta-box p { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.btn-primary {
  display: inline-block;
  background: var(--brass);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--brass-dark); }

footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.5);
  padding: 44px 0;
}
footer .container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .logo-word { color: rgba(255,255,255,0.85); }
footer .logo-kicker { color: var(--brass-light); }
footer .logo-icon { color: var(--brass-light); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 13px; text-align: center; margin-top: 24px; color: rgba(255,255,255,0.35); }

@media (max-width: 600px) {
  .article-hero h1 { font-size: 26px; }
  .article-body { padding: 40px 20px 20px; }
  .article-body h2 { font-size: 19px; }
  .nav-links a:not(.nav-cta):not(:last-child) { display: none; }
}
