/* ==========================================================================
   Building Blochs — Field Notebook design system
   Warm paper, hand-drawn ink, the red qubit-arrow as accent.
   ========================================================================== */

:root {
  --ink:      #1b1b20;
  --ink-soft: #3a3a42;
  --paper:    #f4efe2;
  --card:     #fbf8f1;
  --grey:     #6f6f74;
  --line:     #e3dccb;
  --red:      #e0271b;
  --red-deep: #b81d14;
  --blue:     #3a8fb7;
  --green:    #4ea863;
  --yellow:   #dca233;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  /* feel tokens — driven by data-vibe / data-surface on <body> */
  --bw: 2px;                 /* border width */
  --bc: var(--ink);          /* border color */
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);
  --paper-dot: rgba(27,27,32,.06);
  --hand-display: inline;    /* hand-drawn annotations on/off */

  --font-disp: 'Fredoka', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font-hand: 'Patrick Hand', cursive;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, var(--paper-dot) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-disp); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* hand-drawn annotation */
.hand { font-family: var(--font-hand); color: var(--grey); display: var(--hand-display); }
.mono { font-family: var(--font-mono); }
.red { color: var(--red); }

/* highlighter underline on a word */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 12px;
  background: rgba(224,39,27,.18); z-index: -1; transform: rotate(-.5deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-disp); font-weight: 600; font-size: 17px;
  padding: 13px 24px; border-radius: var(--r-sm); white-space: nowrap;
  border: var(--bw) solid var(--bc); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn-ghost   { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- eyebrow / tag chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); border: var(--bw) solid var(--bc); border-radius: 30px; padding: 6px 15px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: #fff; padding: 4px 11px; border-radius: 30px; display: inline-block;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,226,.92); backdrop-filter: blur(8px);
  border-bottom: var(--bw) solid var(--bc);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand .bn { font-family: var(--font-disp); font-weight: 600; font-size: 20px; line-height: 1; }
.brand .bn small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .18em; color: var(--grey); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: 16px; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--red); }
.nav-links a.active { border-color: var(--ink); }
.nav-links a.pill { color: var(--card); background: var(--ink); padding: 9px 18px; border-radius: 30px; border: none; }
.nav-links a.pill:hover { background: var(--red); }
.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 72px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center; }
.hero h1 { font-size: 60px; margin-top: 22px; text-wrap: balance; }
.hero .sub { font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 540px; margin-top: 22px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .byline { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-family: var(--font-hand); font-size: 19px; color: var(--grey); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.hero-art img { width: 100%; max-width: 420px; filter: drop-shadow(6px 8px 0 rgba(27,27,32,.10)); }
.hero-art img.hero-gif { filter: none; border-radius: 18px; box-shadow: 10px 12px 0 rgba(27,27,32,.10), 0 8px 30px rgba(27,27,32,.14); }
.callout { position: absolute; font-family: var(--font-hand); font-size: 20px; line-height: 1.1; max-width: 165px; color: var(--ink); }
.callout svg { position: absolute; overflow: visible; }
.callout.c1 { top: 18px; right: -6px; }
.callout.c2 { bottom: 40px; left: -10px; text-align: right; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec { padding: 44px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: 36px; }
.sec-head .hand { font-size: 21px; }
.sec-kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

/* ==========================================================================
   CARDS — audience paths
   ========================================================================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: var(--bw) solid var(--bc); border-radius: var(--r-md);
  padding: 28px 26px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
  transition: transform .14s, box-shadow .14s;
}
.card.link:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-hover); }
.card .card-ico { width: 50px; height: 50px; border: var(--bw) solid var(--bc); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--paper); margin-bottom: 18px; }
.card h3 { font-size: 27px; }
.card p { font-size: 16px; color: var(--ink-soft); margin-top: 11px; flex: 1; }
.card .go { font-family: var(--font-disp); font-weight: 600; font-size: 16px; margin-top: 18px; display: inline-flex; gap: 7px; }
.card .num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 13px; color: #b3ac9d; }

/* advantages — teaching & outreach */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; margin-top: 10px; }
.adv-item { display: flex; gap: 14px; align-items: flex-start; }
.adv-ck { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.adv-ck.b { background: var(--blue); }
.adv-ck.g { background: var(--green); }
.adv-item h4 { font-family: var(--font-disp); font-weight: 600; font-size: 19px; }
.adv-item p { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.46; }

/* ==========================================================================
   DARK STRIP ("what is it")
   ========================================================================== */
.strip { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 48px 50px; }
.strip.grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.strip h2 { font-size: 38px; color: #fff; }
.strip p { font-size: 18px; line-height: 1.55; color: #c9c9cf; margin-top: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { border: 2px solid rgba(255,255,255,.2); border-radius: var(--r-sm); padding: 18px; }
.fact .n { font-family: var(--font-disp); font-weight: 600; font-size: 32px; line-height: 1; color: var(--red); }
.fact .l { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: #b6b6bc; margin-top: 9px; }

/* steps inside dark strip */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 8px; }
.step { padding: 4px 30px; border-left: 2px solid rgba(255,255,255,.18); }
.step:first-child { padding-left: 0; border-left: none; }
.step .sn { font-family: var(--font-disp); font-weight: 600; font-size: 40px; color: var(--red); line-height: 1; }
.step h3 { font-size: 22px; color: #fff; margin-top: 14px; }
.step p { font-size: 16px; color: #c4c4cc; margin-top: 9px; }

/* bloch-sphere diagram, centred, with three simple hand-drawn note columns below */
.bloch { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.bloch-art svg { width: 100%; max-width: 300px; height: auto; }
.bloch-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.bnote h3 { font-family: var(--font-hand); font-weight: 400; font-size: 23px; color: #fff; line-height: 1.1; }
.bnote p { font-family: var(--font-hand); font-size: 18.5px; color: #d2d2d8; line-height: 1.35; margin-top: 3px; }

/* ==========================================================================
   GAME / SOFTWARE ROW
   ========================================================================== */
.soft-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.soft {
  display: flex; gap: 18px; align-items: center;
  border: 2px dashed var(--ink); border-radius: var(--r-md); padding: 24px 26px; background: var(--card);
  transition: transform .14s;
}
.soft:hover { transform: translate(-2px,-2px); }
.soft .badge { font-family: var(--font-mono); font-weight: 700; font-size: 17px; width: 58px; height: 58px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.soft h4 { font-family: var(--font-disp); font-weight: 600; font-size: 20px; }
.soft p { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.45; }
.soft .lk { font-family: var(--font-mono); font-size: 13px; margin-top: 8px; display: inline-block; }
.soft .lk:hover { text-decoration: underline; }

/* ==========================================================================
   GENERIC CONTENT (interior pages)
   ========================================================================== */
.page-head { padding: 52px 0 8px; }
.page-head h1 { font-size: 58px; margin-top: 16px; }
.page-head .lede { font-size: 20px; color: var(--ink-soft); max-width: 640px; margin-top: 18px; }

.prose { max-width: 780px; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose h3 { font-size: 22px; margin-top: 30px; }
.prose p { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }
.prose ul.bullets { margin-top: 14px; }
.prose ul.bullets li { font-size: 17px; color: var(--ink-soft); padding-left: 26px; position: relative; margin-top: 10px; }
.prose ul.bullets li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
a.inline { color: var(--red); border-bottom: 1.5px solid rgba(224,39,27,.4); }
a.inline:hover { border-color: var(--red); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: rgba(27,27,32,.06); padding: 2px 6px; border-radius: 5px; }

/* numbered step blocks */
.flow { display: grid; gap: 18px; margin-top: 24px; }
.flow-item { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; background: var(--card); border: var(--bw) solid var(--bc); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.flow-item .fn { font-family: var(--font-disp); font-weight: 700; font-size: 28px; color: var(--red); width: 46px; height: 46px; border: var(--bw) solid var(--bc); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.flow-item h3 { font-size: 21px; }
.flow-item p { font-size: 16px; color: var(--ink-soft); margin-top: 7px; }

/* ---------- tables (BOM, levels) ---------- */
.table-card { border: var(--bw) solid var(--bc); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
table.bb { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.bb caption { display: none; }
table.bb thead th { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 13px 18px; }
table.bb td { padding: 12px 18px; border-top: 1.5px solid var(--line); vertical-align: top; }
table.bb tbody tr:nth-child(even) { background: rgba(27,27,32,.025); }
table.bb td.qty, table.bb td.price { font-family: var(--font-mono); white-space: nowrap; }
table.bb td .src { color: var(--red); font-family: var(--font-mono); font-size: 13px; }
table.bb td .src:hover { text-decoration: underline; }
table.bb .grp td { background: var(--paper); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding: 9px 18px; }

/* callout boxes */
.note { border: var(--bw) solid var(--bc); border-radius: var(--r-md); padding: 20px 24px; background: var(--card); display: flex; gap: 16px; align-items: flex-start; }
.note .ni { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-disp); font-weight: 700; }
.note.warn .ni { background: var(--yellow); color: var(--ink); }
.note h4 { font-family: var(--font-disp); font-size: 18px; }
.note p { font-size: 15.5px; color: var(--ink-soft); margin-top: 5px; }

/* two-column meta panel */
.panel { background: var(--card); border: var(--bw) solid var(--bc); border-radius: var(--r-md); padding: 26px 28px; box-shadow: var(--shadow); }
.panel h3 { font-size: 20px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1.5px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: none; }
.kv .k { color: var(--ink-soft); }
.kv .v { font-family: var(--font-mono); font-size: 13.5px; text-align: right; }

/* checklist */
.checklist { display: grid; gap: 10px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.checklist .box { flex-shrink: 0; width: 22px; height: 22px; border: var(--bw) solid var(--bc); border-radius: 6px; margin-top: 2px; }

/* script cards (outreach) */
.scripts { display: grid; gap: 20px; margin-top: 24px; }
.script { border: var(--bw) solid var(--bc); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.script .sh { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: var(--bw) solid var(--bc); background: var(--paper); }
.script .sh h3 { font-size: 22px; }
.script .sh .dur { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: #fff; background: var(--red); padding: 5px 12px; border-radius: 30px; }
.script .sb { padding: 22px 24px; }
.script ol { margin: 0; padding-left: 20px; }
.script ol li { font-size: 16px; color: var(--ink-soft); margin-top: 9px; padding-left: 6px; }
.script blockquote { margin: 0; font-family: var(--font-hand); font-size: 22px; line-height: 1.4; color: var(--ink); border-left: 3px solid var(--red); padding-left: 18px; }

/* ==========================================================================
   MANUALS — rendered Markdown (MANUAL-*.md via _layouts/manual.html)
   Styles Kramdown's bare-tag output to match the Field Notebook so the
   .md files stay easy to edit while the pages look hand-built.
   ========================================================================== */
/* basic info as stat cards (big figure + label) */
.meta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; max-width: 780px; margin-bottom: 16px; }
.meta-stat { background: var(--card); border: var(--bw) solid var(--bc); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.meta-stat .v { display: block; font-family: var(--font-disp); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--red); }
.meta-stat .k { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
/* "You need" — a checklist panel (shopping-list style) */
.manual-need { max-width: 780px; margin-bottom: 30px; }
.manual-need .nk { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.manual-need .checklist { margin-top: 14px; }
.manual-need .checklist li { font-size: 15.5px; }
.manual-need .checklist .box { width: 18px; height: 18px; margin-top: 3px; }

.manual { max-width: 780px; }
.manual > :first-child { margin-top: 0; }
.manual h2 { font-size: 30px; margin-top: 46px; }
.manual h3 { font-size: 22px; margin-top: 32px; }
.manual h4 { font-family: var(--font-disp); font-weight: 600; font-size: 18px; margin-top: 24px; }
.manual p { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }
.manual strong { color: var(--ink); }
.manual a { color: var(--red); border-bottom: 1.5px solid rgba(224,39,27,.4); }
.manual a:hover { border-color: var(--red); }
.manual hr { border: none; border-top: 1.5px solid var(--line); margin: 40px 0; }

/* lists — ordered keep numbers; unordered get the little red square marker */
.manual ol { margin-top: 14px; padding-left: 24px; }
.manual ol li { font-size: 17px; color: var(--ink-soft); margin-top: 10px; padding-left: 6px; }
.manual ul { margin-top: 14px; }
.manual ul li { font-size: 17px; color: var(--ink-soft); padding-left: 26px; position: relative; margin-top: 10px; }
.manual ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }

/* inline code & fenced code blocks */
.manual code { font-family: var(--font-mono); font-size: .9em; background: rgba(27,27,32,.06); padding: 2px 6px; border-radius: 5px; }
.manual pre { background: var(--ink); border: var(--bw) solid var(--bc); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 18px 20px; overflow: auto; margin-top: 18px; }
.manual pre code { background: none; padding: 0; color: var(--paper); font-size: 13.5px; line-height: 1.7; }

/* blockquotes — suggested spoken lines: subtle, italic & muted, thin red rule */
.manual blockquote {
  margin: 18px 0 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--red);
  color: var(--ink-soft); font-style: italic;
}
.manual blockquote > :first-child { margin-top: 0; }
.manual blockquote p { color: var(--ink-soft); }
.manual blockquote ul li, .manual blockquote ol li { color: var(--ink-soft); }
/* keep stage directions / emphasised words upright so they still stand out */
.manual blockquote em { font-style: normal; }

/* tables — give the bare Markdown table the table.bb / .table-card look */
.manual table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px;
  margin-top: 22px; background: var(--card);
  border: var(--bw) solid var(--bc); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow);
}
.manual thead th {
  background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-weight: 400;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 13px 18px;
}
.manual tbody td { padding: 12px 18px; border-top: 1.5px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.manual tbody tr:nth-child(even) { background: rgba(27,27,32,.025); }
.manual tbody tr:first-child td { border-top: none; }

/* an embedded .note/callout keeps its own tight internal spacing inside a manual */
.manual .note { margin-top: 18px; }
.manual .note h4 { margin-top: 0; }
.manual .note p { margin-top: 5px; font-size: 15.5px; }

/* cross-link buttons under the article */
.manual-related { max-width: 780px; margin-top: 40px; }

@media (max-width: 900px) {
  .manual table { font-size: 14px; }
  .manual thead th, .manual tbody td { padding: 10px 12px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { border-top: var(--bw) solid var(--bc); margin-top: 60px; padding: 44px 0 50px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-foot .fcol h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 14px; }
.site-foot .fcol a { display: block; font-size: 15px; padding: 5px 0; color: var(--ink-soft); }
.site-foot .fcol a:hover { color: var(--red); }
.site-foot .fbrand .bn { font-family: var(--font-disp); font-weight: 600; font-size: 19px; }
.site-foot .fbrand p { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; max-width: 280px; }
.partners { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.partners span { font-family: var(--font-disp); font-weight: 600; font-size: 15px; }
.foot-bottom { border-top: 1.5px solid var(--line); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; }
.foot-bottom .mono { font-family: var(--font-mono); font-size: 12px; color: var(--grey); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.pill) { display: none; }
  .nav-links a.menu { display: inline-flex; }
  .hero { padding: 40px 0 10px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 46px; }
  .hero-art { min-height: 320px; order: -1; }
  .hero-art img { max-width: 300px; }
  .callout { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .adv { grid-template-columns: 1fr; gap: 20px; }
  .strip.grid { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; }
  .strip h2 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .bloch-notes { grid-template-columns: 1fr; gap: 16px; }
  .bloch-art svg { max-width: 240px; }
  .step { border-left: none; border-top: 2px solid rgba(255,255,255,.18); padding: 18px 0 0; }
  .step:first-child { padding-top: 0; border-top: none; }
  .soft-row { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 40px; }
  .site-foot .wrap { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { flex-direction: column; }
  table.bb { font-size: 14px; }
  table.bb td, table.bb thead th { padding: 10px 12px; }
}

/* ==========================================================================
   FEEL LAYERS — driven by data-vibe / data-surface attributes on <body>
   Each personality reshapes radius, shadow language, border weight and the
   hand-drawn annotations together, so the whole site changes character.
   ========================================================================== */

/* — PLAYFUL (default): chunky radii, hard offset "sticker" shadows, ink borders,
     visible hand-drawn margin notes & dotted notebook grid. Tokens already set
     in :root, restated here for clarity / specificity. */
body[data-vibe="playful"] {
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --bw: 2px; --bc: var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);
  --hand-display: inline;
  --paper-dot: rgba(27,27,32,.06);
}

/* — EDITORIAL: tighter radii, soft diffuse shadows, hairline borders, no margin
     notes, clean (dot-free) paper. Reads like a calm science magazine. */
body[data-vibe="editorial"] {
  --r-sm: 7px; --r-md: 11px; --r-lg: 14px;
  --bw: 1.5px; --bc: var(--line);
  --shadow: 0 14px 32px rgba(27,27,32,.10);
  --shadow-sm: 0 8px 20px rgba(27,27,32,.07);
  --shadow-hover: 0 18px 40px rgba(27,27,32,.16);
  --hand-display: none;
  --paper-dot: transparent;
}
body[data-vibe="editorial"] .btn { box-shadow: none; }
body[data-vibe="editorial"] .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,27,32,.14); }
body[data-vibe="editorial"] .btn:active { transform: translateY(0); box-shadow: none; }
body[data-vibe="editorial"] .card.link:hover { transform: translateY(-3px); }
body[data-vibe="editorial"] .eyebrow { border-width: 1.5px; border-color: var(--line); }

/* — BOLD: near-square corners, no blur, thick slab borders and a heavy flat
     offset. Loud, poster-like, maker-zine energy. Margin notes stay. */
body[data-vibe="bold"] {
  --r-sm: 3px; --r-md: 4px; --r-lg: 6px;
  --bw: 3px; --bc: var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
  --shadow-hover: 10px 10px 0 var(--ink);
  --hand-display: inline;
  --paper-dot: rgba(27,27,32,.05);
}
body[data-vibe="bold"] h1, body[data-vibe="bold"] h2, body[data-vibe="bold"] h3 { font-weight: 700; letter-spacing: -.02em; }
body[data-vibe="bold"] .btn { font-weight: 700; }

/* ---------- SURFACE: the paper mood (warm cream / bright / cool slate) ---------- */
body[data-surface="bright"] {
  --paper: #fbfaf7; --card: #ffffff; --line: #e9e6df;
}
body[data-surface="slate"] {
  --paper: #e9eaee; --card: #fbfbfd; --line: #d4d6dd; --ink-soft: #34343c;
}
body[data-surface="slate"] .site-nav { background: rgba(233,234,238,.92); }

/* keep the sticky nav tint in sync with whatever paper is active */
body { --nav-tint: var(--paper); }
.site-nav { background: color-mix(in srgb, var(--paper) 92%, transparent); }

