:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #5b564d;
  --line: #e2ddd2;
  --panel: #f2eee6;
  --accent: #2c5a4c;
  --accent-dark: #22473c;
  --accent-text: #ffffff;
  --error: #a02c1c;
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
/* Header, footer and the landing page use the full desktop width; reading pages keep a narrow column. */
header .wrap, footer .wrap, main.wide { max-width: 72rem; }
@media (min-width: 900px) { header .wrap, footer .wrap, main.wide { padding-left: 2rem; padding-right: 2rem; } }
a { color: var(--accent); text-underline-offset: 0.15em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; margin: 2rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small, .hint, .cite { font-size: 0.9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem; z-index: 3; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { display: block; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem; }
header nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
header nav a:not(.btn):hover { color: var(--accent); text-decoration: underline; }
footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
header .btn { padding: 0.55rem 1.1rem; line-height: 1.3; }
/* Phones get the sticky bottom button instead, so the header stays two tidy rows. */
@media (max-width: 639px) { header .btn { display: none; } header nav { gap: 0.4rem 1.25rem; } }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Photos */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; }
.map { border: 1px solid var(--line); }

/* Landing page */
.home-hero { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.home-hero > img { display: block; width: 100%; height: clamp(12rem, 45vw, 20rem); object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
  .home-hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
  .home-hero h1 { margin-top: 0; font-size: 2.75rem; }
  .home-hero > img { height: 100%; min-height: 26rem; }
}
.grid3 { display: grid; gap: 0 2.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid3 h2 { font-size: 1.25rem; }
.grid3 ul, .grid3 ol { padding-left: 1.2rem; }
.band { background: var(--panel); border-radius: var(--radius); padding: 0.5rem 1.5rem 1rem; margin: 2.5rem 0; }
.band .grid3 { margin-top: 0; }
.band h3 { margin-top: 0.75rem; }
.prose { max-width: 46rem; }

/* Homepage quick start */
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; }
.quick .row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.quick .field { margin: 0; }
@media (min-width: 640px) { .quick .row { grid-template-columns: 9rem 1fr auto; align-items: end; } }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--surface); }
caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; }

.steps { padding-left: 1.25rem; }
.steps h2 { font-size: 1.15rem; margin: 1.25rem 0 0.25rem; }

.form fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.25rem; padding: 0.5rem 1rem 1rem; }
.form legend { font-weight: 700; padding: 0 0.25rem; }
.field { margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field .hint { margin: 0 0 0.35rem; }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: 0.65rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #a9a296; border-radius: 6px;
}
[aria-invalid=true] { border-color: var(--error); border-width: 2px; }
.err { color: var(--error); font-size: 0.9rem; font-weight: 600; margin: 0.25rem 0 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.6rem; align-items: start; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.consent label { font-weight: 400; }
.consent .err { grid-column: 1 / -1; }
.status { font-weight: 600; min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phone-only sticky quote button; pages with the form opt out via body.no-sticky */
.sticky-cta { display: none; }
@media (max-width: 639px) {
  body:not(.no-sticky) { padding-bottom: 4.5rem; }
  body:not(.no-sticky) .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0.6rem 1rem; background: var(--surface); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { display: block; text-align: center; }
}
.updated { font-size: 0.9rem; color: var(--muted); margin-top: -0.5rem; }
.guides { list-style: none; padding: 0; }
.guides li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guides li > a { font-weight: 600; font-size: 1.1rem; }
.guides p { margin: 0.3rem 0 0; }
.cap::first-letter { text-transform: uppercase; }
