/* The Falling Staff lab (2026-09-27): five designs for notes that fall down a
   grand staff laid on the road. The page chrome follows the Plan GUI lab; the
   road itself is a canvas (js/staff-fall-draw.js). Its own file, per the rule. */
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #15171c; --bg2: #1d2027; --bg3: #262a33; --line: #343945;
  --ink: #ecebe4; --dim: #a7aab4; --soft: #c9c6bb;
  --gold: #e2b452; --gold2: #f0cf85; --red: #c9534a; --green: #63b47a; --cyan: #34d3ff; --orange: #ff9d3b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 -apple-system, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--gold2); }
h1, h2, h3, h4 { font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 .7em; }
code { color: var(--gold2); font-size: 13px; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 20px 80px; }

.mast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.mast h1 { font-size: 30px; color: var(--gold2); }
.mast .sub { color: var(--dim); }
.mast .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.mast .links a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.mast .links a:hover { border-color: var(--gold); }

.brief { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 980px) { .brief { grid-template-columns: 1fr; } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card h2 { font-size: 20px; margin-bottom: 8px; color: var(--gold2); }
.card h3 { font-size: 16px; margin: 12px 0 4px; }
.card ul, .card ol { margin: 0 0 8px; padding-left: 20px; }
.card li { margin: 3px 0; }
.num { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.num div { background: var(--bg3); border-radius: 10px; padding: 8px 12px; min-width: 120px; flex: 1; }
.num b { display: block; font-size: 24px; color: var(--gold2); font-variant-numeric: tabular-nums; }
.num span { font-size: 12.5px; color: var(--dim); }
.rule { background: #2a2416; border: 1px solid #5a4a1e; border-radius: 10px; padding: 10px 12px; color: var(--gold2); }
.real { font-size: 13.5px; color: var(--soft); }
.real b { color: var(--gold2); }

.tabs { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: linear-gradient(var(--bg) 85%, transparent); }
.tabs a { text-decoration: none; color: var(--soft); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.tabs a b { color: var(--gold2); margin-right: 5px; }
.tabs a:hover { border-color: var(--gold); }

.section { margin: 30px 0; border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 56px; }
.section > h2 { font-size: 26px; color: var(--gold2); margin-bottom: 6px; }
.section > .lede { color: var(--soft); max-width: 1050px; margin-bottom: 12px; font-size: 16.5px; }

/* ------------------------------------------------------------ the bench */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1080px) { .bench { grid-template-columns: 1fr; } }
.pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pick button { font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--soft);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px 8px; cursor: pointer; }
.pick button b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--bg3); color: var(--gold2); font: 700 13px/1 Georgia, serif; }
.pick button:hover { border-color: var(--gold); }
.pick button.on { background: var(--gold); color: #2a2010; border-color: var(--gold); }
.pick button.on b { background: #2a2010; color: var(--gold2); }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9.6; background: #060913; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; pointer-events: none;
  font: 500 13px/1.3 Barlow, sans-serif; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px #000; }
.hud b { color: #ffd75e; font-family: Georgia, serif; font-size: 15px; margin-right: 4px; }
.hud .mid { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); max-width: 56%; text-align: center; background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 14px; color: #ffe9a6; font-weight: 700; }
.frame.paper .hud { color: rgba(255, 255, 255, .85); }
.seek { height: 9px; border-radius: 5px; background: var(--bg3); margin: 8px 0 0; cursor: pointer; overflow: hidden; }
.seek i { display: block; height: 100%; width: 0; background: var(--gold); }
.under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 13.5px; color: var(--dim); }
.under .go { font: 700 15px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .5px; text-transform: uppercase; border: 0; border-radius: 9px; padding: 10px 18px; cursor: pointer;
  background: linear-gradient(180deg, #5fe0ff, #29c4f2); color: #06121a; }
.under .go.on { background: var(--bg3); color: var(--ink); }
.under .plain { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; cursor: pointer; }
.under b { color: var(--gold2); }
.design-line { margin-top: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--soft); font-size: 15px; }
.design-line b { color: var(--gold2); } .design-line i { color: var(--dim); margin-left: 6px; }

.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.panel h4 { font: 700 11.5px/1 -apple-system, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin: 4px 0 0; }
.panel select { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; width: 100%; }
.panel .shows { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.seg { display: flex; gap: 4px; }
.seg button { flex: 1; font: inherit; font-size: 12.5px; color: var(--soft); background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; cursor: pointer; }
.seg button.on { border-color: var(--gold); color: var(--gold2); background: #2a2416; }
.panel label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--soft); cursor: pointer; }
.panel .keys { font-size: 12px; color: var(--dim); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 8px; }
.panel kbd { background: var(--bg3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font: 600 11.5px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); }

/* ------------------------------------------------------------- the wall */
.wall { display: grid; gap: 8px; overflow-x: auto; }
.wall-head, .wall-row { display: grid; grid-template-columns: 170px repeat(5, minmax(180px, 1fr)); gap: 8px; align-items: stretch; min-width: 1100px; }
.wall-head span { font: 700 13.5px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--soft); padding: 2px 4px; }
.wall-head b { color: var(--gold2); font-family: Georgia, serif; margin-right: 4px; }
.wall-what { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 6px 4px 0; }
.wall-what b { font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.wall-what span { font-size: 12px; color: var(--dim); line-height: 1.35; }
canvas.cell { width: 100%; aspect-ratio: 16 / 12.5; border-radius: 9px; border: 1px solid var(--line); background: #060913; cursor: pointer; display: block; }
canvas.cell:hover { border-color: var(--gold); }

/* ------------------------------------------------------ the five designs */
.concept { margin: 26px 0 40px; border-top: 1px solid var(--line); padding-top: 18px; scroll-margin-top: 56px; }
.concept .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.concept .head h2 { font-size: 28px; }
.concept .head .letter { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #2a2010; font: 700 22px/1 Georgia, serif; }
.concept .head .names { color: var(--dim); font-size: 14px; }
.concept .pitch { font-size: 17px; color: var(--soft); max-width: 1040px; margin-bottom: 12px; }
canvas.hero { width: 100%; aspect-ratio: 16 / 9.6; border-radius: 12px; border: 1px solid var(--line); background: #060913; display: block; }
.heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .heroes { grid-template-columns: 1fr; } }
.heroes figcaption { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.heroes figure { margin: 0; }
.how dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; font-size: 14.5px; }
.how dt { color: var(--gold2); font-weight: 600; }
.how dd { margin: 0; color: var(--soft); }
.grid3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 980px) { .grid3 { grid-template-columns: 1fr; } }
.pros h3 { color: var(--green); margin-top: 0; } .cons h3 { color: var(--red); margin-top: 0; }
.verdict { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.verdict a, .verdict button { text-decoration: none; background: var(--gold); color: #2a2010; font: 700 14px/1 -apple-system, sans-serif; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.verdict button { background: var(--bg3); color: var(--ink); border: 1px solid var(--line); }
.verdict button:hover { border-color: var(--gold); }

table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.cmp th { color: var(--dim); font-weight: 600; }
table.cmp td:first-child { white-space: nowrap; color: var(--gold2); }
@media (max-width: 700px) { table.cmp { display: block; overflow-x: auto; } }
.reco { background: #22261c; border: 1px solid #45532c; }
.reco h2 { color: #cfe3a3; }
.foot { margin-top: 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
