@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f3efe7;
  --ink: #111110;
  --g1: #3f3e3a;
  --g2: #75726b;
  --g3: #a29e96;
  --line: #d6d1c7;
  --red: #9e3b35;
  --pad: clamp(20px, 3.2vw, 64px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding: calc(var(--pad) * 0.9) var(--pad) 28px;
  border-bottom: 1px solid var(--ink);
}
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 132px); line-height: .9; letter-spacing: -.01em; }
.sub { margin: 14px 0 0; color: var(--g1); font-size: 19px; max-width: 46ch; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); border-left: 1px solid var(--line); }
.stat {
  display: grid; gap: 4px; justify-items: start; text-align: left; cursor: pointer;
  padding: 6px 22px 4px; background: none; border: 0; border-right: 1px solid var(--line);
}
.stat .n { font-family: var(--serif); font-size: clamp(48px, 5vw, 84px); line-height: .95; font-variant-numeric: tabular-nums; }
.stat .l { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--g1); white-space: nowrap; }
.stat[aria-pressed="false"] .n, .stat[aria-pressed="false"] .l { color: var(--g3); }
.stat[aria-pressed="false"] .mark { opacity: .35; }
.stat:hover .n { text-decoration: none; }
.stat:focus-visible, .chip:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Status marks: shape, not color */
.mark { flex: none; width: 13px; height: 13px; display: inline-block; border: 1.5px solid var(--ink); }
.mark.ready { background: var(--ink); }
.mark.setup { background: var(--paper); }
.mark.partial { background: linear-gradient(135deg, var(--ink) 50%, var(--paper) 50%); }
.mark.planned { border: 1.5px dashed var(--g3); background: none; }

/* Filter bar */
.bar {
  position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
  padding: 16px var(--pad); background: var(--paper); border-bottom: 1px solid var(--line);
}
.search { flex: 1 1 420px; display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid var(--ink); padding: 4px 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 22px; color: var(--ink); padding: 6px 0; }
.search input::placeholder { color: var(--g3); }
.search input:focus { outline: none; }
.search kbd { font: inherit; font-size: 13px; color: var(--g2); border: 1px solid var(--line); padding: 1px 7px; }
.how { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; border: 1.5px solid var(--ink); background: none; padding: 7px 16px; font-size: 15px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Sections */
.list { columns: 440px auto; column-gap: 0; padding: 0 var(--pad); }
.sec { break-inside: avoid; padding: 34px 28px 30px 0; margin-right: 28px; border-bottom: 1px solid var(--line); }
.sec h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; }
.sec h2 .c { font-family: var(--sans); font-size: 14px; color: var(--g2); font-weight: 500; letter-spacing: .04em; }
.row { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.row .mark { margin-top: 9px; }
.say { margin: 0; font-family: var(--serif); font-size: 25px; line-height: 1.15; }
.say .alt { color: var(--g2); }
.say.term { font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.005em; }
.say.term .alt { font-weight: 500; }
.say.idea { font-style: italic; color: var(--g1); }
.does { grid-column: 2 / 4; margin: 0; color: var(--g1); }
.note { grid-column: 2 / 4; margin: 0; color: var(--g2); font-size: 15px; }
.kind { align-self: start; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g2); white-space: nowrap; }
.row.planned .say { color: var(--g1); }
mark { background: none; color: inherit; box-shadow: inset 0 -0.38em 0 #e2dccf; }

.empty { padding: 40px var(--pad); font-family: var(--serif); font-size: 32px; color: var(--g2); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding: 28px var(--pad) 48px; border-top: 1px solid var(--ink); color: var(--g1); font-size: 15px; }
.foot p { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
  .top { grid-template-columns: 1fr; }
  .stats { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .stat:first-child { padding-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .stat { padding: 4px 12px 4px 0; border-right: 0; }
  .sec { margin-right: 0; padding-right: 0; }
  .say { font-size: 22px; }
  .kind { display: none; }
  .search input { font-size: 19px; }
}
