:root {
  --ink: #1e2a33;
  --ink-soft: #4a5862;
  --stone: #f3f4f1;
  --stone-deep: #e4e6e1;
  --paper: #ffffff;
  --heat: #a8321e;
  --air: #1f5f8b;
  --air-deep: #174a6d;
  --cedar: #2f5d50;
  --line: #cfd4cf;
  --focus: #f2b134;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; }
a { color: var(--air); text-underline-offset: 3px; }
a:hover { color: var(--air-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.measure { max-width: 68ch; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header: the heat|air bar is the brand mark */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.thermo { display: flex; height: 6px; }
.thermo span:first-child { flex: 1; background: var(--bar-left, var(--heat)); }
.thermo span:last-child { flex: 1; background: var(--bar-right, var(--air)); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font: 700 1.6rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand small { display: block; font: 500 .8rem/1.3 var(--body); color: var(--ink-soft); letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 500; font-size: .98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--air); text-decoration: underline; }

/* Hero */
.hero { padding: 28px 0 40px; }
@media (max-width: 899px) { .hero .facts { display: none; } .hero .lede { font-size: 1.1rem; margin-top: 14px; } }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 64px 0 72px; } }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -.005em; max-width: 12ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); margin: 20px 0 0; max-width: 40ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--cedar); border-radius: 2px; }

/* Quote panel */
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--air); border-radius: 6px; padding: 24px 20px; }
@media (min-width: 600px) { .panel { padding: 28px; } }
.panel h2 { font-size: 1.9rem; font-weight: 700; }
.panel .sub { color: var(--ink-soft); margin: 6px 0 18px; font-size: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.needs label { position: relative; }
.needs input { position: absolute; opacity: 0; inset: 0; }
.needs span { display: flex; align-items: center; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; font-weight: 500; line-height: 1.25; font-size: .98rem; cursor: pointer; background: var(--paper); }
.needs input:checked + span { border-color: var(--air); background: #e8f0f6; box-shadow: inset 0 0 0 1px var(--air); }
.needs input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--air); outline: none; box-shadow: 0 0 0 3px rgba(31,95,139,.2); }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 6px; background: var(--air); color: #fff; font: 700 1.25rem/1 var(--display); letter-spacing: .02em; cursor: pointer; }
.btn:hover { background: var(--air-deep); color: #fff; }
a.btn { text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; color: var(--air); font: inherit; text-decoration: underline; cursor: pointer; margin-bottom: 12px; }
.note { border-radius: 6px; padding: 12px 14px; font-size: .97rem; margin-bottom: 16px; }
.note.yes { background: #e6f0ec; color: #1f4a3f; }
.note.no { background: var(--stone-deep); }
.error { color: var(--heat); font-weight: 600; min-height: 1.2em; margin: 0 0 10px; }
.fine { color: var(--ink-soft); font-size: .86rem; margin: 12px 0 0; }
.hp { position: absolute; left: -5000px; }
.done h2 { margin-bottom: 8px; }
[hidden] { display: none !important; }

/* Content sections */
.band { padding: 56px 0; }
.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: 2.3rem; font-weight: 700; margin-bottom: 18px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 800 3rem/1 var(--display); color: var(--air); margin-bottom: 8px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

.services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.services li { border-bottom: 1px solid var(--line); }
.services a { display: grid; gap: 2px 24px; padding: 16px 0; text-decoration: none; color: var(--ink); }
@media (min-width: 760px) { .services a { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.services strong { font: 700 1.45rem/1.1 var(--display); }
.services span { color: var(--ink-soft); }
.services a:hover strong { color: var(--air); text-decoration: underline; }

.towns { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 32px; }
@media (min-width: 640px) { .towns { grid-template-columns: repeat(3, 1fr); } }
.towns strong { display: block; font: 700 1.3rem/1.1 var(--display); }
.towns span { color: var(--ink-soft); font-size: .95rem; }

.honest { border-left: 6px solid var(--cedar); padding: 4px 0 4px 18px; max-width: 62ch; }
.honest p { margin: 0 0 10px; }

/* Article pages */
.page-head { padding: 40px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 56px 0 8px; } }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; max-width: 20ch; }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); margin: 14px 0 0; max-width: 58ch; }
.crumbs { font-size: .9rem; margin-bottom: 12px; color: var(--ink-soft); }
.page-grid { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; } .page-grid .panel { position: sticky; top: 16px; } }
.prose h2 { font-size: 1.9rem; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.callout { padding: 14px 16px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.callout.heat { border-left: 6px solid var(--heat); }
table { width: 100%; border-collapse: collapse; background: var(--paper); margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
thead th { background: var(--stone-deep); }
.sources { font-size: .9rem; color: var(--ink-soft); }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.guide-list a { font: 700 1.45rem/1.15 var(--display); }
.guide-list p { margin: 4px 0 0; color: var(--ink-soft); }

/* Footer */
.site-foot { background: var(--ink); color: #d7dde1; padding: 40px 0 32px; font-size: .95rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot .brand { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot p { margin: 10px 0 0; max-width: 46ch; }
.foot-base { border-top: 1px solid #3a4852; margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (prefers-reduced-motion: no-preference) {
  .step-enter { animation: enter .22s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
