/* Revenue Model Canvas — neo-brutalism */
:root {
  --ink: #111111;
  --paper: #FFFBF0;
  --white: #FFFFFF;
  --yellow: #FFE600;
  --pink: #FF5CA8;
  --blue: #3D5AFE;
  --green: #00D18F;
  --orange: #FF8A00;
  --muted: #55524A;
  /* soft tints for score backgrounds */
  --s0: #FFD3E8;
  --s1: #FFF59A;
  --s2: #CDD6FF;
  --s3: #B5F3DA;
  /* post-it colors */
  --n-yellow: #FFEF5C;
  --n-pink: #FF9DCB;
  --n-blue: #9DB0FF;
  --n-green: #6EE9BC;
  --n-orange: #FFB65C;
  --n-white: #FFFFFF;
  --bw: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 0px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 20px; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0 0 .8em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.kicker { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 .4em; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.wide { max-width: 1680px; margin: 0 auto; padding: 16px 16px 48px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); background: var(--white);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; background: var(--yellow); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); display: inline-block; }
.topnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.topnav > a { text-decoration: none; }
.topnav > a:hover { text-decoration: underline; }
.linklike { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0; color: var(--ink); }
.linklike:hover { text-decoration: underline; }
.lang-switch { display: flex; border: 2px solid var(--ink); }
.lang-switch button { background: var(--white); border: 0; border-right: 2px solid var(--ink); font: 700 12px var(--font-head); padding: 4px 7px; cursor: pointer; }
.lang-switch button:last-child { border-right: 0; }
.lang-switch button.active { background: var(--ink); color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 10px 18px; border: var(--bw) solid var(--ink); background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .08s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { font-size: 14px; padding: 6px 12px; border-width: 2px; }
.btn-lg { font-size: 19px; padding: 14px 24px; box-shadow: var(--shadow); }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-green { background: var(--green); }
.btn-white { background: var(--white); }
.btn-black { background: var(--ink); color: var(--yellow); }
.btn.full { width: 100%; }

/* ---------- cards ---------- */
.card { background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 22px; }
.b-yellow { background: var(--yellow); }
.b-pink { background: var(--pink); }
.b-blue { background: var(--blue); color: var(--white); }
.b-blue-light { background: var(--s2); }
.b-green { background: var(--green); }
.b-orange { background: var(--orange); }
.b-white { background: var(--white); }
.pill { display: inline-block; border: 2px solid var(--ink); padding: 4px 10px; font-weight: 700; background: var(--white); font-size: 14px; }

/* ---------- flash ---------- */
.flash-wrap { max-width: 1120px; margin: 16px auto 0; padding: 0 16px; }
.flash { border: var(--bw) solid var(--ink); background: var(--green); padding: 10px 14px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin: 24px 0 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); }
.lead { font-size: 20px; max-width: 34em; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-2deg); }
.mini { border: var(--bw) solid var(--ink); box-shadow: var(--shadow); min-height: 92px; padding: 10px; font: 700 26px var(--font-head); }
.mini.span2 { grid-column: span 2; }
.mini.span3 { grid-column: span 3; min-height: 64px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.templates-intro .pillars { grid-template-columns: repeat(2, 1fr); }

/* ---------- auth / forms ---------- */
.auth { max-width: 460px; margin: 24px auto; }
.auth.wide-card { max-width: 640px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea, .new-canvas select {
  width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: var(--bw) solid var(--ink); background: var(--white); border-radius: 0;
}
.field input:focus, .field select:focus, .title-input:focus { outline: none; box-shadow: var(--shadow-sm); background: #FFFDE0; }
.field-error, .form-error { color: #B00045; font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.form-error { background: var(--white); border: 2px solid var(--ink); padding: 8px 10px; margin-bottom: 14px; }

/* ---------- canvas list ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.new-canvas { display: flex; gap: 10px; flex-wrap: wrap; }
.new-canvas select { width: auto; font-size: 15px; padding: 8px 10px; }
.canvas-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.canvas-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.canvas-card-link { text-decoration: none; }
.canvas-card h3 { font-size: 22px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions form { margin: 0; }
.empty { text-align: center; }

/* ---------- editor toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.save-status { font-weight: 700; font-size: 14px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--s3); }
.save-status.saving { background: var(--s1); }
.save-status.error { background: var(--pink); }

/* ---------- the sheet (A3) ---------- */
.sheet { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-head > div:first-child { flex: 1 1 360px; }
.title-input, .sheet-title {
  font: 700 clamp(22px, 2.6vw, 34px) var(--font-head); letter-spacing: -0.02em; width: 100%;
  border: 0; border-bottom: var(--bw) dashed transparent; background: transparent; padding: 2px 0; color: var(--ink); margin: 0;
}
.title-input:hover { border-bottom-color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.legend-item { border: 2px solid var(--ink); padding: 3px 8px; font-size: 13px; font-weight: 600; }
.legend-item b { font-family: var(--font-head); }
.legend-item.s0 { background: var(--s0); }
.legend-item.s1 { background: var(--s1); }
.legend-item.s2 { background: var(--s2); }
.legend-item.s3 { background: var(--s3); }
.legend-avg { border: 2px solid var(--ink); background: var(--ink); color: var(--white); padding: 3px 10px; font-size: 13px; }
.legend-avg b { color: var(--yellow); font-size: 15px; }
.sheet-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: right; }

.col-headers, .grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.col-headers { margin-bottom: 8px; }
.col-header { font: 700 13px var(--font-head); text-transform: uppercase; letter-spacing: .08em; text-align: center; background: var(--ink); color: var(--white); padding: 6px; }
.grid { grid-auto-rows: minmax(250px, auto); }

.block {
  grid-column: var(--col) / span var(--cs);
  grid-row: var(--row) / span var(--rs);
  background: var(--white); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative;
  transition: background-color .15s;
}
.block.is-highlight { border-width: 5px; box-shadow: var(--shadow); }
.block.is-highlight::after {
  content: "★"; position: absolute; top: -15px; left: -15px; background: var(--yellow); border: 2px solid var(--ink);
  font-size: 14px; width: 26px; height: 26px; display: grid; place-items: center;
}
.block.score-0 { background: var(--s0); }
.block.score-1 { background: var(--s1); }
.block.score-2 { background: var(--s2); }
.block.score-3 { background: var(--s3); }
.block.has-flag { outline: 3px dashed #E0004D; outline-offset: 3px; }
.block-head { display: flex; align-items: flex-start; gap: 8px; }
.block-num {
  flex: none; font: 700 15px var(--font-head); background: var(--ink); color: var(--yellow);
  min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 4px;
}
.block-title { font-size: 18px; margin: 3px 0 0; flex: 1; }
.flag-badge { font-size: 16px; }
.help-btn {
  flex: none; width: 28px; height: 28px; border: 2px solid var(--ink); background: var(--white);
  font: 700 15px var(--font-head); cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.help-btn.active, .help-btn:hover { background: var(--yellow); }
.block-q { font-size: 14px; color: #2C2A25; margin: 0; font-style: italic; }
.block-help { background: var(--white); border: 2px solid var(--ink); padding: 10px 12px; font-size: 13.5px; }
.block-help ul { margin: 0; padding-left: 18px; }
.block-help li { margin-bottom: 3px; }
.help-flag { margin: 8px 0 0; background: #FFE3EE; padding: 6px 8px; border-left: 4px solid #E0004D; }

.notes { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; flex: 1; min-height: 40px; }
.notes.is-empty::before { content: attr(data-hint); color: #77736A; font-size: 13.5px; font-style: italic; }
.note {
  position: relative; width: calc(50% - 4px); min-width: 120px; flex-grow: 1; max-width: 100%;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 8px 10px 26px; min-height: 64px;
  font-size: 14.5px; line-height: 1.35;
}
.grid .block[style*="--cs: 2"] .note { width: calc(33.33% - 6px); }
.grid .block[style*="--cs: 3"] .note { width: calc(25% - 6px); }
.note.c-yellow { background: var(--n-yellow); }
.note.c-pink { background: var(--n-pink); }
.note.c-blue { background: var(--n-blue); }
.note.c-green { background: var(--n-green); }
.note.c-orange { background: var(--n-orange); }
.note.c-white { background: var(--n-white); }
.note.dragging { opacity: .45; }
.note-text { outline: none; white-space: pre-wrap; word-break: break-word; min-height: 1.4em; }
.note-text[contenteditable]:empty::before { content: "…"; color: #6b675e; }
.note-text[contenteditable]:focus { cursor: text; }
.note:focus-within { box-shadow: 5px 5px 0 var(--ink); transform: translate(-1px, -1px); z-index: 2; }
.note-grip { position: absolute; left: 4px; bottom: 3px; cursor: grab; font-size: 14px; opacity: .55; user-select: none; }
.note-tools { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; align-items: center; opacity: 0; transition: opacity .12s; }
.note:hover .note-tools, .note:focus-within .note-tools { opacity: 1; }
.dot { width: 14px; height: 14px; border: 1.5px solid var(--ink); padding: 0; cursor: pointer; }
.dot.c-yellow { background: var(--n-yellow); } .dot.c-pink { background: var(--n-pink); }
.dot.c-blue { background: var(--n-blue); } .dot.c-green { background: var(--n-green); }
.dot.c-orange { background: var(--n-orange); } .dot.c-white { background: var(--white); }
.note-del { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; font-weight: 700; }
.note-del:hover { color: #E0004D; }
.empty-note { color: var(--muted); margin: 0; }

.add-note {
  align-self: flex-start; border: 2px dashed var(--ink); background: rgba(255,255,255,.6); font: 700 14px var(--font-head);
  padding: 6px 12px; cursor: pointer;
}
.add-note:hover { background: var(--yellow); border-style: solid; }
.block-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 2px solid var(--ink); }
.scores { display: flex; gap: 5px; }
.score-btn {
  width: 32px; height: 30px; border: 2px solid var(--ink); background: var(--white); font: 700 15px var(--font-head);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
span.score-btn { cursor: default; opacity: .35; }
span.score-btn.active { opacity: 1; }
button.score-btn:hover { box-shadow: 2px 2px 0 var(--ink); }
.score-btn.active { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.score-btn.s0.active { background: var(--pink); }
.score-btn.s1.active { background: var(--yellow); }
.score-btn.s2.active { background: var(--blue); color: var(--white); }
.score-btn.s3.active { background: var(--green); }
.flag-toggle { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.flag-toggle input { width: 16px; height: 16px; accent-color: #E0004D; }

/* ---------- dialog ---------- */
.dialog { border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 22px; max-width: 520px; width: calc(100% - 32px); background: var(--white); }
.dialog::backdrop { background: rgba(17,17,17,.45); }
.share-row { display: flex; gap: 8px; margin-bottom: 12px; }
.share-row input { flex: 1; font: inherit; padding: 8px; border: 2px solid var(--ink); min-width: 0; }
.dialog-close { margin-top: 14px; }

/* ---------- export mode (html2canvas) ---------- */
.export-only { display: none; }
body.exporting .export-only { display: block; }
body.exporting .no-export { display: none !important; }
body.exporting .notes.is-empty::before { content: ""; }
body.exporting .note { padding-bottom: 10px; }
body.exporting .sheet { box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .pillars, .templates-intro .pillars { grid-template-columns: 1fr; }
  .col-headers { display: none; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .block { grid-column: auto; grid-row: auto; min-height: 180px; }
  .note, .grid .block[style*="--cs: 2"] .note, .grid .block[style*="--cs: 3"] .note { width: 100%; }
  .note-tools { opacity: 1; }
  .sheet { padding: 12px; box-shadow: var(--shadow-sm); }
  .toolbar-right { margin-left: 0; }
  .topbar { position: static; }
}

/* ---------- print (A3 landscape) ---------- */
@media print {
  @page { size: A3 landscape; margin: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: var(--white); }
  .no-print, .no-export, .topbar { display: none !important; }
  .export-only { display: block !important; }
  .wide { padding: 0; max-width: none; }
  .sheet { box-shadow: none; border-width: 2px; padding: 10px; }
  .grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)) !important; grid-auto-rows: minmax(180px, auto); }
  .col-headers { display: grid !important; }
  .block { grid-column: var(--col) / span var(--cs) !important; grid-row: var(--row) / span var(--rs) !important; break-inside: avoid; box-shadow: none; }
  .notes.is-empty::before { content: ""; }
  .note { box-shadow: 2px 2px 0 var(--ink); padding-bottom: 8px; }
}

/* ---------- landing (RMC) ---------- */
.b-black { background: var(--ink); color: var(--white); }
.mini.b-black { color: var(--yellow); }
.rmc-mini .mini { min-height: 70px; font-size: 22px; }
.section { margin: 0 0 64px; }
.band { border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 36px 32px; margin: 0 0 64px; }
.band .lead { color: #E9E6DD; margin: 0; }
.kicker-yellow { color: var(--yellow); }
.statement { font-size: clamp(26px, 3.6vw, 42px); max-width: 26em; }
.home-col-headers { margin-top: 18px; }
.home-grid { grid-auto-rows: minmax(150px, auto); }
.home-grid .block { box-shadow: var(--shadow-sm); }
.home-grid .block.is-core { background: var(--ink); color: var(--white); }
.home-grid .block.is-core .block-q { color: #E9E6DD; }
.home-grid .block.is-core .block-num { background: var(--yellow); color: var(--ink); }
.home-flag { font-size: 13px; margin: auto 0 0; padding-top: 8px; border-top: 2px dashed currentColor; opacity: .85; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0; }
.level.s0 { background: var(--s0); } .level.s1 { background: var(--s1); }
.level.s2 { background: var(--s2); } .level.s3 { background: var(--s3); }
.level-num { font: 700 56px/1 var(--font-head); margin: 0 0 8px; }
.callout { display: inline-block; font: 700 20px var(--font-head); background: var(--ink); color: var(--yellow); padding: 10px 16px; border: var(--bw) solid var(--ink); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding-top: 28px; }
.step-num { position: absolute; top: -16px; left: 16px; background: var(--yellow); border: var(--bw) solid var(--ink); font: 700 18px var(--font-head); width: 36px; height: 36px; display: grid; place-items: center; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.stage-move { border-top: 2px solid var(--ink); padding-top: 10px; margin: 12px 0 0; font-size: 15px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 24px; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check-box { flex: none; width: 34px; height: 34px; border: var(--bw) solid var(--ink); background: var(--green); display: grid; place-items: center; font-weight: 700; }
.check h3 { margin-bottom: 4px; }
.check p, .stage p, .step p, .level p { margin-bottom: 0; }
.then h3 { margin-bottom: 6px; }
.equation { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-family: var(--font-head); margin: 18px 0; }
.eq-value { font-size: 32px; font-weight: 700; }
.eq-fraction { text-align: center; font-size: 22px; font-weight: 600; flex: 1 1 280px; }
.eq-top { padding: 0 8px 8px; border-bottom: 4px solid var(--ink); }
.eq-bottom { padding: 8px 8px 0; }
.about-card p { font-size: 17px; max-width: 46em; }
.open-card .asks { font-size: 17px; padding-left: 22px; }
.open-card .asks li { margin-bottom: 6px; }
.final { text-align: center; }
.site-footer { border-top: var(--bw) solid var(--ink); background: var(--white); margin-top: 32px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.footer-inner p { margin: 0; }
@media (max-width: 900px) {
  .levels, .steps, .stages, .checklist { grid-template-columns: 1fr; }
  .band { padding: 24px 18px; }
  .home-grid .block { min-height: 0; }
}

/* ---------- resources ---------- */
.cover-yellow { background: var(--yellow); } .cover-pink { background: var(--pink); }
.cover-blue { background: var(--blue); color: var(--white); } .cover-green { background: var(--green); }
.cover-orange { background: var(--orange); } .cover-white { background: var(--white); }
.cover-black { background: var(--ink); color: var(--yellow); }
.res-hero { margin: 8px 0 32px; }
.res-doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 64px; }
.door { display: flex; flex-direction: column; gap: 4px; text-decoration: none; position: relative; transition: transform .08s, box-shadow .08s; }
.door:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.door h2 { margin: 0 0 4px; }
.door h3 { margin: 0; }
.door p { margin: 0; max-width: 32em; }
.door-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.door-go { font: 700 15px var(--font-head); margin-top: 12px; }
.door-sm { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.door-sm .door-icon { margin: 0; font-size: 24px; }
.door-sm p { flex-basis: 100%; font-size: 15px; }
.res-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.res-head h2 { margin-bottom: 6px; }
.res-head p.muted { margin: 0; max-width: 46em; }
.res-num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font: 700 22px var(--font-head); }
.res-cards { display: grid; gap: 20px; }
.res-cards-grid { grid-template-columns: repeat(2, 1fr); }
.res-card { display: flex; flex-direction: column; gap: 6px; }
.res-card h3 { margin: 4px 0; }
.res-card .card-actions { margin-top: auto; padding-top: 8px; }
.res-card-featured { padding: 28px; }
.res-card-featured h3 { font-size: 26px; }
.res-card-featured p { font-size: 17px; max-width: 46em; }
.res-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-sm { font-size: 12px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 6px; }
.pill-sm .block-num { min-width: 20px; height: 20px; font-size: 12px; }
.affiliate-note { border-left: 4px solid var(--ink); padding: 6px 12px; background: var(--white); max-width: 60em; }
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.book { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.book-cover {
  aspect-ratio: 2 / 3; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  padding: 10px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-2deg);
}
.book-cover-title { font: 700 16px/1.1 var(--font-head); letter-spacing: -0.01em; }
.book-cover-author { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.book-body h3 { margin: 0 0 2px; font-size: 22px; }
.book-meta { font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.book-tagline { font-style: italic; font-weight: 600; }
.book-ideas { border: 2px solid var(--ink); padding: 8px 12px; margin: 0 0 12px; background: var(--paper); }
.book-ideas summary { cursor: pointer; font: 700 15px var(--font-head); }
.book-ideas ul { margin: 8px 0 0; padding-left: 18px; }
.book-ideas li { margin-bottom: 4px; }
.book-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.book-blocks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 24px; }
.post-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 0 22px 22px; overflow: hidden; transition: transform .08s, box-shadow .08s; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.post-band { display: block; height: 18px; margin: 0 -22px 14px; border-bottom: var(--bw) solid var(--ink); }
.post-meta { font-weight: 700; color: var(--muted); }
.post-card h3 { font-size: 22px; margin: 0; }
.post-card p { margin: 0; }
.post { max-width: 760px; margin: 0 auto; }
.post-head { margin: 8px 0 36px; padding: 32px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); }
.post-head .lead { max-width: none; }
.post-head.cover-blue .kicker, .post-head.cover-black .kicker { color: inherit; }
.post-author { font: 700 15px var(--font-head); margin: 0; }
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border: var(--bw) solid var(--ink); background: var(--yellow); box-shadow: var(--shadow-sm); font-weight: 600; }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--white); border: 1.5px solid var(--ink); padding: 0 4px; font-size: .9em; }
.prose pre { background: var(--ink); color: var(--white); padding: 16px; overflow-x: auto; border: var(--bw) solid var(--ink); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 16px; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 6px 10px; text-align: left; }
.prose th { background: var(--ink); color: var(--white); }
.prose hr { border: 0; border-top: var(--bw) solid var(--ink); margin: 2em 0; }
.post-cta { margin: 40px 0 56px; }

@media (max-width: 900px) {
  .res-doors, .res-cards-grid, .books { grid-template-columns: 1fr; }
  .book { grid-template-columns: 84px 1fr; gap: 14px; }
  .book-cover-title { font-size: 12px; }
  .book-cover-author { font-size: 9px; }
  .post-head { padding: 22px; }
  .prose { font-size: 17px; }
}
