@font-face { font-family: Centurion; src: url(/fonts/Centurion-Roman.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Jost; src: url(/fonts/jost.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f6f2ea;
  --ink: #161411;
  --soft: #6b645a;
  --rule: #d8d0c2;
  --mark: #c2381b;
  --serif: Centurion, "Iowan Old Style", Georgia, serif;
  --sans: Jost, "Futura", "Avenir Next", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.35; font-variant-numeric: lining-nums; }
a { color: inherit; }
img { max-width: 100%; }
.page { margin: 0 auto; max-width: 1000px; padding: 0 20px 60px; }

/* The design-round switcher: plain, small, set apart from the page. */
.lookbar { font: 12px/1.6 var(--mono); background: var(--ink); color: #bdb5a8; padding: 6px 20px; text-align: center; }
.lookbar a { color: #fff; text-decoration: none; margin: 0 9px; opacity: 0.6; }
.lookbar a.here { opacity: 1; border-bottom: 1px solid #fff; }

header.top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0 10px; border-bottom: 1.5px solid var(--ink); }
.mark { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; }
.mark span { font-weight: 400; }
header nav, nav.sections, .meta, .host, footer, .more, small, .lede, table.sources .when, h2.sect, .kicker { font-family: var(--sans); }
header nav a { margin-left: 18px; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
header nav a:first-child { margin-left: 0; }
nav.sections { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 0; border-bottom: 0.5px solid var(--ink); font-size: 13.5px; }
nav.sections a { text-decoration: none; color: var(--soft); }
nav a.here, nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

h1 { font-family: var(--sans); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.14em; margin: 26px 0 4px; }
.lede { color: var(--soft); font-size: 15px; max-width: 46em; }
.vote { display: inline; margin: 0; }
.vote button { appearance: none; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 15px; color: var(--soft); cursor: pointer; line-height: 1; }
.vote button:hover { color: var(--ink); }
.voted .vote button, .voted .pts { color: var(--mark); }
.voted .pts { font-weight: 600; }
.meta { margin: 5px 0 0; font-size: 13px; color: var(--soft); }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.more { font-size: 15px; margin-top: 22px; }
footer { margin-top: 40px; padding-top: 10px; border-top: 0.5px solid var(--ink); font-size: 13px; color: var(--soft); }

/* ---------- A. Ledger ---------- */
ol.items { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: n; }
ol.items li { display: grid; grid-template-columns: 38px 28px 88px 1fr; gap: 0 12px; padding: 14px 0; border-bottom: 0.5px solid var(--rule); align-items: start; counter-increment: n; }
ol.items li::before { content: counter(n) "."; font-family: var(--sans); font-size: 14px; color: var(--soft); text-align: right; padding-top: 4px; grid-column: 1; grid-row: 1; }
ol.items .vote { grid-column: 2; grid-row: 1; }
.thumb { grid-column: 3; grid-row: 1; display: block; width: 88px; height: 66px; background: #ebe5d9; overflow: hidden; }
.thumb:empty { background: repeating-linear-gradient(135deg, transparent 0 6px, #e7e0d2 6px 7px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.body { grid-column: 4; grid-row: 1; min-width: 0; }
a.title { font-size: 21px; font-weight: 600; text-decoration: none; line-height: 1.2; }
a.title:visited { color: #5c544b; }
a.title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.host { font-size: 12.5px; color: var(--soft); margin-left: 6px; }
.summary { margin: 4px 0 0; font-size: 15.5px; font-weight: 450; color: #2e2a25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
ol.items + .more { margin-left: 178px; }

/* ---------- B. Wall ---------- */
.look-wall .page { max-width: 1320px; }
ol.cards { list-style: none; padding: 0; margin: 20px 0 0; columns: 5 220px; column-gap: 22px; }
ol.cards li { break-inside: avoid; margin: 0 0 26px; }
.frame { display: block; text-decoration: none; }
.frame img { display: block; width: 100%; height: auto; }
.bare .frame { background: var(--ink); color: var(--paper); padding: 18px 16px 22px; }
.bare .frame .type { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.12; display: block; }
.label { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding-top: 7px; }
.label .n { font: 600 12px var(--sans); color: var(--soft); padding-top: 3px; }
.label .title { font-size: 16.5px; font-weight: 600; grid-column: 2; }
.label .meta { grid-column: 2; margin-top: 2px; font-size: 12px; }
.label .tally { grid-column: 2; font: 12px var(--sans); color: var(--soft); }
.label .tally .vote button { font-size: 12px; padding-left: 0; }
.bare .label .meta { margin-top: 0; }

/* ---------- C. Broadsheet ---------- */
.look-broadsheet .page { max-width: 1180px; }
.look-broadsheet header.top { display: block; text-align: center; border-bottom: 3px double var(--ink); padding-top: 14px; }
.look-broadsheet .dateline { display: flex; justify-content: space-between; font: 12px var(--sans); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 0.5px solid var(--ink); }
.look-broadsheet .mark { font-family: var(--serif); font-weight: 700; font-size: 72px; letter-spacing: -0.02em; line-height: 1; display: block; margin: 8px 0 10px; }
.look-broadsheet .mark span { font-weight: 400; font-style: normal; }
.look-broadsheet header nav { display: block; }
.look-broadsheet nav.sections { justify-content: center; }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mark); margin: 0 0 4px; font-weight: 600; }
.lead { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--ink); }
.leadpic img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.lead h2 { font-size: 44px; line-height: 1.05; font-weight: 700; margin: 6px 0 12px; }
.lead h2 a, .four h3 a, .columns h4 a { text-decoration: none; }
.lead h2 a:hover, .four h3 a:hover, .columns h4 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.standfirst { font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--ink); }
.four img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 8px; }
.four h3 { font-size: 20px; line-height: 1.15; margin: 0; font-weight: 600; }
.columns { columns: 3 260px; column-gap: 28px; column-rule: 0.5px solid var(--rule); padding-top: 18px; }
.columns article { break-inside: avoid; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 0.5px solid var(--rule); }
.columns h4 { font-size: 19px; line-height: 1.18; margin: 0; font-weight: 600; }
.columns .summary { font-size: 15px; -webkit-line-clamp: 3; line-clamp: 3; }
.look-broadsheet .meta .vote button { font-size: 12px; }

/* ---------- D. Instrument ---------- */
.look-instrument { --paper: #f2f2ef; --ink: #0d0d0d; --soft: #7a7a76; --rule: #cfcfca; --mark: #ff4f00; }
.look-instrument body, body.look-instrument { font-family: var(--sans); }
.look-instrument .page { max-width: 1240px; background-image: linear-gradient(var(--rule) 0.5px, transparent 0.5px); background-size: 100% 48px; }
.look-instrument header.top { border-bottom: 2px solid var(--ink); align-items: center; }
.look-instrument .mark { font-family: var(--sans); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.look-instrument .mark span { color: var(--mark); font-weight: 800; }
.look-instrument .greeble, .look-instrument header nav a, .look-instrument nav.sections, .look-instrument h1, .look-instrument footer, .look-instrument .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.look-instrument header nav a { color: var(--ink); }
.look-instrument nav.sections a { color: var(--soft); }
.sheet { margin-top: 18px; border-top: 1px solid var(--ink); }
.sheet-head, .sheet .row { display: grid; grid-template-columns: 44px 62px 70px minmax(0, 1fr) 190px 100px 44px; gap: 0 12px; align-items: center; }
.sheet-head { font: 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding: 6px 0; border-bottom: 0.5px solid var(--ink); }
.sheet .row { padding: 8px 0; border-bottom: 0.5px solid var(--rule); min-height: 64px; }
.sheet .row:hover { background: #e9e9e5; }
.sheet .no, .sheet .age, .sheet .src, .sheet .field, .sheet small, .sheet .cap { font: 11px var(--mono); letter-spacing: 0.04em; color: var(--soft); text-transform: uppercase; text-decoration: none; }
.sheet .src, .sheet .field { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .src:hover, .sheet .field:hover { color: var(--ink); }
.sheet .cap button { font: 11px var(--mono); border: 1px solid var(--ink); border-radius: 99px; padding: 3px 8px; color: var(--ink); }
.sheet .voted .cap button { background: var(--mark); border-color: var(--mark); color: #fff; }
.sheet .voted .cap .pts { color: #fff; }
.sheet .cap b { font-weight: 400; }
.plate { display: block; width: 70px; height: 48px; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); }
.row:hover .plate img { filter: none; }
.swatch-empty { display: block; width: 100%; height: 100%; background: radial-gradient(var(--rule) 1px, transparent 1.2px) 0 0 / 6px 6px; }
.sheet .t { min-width: 0; }
.sheet .title { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; display: block; }
.sheet small { display: block; margin-top: 3px; font-size: 10px; }
.chip { display: inline-block; width: 8px; height: 8px; margin: 0 4px -1px 0; }
.look-instrument .more a { font: 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.look-instrument .prose, .look-instrument table.sources { font-family: var(--sans); }

/* ---------- other pages ---------- */
h2.sect { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin: 34px 0 6px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
h2.sect a { text-decoration: none; }
h2.sect small { color: var(--soft); font-weight: 400; letter-spacing: 0; }
table.sources { width: 100%; border-collapse: collapse; font-size: 15px; }
table.sources td { padding: 5px 10px 5px 0; border-bottom: 0.5px solid var(--rule); vertical-align: top; }
table.sources td:first-child { width: 28%; }
table.sources .note { color: #3d3831; font-size: 14px; }
table.sources .when { white-space: nowrap; color: var(--soft); font-size: 12.5px; text-align: right; width: 7em; }
tr.err td:first-child a { text-decoration: line-through; text-decoration-color: var(--mark); }
.sourcehead { margin-top: 10px; }
.sourcehead h2 { font-size: 30px; font-weight: 500; margin: 0 0 6px; }
.prose { max-width: 36em; font-size: 19px; }
.prose code { font-size: 15px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { padding: 0 12px 40px; }
  ol.items li { grid-template-columns: 22px 64px 1fr; gap: 0 10px; }
  ol.items li::before { display: none; }
  ol.items .vote { grid-column: 1; }
  .thumb { grid-column: 2; width: 64px; height: 52px; }
  .body { grid-column: 3; }
  a.title { font-size: 18.5px; }
  ol.items .summary { display: none; }
  ol.items + .more { margin-left: 0; }
  table.sources .note { display: none; }
  ol.cards { columns: 2 150px; column-gap: 12px; }
  .lead { grid-template-columns: 1fr; }
  .lead h2 { font-size: 32px; }
  .look-broadsheet .mark { font-size: 44px; }
  .look-broadsheet .dateline span + span { display: none; }
  .four { grid-template-columns: 1fr 1fr; }
  .sheet-head { display: none; }
  .sheet .row { grid-template-columns: 34px 56px minmax(0, 1fr); grid-template-rows: auto auto; }
  .sheet .no { display: none; }
  .sheet .cap { grid-column: 1; grid-row: 1 / 3; }
  .sheet .plate { grid-column: 2; grid-row: 1 / 3; width: 56px; }
  .sheet .t { grid-column: 3; }
  .sheet .src { grid-column: 3; grid-row: 2; }
  .sheet .field, .sheet .age, .look-instrument .greeble { display: none; }
}
