:root, [data-theme="light"] {
  --bg: #fbfbfa; --ink: #111418; --body: #2b3038; --muted: #646b76; --rule: #e4e5e8;
  --blue: #1d4ed8; --wash: #f1f2f4;
  --term-bg: #111316; --term-border: #111316; --photo-border: transparent;
  --cover-shadow: 0 8px 22px rgba(17,20,24,.18);
  --red: #b91c1c; --amber: #b45309; --green: #15803d;
}
[data-theme="dark"] {
  --bg: #0e0f11; --ink: #ecebe8; --body: #b9bcc2; --muted: #7a7f88; --rule: #24272c;
  --blue: #7aa7ff; --wash: #15171a;
  --term-bg: #16181b; --term-border: #26292e; --photo-border: #26292e;
  --cover-shadow: 0 8px 22px rgba(0,0,0,.5);
  --red: #f87171; --amber: #fbbf24; --green: #4ade80;
}
:root {
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --t-ink: #ecebe8; --t-body: #b9bcc2; --t-muted: #7a7f88; --t-blue: #7aa7ff; --t-off: #2d3138;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--body); font-family: var(--serif); font-size: 19px; line-height: 1.62; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.nw { white-space: nowrap; }
code { font-family: var(--mono); font-size: .8em; color: var(--ink); }
.page { max-width: 760px; margin: 0 auto; padding: 56px 28px 96px; }

/* header */
header.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 84px; }
.mark { font-style: italic; font-weight: 500; font-size: 22px; color: var(--ink); }
header nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
header nav a { margin-left: 20px; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--ink); }
header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--blue); }
.brand { display: flex; align-items: center; gap: 14px; }
.theme { width: 26px; height: 26px; border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--muted); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme:hover { color: var(--blue); border-color: var(--blue); }

/* shared type */
.prompt { font-family: var(--mono); font-size: 13.5px; color: var(--blue); margin-bottom: 18px; }
.cur { display: inline-block; width: 8px; height: 15px; background: var(--blue); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
h1 { font-weight: 500; font-size: 50px; line-height: 1.02; letter-spacing: -0.015em; color: var(--ink); margin: 10px 0 8px; }
.role { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.lede { margin-top: 28px; }
.lede p + p { margin-top: 14px; }
.u { color: var(--ink); background: linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.u:hover { color: var(--blue); background-image: linear-gradient(var(--blue), var(--blue)); }
.focus { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-top: 22px; }
.focus span { color: var(--muted); padding: 0 6px; }
.links { font-family: var(--mono); font-size: 12.5px; margin-top: 14px; }
.links a { color: var(--blue); margin-right: 18px; }
.links a:hover { text-decoration: underline; }
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* page intro (non-home) */
.pagehead .prompt { margin-bottom: 14px; }
.pagehead h1 { font-size: 44px; margin: 0 0 14px; }
.pagehead p { max-width: 620px; }

/* hero (home) */
.hero { display: grid; grid-template-columns: 1fr 184px; gap: 48px; align-items: start; }
.hero img { width: 184px; height: 224px; object-fit: cover; object-position: 50% 14%; display: block; filter: grayscale(1) contrast(1.06); border: 1px solid var(--photo-border); margin-top: 34px; }

/* sections */
h2 { font-style: italic; font-weight: 400; font-size: 22px; color: var(--ink); margin: 72px 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
h2 small { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--muted); }
h2 small a:hover { color: var(--blue); }
h3.sub { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); margin: 30px 0 8px; }

/* terminal */
.term { background: var(--term-bg); border: 1px solid var(--term-border); border-radius: 5px; padding: 18px 22px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--t-body); }
.term .cmd { color: var(--t-blue); margin-bottom: 6px; }
.term .ln { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.term .key { color: var(--t-ink); }
.term .dim { color: var(--t-muted); }
.term a { color: var(--t-blue); }
.term a:hover { text-decoration: underline; }
.bars .ln { grid-template-columns: 200px 56px 56px 1fr; }
.bar { color: var(--t-blue); letter-spacing: 1px; }
.bar i { font-style: normal; color: var(--t-off); }
.bars .tot { border-top: 1px solid #2a2d33; margin-top: 8px; padding-top: 8px; color: var(--t-ink); }
.term.pre { white-space: pre; overflow-x: auto; }

/* lists */
.list { border-top: 1px solid var(--rule); }
.row { position: relative; display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; transition: opacity .2s; }
.list:hover .row { opacity: .45; }
.list .row:hover { opacity: 1; }
.k { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.9; }
.t { font-size: 18px; color: var(--ink); text-wrap: pretty; transition: color .15s; }
.s { display: block; font-size: 15.5px; color: var(--muted); margin-top: 2px; text-wrap: pretty; }
.m { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; line-height: 1.9; }
.m.v { color: var(--blue); }
a.row:hover .t { color: var(--blue); }
.acts { display: block; font-family: var(--mono); font-size: 12px; margin-top: 6px; }
.acts a { color: var(--blue); margin-right: 16px; }
.acts a:hover { text-decoration: underline; }
.tag-up { font-family: var(--mono); font-size: 11px; color: var(--blue); border: 1px solid var(--blue); border-radius: 3px; padding: 0 5px; margin-left: 8px; vertical-align: 2px; }
@media (min-width: 1180px) {
  .row { grid-template-columns: 1fr auto; }
  .row .k { position: absolute; left: -132px; width: 112px; text-align: right; top: 13px; }
}

/* project block (open source) */
.proj { padding: 22px 0 6px; border-top: 1px solid var(--rule); }
.proj:first-of-type { border-top: none; }
.proj .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.proj .pn { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.proj .pn a:hover { color: var(--blue); }
.proj .ps { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.proj .sum { font-size: 17px; color: var(--body); margin: 6px 0 6px; max-width: 600px; }
.proj .facts { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.8; }
.proj .facts span { padding: 0 7px; }
.proj .facts a { color: var(--blue); }
.proj .facts a:hover { text-decoration: underline; }
.prs { margin-bottom: 14px; }
.pr { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 6px 0; font-size: 15.5px; align-items: baseline; }
.pr .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pr .st { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pr .st.open { color: var(--blue); }
.pr:hover .tt { color: var(--blue); }
.pr .tt { color: var(--ink); transition: color .15s; }

figure { margin: 0 0 20px; }
figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 40%; display: block; border-radius: 2px; }
figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 9px; }

.book { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.book img { width: 120px; display: block; border-radius: 2px; box-shadow: var(--cover-shadow); outline: 1px solid var(--photo-border); }
.book p { font-size: 18px; text-wrap: pretty; }
.book .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; }
.book .meta a { color: var(--blue); }
.book .meta a:hover { text-decoration: underline; }
.bookhero { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.bookhero img { width: 200px; display: block; border-radius: 3px; box-shadow: var(--cover-shadow); outline: 1px solid var(--photo-border); }
.bookhero h1 { font-size: 40px; margin: 6px 0 12px; }
.stats { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.stats b { color: var(--ink); font-weight: 500; }

/* videos */
.vids { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vid { display: block; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 3px; background: var(--wash); filter: grayscale(1) contrast(1.05); transition: filter .25s; }
.vid:hover img { filter: none; }
.vid:hover .t { color: var(--blue); }
.vid .t { font-size: 16px; display: block; margin-top: 8px; }
.vid .s { font-family: var(--mono); font-size: 11.5px; }

/* about */
.job { padding: 22px 0; border-top: 1px solid var(--rule); }
.job .jh { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.job .co { font-size: 20px; color: var(--ink); }
.job .yr { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.job .ti { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.job .facts { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin: 12px 0 4px; }
.job .facts span { color: var(--muted); padding: 0 6px; }
.job ul { margin-top: 10px; }
.job li { font-size: 16.5px; padding: 4px 0 4px 18px; position: relative; text-wrap: pretty; }
.job li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.job li a { color: var(--ink); background: linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 1px no-repeat; }
.job li a:hover { color: var(--blue); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.cols li { font-size: 16.5px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.cols li .muted { font-family: var(--mono); font-size: 11.5px; display: block; }
blockquote.pull { font-size: 22px; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--blue); padding-left: 22px; margin-top: 8px; }

/* readiness */
.tiers .row .k { font-size: 13px; }
.tier-red { color: var(--red) !important; } .tier-amber { color: var(--amber) !important; } .tier-green { color: var(--green) !important; }
.scorer .q { display: grid; grid-template-columns: 1fr auto 80px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.scorer .q:first-child { border-top: 1px solid var(--rule); }
.scorer .q .t { font-size: 17px; }
.scorer .q .k { display: block; line-height: 1.4; }
.opts { display: flex; gap: 6px; }
.opts button { font-family: var(--mono); font-size: 13px; width: 34px; height: 32px; border: 1px solid var(--rule); background: none; color: var(--muted); border-radius: 3px; cursor: pointer; }
.opts button:hover { border-color: var(--blue); color: var(--blue); }
.opts button.sel { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lvl { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.result { margin-top: 24px; }
.result .scoreline { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.result .big { font-size: 46px; font-weight: 500; color: var(--ink); line-height: 1; }
.result .big small { font-size: 20px; color: var(--muted); }
.result .status { font-family: var(--mono); font-size: 12.5px; }
.result p { margin-top: 10px; font-size: 17px; }
.share { font-family: var(--mono); font-size: 12px; margin-top: 18px; color: var(--muted); }
.share a, .share button { color: var(--blue); background: none; border: none; font: inherit; cursor: pointer; margin-left: 14px; }
.share a:hover, .share button:hover { text-decoration: underline; }

footer { margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--blue); }
footer nav a { color: var(--muted); margin-right: 16px; }
footer nav a:hover { color: var(--blue); }

@media (max-width: 680px) {
  body { font-size: 17.5px; }
  .page { padding: 36px 20px 72px; }
  header.top { margin-bottom: 52px; align-items: flex-start; }
  header.top { flex-direction: column; gap: 14px; }
  header nav { justify-content: flex-start; }
  header nav a { margin: 0 14px 0 0; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero img { order: -1; width: 112px; height: 136px; margin: 0 0 24px; }
  h1 { font-size: 38px; }
  .pagehead h1 { font-size: 34px; }
  .term { font-size: 12.5px; padding: 16px; }
  .term .ln { grid-template-columns: 1fr; gap: 0; margin-bottom: 8px; }
  .bars .ln { grid-template-columns: 1fr 40px 40px 30px; margin-bottom: 0; }
  .row { grid-template-columns: 76px 1fr; gap: 14px; }
  .row .m:not(.v) { display: none; }
  .row .m.v { grid-column: 2; }
  .book { grid-template-columns: 92px 1fr; gap: 18px; }
  .book img { width: 92px; }
  .bookhero { grid-template-columns: 1fr; gap: 20px; }
  .bookhero img { width: 150px; }
  .vids, .cols { grid-template-columns: 1fr; }
  .pr { grid-template-columns: 52px 1fr; }
  .pr .st { grid-column: 2; }
  .scorer .q { grid-template-columns: 1fr; gap: 8px; }
  .lvl { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .cur { animation: none; } }

/* ---------- readiness (matches live structure) ---------- */
.rd-band { background: var(--term-bg); color: var(--t-body); border-radius: 6px; padding: 34px 34px 30px; border: 1px solid var(--term-border); }
.rd-band .prompt { color: var(--t-blue); }
.rd-band h1 { color: var(--t-ink); font-size: 44px; margin: 4px 0 12px; }
.rd-band h1 em { font-style: italic; color: var(--t-blue); font-weight: 400; }
.rd-band p { color: var(--t-body); max-width: 600px; font-size: 18px; }
.rd-band .kicker { color: var(--t-muted); }
.rd-band .links { margin-top: 18px; }
.rd-band .links a { color: var(--t-blue); border: 1px solid #2d3138; padding: 5px 10px; border-radius: 3px; margin-right: 8px; }
.rd-band .links a:hover { border-color: var(--t-blue); text-decoration: none; }
.rd-grid { display: grid; gap: 14px; }
.rd-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.rd-card { border: 1px solid var(--rule); border-radius: 5px; padding: 18px 18px 16px; background: var(--bg); }
.rd-tier { border-top: 3px solid currentColor; }
.rd-tier .rng { font-size: 26px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.rd-tier .nm { color: var(--ink); font-size: 17px; margin: 8px 0 6px; }
.rd-tier p, .rd-dim p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.rd-tier p { color: var(--body); }
.rd-dim .id { font-family: var(--mono); font-size: 11px; color: var(--blue); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 6px; }
.rd-dim .nm { color: var(--ink); font-size: 18px; margin: 10px 0 6px; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 0 9px; }
.segs i { height: 4px; border-radius: 2px; background: var(--rule); }
.segs i.on { background: var(--blue); }
.rd-dim .foot { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.rd-dim .foot b { color: var(--ink); font-weight: 500; }
.arc { border: 1px solid var(--rule); border-radius: 5px; padding: 26px 16px 18px; overflow-x: auto; }
.arc-row { display: grid; grid-template-columns: repeat(14, minmax(52px, 1fr)); position: relative; min-width: 728px; }
.arc-row::before { content: ""; position: absolute; left: 26px; right: 26px; top: 15px; height: 2px; background: linear-gradient(90deg, var(--red), var(--amber) 45%, var(--green)); opacity: .55; }
.arc-pt { text-align: center; position: relative; }
.arc-pt .dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; color: #fff; font-weight: 500; }
.arc-pt .sc { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 9px; }
.arc-pt .ch { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.arc-pt .dl { font-family: var(--mono); font-size: 10px; color: var(--blue); margin-top: 3px; }
.heat { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; min-width: 720px; }
.heat-wrap { border: 1px solid var(--rule); border-radius: 5px; overflow-x: auto; }
.heat th, .heat td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--rule); }
.heat th { color: var(--muted); font-weight: 400; font-size: 11px; }
.heat td:first-child, .heat th:first-child { text-align: left; padding-left: 14px; color: var(--ink); white-space: nowrap; }
.heat .v0 { color: var(--muted); }
.heat .v1 { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--ink); }
.heat .v2 { background: color-mix(in srgb, var(--blue) 40%, transparent); color: var(--ink); }
.heat .v3 { background: var(--blue); color: var(--bg); }
.heat tr:last-child td { border-bottom: none; color: var(--ink); font-weight: 500; }
.note-s { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.rd-score { border: 1px solid var(--rule); border-radius: 5px; padding: 8px 22px 22px; }
.opts button.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 3px; border: 1px solid currentColor; }
.rd-cta { margin-top: 22px; background: var(--term-bg); border: 1px solid var(--term-border); border-radius: 6px; padding: 30px; text-align: center; color: var(--t-body); }
.rd-cta .kicker { color: var(--t-muted); }
.rd-cta h3 { font-weight: 500; font-size: 26px; color: var(--t-ink); margin: 6px 0 8px; }
.rd-cta p { max-width: 520px; margin: 0 auto; font-size: 17px; }
.rd-cta .links a { color: var(--t-blue); }
.rd-cta .links a.btn { display: inline-block; background: var(--t-blue); color: #0e0f11; padding: 8px 16px; border-radius: 3px; margin-right: 10px; }
@media (max-width: 680px) {
  .rd-grid.c3 { grid-template-columns: 1fr; }
  .rd-band { padding: 26px 20px; } .rd-band h1 { font-size: 34px; }
}

.page.wide { max-width: 1100px; }
.page.wide .rd-band p, .page.wide > p { max-width: 680px; }
.rd-dim p { overflow-wrap: anywhere; }
@media (min-width: 1180px) { .page.wide .row .k { position: static; width: auto; text-align: left; } .page.wide .row { grid-template-columns: 100px 1fr auto; } }

/* focus areas (F3 quiet grid) */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.fgrid > div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 20px; }
.fgrid .lb { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.fgrid .hd { color: var(--ink); font-size: 19px; margin: 6px 0 4px; line-height: 1.3; }
.fgrid p { font-size: 15.5px; color: var(--muted); line-height: 1.5; }
/* guest book (G1 sign on X) */
.sign { font-family: var(--mono); font-size: 12.5px; margin-top: 14px; color: var(--muted); }
.sign a { color: var(--blue); margin-left: 12px; }
.sign a:hover { text-decoration: underline; }
.gb-empty { font-size: 17px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 680px) { .fgrid { grid-template-columns: 1fr; } }
.rd-cta .links a.btn:hover { text-decoration: none; filter: brightness(1.08); }
.sign { border-top: 1px solid var(--rule); padding-top: 14px; }
.about-lede { margin-top: 6px; font-size: 21px; color: var(--ink); max-width: 660px; }
.about-lede p + p { color: var(--body); font-size: 19px; }

.sign button { font: inherit; color: var(--blue); background: none; border: none; cursor: pointer; margin-left: 12px; padding: 0; }
.sign button:hover { text-decoration: underline; }
.gb-compose { margin-top: 14px; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; background: var(--wash); max-width: 560px; }
.gb-head { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.gb-head b { font-weight: 500; display: block; } .gb-head .dim { color: var(--muted); }
.gb-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--serif); font-style: italic; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.gb-compose textarea { width: 100%; margin-top: 12px; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; resize: vertical; }
.gb-compose textarea:focus { outline: none; border-color: var(--blue); }
.gb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.gb-foot .dim { color: var(--muted); } .gb-foot .warn { color: var(--amber); }
.gb-foot .ghost { font: inherit; background: none; border: none; color: var(--muted); cursor: pointer; margin-right: 12px; }
.gb-foot .btn { background: var(--blue); color: var(--bg); padding: 6px 14px; border-radius: 3px; }
.gb-foot .btn:hover { filter: brightness(1.08); }

footer .foot-r { display: flex; gap: 18px; align-items: baseline; }
footer .gb-open { font: inherit; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; }
footer .gb-open:hover { color: var(--blue); }
footer + .gb-compose { margin-top: 14px; margin-left: auto; }
.book picture img, .bookhero picture img { display: block; height: auto; border-radius: 2px; box-shadow: var(--cover-shadow); outline: 1px solid var(--photo-border); }
.book picture img { width: 120px; } .bookhero picture img { width: 200px; }
@media (max-width: 680px) { .book picture img { width: 92px; } .bookhero picture img { width: 150px; } }

/* home mark */
.mark { transition: color .15s; text-decoration: none; }
.mark:hover { color: var(--blue); }
.mark[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* book covers, sized to the text beside them */
.book { grid-template-columns: 150px 1fr; gap: 30px; }
.book picture img { width: 150px; }
.bookhero { grid-template-columns: 240px 1fr; }
.bookhero picture img { width: 240px; }
@media (min-width: 1100px) {
  .bookhero { grid-template-columns: 300px 1fr; gap: 48px; margin: 0 -120px; align-items: center; }
  .bookhero picture img { width: 300px; }
}
@media (max-width: 680px) {
  .book { grid-template-columns: 96px 1fr; gap: 18px; } .book picture img { width: 96px; }
  .bookhero { grid-template-columns: 1fr; margin: 0; } .bookhero picture img { width: 170px; }
}
/* readiness band buttons: wrap without overlap */
.rd-band .links { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-band .links a { margin: 0; display: inline-block; line-height: 1.5; white-space: nowrap; }
