/* Bunkerley: warm larder cream, calm navy, soft amber torchlight (brief §13). WCAG AA throughout:
   amber is decoration or sits on navy; text on cream uses navy or the darker amber-ink. */
:root {
  --cream: #fbf6ec; --paper: #fffdf8; --line: #e6dccb; --navy: #1f3350; --navy-2: #2d4a73; --ink: #26303d; --muted: #5a6472;
  --amber: #e9a23b; --amber-soft: #fbe8c6; --amber-ink: #7a4f00;
  --stops: #fbe7e1; --stops-line: #b9573f; --may: #fdf1d9; --may-line: #b07a12; --keeps: #e6f1e6; --keeps-line: #4c7d4f;
  --radius: 14px; --gap: 1rem; --wrap: 72rem;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.text-large { font-size: 125%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: 0.6rem 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
h4 { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.9rem; color: var(--muted); }
.lede { font-size: 1.15rem; max-width: 42rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.6rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.logo svg { width: 40px; height: 40px; color: var(--navy); background: var(--amber-soft); border-radius: 12px; padding: 4px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.35rem; }
.logo__tag { font-size: 0.82rem; color: var(--muted); }
.text-size { font: inherit; font-size: 0.9rem; background: transparent; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; white-space: nowrap; }
.text-size[aria-pressed="true"] { background: var(--navy); color: #fff; }
.site-nav { background: var(--navy); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: 0; padding: 0.5rem 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; display: inline-block; padding: 0.25rem 0; }
.site-nav a[aria-current="page"], .site-nav a:hover { box-shadow: inset 0 -3px 0 var(--amber); }

main { padding-bottom: 3rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.3rem; }
.byline { margin: 0; color: var(--muted); font-size: 0.92rem; }
.badge { display: inline-block; margin: 0.6rem 0; padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.badge--checked { background: var(--keeps); color: #2f5a32; }
.badge--pending { background: var(--may); color: var(--amber-ink); }
.unverified { color: var(--amber-ink); font-weight: 700; }
.stub-banner, .editor-note { background: #eef0f7; border-left: 4px solid var(--navy-2); padding: 0.5rem 0.8rem; font-size: 0.92rem; color: var(--navy); }
span.editor-note { display: inline; padding: 0.1rem 0.4rem; }
.prose { max-width: 44rem; }
.prose li { margin: 0.25rem 0; }

/* Notices */
.ad-banner { background: var(--amber-soft); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-size: 0.92rem; }
.ad-banner strong, .ad-label { background: var(--navy); color: #fff; border-radius: 6px; padding: 0 0.4rem; font-size: 0.78rem; font-weight: 800; margin-right: 0.3rem; }
.callout { border-radius: var(--radius); padding: 0.7rem 1rem; margin: 0.8rem 0; border-left: 6px solid var(--navy-2); background: #eef2f8; max-width: 48rem; }
.callout p { margin: 0; }
.callout--co, .callout--electrical { border-left-color: var(--stops-line); background: var(--stops); }
.callout--medical, .callout--cold { border-left-color: var(--navy-2); background: #eef2f8; }
.callout--flood { border-left-color: #2a6f97; background: #e5f0f6; }
.callout--none { border-left-color: var(--line); background: var(--paper); font-size: 0.92rem; color: var(--muted); }
.source-line { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0; }
.handoff { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; max-width: 48rem; }
.handoff a { color: #fff; font-weight: 700; }
.handoff__title { color: #fff; margin-top: 0; font-size: 1.15rem; }
.email-capture { border: 2px dashed var(--line); border-radius: var(--radius); padding: 0.8rem 1.1rem; margin: 1.5rem 0; max-width: 48rem; background: var(--paper); }
.email-capture__title { margin-top: 0.2rem; font-size: 1.05rem; }

/* Hero */
.hero { display: grid; gap: 1.5rem; align-items: center; padding: 1.8rem 0 0.6rem; }
.hero__kicker { margin: 0; font-weight: 800; color: var(--amber-ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.hero__promise { display: flex; gap: 0.5rem; align-items: center; font-weight: 700; color: var(--navy); }
.hero__promise svg { width: 26px; height: 26px; flex: none; }
.hero__icons { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0; margin: 0; }
.hero__icons li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0.7rem; color: var(--navy); }
.hero__icons li:nth-child(odd) { background: var(--amber-soft); }
.hero__icons svg { width: 40px; height: 40px; display: block; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.6fr 1fr; } .hero__icons { justify-content: flex-end; } }
.calm { background: var(--paper); border-radius: var(--radius); padding: 0.4rem 1.2rem 0.8rem; border: 1px solid var(--line); margin-top: 2rem; }

/* Cards */
.cards { list-style: none; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); padding: 0; margin: 0.8rem 0; }
.card__link { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.card__link:hover { border-color: var(--navy-2); box-shadow: 0 2px 0 var(--amber); }
.card__icon svg { width: 30px; height: 30px; color: var(--navy); }
.card__name { font-weight: 800; color: var(--navy); }
.card__text { font-size: 0.92rem; color: var(--muted); }
.btn { display: inline-block; font: inherit; font-weight: 800; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 0.55rem 1.2rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); color: #fff; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; }
.tool-card { background: var(--amber-soft); border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; margin: 1.2rem 0; max-width: 44rem; }
.host-link { font-weight: 700; }
.shop-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.3rem 0; }
.shop-link { font-size: 0.9rem; }

/* Tools */
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 0.4rem 1.2rem 1rem; margin: 1.2rem 0 1.6rem; box-shadow: 0 3px 0 var(--amber-soft); }
.tool__title { margin-top: 0.8rem; }
.tool__static h3 { margin-top: 0.6rem; }
.group { border: 0; padding: 0; margin: 0 0 1.2rem; }
.group > legend { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4rem; padding: 0; }
.field-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); margin-bottom: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.6rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea { font: inherit; padding: 0.5rem 0.7rem; border: 2px solid #b9ae9b; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field--error input { border-color: var(--stops-line); }
.field__hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.field__error { color: #9a3b26; font-weight: 700; font-size: 0.9rem; margin: 0; }
.ticks, .choice { border: 0; padding: 0; margin: 0 0 0.8rem; }
.ticks legend, .choice legend { font-weight: 800; color: var(--navy); padding: 0; margin-bottom: 0.3rem; }
.ticks-grid { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.tick { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.2rem 0; cursor: pointer; }
.tick input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--navy); flex: none; }
.tick__hint { color: var(--muted); font-size: 0.9rem; }
.results { border-top: 2px solid var(--line); margin-top: 0.6rem; padding-top: 0.4rem; }
.status-cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.status { border-radius: var(--radius); padding: 0.2rem 1rem 0.6rem; border-left: 6px solid; }
.status h3, .status h4 { margin-top: 0.7rem; }
.status ul { padding-left: 1.1rem; margin: 0; }
.status li { margin: 0.4rem 0; }
.status .do { display: block; color: var(--navy); font-weight: 600; }
.status--stops { background: var(--stops); border-color: var(--stops-line); }
.status--mayStop { background: var(--may); border-color: var(--may-line); }
.status--keeps { background: var(--keeps); border-color: var(--keeps-line); }
.steps li { margin: 0.35rem 0; }
.contacts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contacts li { background: var(--cream); border-radius: 12px; padding: 0.4rem 0.8rem; }
.contacts__number { font-weight: 800; font-size: 1.3rem; color: var(--navy); margin-right: 0.3rem; }
.big-number .contacts__number { font-size: 2rem; display: block; }
.psr-note, .verdict { background: var(--cream); border-radius: var(--radius); padding: 0.6rem 1rem; }
.result-tiles { display: flex; flex-wrap: wrap; gap: var(--gap); margin: 0.8rem 0; }
.tile { background: var(--cream); border-radius: var(--radius); padding: 0.6rem 1.1rem; min-width: 11rem; }
.tile--main { background: var(--navy); color: #fff; }
.tile__label { margin: 0; font-size: 0.9rem; font-weight: 700; }
.tile__value { margin: 0; font-size: 2rem; font-weight: 800; }
.containers { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.containers li { background: var(--cream); border-radius: 10px; padding: 0.3rem 0.8rem; }
.extra { background: var(--may); border-radius: 10px; padding: 0.4rem 0.8rem; }
.checklist { list-style: none; padding: 0; }
.checklist__item { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.checklist__item--done strong { text-decoration: line-through; color: var(--muted); }
.checklist__tool { margin-left: 1.7rem; }
.have { color: var(--muted); font-weight: 400; }
.assumptions { margin: 1rem 0; font-size: 0.92rem; }
.assumptions summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.assumptions table, .prose table { border-collapse: collapse; width: 100%; margin-top: 0.4rem; }
.assumptions th, .assumptions td, .prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.35rem 0.5rem; vertical-align: top; }
.plan-card { border: 2px solid var(--navy); border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; margin: 1.4rem 0; background: #fff; }
.plan-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.plan-card__body { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.plan-card__section ul { padding-left: 1.1rem; margin: 0; }
.plan-card__check { list-style: "☐  "; }
.plan-card__note { font-size: 0.88rem; color: var(--muted); }
.example { background: var(--cream); border-radius: var(--radius); padding: 0.2rem 1rem 0.6rem; }
.sources ul { font-size: 0.92rem; }

/* Footer, cookie banner */
.site-footer { background: var(--navy); color: #e8edf5; padding: 1.6rem 0 2rem; }
.site-footer a { color: #fff; }
.site-footer .small { color: #c9d3e2; }
.site-footer__promise { font-weight: 700; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 3px solid var(--amber); box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 20; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { padding-top: 0.6rem; padding-bottom: 0.8rem; }
.cookie-banner__title { margin: 0.2rem 0; font-size: 1.1rem; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-choice { font: inherit; font-weight: 800; border: 2px solid var(--navy); background: var(--navy); color: #fff; border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; }
.cookie-choice[data-consent="denied"] { background: #fff; color: var(--navy); }

/* Print: A4 cards and checklists (brief §4 print.js). The plan card's button prints just the card. */
@page { size: A4; margin: 14mm; }
@media print {
  html { font-size: 11pt; }
  body { background: #fff; color: #000; }
  .site-header, .site-nav, .site-footer, .cookie-banner, .no-print, .skip, .crumbs, .email-capture, .handoff, .ad-banner, .shop-row, .text-size, .stub-banner { display: none !important; }
  a { color: #000; text-decoration: none; }
  .tool, .plan-card { box-shadow: none; border-color: #000; break-inside: avoid; }
  .status, .callout, .tile, .contacts li { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  body.printing-card * { visibility: hidden; }
  body.printing-card .plan-card, body.printing-card .plan-card * { visibility: visible; }
  body.printing-card .plan-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Bunkerley brand artwork: a welcoming home, a stocked cupboard and a little torchlight. */
.logo svg { width: 44px; height: 44px; padding: 5px; color: var(--navy); background: var(--amber-soft); border: 1px solid #f2d49b; border-radius: 14px; }
.hero { gap: clamp(1rem, 3vw, 2.5rem); padding-top: 1.35rem; }
.hero__text { position: relative; z-index: 1; }
.hero__text h1 { max-width: 17ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); letter-spacing: -0.035em; }
.hero__kicker { display: inline-flex; align-items: center; gap: .45rem; background: var(--amber-soft); border-radius: 999px; padding: .28rem .72rem; }
.hero__kicker::before { content: ""; width: .48rem; height: .48rem; background: var(--amber); border-radius: 50%; }
.hero-art { position: relative; max-width: 31rem; justify-self: end; width: 100%; padding: .5rem 0 2.4rem; }
.hero-art__scene { display: block; width: 100%; filter: drop-shadow(0 12px 10px rgba(31,51,80,.08)); }
.art-sky { fill: #f5ead5; }
.art-roof, .art-ground, .art-window-line, .art-door-line, .art-shelf, .art-tin-line, .art-bottle-line, .art-ray, .art-path { fill: none; stroke: #1f3350; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art-roof { stroke-width: 8; }
.art-window { fill: #e5eff0; stroke: #1f3350; stroke-width: 4; }
.art-door { fill: #e9a23b; stroke: #1f3350; stroke-width: 4; }
.art-door-line { stroke: #fbe8c6; stroke-width: 3; }
.art-knob { fill: #1f3350; }
.art-shelf { stroke: #fbe8c6; stroke-width: 3; }
.art-tin { fill: #fffdf8; stroke: #1f3350; stroke-width: 3; }
.art-tin-line, .art-bottle-line { stroke-width: 2; }
.art-bottle { fill: #d6e9e7; stroke: #1f3350; stroke-width: 3; }
.art-sun { fill: #e9a23b; }
.art-ray { stroke: #b07a12; stroke-width: 3; }
.art-torch { fill: #fffdf8; stroke: #1f3350; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.art-ground { stroke: #8aa18b; stroke-width: 5; }
.art-path { stroke: #b8c7b3; stroke-width: 5; }
.hero-art__note { position: absolute; right: .25rem; bottom: .3rem; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 5px 18px rgba(31,51,80,.08); color: var(--navy); font-size: .88rem; font-weight: 750; }
.hero-art__dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #7a9a70; box-shadow: 0 0 0 4px #e6f1e6; }
@media (max-width: 51.99rem) { .hero-art { max-width: 27rem; justify-self: center; margin-top: -.4rem; } .hero { gap: .7rem; } }
/* Topic illustrations for Bunkerley's three practical home readiness hubs. */
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 20rem); align-items: center; gap: clamp(1rem, 4vw, 3rem); margin: .5rem 0 1.5rem; }
.hub-intro__copy { max-width: 48rem; }
.hub-intro__copy > :first-child { margin-top: 0; }
.hub-intro__copy > :last-child { margin-bottom: 0; }
.hub-art { width: 100%; margin: 0; }
.hub-art svg { display: block; width: 100%; filter: drop-shadow(0 10px 9px rgba(31,51,80,.07)); }
.scene-bg { stroke: #e6dccb; stroke-width: 2; }
.scene-bg--amber { fill: #f5ead5; }
.scene-bg--blue { fill: #e5eff0; }
.scene-bg--green { fill: #e6f1e6; }
.scene-moon, .scene-spark { fill: #e9a23b; }
.scene-stars { fill: none; stroke: #b07a12; stroke-width: 3; stroke-linecap: round; }
.scene-table, .scene-ground, .scene-shelf, .scene-bottle, .scene-tins, .scene-board, .scene-paper, .scene-check, .scene-lines, .scene-bag, .scene-radio, .scene-torch { stroke: #1f3350; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.scene-table, .scene-ground, .scene-shelf, .scene-check, .scene-lines { fill: none; }
.scene-ground { stroke: #8aa18b; stroke-width: 5; }
.scene-torch { fill: #e9a23b; }
.scene-radio { fill: #fffdf8; }
.scene-radio circle { fill: #d6e9e7; }
.scene-bottle { fill: #c6e2e0; }
.scene-tins { fill: #fffdf8; }
.scene-leaf { fill: #8aa18b; stroke: #1f3350; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scene-board { fill: #e9a23b; }
.scene-paper { fill: #fffdf8; }
.scene-bag { fill: #e9a23b; }
@media (max-width: 40rem) { .hub-intro { grid-template-columns: 1fr; gap: .4rem; } .hub-art { max-width: 18rem; justify-self: center; } }
