/* seld's site: a museum catalogue on bone paper (the brand: ~/swdblind-work/x/brand/BRAND.md).
   One look on purpose: the brand is this paper, so there is no dark version.
   Pictures are the brand's paintings; this file only sets type, paper and where things sit.
   Colours: red is the brand colour, green belongs to the gnome's hat alone and is never used here. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/ebgaramond-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ebgaramond-italic.woff2) format("woff2"); }

:root {
  --bone: #F1E4CF; --paper: #F8F0E0; --ink: #2A1A12; --soft: #6B5443; --red: #B22A1E; --brown: #4A2A16; --rule: #D9C7A8;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wide: 1180px; --text: 62ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 21px/1.5 var(--serif); font-variant-numeric: oldstyle-nums; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }   /* img's display above would otherwise beat the hidden attribute */
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.page { max-width: var(--wide); margin: 0 auto; padding-block: 28px 92px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 72px; }

/* the top line: the wordmark and where you can go */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.top .mark { font-size: 34px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; min-height: 44px; }
.top nav { display: flex; gap: 0 24px; flex-wrap: wrap; font-size: 18px; }
.top nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top nav a[aria-current=page] { color: var(--red); }

h1 { font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h2 { font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; margin: 0; text-wrap: balance; }
h3 { font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0; }
p { margin: 0; max-width: var(--text); }
.lede { font-size: clamp(23px, 2.4vw, 27px); line-height: 1.38; color: var(--brown); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack.tight { gap: 12px; }

/* the stream comes first, right under the menu: a visitor sees seld playing before reading a word */
.open { display: flex; flex-direction: column; gap: 20px; }
.open h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; }
.open h1 .goal { display: block; color: var(--red); margin-top: 6px; }
.page > .top + .live { margin-top: -44px; }
.page > .live + .open, .page > .live + .stack, .page > .live + .two, .page > .open + .today { margin-top: -28px; }

/* a plate: a picture with its museum label under it */
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
figcaption { font-size: 17px; line-height: 1.4; color: var(--soft); }
figcaption b { font-weight: 500; color: var(--ink); }
figcaption i { display: block; }

/* the live picture, framed like a plate on the wall */
.live { display: flex; flex-direction: column; gap: 12px; }
.frame { background: var(--paper); border: 1px solid var(--rule); padding: clamp(8px, 1.6vw, 20px); }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--brown); overflow: hidden; }
.stage iframe, .stage video, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.stage iframe { transition: opacity .25s ease; }
.label { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.label .what { font-size: 22px; }
.label .when { font-style: italic; color: var(--soft); font-size: 18px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: middle; }
body:not(.is-live) .dot { background: var(--rule); }

/* three doors into the catalogue */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.door { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.door img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 38%; border: 1px solid var(--rule); width: 100%; }
.door h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.door p { font-size: 19px; color: var(--soft); }

.band { border-top: 1px solid var(--rule); padding-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.two.lean { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* the catalogue of plates */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.plates figure > a { display: block; }

/* numbered lines, used only where the order is real */
.aims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 24px; }
.aims li { display: flex; gap: 16px; align-items: baseline; }
.aims li span { color: var(--red); font-size: 17px; min-width: 1.2em; }

.wall { background: var(--paper); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.wall p { max-width: 58ch; }
.big { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: var(--ink); }

/* the public rewrite log: dated entries in plain catalogue order */
.log { display: flex; flex-direction: column; }
.entry { border-top: 1px solid var(--rule); padding-block: 22px; display: flex; flex-direction: column; gap: 8px; }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry .meta { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 17px; color: var(--soft); }
.entry .badge { font-style: italic; }
.entry .status-kept { color: var(--brown); }
.entry .status-undone { color: var(--red); }
.entry .status-stopped { color: var(--soft); }
.entry .outcome { font-size: 18px; color: var(--soft); font-style: italic; }

/* GTA 6 public benchmark & verification ledger: museum catalogue tables, rungs, and proof clips */
.telemetry-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; background: var(--paper); border: 1px solid var(--rule); padding: 18px 22px; }
.metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric .k { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.metric .v { font-size: 22px; line-height: 1.2; font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums; }
.metric .v.is-alert { color: var(--red); }
.metric .sub { font-size: 16px; color: var(--soft); line-height: 1.3; }

.ladder { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.rung { display: grid; grid-template-columns: 54px 132px minmax(0, 1fr); gap: 12px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rung-num { font-size: 17px; color: var(--soft); font-variant-numeric: tabular-nums; }
.rung-state { font-size: 16px; font-style: italic; color: var(--soft); }
.rung.is-cleared .rung-state { color: var(--brown); font-weight: 500; font-style: normal; }
.rung.is-active .rung-state { color: var(--red); font-weight: 500; font-style: normal; }
.rung-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rung-body h3 { font-size: 22px; }
.rung-body p { font-size: 18px; color: var(--soft); max-width: 66ch; }
.rung-body .when { font-size: 16px; color: var(--soft); font-style: italic; }

.clips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.clip-card { background: var(--paper); border: 1px solid var(--rule); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.clip-card video { width: 100%; aspect-ratio: 16 / 9; background: var(--brown); display: block; border: 1px solid var(--rule); }
.clip-card h3 { font-size: 21px; }
.clip-card p { font-size: 17px; color: var(--soft); max-width: none; }

.check-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.check-table th, .check-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.check-table th { font-weight: 500; color: var(--soft); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--brown); }
.check-table td:first-child { font-weight: 500; color: var(--ink); width: 22%; }
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 14px; background: var(--bone); border: 1px solid var(--rule); padding: 10px 14px; overflow-x: auto; color: var(--ink); }

.foot { border-top: 1px solid var(--rule); padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 0 20px; flex-wrap: wrap; font-size: 17px; color: var(--soft); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* who made it: a named person, with where to find him */
.foot .made { flex-basis: 100%; max-width: none; }

@media (max-width: 860px) {
  body { font-size: 19px; }
  .page { gap: 56px; }
  .page > .top + .live { margin-top: -40px; }
  .page > .live + .open, .page > .live + .stack, .page > .live + .two, .page > .open + .today { margin-top: -24px; }
  .label { gap: 4px 16px; }
  .open, .two, .two.lean { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clips-grid { grid-template-columns: minmax(0, 1fr); }
  .rung { grid-template-columns: 44px minmax(0, 1fr); }
  .rung-state { grid-column: 2; }
  .rung-body { grid-column: 1 / -1; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 480px) { .plates { grid-template-columns: minmax(0, 1fr); } .telemetry-strip { grid-template-columns: minmax(0, 1fr); } .top nav { gap: 0 16px; font-size: 17px; } .top nav a { min-height: 36px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
