:root {
  --navy:   #0f1f38;
  --navy2:  #162c4f;
  --slate:  #2a4066;
  --amber:  #c8833a;
  --amber2: #e5a65a;
  --teal:   #3a8fa0;
  --teal2:  #5ab8cc;
  --cream:  #f6f3ee;
  --warm:   #ede9e0;
  --text:   #1a2535;
  --muted:  #6b7a93;
  --border: #d8d2c8;
  --bg: var(--cream);
  --ink: var(--text);
  --ink-light: #2d3d52;
  --ink-muted: var(--muted);
  --rule: var(--border);
  --accent: var(--amber);
  --accent-dim: #b17435;
  --accent-faint: #f3eadf;
  --serif: "Georgia", "Times New Roman", serif;
  --body: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.75; }
nav { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.12); padding: 0 2rem; }
.nav-inner { max-width: 1060px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 1.05rem; color: #fff; font-weight: bold; letter-spacing: 0.04em; text-decoration: none; }
.nav-brand span { color: var(--amber2); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.68); text-decoration: none; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--amber2); }
.page-header { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 55%, var(--slate) 100%); padding: 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.page-header-inner { max-width: 1060px; margin: 0 auto; padding: 3.5rem 0 2.5rem; }
.breadcrumb { font-family: var(--sans); font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber2); }
.breadcrumb span { margin: 0 0.4rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: normal; line-height: 1.2; color: #fff; margin-bottom: 0.8rem; }
.page-header .lede { font-size: 1rem; color: rgba(255,255,255,0.72); max-width: 760px; }
.essay, .layout { max-width: 1060px; margin: 0 auto; padding: 2.6rem 2rem 4.5rem; }
.essay { max-width: 860px; }
.essay section { margin-bottom: 3rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: normal; line-height: 1.25; color: var(--navy); margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: #2d3d52; }
p:last-child { margin-bottom: 0; }
.section-rule { border: 0; border-top: 1px solid var(--border); margin: 0 0 2.5rem; max-width: 140px; }
.pull, .entry-pull { border-left: 3px solid var(--amber); margin: 1.5rem 0; padding: 0.45rem 0 0.45rem 1.2rem; background: rgba(200,131,58,0.06); }
.pull p, .entry-pull p { color: #243549; font-style: italic; }
.honest-box, .state-vector, .sidebar-block { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 4px; padding: 1.1rem 1.25rem; }
.box-label, .sv-label, .sidebar-label { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.65rem; }
.stat-row { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin: 1.6rem 0; max-width: 680px; background: #fff; }
.sr-stat { flex: 1; min-width: 120px; padding: 0.8rem 0.95rem; border-right: 1px solid var(--border); }
.sr-stat:last-child { border-right: none; }
.sr-value { font-family: var(--sans); font-size: 1.15rem; font-weight: bold; color: var(--navy); line-height: 1; margin-bottom: 0.2rem; }
.sr-label { font-family: var(--sans); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tip { border-bottom: 1px dotted var(--amber); color: var(--amber); cursor: help; white-space: nowrap; position: relative; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: #fff; color: #2d3d52; border: 1px solid var(--border); border-radius: 4px; padding: 0.65rem 0.85rem; font-family: var(--sans); font-size: 0.74rem; line-height: 1.55; white-space: normal; width: max-content; max-width: 320px; z-index: 200; pointer-events: none; box-shadow: 0 8px 24px rgba(15,31,56,0.14); }
.tip:hover::before, .tip:focus::before { content: ""; position: absolute; bottom: 113%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--border); z-index: 201; }
.closing-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.25rem; }
.closing-links a, .sidebar-link { display: inline-block; font-family: var(--sans); font-size: 0.78rem; color: var(--amber); text-decoration: none; padding: 0.36rem 0.85rem; border: 1px solid #d7c4aa; border-radius: 3px; transition: background 0.2s, color 0.2s; }
.closing-links a:hover, .sidebar-link:hover { background: var(--accent-faint); color: var(--navy); }
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 2.4rem; align-items: start; }
.entry { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 1.35rem; margin-bottom: 1.2rem; }
.entry-meta { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.entry-date { font-family: var(--sans); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
.entry-tag { font-family: var(--sans); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: 2px; }
.tag-amber { background: rgba(200,131,58,0.14); color: #9a5e1d; }
.tag-teal { background: rgba(58,143,160,0.14); color: #1f7588; }
.tag-muted { background: #f3f0eb; color: var(--muted); border: 1px solid var(--border); }
.entry h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.archive-list { list-style: none; }
.archive-list li { border-bottom: 1px solid var(--border); padding: 0.5rem 0; }
.archive-list li:last-child { border-bottom: none; }
.archive-list a { color: #2d3d52; text-decoration: none; font-size: 0.8rem; }
.archive-list a:hover { color: var(--amber); }
.archive-date { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 0.12rem; }
footer { background: var(--navy); color: rgba(255,255,255,0.56); padding: 2rem; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--sans); font-size: 0.73rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand span { color: var(--amber2); }
.footer-links { display: flex; gap: 1.2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.68); text-decoration: none; font-size: 0.74rem; }
.footer-links a:hover { color: var(--amber2); }
.footer-copy { max-width: 1060px; margin: 1rem auto 0; font-family: var(--sans); font-size: 0.68rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  nav, .page-header, .page-header-inner, .essay, .layout, footer { padding-left: 1.2rem; padding-right: 1.2rem; }
  .nav-links { display: none; }
  .stat-row { flex-direction: column; }
  .sr-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .sr-stat:last-child { border-bottom: none; }
  .tip:hover::after, .tip:focus::after { left: 0; transform: none; max-width: 260px; }
  .tip:hover::before, .tip:focus::before { left: 14px; transform: none; }
}
