/* Shared styles for every Solution Strategizer page. Colours, type and spacing come from tokens.css,
   which the PDF builds share. Layout: a working paper. A left-aligned text column, headings in the
   condensed type of Paul's canvas, and the canvas itself drawn as he drew it: black rules, coral for
   the problem and the metrics, cyan for the solution, yellow for the evaluation. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--text); font-feature-settings: "kern"; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 46rem) { .wrap { padding-inline: 2rem; } }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); line-height: 1.05; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p, li { text-wrap: pretty; }
.prose { max-width: var(--measure); display: grid; gap: var(--s2); }
.muted { color: var(--slate); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--yellow); color: #1C2430; }

.note { background: var(--mist); border-bottom: 1px solid var(--rule); font-size: var(--t-small); color: var(--slate); padding-block: var(--s1); }
.todo { background: var(--mist); border: 1px dashed var(--control); color: var(--slate); font-size: var(--t-small); padding: var(--s1) 0.75rem; }

header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: 0.875rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font: 600 1.375rem/1 var(--display); text-decoration: none; }
.mark { display: grid; grid-template-columns: repeat(4, 6px); gap: 2px; }
.mark i { width: 6px; height: 6px; background: var(--coral); }
.mark i.s { background: var(--cyan); }
.mark i.m { background: var(--coral); opacity: 0.55; }
.mark i.g { background: var(--yellow); }

.btn { display: inline-block; font: 600 1rem/1 var(--text); color: var(--paper); background: var(--ink); border: 2px solid var(--ink); padding: 0.85rem 1.2rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.small { padding: 0.6rem 0.9rem; font-size: 0.9375rem; }

section { padding-block: var(--s5); }
section + section { border-top: 1px solid var(--rule); }
.stack { display: grid; gap: var(--s4); }

.hero { padding-block: var(--s4) var(--s5); }
.hero-top { display: grid; gap: var(--s3); max-width: 48rem; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--slate); max-width: 36rem; }

form.signup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
form.signup div { display: grid; gap: 0.25rem; flex: 1 1 11rem; min-width: 0; }
form.signup label { font-size: var(--t-small); font-weight: 500; }
form.signup input, form.consult input, form.consult select, form.consult textarea {
  font: 400 1rem/1.3 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--control); border-radius: 0; padding: 0.75rem; width: 100%; }
form.signup input:focus, form.consult :is(input, select, textarea):focus { border-color: var(--ink); }
.sent { flex-basis: 100%; font-size: 0.9375rem; color: var(--slate); }

/* The canvas, laid out as in Paul's template: problem left, solution right, and the three metrics boxes
   in the middle because they measure the problem and the solution together. The 2px gaps over a black
   background are the black rules of his drawing. */
.canvas { border: var(--rule-heavy) solid var(--line); display: grid; gap: var(--rule-heavy); background: var(--line); font-size: 0.875rem; line-height: 1.45;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas:
  "ex ex ex ex ex ex ex ex ex ex ex ex"
  "ps ps ps ps ps ps ss ss ss ss ss ss"
  "ob ob re re bm bm bm bm va va sv sv"
  "ob ob re re om om om om va va sv sv"
  "ob ob re re pm pm pm pm va va sv sv"
  "cp cp cp cp ev ev ev ev cs cs cs cs"; }
.box { background: var(--paper); padding: 1rem 0.875rem 0.875rem; min-width: 0; display: grid; gap: 0.3rem; align-content: start; }
.box b { font: 600 1.0625rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.box.p b, .box.m b { color: var(--problem); }
.box.s b { color: var(--solution); }
/* Paul's bright colours run along the top of every box, as a 5px bar: they can't be text on white. */
.box.p, .box.m { box-shadow: inset 0 5px var(--coral); }
.box.s { box-shadow: inset 0 5px var(--cyan); }
.box.eval { box-shadow: inset 0 5px var(--yellow); }
.fig { font-variant-numeric: tabular-nums; font-weight: 600; }
.box.cost .fig { font-size: 1.375rem; line-height: 1.2; }
.eval { background: var(--eval-fill); }
.eval > b { color: var(--ink); }
/* On a phone the example stacks into one column, so Paul's overview shows the shape first. */
.canvas-map { display: none; }
.eval .sum { font-variant-numeric: tabular-nums; display: grid; gap: 0.125rem; }
.eval .sum div { display: flex; justify-content: space-between; gap: var(--s1); }
.eval .sum .net { border-top: 1px solid var(--ink); padding-top: 0.25rem; font-size: 1.125rem; font-weight: 600; }
mark { background: var(--yellow); color: #1C2430; padding: 0.05em 0.3em; font-weight: 600; }
.example { grid-area: ex; margin: 0; padding: 0.4rem 0.875rem; font-size: 0.8125rem; color: var(--slate); background: var(--mist); }
figcaption { font-size: var(--t-small); color: var(--slate); margin-top: 0.75rem; }

blockquote { font: 500 clamp(1.625rem, 3.6vw, 2.25rem)/1.15 var(--display); max-width: 42rem; border-left: 6px solid var(--coral); padding-left: var(--s3); text-wrap: balance; }
blockquote footer { font: 400 0.9375rem/1.4 var(--text); color: var(--slate); margin-top: var(--s2); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s3) var(--s4); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--s1); align-content: start; border-top: 6px solid var(--line); padding-top: var(--s2); min-width: 0; }
.steps li.p { border-color: var(--coral); }
.steps li.s { border-color: var(--cyan); }
.steps li.m { border-image: linear-gradient(90deg, var(--coral) 50%, var(--cyan) 50%) 1; } /* measures both sides */
.steps li.e { border-color: var(--yellow); }
.steps h3 { font-size: var(--t-h3); margin: 0; }
.steps h3::before { content: counter(step) ". "; }

.who { list-style: none; padding: 0; max-width: 44rem; }
.who li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.who li:first-child { border-top: 2px solid var(--line); }
.who a { font-weight: 500; }
.who span:last-child { color: var(--slate); font-size: 0.9375rem; white-space: nowrap; }

.maker { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s3); max-width: 48rem; align-items: start; }
.portrait { width: 9rem; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }

footer.site { border-top: var(--rule-heavy) solid var(--line); padding-block: var(--s3); font-size: var(--t-small); color: var(--slate); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between; }

/* Tables on every page share one look: a heavy rule under the head, hairlines between rows,
   group rows set like small headings. Page styles add only what is particular to their table. */
:is(.defs, .parts, .policy table, table.map, table.cost, table.sum) { border-collapse: collapse; font-size: 0.9375rem; }
:is(.defs, .parts, .policy table, table.map) thead th { font: 600 0.875rem/1.3 var(--text); color: var(--slate); border-bottom: var(--rule-heavy) solid var(--line); }
:is(.defs, .parts) tr.group :is(th, td) { font: 600 1.25rem/1.2 var(--display); color: var(--ink); padding-top: var(--s3); border-bottom: 1px solid var(--line); }

@media (max-width: 46rem) {
  .canvas { grid-template-columns: 1fr; grid-template-areas: "ex" "ps" "ob" "re" "bm" "om" "pm" "cp" "ss" "sv" "va" "cs" "ev"; }
  .canvas-map { display: block; width: 100%; height: auto; margin-bottom: var(--s2); }
  .who li { flex-direction: column; gap: 0.125rem; }
  .maker { grid-template-columns: 1fr; }
  section { padding-block: var(--s4); }
  .hero { padding-block: var(--s3) var(--s4); }
}

/* Sign-up forms (assets/signup.js): honeypot field, Turnstile box, thank-you state. */
.hp { position: absolute; left: -9999px; }
form.signup .ts { flex-basis: 100%; }
.thanks { display: grid; gap: var(--s1); }
.thanks .btn { margin-right: var(--s2); }

/* What filling in the canvas gives you: the centrepiece (Paul, 2026-11-25). Each row pairs the problem a
   seller has with what the canvas gives them; the problem on the left, the outcome large on the right. */
.outcomes-block h2 { font-size: var(--t-h1); line-height: 1; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; }
.outcomes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s1) var(--s4); padding-block: var(--s3); border-top: 2px solid var(--line); min-width: 0; }
.outcomes li:last-child { border-bottom: 2px solid var(--line); }
.outcomes .problem { grid-row: span 2; color: var(--slate); font-size: var(--t-lede); line-height: 1.4; }
.outcomes .problem::before { content: ""; display: block; width: 2.5rem; height: 5px; background: var(--coral); margin-bottom: var(--s1); }
.outcomes h3 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1.05; margin: 0; }
.outcomes li > p:last-child { max-width: var(--measure); }
@media (max-width: 46rem) { .outcomes li { grid-template-columns: 1fr; } .outcomes .problem { grid-row: auto; } }

/* Header links */
nav.top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
nav.top a:not(.btn) { font-weight: 500; text-decoration: none; }
nav.top a:not(.btn):hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Article headlines are full sentences, so they sit a size below the landing pages' headlines. */
.prose h1 { font-size: clamp(2.25rem, 5.5vw, 3.375rem); line-height: 1.02; }

/* Hero: headline, line and form on the left; a picture of Paul's blank canvas on the right (a wide screen only;
   on a phone the canvas comes in its own section, after the outcomes). */
.hero-canvas { display: none; }
@media (min-width: 64rem) {
  .hero-top.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--s4); align-items: center; }
  .hero-top.split > :not(.hero-canvas) { grid-column: 1; }
  .hero-canvas { display: block; grid-column: 2; grid-row: 1 / span 3; width: 100%; height: auto; }
}

/* The blank canvas, box by box, with what each box is for, in Paul's words from his Canva file. */
.canvas.blank { font-size: 0.9375rem; }
.canvas.blank .box { text-align: center; align-content: center; justify-items: center; padding: 1.25rem 0.875rem; min-height: 7.5rem; }
.canvas.blank .box b { font-size: 1.25rem; }
.canvas.blank .box span { color: var(--slate); max-width: 22rem; }
.canvas.blank .box.ps span { font-style: italic; }
.canvas.blank .eval > b { color: var(--ink); }
@media (min-width: 46.01rem) { .canvas.blank .box.m { min-height: 6rem; } }
.blank-figure figcaption .btn { margin-top: var(--s2); }

/* Phones: the three header links share one row under the name. */
@media (max-width: 30rem) {
  nav.top { gap: var(--s1) 0.875rem; font-size: 0.9375rem; }
  nav.top .btn.small { padding: 0.55rem 0.7rem; font-size: 0.875rem; }
}

/* A heading inside running text gets air above it. */
.prose > :is(h2, h3):not(:first-child) { margin-top: var(--s3); }
.canvas.blank { grid-template-areas:
  "ps ps ps ps ps ps ss ss ss ss ss ss"
  "ob ob re re bm bm bm bm va va sv sv"
  "ob ob re re om om om om va va sv sv"
  "ob ob re re pm pm pm pm va va sv sv"
  "cp cp cp cp ev ev ev ev cs cs cs cs"; }
@media (max-width: 46rem) { .canvas.blank { grid-template-areas: "ps" "ob" "re" "bm" "om" "pm" "cp" "ss" "sv" "va" "cs" "ev"; } }
