/* I Need A Tree Service: site stylesheet.
   Palette and type come from BRAND.md. Change a token here and it changes everywhere. */

:root {
  --color-ink: #1D2B24;
  --color-paper: #FAF7F0;
  --color-muted: #4A5A52;
  --color-green: #1F5C3F;
  --color-sage: #E6EFE3;
  --color-rust: #B5461B;
  --color-sun: #F2C14E;
  --color-leaf: #7FC29B; /* ink backgrounds only */
  --color-green-hover: #256B49;
  --color-white: #FFFFFF;
  --color-rule: #D3DBCE;

  --font-head: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --text-h1: clamp(2.1rem, 5vw, 3.4rem);
  --text-h2: clamp(1.6rem, 3.2vw, 2.3rem);
  --text-h3: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.9rem;

  --radius: 14px;
  --radius-sm: 10px;
  --stroke: 2px;
  --lift: 4px 4px 0 var(--color-ink);
  --measure: 38rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(2.75rem, 6vw, 5rem);
  --header-h: 4.25rem;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--color-ink); margin: 0 0 0.6em; line-height: 1.12; }
h1 { font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--color-green); text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { text-decoration-thickness: 0.16em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
hr { border: 0; border-top: var(--stroke) solid var(--color-rule); margin: 2rem 0; }
small, .small { font-size: var(--text-small); }

:focus-visible { outline: 3px solid var(--color-rust); outline-offset: 2px; }
.band--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--color-leaf); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--color-ink); color: var(--color-paper);
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.narrow > p:not(.lead), .narrow > ul, .narrow > ol { max-width: var(--measure); }
.measure { max-width: var(--measure); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; color: var(--color-ink); max-width: 40rem; }
.muted { color: var(--color-muted); }

/* Icons */
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1.125rem; height: 1.125rem; }

/* Illustrations (flat SVG, ink outlines) */
.il { display: block; width: 100%; height: auto; }
.il .s { stroke: var(--color-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il .n { fill: none; }
.il .f-green { fill: var(--color-green); }
.il .f-sage { fill: var(--color-sage); }
.il .f-sun { fill: var(--color-sun); }
.il .f-rust { fill: var(--color-rust); }
.il .f-paper { fill: var(--color-paper); }
.il .f-ink { fill: var(--color-ink); }
.il .f-white { fill: var(--color-white); }
.il .t-ink { stroke: var(--color-ink); }
.il .t-paper { stroke: var(--color-paper); }
.il .sw3 { stroke-width: 3; }
.band--ink .il .s { stroke: var(--color-leaf); }
.band--ink .il .f-ink { fill: var(--color-paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-paper);
  border-bottom: var(--stroke) solid var(--color-ink);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; text-decoration: none; color: var(--color-ink); border-radius: 8px; }
.logo-mark { width: 1.9rem; height: 1.9rem; flex: none; }
@media (min-width: 640px) { .logo-mark { width: 2.1rem; height: 2.1rem; } }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: clamp(1rem, 4.2vw, 1.35rem); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.logo-text .tree { color: var(--color-green); }
.logo-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--color-muted); margin-top: 0.3rem; }

.menu-toggle { display: none; }
html.js .menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.4rem 0.75rem;
  background: var(--color-paper); color: var(--color-ink);
  border: var(--stroke) solid var(--color-ink); border-radius: var(--radius-sm);
  font: 600 1rem var(--font-body); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

.site-nav { flex-basis: 100%; padding-bottom: 1rem; }
html.js .site-nav { display: none; max-height: calc(100vh - var(--header-h) - 1rem); max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto; }
html.js .site-nav.open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; border-top: 1px solid var(--color-rule); }
.nav-link {
  display: flex; align-items: center; gap: 0.4rem; width: 100%;
  min-height: 2.9rem; padding: 0.55rem 0.25rem;
  font: 600 1rem var(--font-body); color: var(--color-ink); text-decoration: none;
  background: none; border: 0; text-align: left;
}
a.nav-link:hover { color: var(--color-green); text-decoration: underline; }
.nav-link[aria-current="page"] { color: var(--color-green); box-shadow: inset 0 -3px 0 var(--color-green); }
.nav-trigger { display: none; cursor: pointer; }
.nav-sub-label { display: block; padding: 0.55rem 0.25rem 0; font-weight: 600; color: var(--color-muted); font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.05em; }
.dropdown { list-style: none; margin: 0; padding: 0 0 0.35rem 0.75rem; }
.dropdown li { margin: 0; }
.dropdown a { display: flex; align-items: center; padding: 0.55rem 0.25rem; min-height: 2.75rem; color: var(--color-ink); text-decoration: none; font-weight: 500; }
.dropdown a:hover { color: var(--color-green); text-decoration: underline; }
.nav-cta { padding: 0.9rem 0 0; border-top: 1px solid var(--color-rule); }

@media (min-width: 1024px) {
  html.js .menu-toggle, .menu-toggle { display: none; }
  .site-nav, html.js .site-nav, html.js .site-nav.open { display: flex; flex: 1 1 auto; flex-basis: auto; justify-content: flex-end; align-items: center; padding: 0; max-height: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: 0.25rem; }
  .nav-list > li { border: 0; position: relative; }
  .header-inner { flex-wrap: nowrap; }
  .nav-link, .nav-cta .btn { white-space: nowrap; }
  .logo-text { font-size: 1.2rem; }
  .nav-link { width: auto; padding: 0.55rem 0.5rem; border-radius: 8px; font-size: 0.95rem; }
  .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-green); border-radius: 0; }
  .nav-services:has([aria-current="page"]) > .nav-trigger { color: var(--color-green); box-shadow: inset 0 -3px 0 var(--color-green); border-radius: 0; }
  .nav-trigger { display: flex; }
  .nav-sub-label { display: none; }
  .dropdown {
    display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 13rem;
    margin-top: 0.4rem; padding: 0.4rem;
    background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius-sm); box-shadow: 3px 3px 0 var(--color-ink);
  }
  .nav-services.open .dropdown { display: block; }
  html:not(.js) .nav-services:hover .dropdown, html:not(.js) .nav-services:focus-within .dropdown { display: block; }
  .dropdown a { padding: 0.55rem 0.75rem; border-radius: 6px; }
  .dropdown a:hover { background: var(--color-sage); text-decoration: none; }
  .nav-trigger .icon { transition: transform 0.15s ease; }
  .nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav-cta { border: 0; padding: 0 0 0 0.35rem; }
}
@media (min-width: 1200px) {
  .nav-link { padding: 0.55rem 0.7rem; font-size: 1rem; }
  .logo-text { font-size: 1.35rem; }
  .nav-list { gap: 0.25rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.3rem;
  background: var(--color-green); color: var(--color-white);
  border: var(--stroke) solid var(--color-ink); border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--color-ink);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--color-ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-ink); }
.btn--rust { background: var(--color-rust); }
.btn--outline { background: var(--color-paper); color: var(--color-green); border-color: var(--color-green); box-shadow: 3px 3px 0 var(--color-green); }
.btn--outline:hover { box-shadow: 4px 4px 0 var(--color-green); }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; margin: 1.5rem 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Bands and sections */
.section { padding-block: var(--section); }
.band--sage { background: var(--color-sage); }
.band--ink { background: var(--color-ink); color: var(--color-paper); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--color-paper); }
.band--ink a:not(.btn) { color: var(--color-leaf); }
.band--ink .btn { border-color: var(--color-leaf); box-shadow: none; }
.band--ink .btn:hover { transform: none; background: var(--color-green-hover); }
.band--ink .lead { color: var(--color-paper); }
.band--ink .btn--outline { background: transparent; color: var(--color-paper); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Hero (home) */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4rem) var(--section); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--color-rule) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.hero-grid { position: relative; display: grid; gap: 1.75rem; grid-template-areas: "copy" "form" "art"; }
.hero-copy { grid-area: copy; }
.hero-form { grid-area: form; width: 100%; max-width: 34rem; }
.hero-art { grid-area: art; max-width: 26rem; margin-inline: auto; width: 100%; }
.hero-copy h1 { margin-bottom: 0.45em; }
.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-weight: 500; }
.checks .icon { color: var(--color-green); margin-top: 0.15rem; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "copy form" "art form"; column-gap: 3.5rem; align-items: start; }
  .hero-art { margin: 0; align-self: end; max-width: 28rem; }
  .hero-form { max-width: none; }
}

/* Interior page hero */
.page-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); border-bottom: var(--stroke) solid var(--color-ink); background: var(--color-sage); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-art { max-width: 20rem; width: 100%; margin-inline: auto; }
@media (min-width: 768px) {
  .page-hero-grid.has-art { grid-template-columns: 1fr minmax(0, 18rem); gap: 2.5rem; }
}
@media (min-width: 1024px) { .page-hero-grid.has-art { grid-template-columns: 1fr minmax(0, 22rem); } }
.hero-meta { margin: 1.1rem 0 0; font-size: var(--text-small); color: var(--color-muted); }

/* Breadcrumb */
.breadcrumb { font-size: var(--text-small); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-muted); }
.breadcrumb li + li::before { content: "\203A"; color: var(--color-muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-green); }
.breadcrumb [aria-current] { color: var(--color-muted); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding: 1.1rem 1.1rem 1.1rem 4.25rem; background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--lift); }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  background: var(--color-sun); color: var(--color-ink); border: var(--stroke) solid var(--color-ink); border-radius: 50%;
  font: 800 1.2rem/1 var(--font-head);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin-bottom: 0; }
.steps p + p { margin-top: 0.7em; }
@media (min-width: 768px) {
  .steps--row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps--row > li { padding: 4.1rem 1.25rem 1.25rem; }
  .steps--row > li::before { left: 1.25rem; top: 1.1rem; }
}
@media (min-width: 1024px) { .steps--row.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { .steps--row.four { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--lift); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card h2, .card h3 { margin: 0; }
.card p { margin: 0; color: var(--color-ink); }
.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--color-sage); color: var(--color-green); border: var(--stroke) solid var(--color-ink); border-radius: 12px; margin-bottom: 0.35rem; }
.card-icon .icon { width: 1.6rem; height: 1.6rem; }
a.card-link { text-decoration: none; color: inherit; }
.card:has(a.stretched):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--color-ink); }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card.rel { position: relative; }
.card:has(a.stretched:focus-visible) { outline: 3px solid var(--color-rust); outline-offset: 3px; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--color-rust); outline-offset: 3px; border-radius: var(--radius); }

/* Deal list (home: plain about how this works) */
.deal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); background: var(--color-white); overflow: hidden; }
.deal li { display: flex; gap: 0.9rem; padding: 1rem 1.15rem; margin: 0; align-items: flex-start; }
.deal li + li { border-top: 1px solid var(--color-rule); }
.deal .icon { color: var(--color-green); margin-top: 0.1rem; width: 1.6rem; height: 1.6rem; }
.deal p { margin: 0; }
@media (min-width: 900px) {
  .deal { grid-template-columns: 1fr 1fr; }
  .deal li { border-top: 0 !important; border-bottom: 1px solid var(--color-rule); }
  .deal li:nth-child(odd) { border-right: 1px solid var(--color-rule); }
  .deal li:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
}

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } .split--even { grid-template-columns: 1fr 1fr; } }
.split-art { max-width: 22rem; width: 100%; margin-inline: auto; }

/* Notes */
.note { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--color-white); border: var(--stroke) solid var(--color-rust); border-left-width: 8px; border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin: 0 0 1.25rem; }
.note .icon { color: var(--color-rust); width: 1.7rem; height: 1.7rem; margin-top: 0.1rem; }
.note > div > :last-child { margin-bottom: 0; }
.note--info { border-color: var(--color-green); }
.note--info .icon { color: var(--color-green); }
.note-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.3em; }

.badge {
  display: inline-block; background: var(--color-sun); color: var(--color-ink);
  border: var(--stroke) solid var(--color-ink); border-radius: 999px;
  padding: 0.2rem 0.8rem; font: 700 0.8rem/1.4 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase;
}
.offer { background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; box-shadow: var(--lift); }
.offer p { margin: 0.6rem 0 0; font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); background: var(--color-white); }
.table-wrap:focus-visible { outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 0.9rem 1rem 0; font: 700 1.1rem var(--font-head); }
th, td { text-align: left; padding: 0.75rem 1rem; vertical-align: top; border-bottom: 1px solid var(--color-rule); }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--color-sage); font-weight: 600; font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: var(--stroke) solid var(--color-ink); }
td.price, th.price { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; }
td.price--note { white-space: normal; min-width: 7rem; font-family: var(--font-body); font-weight: 600; }
tbody th { font-weight: 500; }
.table-wrap table { min-width: 20rem; }

/* Lists in prose */
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.9rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; background: var(--color-green); border-radius: 50%; }
.list-check li::after { content: ""; position: absolute; left: 0.4rem; top: 0.55em; width: 0.3rem; height: 0.55rem; border: solid var(--color-white); border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* Prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 6px solid var(--color-green); color: var(--color-ink); }
.prose .table-wrap { max-width: none; }
.prose-wide { max-width: 42rem; }
.callout { background: var(--color-sage); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout > :last-child { margin-bottom: 0; }
.sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: var(--stroke) solid var(--color-ink); font-size: var(--text-small); }
.sources h2 { font-size: 1.25rem; margin-top: 0; }
.sources li { overflow-wrap: anywhere; }
.cta-panel { margin: 2.5rem 0 0; padding: 1.5rem; background: var(--color-sage); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--lift); }
.cta-panel h2 { font-size: 1.5rem; margin-top: 0; }
.cta-panel p:last-child { margin-bottom: 0; }

/* Article */
.article-head { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem); background: var(--color-sage); border-bottom: var(--stroke) solid var(--color-ink); }
.article-head .standfirst { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; max-width: 40rem; margin-bottom: 0.9rem; }
.article-head time { font-size: var(--text-small); color: var(--color-muted); }
.article-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.article-body .prose { margin-inline: auto; }

/* FAQ */
.faq-group { margin-bottom: 2.5rem; }
.faq-list { display: grid; gap: 0.75rem; }
details.faq { background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); }
details.faq[open] { background: var(--color-sage); }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; min-height: 3.25rem; border-radius: var(--radius);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary h3 { margin: 0; font-size: 1.1rem; }
details.faq summary .icon { transition: transform 0.15s ease; color: var(--color-green); }
details.faq[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 1.1rem 1rem; max-width: var(--measure); }
.faq-answer > :last-child { margin-bottom: 0; }

/* Forms */
.form-card { background: var(--color-sage); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--lift); }
.form-card--paper { background: var(--color-white); }
.form-card > h2, .form-card > h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.form { display: grid; gap: 1.1rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .label { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--color-muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem;
  background: var(--color-white); color: var(--color-ink);
  border: var(--stroke) solid var(--color-ink); border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font-body);
}
textarea { min-height: 7rem; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2B24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.2rem; padding-right: 2.5rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-rust); outline-offset: 2px; }
.help { margin: 0.3rem 0 0; font-size: var(--text-small); color: var(--color-muted); }
.error { margin: 0.35rem 0 0; font-size: var(--text-small); font-weight: 600; color: var(--color-rust); }
.error[hidden] { display: none; }
[aria-invalid="true"] { border-color: var(--color-rust) !important; }
.choices { display: grid; gap: 0.5rem; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding: 0.6rem 0.85rem;
  background: var(--color-white); border: var(--stroke) solid var(--color-ink); border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer;
}
.choice label::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; border: var(--stroke) solid var(--color-ink); background: var(--color-white); border-radius: 50%; }
.choices--check .choice label::before { border-radius: 5px; }
.choice input:checked + label { background: var(--color-white); border-color: var(--color-green); box-shadow: inset 0 0 0 2px var(--color-green); font-weight: 600; }
.choice input:checked + label::before { background: var(--color-green); box-shadow: inset 0 0 0 3px var(--color-white); }
.choices--check .choice input:checked + label::before { box-shadow: none; background: var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 85% no-repeat; }
.choice input:focus-visible + label { outline: 3px solid var(--color-rust); outline-offset: 2px; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-notice { font-size: var(--text-small); color: var(--color-ink); margin: 0; }
.form-notice strong { font-weight: 700; }
.form-status-wrap { padding-top: 1.25rem; }
.form-status { margin: 0; max-width: var(--measure); padding: 0.9rem 1.15rem; background: var(--color-white); color: var(--color-ink); border: var(--stroke) solid var(--color-green); border-left-width: 8px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--error { border-color: var(--color-rust); }
.form-status:empty { display: none; }
.form-card .btn { justify-self: start; }
.form-card .form > .btn { width: 100%; }
@media (min-width: 640px) { .form-card--wide .form > .btn { width: auto; } }

/* Footer */
.site-footer { background: var(--color-ink); color: var(--color-paper); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; margin-top: 0; }
.site-footer a { color: var(--color-leaf); }
.site-footer .logo { color: var(--color-paper); }
.site-footer .logo-text .tree { color: var(--color-leaf); }
.site-footer .logo-sub { color: var(--color-paper); opacity: 0.8; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-tagline { margin: 0.9rem 0 0; max-width: 20rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin: 0 0 0.6rem; color: var(--color-paper); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(250, 247, 240, 0.25); font-size: var(--text-small); }
.footer-bottom p { margin: 0 0 0.6em; max-width: 52rem; }

/* Forced colors: keep the selected choice visible */
@media (forced-colors: active) {
  .choice label::before { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .choice input:checked + label::before { background: Highlight; }
  .choice input:checked + label { outline: 3px solid Highlight; }
}

/* 404 */
.notfound { text-align: left; }
.notfound .split-art { max-width: 18rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Small helpers that replace inline styles */
.stack-lg { margin: 1.5rem 0 0; }
.stack-md { margin: 1.25rem 0 0; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-section { margin-top: 3rem; }
.card-title { font-size: 1.4rem; }
.note-title--lg { font-size: 1.4rem; }
.note--narrow { max-width: 46rem; margin: 0; }
.split--top { align-items: start; }
.cta-panel--inline { margin: 0; max-width: 40rem; }
.deal.deal--single { grid-template-columns: 1fr; }
.deal.deal--single li { border-right: 0; }
