/* WTL black and white (2026-10-30, the user chose preview v3: drafts/bw-v3/). Loaded after hub.css.
   Pure white paper and black ink, the user's op-art loops (media/bw/), headlines in Trusted, small text in the system font.
   Step 1 uses it on the home page only; the other pages keep hub.css until they are moved over one at a time. */
:root:root:root {
  --bg: #fff; --panel: #fff; --panel-2: #f2f2f2; --ink: #0b0b0b; --ink-2: #555; --line: #0b0b0b;
  --pencil: #0b0b0b; --pencil-soft: #0b0b0b14; --amber: #0b0b0b; --shadow: none;
  --paper: #fff; --sys: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
body { font: 400 15px/1.6 var(--sys); }
h1, h2, h3 { font-family: "Trusted", serif; font-weight: 400; letter-spacing: 0; }

/* top bar: plain white, no blur, no line */
body::before { background: #fff; }
.topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.topbar .wrap { max-width: none; padding-inline: var(--pad); }
.find-btn, .menu-btn { border-color: var(--ink); }
.find-btn { color: var(--ink); }
.nav, .find { border-color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px -24px #0006; }

/* pill buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 500 14px/1 var(--sys); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.pill:hover { background: var(--ink); color: #fff; }
.pill--fill { background: var(--ink); color: #fff; }
.pill--fill:hover { background: #333; }
.on-ink .pill { background: none; color: #fff; border-color: #fff; }
.on-ink .pill--fill { background: #fff; color: var(--ink); }
.on-ink .pill:hover { background: #fff; color: var(--ink); }
.on-ink { background: var(--ink); color: #fff; }

video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }

/* section heads: title left, a line of text right */
.bw-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px 40px; padding: clamp(56px, 8vw, 110px) var(--pad) 40px; }
.bw-head h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; }
.bw-head p { max-width: 30em; }
@media (max-width: 900px) { .bw-head { grid-template-columns: 1fr; } }

/* pictures in black and white; their colour comes back on hover */
.bw-pic { position: relative; display: block; overflow: hidden; background: #000; }
.bw-pic img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); transition: filter .6s; }
.bw-pic:hover img, a:hover > .bw-pic img { filter: none; }

/* favourites: the heart is a plain round button, and a circled card gets a black pencil ring */
.fav[aria-pressed="true"] svg path { fill: var(--ink); stroke: var(--ink); }

/* toast */
.toast { background: var(--ink); color: #fff; }

/* no loupe cursor on black-and-white pages: the normal pointer */
.loupe { display: none !important; }
html.has-loupe, html.has-loupe a, html.has-loupe button { cursor: auto; }
html.has-loupe a, html.has-loupe button { cursor: pointer; }

/* ---------- step 2: the shared parts every other page uses ---------- */
:root:root:root { --line: #d4d4d4; --r: 0px; }
.topbar .wrap { max-width: none; }
#themeBtn, #loupeBtn { display: none !important; }   /* black and white only, and no loupe */

/* type: Trusted for headings in its own case (no forced capitals), system font for everything small */
.display, .h2, .h3 { font-family: "Trusted", serif; font-weight: 400; text-transform: none; letter-spacing: 0; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; }
.h3 { font-size: 21px; line-height: 1.15; }
.lede { font-size: 16px; color: var(--ink); max-width: 36em; }
.eyebrow, .field label { font: 400 13px/1.4 var(--sys); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.mono, .tag, .chip, .btn, .input, .find-btn kbd, .lang button { font-family: var(--sys); }
.hand { font-family: "Trusted", serif; color: var(--ink); }

/* page heads: no big letter, no sprocket rail, no card numbers */
.roll { padding-block: clamp(48px, 7vw, 96px) 24px; }
.roll-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px 40px; align-items: start; margin-bottom: 34px; }
.roll-head .rollno, .sprockets, .fno { display: none !important; }
.roll-head .h2 { grid-column: 1; grid-row: 1; }
.roll-head .lede { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) { .roll-head { grid-template-columns: 1fr; } .roll-head .lede { grid-column: 1; grid-row: auto; } }

/* cards: square, one black line, black-and-white picture that colours on hover */
.frame { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 0 0 16px; gap: 10px; }
.frame:hover { transform: none; border-color: var(--ink); }
.frame .shot { border-radius: 0; }
.frame .shot img { filter: grayscale(1) contrast(1.2); transition: filter .6s; }
.frame:hover .shot img { filter: none; }
.frame .meta, .frame .desc, .frame .tags { padding-inline: 14px; }
.frame.is-fav::after { inset: -7px; border: 2px solid var(--ink); }

/* tags as plain words, not outlined chips */
.tags { gap: 2px 12px; }
.tag, .tag.hot { padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; letter-spacing: 0; color: var(--ink-2); }
.tag.hot { color: var(--ink); }

/* buttons, chips, panels, notes, inputs */
.btn { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; }
.btn:hover { transform: none; background: #333; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.red { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip { border-color: var(--ink); background: #fff; font-weight: 400; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.panel { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.note { border-left-color: var(--ink); background: #f2f2f2; border-radius: 0; }
.input, select.input, textarea.input { border-color: #bbb; border-radius: 0; background: #fff; }
.search .input { border-radius: 999px; border-color: var(--ink); }
input[type="range"] { accent-color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }

/* footer on the other pages */
.foot { border-top: 0; background: var(--ink); color: #fff; margin-top: 80px; padding-block: 40px 48px; }
.foot .wrap { max-width: none; padding-inline: var(--pad); }

/* small text everywhere in the system font; code in the computer's monospace font */
:root:root:root { --body: var(--sys); --mono: var(--sys); }
pre.code, .prompt, .path, .pd textarea.input, textarea.code, code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: 0; text-transform: none; }
/* page labels that still forced capitals or letter spacing */
th, .grp > b, .lib .lic, .links .free, .links .paid, .bigdrop b, .info h3, .coming b, .count, .binfo small, .tricks div::before { text-transform: none !important; letter-spacing: 0 !important; }
th { font: 500 13px/1.3 var(--sys); color: var(--ink-2); }
.grp > b, .bigdrop b, .info h3, .coming b { font-family: "Trusted", serif; font-weight: 400; }
.lib .lic, .links .paid, .tricks div::before, .checklist div::before { color: var(--ink) !important; }
.links .free, .egg .live { color: var(--ink) !important; }
/* IG mockup on phones: the preview scrolls with the page instead of sitting on top of the form */
@media (max-width: 900px) { .stage { position: static !important; } }

/* ---------- the home page's op-art on every page (js/bw.js builds these) ---------- */
.bw-hero { position: relative; height: min(64vh, 640px); min-height: 440px; overflow: hidden; background: #000; }
.bw-hero .card { position: absolute; left: var(--pad); bottom: var(--pad); width: min(620px, calc(100% - 2 * var(--pad))); padding: clamp(22px, 2.8vw, 38px); background: #fff; }
.bw-hero .card h1 { margin: 0; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.02; }
.bw-hero .card .lede { margin: 14px 0 0; max-width: 32em; font-size: 15px; color: var(--ink); }
.bw-end { position: relative; overflow: hidden; margin-top: 80px; padding: clamp(80px, 12vw, 180px) var(--pad) var(--pad); background: #ccc; }
.bw-end .card { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: clamp(24px, 3vw, 44px); }
.bw-end h2 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; }
.bw-end .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 14px; }
.bw-end .cols b { display: block; margin-bottom: 6px; font-weight: 500; }
.bw-end .cols a { display: block; text-decoration: none; opacity: .8; line-height: 1.9; }
.bw-end .cols a:hover { opacity: 1; text-decoration: underline; }
.bw-end small { grid-column: 1 / -1; margin-top: 40px; opacity: .65; font-size: 13px; }
@media (max-width: 900px) {
  .bw-hero { height: auto; min-height: 0; padding: 38vh 16px 16px; }
  .bw-hero .card { position: relative; left: 0; bottom: 0; width: 100%; }
  .bw-end .card { grid-template-columns: 1fr; gap: 18px; }
  .bw-end .cols { grid-template-columns: 1fr 1fr; }
}
