
  @font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("/assets/DMSans.woff2") format("woff2");
  }

  :root {
    --bg: #fdfbf6;
    --ink: #1a1715;
    --muted: #6e645a;
    --rule: #e8e0d3;
    --card: #f7f1e6;
    --accent: #e04025;
    --kimbi: #e07406;
    --lbs: #fd3878;
  }

  html { background: var(--bg); }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
  }
  .page {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 28px 64px;
  }

  .eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
  }
  .eyebrow .x { color: var(--accent); }

  h1 {
    font-size: clamp(34px, 6vw, 46px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 10px;
    text-wrap: balance;
  }
  .dates {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 26px;
    font-variant-numeric: tabular-nums;
  }
  .standfirst {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 60ch;
  }
  .standfirst strong { font-weight: 600; }

  section { padding: 44px 0 6px; }
  section + section { border-top: 1px solid var(--rule); }
  header.masthead { padding-bottom: 44px; }

  h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    text-wrap: balance;
  }
  .kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
  }
  .lede {
    color: var(--muted);
    margin: 0 0 24px;
    max-width: 62ch;
  }
  p { max-width: 66ch; }

  /* ---- calendar table ---- */
  .table-scroll { overflow-x: auto; margin: 26px 0 8px; }
  table {
    border-collapse: collapse;
    width: 100%;
    min-width: 620px;
    font-size: 14.5px;
    line-height: 1.45;
  }
  th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 14px 10px 0;
    border-bottom: 1px solid var(--ink);
  }
  td {
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
  }
  td.wk {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  td.range {
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  tr.jam td { border-bottom: none; }
  tr.jam .jamcell { font-weight: 600; }
  tr.jam .jamcell .jamnote { font-weight: 400; color: var(--muted); }

  /* ---- house rules ---- */
  .rules {
    list-style: none;
    margin: 22px 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .rules li {
    display: flex;
    gap: 18px;
    padding: 14px 0;
  }
  .rules li + li { border-top: 1px solid var(--rule); }
  .rules .n {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
  }
  .rules .body { max-width: 60ch; }
  .rules .body strong { font-weight: 600; }

  /* ---- numbered editorial list (palu ventures pattern) ---- */
  ol.editorial {
    list-style: none;
    margin: 26px 0 12px;
    padding: 0;
    counter-reset: item;
  }
  ol.editorial li {
    counter-increment: item;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 4px 16px;
    padding: 18px 0;
  }
  ol.editorial li + li { border-top: 1px solid var(--rule); }
  ol.editorial li::before {
    content: counter(item, decimal-leading-zero);
    grid-row: 1 / span 3;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    padding-top: 3px;
  }
  ol.editorial .item-title {
    font-weight: 600;
    margin: 0;
  }
  ol.editorial .item-title .tag {
    font-weight: 400;
    color: var(--muted);
  }
  ol.editorial .item-body {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
    max-width: 58ch;
  }
  ol.editorial .lens {
    grid-column: 2;
    margin: 2px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
  }
  ol.editorial .lens.rule {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13.5px;
  }

  /* ---- verdict scale flourish ---- */
  .scale {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 8px;
    max-width: 420px;
  }
  .scale .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 0 auto;
  }
  .scale .label.big { font-size: 16px; color: var(--ink); letter-spacing: 0.14em; }
  .scale .track {
    flex: 1;
    height: 1px;
    background: var(--rule);
    position: relative;
  }
  .scale .track i {
    position: absolute;
    top: -3.5px;
    width: 1px;
    height: 8px;
    background: var(--rule);
  }
  .scale .track i:nth-child(1) { left: 25%; }
  .scale .track i:nth-child(2) { left: 50%; }
  .scale .track i:nth-child(3) { left: 75%; }
  .scale .track .stamp {
    position: absolute;
    left: 82%;
    top: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
  }
  .scale-caption {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
  }

  /* ---- weekly rhythm ---- */
  dl.rhythm { margin: 26px 0 12px; }
  dl.rhythm > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 13px 0;
  }
  dl.rhythm > div + div { border-top: 1px solid var(--rule); }
  dl.rhythm dt {
    font-weight: 600;
    margin: 0;
  }
  dl.rhythm dd { margin: 0; color: var(--muted); max-width: 56ch; }

  /* ---- scope law / callout ---- */
  .contract {
    border: 1px solid var(--rule);
    background: var(--card);
    padding: 22px 26px;
    margin: 26px 0;
  }
  .contract .kicker { margin-bottom: 8px; }
  .contract p {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 52ch;
  }
  .contract .fine {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 8px;
  }

  .credits {
    margin: 26px 0 8px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 14.5px;
  }
  .credits li strong { font-weight: 600; }
  .credits li span { color: var(--muted); }

  /* ---- ai rule split ---- */
  .ai-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin: 26px 0 12px;
  }
  .ai-split > div {
    background: var(--bg);
    padding: 20px 22px;
  }
  .ai-split .who {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
  }
  .ai-split p.line {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 16px;
  }
  .ai-split p.expl {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
  }
  @media (max-width: 560px) {
    .ai-split { grid-template-columns: 1fr; }
  }

  /* ---- budget + footer ---- */
  .budget { color: var(--muted); font-size: 14.5px; max-width: 62ch; }

  footer {
    border-top: 1px solid var(--rule);
    margin-top: 48px;
    padding-top: 20px;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    justify-content: space-between;
  }

  a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
  a:focus-visible, :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  @media (max-width: 560px) {
    .page { padding: 48px 20px 48px; }
    dl.rhythm > div { grid-template-columns: 96px 1fr; }
  }

  /* ---- plan navigation ---- */
  nav.plannav {
    display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline;
    padding: 0 0 18px; border-bottom: 1px solid var(--rule); margin: 0 0 40px;
  }
  .plannav a {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); text-decoration: none;
    padding-bottom: 3px;
  }
  .plannav a:hover { color: var(--ink); }
  .plannav a.current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
  .plannav a.home { margin-left: auto; }

  .pager {
    display: flex; justify-content: space-between; gap: 24px;
    border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 18px;
  }
  .pager a { font-size: 15px; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
  .pager .dir {
    display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .pager .next { text-align: right; margin-left: auto; }

  /* ---- deep-link highlight ---- */
  ol.editorial li:target {
    background: var(--card);
    border-radius: 8px;
    padding-left: 14px; padding-right: 14px;
    margin-left: -14px; margin-right: -14px;
  }

  /* ---- homepage (season) ---- */
  .page.wide { max-width: 880px; }
  .track { margin: 0 0 44px; }
  .track .who {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; margin: 0 0 4px;
  }
  .track.kimbi .who { color: var(--kimbi); }
  .track.lbs .who { color: var(--lbs); }
  .track h2 { margin-bottom: 4px; }
  .track .note { color: var(--muted); font-size: 14px; margin: 0 0 18px; max-width: 62ch; }
  .grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px; padding: 0; margin: 0; list-style: none;
  }
  a.tile {
    display: block; background: var(--card); border: 1px solid var(--rule);
    border-radius: 8px; padding: 18px 20px; text-decoration: none; color: var(--ink);
    transition: border-color .15s;
  }
  a.tile:hover, a.tile:focus-visible { border-color: var(--kimbi); }
  .track.lbs a.tile:hover, .track.lbs a.tile:focus-visible { border-color: var(--lbs); }
  .tile .ch { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
  .tile h3 { font-size: 18px; margin: 4px 0 2px; font-weight: 650; }
  .tile .verb { color: var(--muted); font-size: 14px; }
  .tile .rule { color: var(--muted); font-size: 13px; margin-top: 8px; display: block; font-style: italic; }
  .tile .done { color: var(--accent); font-size: 14px; margin-top: 6px; display: none; }
  .tile.is-done .done { display: block; }
  .jamgrid { grid-template-columns: 1fr; }
  .tile.jam { border-style: dashed; }
  .tile.jam h3 { font-size: 21px; }

  /* ---- detail pages + track-item links ---- */
  .metaline {
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin: 2px 0 0;
  }
  .metaline.rule { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
  ol.editorial .item-title a {
    color: inherit; text-decoration: underline;
    text-decoration-color: var(--accent); text-underline-offset: 3px;
  }
  code { font-size: 0.9em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
