:root {
  --ink: #14222C;
  --ink-2: #1C2E3A;
  --paper: #F1EEE4;
  --paper-2: #E8E4D6;
  --charcoal: #2A3540;
  --steel: #8FA0AB;
  --steel-dim: #5E6E78;
  --brass: #479999;
  --brass-dim: #326E6E;
  --verified: #5C9174;
  --verified-dim: #3D6350;
  --gap: #C06B57;
  --gap-dim: #8C4B3C;
  --hairline-dark: rgba(255,255,255,0.12);
  --hairline-light: #DAD5C7;
  --font-display: 'Newsreader', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--steel);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.site-header {
  border-bottom: 1px solid var(--hairline-dark);
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.logo { display: flex; align-items: center; }
.logo-mark { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: #EDEAE0; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--brass);
  padding: 9px 18px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; opacity: 0.9; }

main { padding: 0; }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 110px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.12;
  color: #F4F1E8;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.headline em { font-style: italic; color: var(--brass); font-weight: 400; }
.subhead {
  font-size: 17px;
  color: var(--steel);
  max-width: 440px;
  margin-bottom: 34px;
}
.subhead strong { color: #E4E0D3; font-weight: 500; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--brass);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-dark);
  padding-bottom: 2px;
}

/* MATURITY MATRIX -- signature element */
.matrix-frame {
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.matrix-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 108px repeat(4, 1fr);
  gap: 3px;
}
.m-cell {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 9px 6px;
  text-align: center;
  color: var(--steel-dim);
  background: rgba(255,255,255,0.03);
  border-radius: 2px;
}
.m-head {
  background: transparent;
  color: var(--steel-dim);
  letter-spacing: 0.06em;
}
.m-row-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  text-align: left;
  padding: 9px 8px;
  color: #C7C2B4;
  background: transparent;
}
.m-cell.active {
  background: rgba(193, 144, 63, 0.16);
  color: var(--brass);
  font-weight: 500;
}
.sweep {
  position: absolute;
  top: 0; bottom: 0; left: -10%;
  width: 10%;
  background: linear-gradient(90deg, transparent, rgba(193,144,63,0.10), transparent);
  animation: sweep-move 2.2s ease-out 0.4s 1;
}
@keyframes sweep-move {
  0% { left: -10%; }
  100% { left: 105%; }
}
@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; display: none; }
}
.matrix-footnote {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--steel-dim);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* PROCESS -- paper section */
.process-section {
  background: var(--paper);
  color: var(--charcoal);
  padding: 48px 0;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 56px;
  max-width: 520px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.process-step {
  border-top: 2px solid var(--brass);
  padding-top: 20px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-dim);
  margin-bottom: 12px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.process-step p { font-size: 15px; color: #574F42; }

/* EIGHT STRATEGIES -- ink section */
.strategies-section { padding: 48px 0; }
.strategies-section .section-title { color: #F4F1E8; }
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 52px;
}
.strategy-group h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-dark);
}
.strategy-group-desc {
  font-size: 13.5px;
  color: var(--steel-dim);
  margin-bottom: 16px;
}
.strategy-list { list-style: none; }
.strategy-list li {
  font-size: 15px;
  color: #D8D3C5;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.strategy-list li:last-child { border-bottom: none; }

/* HOME TEASERS -- short previews linking to the dedicated pages */
.teasers-section { padding: 0 0 96px; }
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.teaser {
  border-top: 2px solid var(--brass);
  padding-top: 20px;
}
.teaser h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: #F4F1E8;
  margin-bottom: 8px;
}
.teaser p { font-size: 14.5px; color: var(--steel); margin-bottom: 12px; }
.teaser-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--brass);
  text-decoration: none;
}
.teaser-link:hover { text-decoration: underline; }

/* DEDICATED SUB-PAGES (Approach / The Eight / Assessment) */
.page-hero {
  padding: 72px 32px 0;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero .headline { font-size: 38px; }
.page-hero p { font-size: 16px; color: var(--steel); margin-bottom: 16px; }
.page-hero p.subhead { max-width: none; }
.page-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 32px 0;
}
.page-body p { margin-bottom: 16px; font-size: 16px; }
.page-body .closing-line {
  font-style: italic;
  font-family: var(--font-display);
  color: #D8D3C5;
  margin-top: 8px;
}
.page-cta-block { max-width: 640px; margin: 0 auto; padding: 8px 32px 80px; }

/* Compact echo of the OS coverage / matrix, used on thinner pages like Approach */
.os-badges { display: flex; gap: 10px; margin: 20px 0 28px; flex-wrap: wrap; }
.os-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  border-radius: 2px;
  padding: 5px 12px;
}
.page-hero .strategy-list { margin-bottom: 24px; }

/* INDEPENDENCE STATEMENT -- paper, brass hairlines */
.independence {
  background: var(--paper-2);
  color: var(--charcoal);
  padding: 100px 0;
  border-top: 1px solid var(--brass-dim);
  border-bottom: 1px solid var(--brass-dim);
  text-align: center;
}
.independence blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.4;
  color: #23292E;
}
.independence cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

/* GENERIC PAGE (contact, etc.) */
.contact-block {
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.page-section {
  padding: 88px 32px;
  max-width: 640px;
  margin: 0 auto;
}
.page-section h1, .page-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: #F4F1E8;
  margin-bottom: 24px;
}
.page-section p { margin-bottom: 16px; }
.page-section a.button, .page-section a.cta-button {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--brass);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

/* ARTICLES */
.read-page { padding: 88px 32px; max-width: 640px; margin: 0 auto; }
.article-list { list-style: none; }
.article-list li {
  border-bottom: 1px solid var(--hairline-dark);
  padding: 24px 0;
}
.article-list h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #F4F1E8;
  margin-bottom: 6px;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  margin-bottom: 10px;
}
.article-full { padding: 88px 32px; max-width: 640px; margin: 0 auto; }
.article-full h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: #F4F1E8;
  margin-bottom: 12px;
}

/* FOOTER */
.site-footer {
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-dim);
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  font-size: 13px;
  color: var(--steel-dim);
  text-decoration: none;
}

/* ADMIN / LOGIN (unstyled by the marketing design; kept minimal/legible) */
.login-form, .admin-form, .admin-dashboard, .admin-list {
  max-width: 480px;
  margin: 48px auto;
  padding: 0 32px;
}
.login-form input, .admin-form input, .admin-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  color: var(--steel);
  border-radius: 4px;
  font-family: var(--font-body);
}
.login-form button, .admin-form button {
  background: var(--brass);
  color: var(--ink);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.flashes { list-style: none; }
.flashes .error { color: var(--gap); }
.flashes .success { color: var(--verified); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 72px; }
  .headline { font-size: 38px; }
  .process-grid, .strategies-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .matrix-grid { grid-template-columns: 84px repeat(4, 1fr); }
}
