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

  :root {
    --bg:        #f9f6f0;
    --bg2:       #f1ece4;
    --bg3:       #e8e0d4;
    --border:    rgba(0,0,0,0.11);
    --text:      #1a1a18;
    --text-dim:  #6a6860;
    --accent:    #1e7a42;
    --accent2:   #155e30;
    --link:      #1e7a42;
    --tag-p:     #e4edd8;
    --tag-m:     #ede8f4;
    --tag-r:     #e8e4dc;
  }

  html { font-size: 17px; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
  }

  a { color: var(--link); text-decoration: none; }
  a:hover { text-decoration: underline; color: var(--accent2); }

  /* ── Header ── */
  .site-header {
    border-top: 3px solid var(--accent);
    padding: 1.25rem 1.5rem 0;
    background: var(--bg);
  }

  .header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .brand {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
  }
  .brand:hover { text-decoration: none; color: var(--accent); }

  .brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.35rem;
  }

  .site-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    align-items: flex-end;
    padding-bottom: 0.15rem;
  }
  .site-nav a { color: var(--text-dim); text-decoration: none; }
  .site-nav a:hover { color: var(--text); text-decoration: none; }
  .site-nav a.nav-active {
    color: var(--text);
    font-weight: 600;
    border-bottom: 1.5px solid var(--text);
    padding-bottom: 1px;
  }

  .dateline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding: 0.5rem 0;
    border-top: 0.5px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-dim);
  }

  /* ── Layout ── */
  .page-wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

  .two-col {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 2.5rem;
    align-items: start;
  }

  .sidebar {
    border-left: 0.5px solid var(--border);
    padding-left: 1.75rem;
  }

  .sidebar-block { margin-bottom: 1.5rem; }
  .sidebar-block + .sidebar-block {
    padding-top: 1.5rem;
    border-top: 0.5px solid var(--border);
  }

  /* Single-column pages still get reasonable width */
  main { max-width: 700px; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; }

  /* ── Section labels ── */
  .section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border);
  }

  /* ── Typography ── */
  h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.25;
    color: var(--text);
  }
  h2 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
  }
  h2::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border);
  }
  h3 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1rem;
    font-weight: normal;
    color: var(--text);
  }

  p { margin-top: 0.6rem; }

  .meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.25rem; }
  .meta span + span::before { content: " · "; }

  /* ── Tags ── */
  .tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.12em 0.45em;
    border: 0.5px solid var(--border);
    color: var(--text-dim);
    vertical-align: middle;
  }
  .tag-p { background: var(--tag-p); color: #3a6030; }
  .tag-m { background: var(--tag-m); color: #6a5a18; }
  .tag-r { background: var(--tag-r); color: var(--text-dim); }

  /* ── Items ── */
  .item {
    padding: 0.8rem 0;
    border-bottom: 0.5px solid var(--border);
  }
  .item:last-child { border-bottom: none; }

  .item-row { display: flex; gap: 0.65rem; }
  .item-num { font-size: 0.7rem; color: var(--text-dim); min-width: 1rem; padding-top: 0.15rem; flex-shrink: 0; }

  .item-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.975rem;
    font-weight: normal;
    color: var(--text);
    line-height: 1.35;
  }
  .item-title a { color: inherit; }
  .item-title a:hover { color: var(--accent); text-decoration: none; }

  .item-takeaway {
    margin-top: 0.3rem;
    font-size: 0.855rem;
    line-height: 1.55;
    color: var(--text-dim);
  }

  .item-facts {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    border-left: 2px solid var(--border);
    padding-left: 0.65rem;
    line-height: 1.5;
  }

  .item-uncertainty {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--accent2);
    font-style: italic;
  }

  .item-meta {
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }

  /* ── Archive rows ── */
  .arc-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 0.5px solid var(--border);
  }
  .arc-row:last-child { border-bottom: none; }
  .arc-date { font-size: 0.75rem; color: var(--text-dim); min-width: 52px; padding-top: 0.1rem; flex-shrink: 0; }
  .arc-text { font-size: 0.855rem; color: var(--text-dim); line-height: 1.45; }
  .arc-meta { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.2rem; opacity: 0.75; }

  /* ── Archive theme pills ── */
  .arc-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
  }
  .arc-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.15em 0.5em;
    border-radius: 2px;
    background: var(--bg2);
    border: 0.5px solid var(--border);
    color: var(--text-dim);
  }

  /* ── Brief value prop ── */
  .brief-valueprop {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 0.65rem;
    font-style: italic;
  }

  /* ── Sidebar rows ── */
  .sb-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 0.8rem;
  }
  .sb-row:last-child { border-bottom: none; }
  .sb-row a { color: var(--text-dim); }
  .sb-row a:hover { color: var(--text); text-decoration: none; }
  .sb-count { font-size: 0.7rem; color: var(--text-dim); }

  /* ── Details ── */
  details { margin-top: 0.85rem; }
  details summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-dim);
    user-select: none;
    padding: 0.35rem 0;
  }
  details summary:hover { color: var(--text); }
  details[open] summary { color: var(--text); }

  /* ── Link index ── */
  .link-index { margin-top: 0.65rem; font-size: 0.78rem; line-height: 1.75; }
  .link-index a { color: var(--text-dim); }
  .link-index a:hover { color: var(--link); }
  .link-index .li-p a { color: var(--text); }

  /* ── Back link ── */
  .back-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-decoration: none;
  }
  .back-link:hover { color: var(--text); text-decoration: none; }
  .back-link::before { content: "← "; }

  /* ── Summary card (reports) ── */
  .summary-card {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-left: 3px solid var(--accent);
  }
  .summary-card p {
    margin-top: 0.3rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-dim);
  }

  .eyebrow {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
  }

  /* ── Raw report ── */
  .raw-report {
    margin-top: 0.9rem;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--text-dim);
    background: var(--bg2);
    border: 0.5px solid var(--border);
    padding: 0.85rem;
  }

  .item-stack { display: grid; gap: 0; }
  .compact-list { margin-top: 0.65rem; display: grid; gap: 0; }
  .compact-list .item { padding: 0.7rem 0; }

  /* ── Lead takeaway ── */
  .lead-summary {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.975rem;
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.85rem;
  }

  /* ── Hero tagline (kept for compatibility) ── */
  .hero-tagline {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--text);
    font-weight: normal;
    margin-top: 1.5rem;
  }
  .hero-sub {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-top: 0.45rem;
    line-height: 1.6;
    max-width: 540px;
  }

  /* ── Footer ── */
  footer {
    border-top: 2px solid var(--text);
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .footer-brand {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.9rem;
    color: var(--text);
  }
  .footer-sub { font-size: 0.72rem; color: var(--text-dim); }

  /* ── Subscribe block ── */
  .subscribe-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 0.65rem;
    margin-top: 0;
  }

  .subscribe-form {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .subscribe-input {
    flex: 1;
    min-width: 0;
    padding: 0.4em 0.6em;
    font-size: 0.78rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
  }
  .subscribe-input:focus { border-color: var(--accent); }
  .subscribe-input::placeholder { color: var(--text-dim); opacity: 0.7; }

  .subscribe-btn {
    padding: 0.4em 0.85em;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
    letter-spacing: 0.02em;
  }
  .subscribe-btn:hover { background: var(--accent2); }

  .subscribe-note {
    margin-top: 0.45rem;
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.7;
  }

  .subscribe-strip {
    margin-top: 2.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-left: 3px solid var(--accent);
  }
  .subscribe-strip .subscribe-headline {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--text);
    margin-bottom: 0.35rem;
  }

  /* ── Theme toggle button ── */
  .theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dim);
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
  }
  .theme-btn:hover { color: var(--text); }

  /* ── Dark mode ── */
  /* Fires when OS is dark AND user hasn't forced light */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg:        #1d1e20;
      --bg2:       #252628;
      --bg3:       #2e2f31;
      --border:    rgba(255,255,255,0.1);
      --text:      #e8e4dc;
      --text-dim:  #9a9488;
      --accent:    #40d070;
      --accent2:   #58e085;
      --link:      #40d070;
      --tag-p:     #192c1e;
      --tag-m:     #241e30;
      --tag-r:     #252628;
    }
  }
  /* Fires when user explicitly chose dark (regardless of OS) */
  :root[data-theme="dark"] {
    --bg:        #1d1e20;
    --bg2:       #252628;
    --bg3:       #2e2f31;
    --border:    rgba(255,255,255,0.1);
    --text:      #e8e4dc;
    --text-dim:  #9a9488;
    --accent:    #40d070;
    --accent2:   #58e085;
    --link:      #40d070;
    --tag-p:     #192c1e;
    --tag-m:     #241e30;
    --tag-r:     #252628;
  }