/* wilson.css v1.0 (2026-11-07). Wilson Wu brand layer. Canonical spec: wilson.md (Claude memory).
   Three layers, safe to drop onto any page:
   1. Tokens (light, dark) for anything new.
   2. Signature moves. Mode-agnostic, CSS-only, no new markup: keel rule, copper H2 tick,
      copper-underlined links, tabular figures, focus ring, selection.
   3. Opt-in article base. Only applies under <body class="w-article">.
   Fonts load from the page <head> (Public Sans stand-in), not from here. */

:root {
  --w-font: "Benton Sans", "BentonSans", "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --w-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --w-navy: #0A2942;         /* Harbor Navy: brand, H1, H2, nav, rules */
  --w-navy-fill: #0A2942;    /* filled navy bands; never flips */
  --w-ink: #14212F;          /* body text */
  --w-paper: #F5F7FA;        /* page (Chalk) */
  --w-surface: #FFFFFF;      /* cards, callouts */
  --w-line: #D5DCE5;         /* hairlines only, never text */
  --w-line-strong: #77859A;  /* control borders, chart axes (3:1+) */
  --w-muted: #4C5A6B;        /* secondary text (Slate) */
  --w-accent: #A8481B;       /* Copper: links, highlights, key numbers. Never status. */
  --w-accent-2: #0F6F72;     /* Verdigris */
  --w-positive: #1B6B45;     /* Jade */
  --w-negative: #B3261E;     /* Brick */
  --w-caution: #8A5B00;      /* Umber */
  --w-navy-tint: #E6ECF3;    /* Fog Blue callout background */
  --w-accent-tint: #FBEEE3;  /* Copper Wash callout background */
  --w-negative-tint: #FBEAE8; --w-positive-tint: #E6F2EA; --w-caution-tint: #FBF2DC; /* status callouts */

  /* Diagram and chart series, in order. d0 = de-emphasis. */
  --w-d1: #0A2942; --w-d2: #A8481B; --w-d3: #3A86C8;
  --w-d4: #0F6F72; --w-d5: #7A3E8E; --w-d6: #A87400; --w-d0: #77859A;

  /* Signature constants: identical in light and dark. */
  --w-keel-navy: #0A2942;
  --w-keel-copper: #A8481B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --w-navy: #A9C2E3; --w-ink: #E8EDF3; --w-paper: #081420; --w-surface: #0E2238;
    --w-line: #22384F; --w-line-strong: #6A82A0; --w-muted: #9DAEC0;
    --w-accent: #EE9264; --w-accent-2: #4FC3C0; --w-positive: #5FC38A; --w-negative: #F27D74; --w-caution: #E3B341;
    --w-navy-tint: #13304F; --w-accent-tint: #33231A;
    --w-negative-tint: #3B1F1D; --w-positive-tint: #11291D; --w-caution-tint: #2F2610;
    --w-d1: #A9C2E3; --w-d2: #EE9264; --w-d3: #6FB4EA; --w-d4: #4FC3C0; --w-d5: #C48BDC; --w-d6: #E3B341; --w-d0: #6A82A0;
  }
}
:root[data-theme="dark"] {
  --w-navy: #A9C2E3; --w-ink: #E8EDF3; --w-paper: #081420; --w-surface: #0E2238;
  --w-line: #22384F; --w-line-strong: #6A82A0; --w-muted: #9DAEC0;
  --w-accent: #EE9264; --w-accent-2: #4FC3C0; --w-positive: #5FC38A; --w-negative: #F27D74; --w-caution: #E3B341;
  --w-navy-tint: #13304F; --w-accent-tint: #33231A;
  --w-negative-tint: #3B1F1D; --w-positive-tint: #11291D; --w-caution-tint: #2F2610;
  --w-d1: #A9C2E3; --w-d2: #EE9264; --w-d3: #6FB4EA; --w-d4: #4FC3C0; --w-d5: #C48BDC; --w-d6: #E3B341; --w-d0: #6A82A0;
}

/* Benton Sans upgrade hook. After buying the Type Network web license, put the licensed
   .woff2 files next to this file and uncomment. The --w-font stack already prefers them.
@font-face { font-family: "Benton Sans"; src: url(fonts/BentonSans-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Benton Sans"; src: url(fonts/BentonSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Benton Sans"; src: url(fonts/BentonSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Benton Sans"; src: url(fonts/BentonSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
*/

/* ---- 2. Signature moves (retrofit-safe, mode-agnostic) ---- */

/* Keel: 5px navy rule with a copper tip across the top of every page. Fixed, so no layout shift. */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 5px;
  z-index: 2147483000; pointer-events: none;
  background: linear-gradient(90deg, var(--w-keel-navy) 0 82%, var(--w-keel-copper) 82% 100%);
}

/* Copper tick above every section heading. */
h2:not(nav h2, header h2, footer h2, aside h2, figure h2, button h2, dialog h2, svg h2)::before {
  content: ""; display: block; width: 2.25rem; height: 3px;
  background: var(--w-keel-copper); margin: 0 0 .6rem;
}

/* Copper-underlined links in running text. Text color stays the page's own. */
:where(p, li, td, dd, figcaption, blockquote) a:not([class]) {
  text-decoration-line: underline;
  text-decoration-color: var(--w-keel-copper);
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}
:where(p, li, td, dd, figcaption, blockquote) a:not([class]):hover { text-decoration-thickness: .16em; }

/* Ledger figures. */
table, output, .num, [class*="stat"], [class*="metric"] { font-variant-numeric: tabular-nums lining-nums; }

:focus-visible { outline: 2px solid var(--w-keel-copper); outline-offset: 2px; }
::selection { background: rgba(168, 72, 27, .26); }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---- 3. Opt-in article base: <body class="w-article"> ---- */
body.w-article { margin: 0; background: var(--w-paper); color: var(--w-ink); font: 400 18px/1.65 var(--w-font); text-rendering: optimizeLegibility; }
.w-article main, .w-article article { max-width: 66ch; margin: 0 auto; padding: 56px 20px 96px; }
.w-article .kicker { font: 700 13px/1.3 var(--w-font); letter-spacing: .12em; text-transform: uppercase; color: var(--w-navy); }
.w-article .kicker::before { content: ""; display: inline-block; width: 1.75rem; height: 2px; background: var(--w-accent); vertical-align: .3em; margin-right: .6rem; }
.w-article h1 { font: 700 48px/1.08 var(--w-font); letter-spacing: -.022em; color: var(--w-navy); margin: .25em 0 .35em; }
.w-article .standfirst { font: 300 22px/1.45 var(--w-font); letter-spacing: -.005em; color: var(--w-muted); }
.w-article .byline { font-size: 15px; line-height: 1.5; color: var(--w-muted); }
.w-article h2 { font: 700 30px/1.2 var(--w-font); letter-spacing: -.015em; color: var(--w-navy); margin: 2.2em 0 .6em; }
.w-article h3 { font: 700 20px/1.3 var(--w-font); letter-spacing: -.005em; color: var(--w-ink); margin: 1.8em 0 .4em; }
.w-article small, .w-article .sources { font-size: 15px; line-height: 1.5; color: var(--w-muted); }
.w-article figcaption, .w-article .caption { font: 500 13px/1.45 var(--w-font); letter-spacing: .01em; color: var(--w-muted); }
.w-article a { color: var(--w-navy); }
.w-article code, .w-article pre, .w-article kbd { font-family: var(--w-mono); font-size: 15px; }
.w-article :not(pre) > code { background: var(--w-navy-tint); padding: .1em .35em; border-radius: 4px; }
.w-article pre { background: var(--w-surface); border: 1px solid var(--w-line); border-radius: 6px; padding: 14px 16px; overflow: auto; line-height: 1.55; }
.w-article .short-answer { background: var(--w-navy-tint); border-left: 4px solid var(--w-navy); padding: 16px 20px; border-radius: 0 6px 6px 0; }
.w-article .callout { background: var(--w-surface); border: 1px solid var(--w-line); border-left: 4px solid var(--w-accent); padding: 14px 18px; border-radius: 0 6px 6px 0; }
.w-article .callout.caution { border-left-color: var(--w-caution); }
.w-article .callout.catch { border-left-color: var(--w-negative); }
.w-article blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--w-accent); font-weight: 300; font-size: 1.15em; color: var(--w-navy); }
.w-article table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--w-navy); border-bottom: 2px solid var(--w-navy); font-size: 15px; }
.w-article th { font-weight: 500; color: var(--w-muted); text-align: left; border-bottom: 1px solid var(--w-line-strong); padding: 8px 10px; }
.w-article td { border-bottom: 1px solid var(--w-line); padding: 8px 10px; }
.w-article :is(td, th).num { text-align: right; }
@media (max-width: 640px) {
  body.w-article { font-size: 17px; }
  .w-article h1 { font-size: 32px; } .w-article h2 { font-size: 24px; } .w-article h3 { font-size: 18px; }
  .w-article .standfirst { font-size: 18px; } .w-article .kicker { font-size: 12px; }
  .w-article small, .w-article .byline, .w-article .sources { font-size: 14px; } .w-article code, .w-article pre { font-size: 14px; }
}
