/* The baseline every property inherits. Styles semantic HTML, so a generated
   property looks right without the build remembering class names. One class,
   .cta, marks the primary call link. No external requests: system fonts only,
   the lint enforces it. */

:root {
  --ground: #fafaf8;
  --surface: #ffffff;
  --ink: #15181b;
  --muted: #5a6169;
  --rule: #e2e4e1;
  --accent: #14594a;
  --accent-ink: #ffffff;
  --note: #6b7280;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14171a;
    --surface: #1b1f22;
    --ink: #e8ebe9;
    --muted: #9aa3a8;
    --rule: #2a2f33;
    --accent: #4fb294;
    --accent-ink: #0c1512;
    --note: #868f95;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1.25rem 3rem;
  background: var(--ground);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* header */
header { border-bottom: 1px solid var(--rule); padding: 1.25rem 0 1rem; margin-bottom: 1.75rem; }
header > p:first-child { margin: 0 0 .6rem; }
/* display:inline-block so the padding is a real hit area, not just paint. */
header > p:first-child a {
  display: inline-block;
  color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.01em;
  padding-block: .8rem;
}
/* Row-gap wide enough that the taller links below don't leave adjacent
   rows within a thumb-miss of each other. */
nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: .9rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; padding-block: .75rem; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* type */
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .25rem; }
p { margin: 0 0 .9rem; }
ul { padding-left: 1.15rem; }
li { margin-bottom: .5rem; }
section { margin-bottom: 1.5rem; }

/* the call to action */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1.1rem;
  border-radius: 6px;
}
.cta:hover { filter: brightness(1.08); }
/* Margin lives on the button itself, not on `.cta + *` — that also matched
   the *next* link in "Call … or send a note.", pushing the trailing period
   off it. margin-bottom covers the case where the sentence wraps and the
   next link lands directly under the button instead of beside it. */
p .cta { margin-right: .4rem; margin-bottom: .5rem; }

/* form */
form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .9375rem; }
input, textarea {
  font: inherit; font-size: 1rem; font-weight: 400;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--ground);
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
button {
  font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 6px;
  padding: .65rem 1.4rem;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

/* the reference property's annotations; a real build has none of these */
form + p { margin-top: 1rem; }
small { display: block; color: var(--note); font-size: .8125rem; line-height: 1.45; border-left: 2px solid var(--rule); padding-left: .7rem; }

footer { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--muted); font-size: .9375rem; }
footer p { margin-bottom: .4rem; }
/* The phone number is the conversion on a lead-gen site; it doesn't get to
   be an 18px target just because it sits inline with the address. */
footer a[href^="tel:"] { display: inline-block; padding-block: .85rem; }
