:root {
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-dark: #0b2550;
  --bg-section: #f3f0ea;
  --ink: #0f1a30;
  --ink-dim: #4a5568;
  --ink-faint: #8a94a8;
  --rule: #e2dcd0;
  --rule-strong: #c7bfac;
  --brand: #0b3d8f;
  --brand-dark: #072766;
  --brand-light: #2d5fb8;
  --accent: #0b3d8f;
  --accent-light: #d9c9a8;
  --meta: #8b7d66;
  --display: 'Newsreader', 'Times New Roman', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
}

.top-strip {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.top-strip a {
  color: var(--ink-faint);
  text-decoration: none;
}
.top-strip a:hover { color: var(--brand); }

header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}
.logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.cta {
  background: var(--brand);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--brand-dark); }

@media (max-width: 820px) {
  .nav-links li:not(:last-child) { display: none; }
}

.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 0.5rem; color: var(--rule-strong); }

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}
.page-hero .lead {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 60ch;
}
.page-hero .lead strong { color: var(--ink); font-weight: 600; }
.page-hero .lead a { color: var(--brand); }

.content-section {
  padding: 4rem 0 6rem;
}

/* Legacy entry cards */
.legacy-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.legacy-entry:first-of-type { padding-top: 1.5rem; }
.legacy-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.legacy-entry h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.status-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  background: var(--bg-section);
  color: var(--ink-faint);
  border: 1px solid var(--rule);
}
.legacy-entry-desc {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72ch;
  margin-bottom: 1.5rem;
}
.legacy-entry-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.legacy-entry-meta > div {
  font-size: 0.9rem;
  color: var(--ink);
}
.meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}
.legacy-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.legacy-link:hover { border-bottom-color: var(--brand); }

.archive-note {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--bg-section);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
}
.archive-note p {
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}
.archive-note strong { color: var(--ink); }
.archive-note a { color: var(--brand); }

/* Product detail pages */
.product-detail h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.05;
}
.product-detail h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.product-detail p {
  color: var(--ink-dim);
  margin-bottom: 1rem;
  line-height: 1.7;
  max-width: 72ch;
}
.product-detail ul {
  color: var(--ink-dim);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 72ch;
}
.product-detail li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.product-detail strong { color: var(--ink); font-weight: 600; }

.eol-banner {
  background: #f3ebd9;
  border: 1px solid #d9c9a8;
  border-left: 4px solid var(--meta);
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}
.eol-banner p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  max-width: none;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.1rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 1rem;
}
