:root {
  --parchment: #f5f0e8;
  --ink: #1c1a17;
  --ink-light: #3d3a34;
  --muted: #4e4942;
  --line: #d4cbbf;
  --paper: #fdfaf5;
  --link: #5c4316;
  --error: #7a2e1b;
  --sticky-space: 5.75rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: var(--sticky-space);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-light);
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.5rem 0.75rem;
  transform: translateY(-150%);
  z-index: 30;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  margin-top: 0.15rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.hero {
  padding: 2.5rem 0 1rem;
}

.lede,
.hero p,
.hero-list {
  max-width: 40rem;
}

.lede {
  font-size: 1.125rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.subhead {
  margin: 0.4rem 0 1rem;
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.phone-line {
  margin: 0.2rem 0 1rem;
}

.hero-list {
  padding-left: 1.2rem;
}

.hero-list li {
  margin: 0 0 0.55rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
}

.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.phone-link {
  white-space: nowrap;
  font-weight: 600;
}

.site-header .phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.15rem;
}

.source-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.button.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.prose {
  max-width: 40rem;
}

.crumbs {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  margin: 0;
}

.reviewed,
.helper,
.consent {
  color: var(--muted);
  font-size: 0.92rem;
}

.helper {
  margin: 0.3rem 0 0;
}

.consent {
  max-width: 40rem;
}

.qa h2,
.qa h3 {
  margin-top: 1.35rem;
  font-size: 1.25rem;
}

.steps li {
  margin: 0 0 0.85rem;
}

ul.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.35rem 2rem;
}

.prose a + a {
  margin-inline-start: 0.75rem;
}

.towns li {
  break-inside: avoid;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem 0.65rem 0;
}

.plain-links {
  list-style: none;
  padding: 0;
}

.hero-photo {
  margin: 1.5rem 0 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 670;
  background: #e7e0d4;
  border-radius: 2px;
}

.section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.step-num {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  color: var(--link);
  line-height: 1;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--parchment);
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

button.button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b7ae9f;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.req {
  color: var(--muted);
  font-size: 0.85em;
}

.required-note {
  margin: 0 0 0.6rem;
}

.field-error {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--error);
  font-size: 0.95rem;
}

.form-error {
  min-height: 1.25rem;
  margin: 0;
  color: var(--error);
}

.hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.placeholder {
  border: 1px dashed var(--muted);
  background: var(--paper);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.placeholder strong {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 34rem;
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.sticky-cta p {
  margin: 0;
  flex: 1 1 14rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sticky-split .button {
  width: 100%;
  text-align: center;
}

body.sticky-suppressed,
body.no-sticky {
  padding-bottom: 0;
}

.home-lead .cta-band {
  border-top: 0;
  padding-top: 0.25rem;
}

.contact-top {
  padding-bottom: 0;
}

.contact-top + .cta-band {
  border-top: 0;
  padding-top: 0.25rem;
}

.trust-list {
  margin: 0;
  padding-left: 1.2rem;
}

.trust-list li {
  margin: 0 0 0.55rem;
}

.confirm {
  padding: 3rem 0 2rem;
}

.below-retail {
  max-width: 40rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 0.1rem;
  background: var(--paper);
  border-left: 3px solid var(--link);
}

.step-cards {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.step-cards .step-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1rem 1.1rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.step-card .step-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.98rem;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-label .step-num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--link);
  border-radius: 50%;
  font-size: 1rem;
  letter-spacing: 0;
}

.figure-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  color: var(--ink);
  border-radius: 2px;
}

/* Unchecked figures get a dashed border; checked ones get a solid one. */
.figure-tag-preliminary-range,
.figure-preliminary {
  border: 1px dashed var(--muted);
}

.figure-tag-written-estimate,
.figure-written {
  border: 1px solid var(--ink);
}

.figure-contract {
  border: 2px solid var(--ink);
}

.figure-key {
  margin: 0 0 1.5rem;
}

.figure-key h2,
.figure-key h3 {
  font-size: 1.25rem;
}

.figure-key dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.figure-key .figure {
  padding: 0.8rem 1rem;
  background: var(--paper);
  border-radius: 2px;
}

.figure-key dt {
  font-weight: 600;
  color: var(--ink);
}

.figure-when {
  margin-inline-start: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.figure-key dd {
  margin: 0.2rem 0 0;
  color: var(--ink-light);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .towns {
    columns: 2;
  }

  .step-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figure-key dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .step-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  :root {
    --sticky-space: 0px;
  }

  .sticky-cta {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (min-width: 960px) {
  .home-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
    column-gap: 2rem;
    align-items: start;
    width: min(76rem, calc(100% - 2rem));
    margin-inline: auto;
  }

  .home-lead > .hero {
    padding-top: 2.5rem;
  }

  .home-lead .wrap {
    width: auto;
    margin: 0;
  }

  .home-lead .prose,
  .home-lead .lede,
  .home-lead .hero p,
  .home-lead .hero-list,
  .home-lead .subhead {
    max-width: none;
  }

  .trust-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-left: 0;
    list-style: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
