:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --surface: #fff;
  --ink: #121b2a;
  --muted: #555b67;
  --rule: #cbd0d9;
  --accent: #194bc8;
  --cobalt: #1746bf;
  --panel: #e8eefb;
  --space: clamp(1.25rem, 4.5vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151b;
    --surface: #1b1f28;
    --ink: #f4f5f9;
    --muted: #bec5d2;
    --rule: #444d60;
    --accent: #a8c3ff;
    --panel: #202b43;
  }
  :root:not([data-theme="light"]) .light-logo { display: none; }
  :root:not([data-theme="light"]) .dark-logo { display: block; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12151b;
  --surface: #1b1f28;
  --ink: #f4f5f9;
  --muted: #bec5d2;
  --rule: #444d60;
  --accent: #a8c3ff;
  --panel: #202b43;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] .light-logo { display: none; }
:root[data-theme="dark"] .dark-logo { display: block; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { max-width: 58ch; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 1.25rem; }
.container { width: min(1320px, calc(100% - var(--space) * 2)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: -5rem; left: var(--space); }
.skip:focus { top: .5rem; background: var(--surface); padding: .75rem; }

.header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.brand img { width: 150px; height: auto; }
.brand .dark-logo { display: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem clamp(1rem, 3vw, 2.75rem); }
.nav a { font-size: .9375rem; font-weight: 550; }
.nav a:hover, .nav [aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.menu-icon { display: grid; justify-items: center; gap: 4px; }
.menu-icon span { width: 20px; height: 2px; background: currentColor; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  background: var(--cobalt);
  border: 1px solid transparent;
  border-radius: 2px;
  color: white;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: #10348f; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 6vw, 6.25rem);
}
.home-copy h1 {
  font-size: clamp(2.8rem, 4.55vw, 4.85rem);
  letter-spacing: -.068em;
  font-weight: 680;
  max-width: 15ch;
  text-wrap: pretty;
}
.home-copy h1 span { color: var(--accent); }
.home-copy p {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.23rem);
  max-width: 36ch;
}
.home-copy .button { margin-top: 1.7rem; }
.hearth-preview {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 22rem;
  aspect-ratio: 1.46;
  padding: clamp(1.25rem, 3.1vw, 2.65rem);
  background: #232c22;
  color: #fcf9ee;
}
.hearth-preview img, .hearth-preview::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hearth-preview img { z-index: -2; object-fit: cover; object-position: 53% center; }
.hearth-preview::before {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, #111a14c9, #111a141a 35%, #111a14e8);
}
.hearth-brand { font: 400 clamp(1.75rem, 3.3vw, 2.75rem)/1 Georgia, serif; letter-spacing: -.045em; }
.hearth-copy { padding-top: 2rem; }
.hearth-copy span { font-size: .9rem; }
.hearth-copy strong { display: block; margin-top: .5rem; font: 400 clamp(1.9rem, 3.9vw, 3.65rem)/.99 Georgia, serif; letter-spacing: -.035em; }

.home-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.home-services { background: var(--panel); }
.service-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem clamp(2rem, 5vw, 5rem); }
.service-overview > div p { margin: 1rem 0; color: var(--muted); max-width: 34ch; }
.service-index { list-style: none; margin: 0; padding: 0; }
.service-index li { border-top: 1px solid var(--rule); padding: 1rem 0; }
.service-index li:last-child { border-bottom: 1px solid var(--rule); }
.service-index li > a { color: var(--ink); font-size: clamp(1.2rem, 2.15vw, 1.6rem); font-weight: 650; letter-spacing: -.03em; }
.service-index li > a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.service-index p { margin-top: .3rem; color: var(--muted); }
.service-index p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.home-next { background: #142237; color: #fff; }
.home-next .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem 4rem; align-items: center; }
.home-next p { color: #dbe4f4; margin-top: .85rem; }
.home-next .button { margin-top: 1.25rem; background: #fff; color: #142237; }
.home-next .button:hover { background: #dbe4f4; }
.home-next :focus-visible { outline-color: #fff; }

.page-hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.page-hero-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 1.25rem 3rem; }
.page-hero h1 { font-size: clamp(2.6rem, 5.55vw, 5.4rem); letter-spacing: -.065em; font-weight: 680; text-wrap: pretty; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.section, .intro, .contact-grid { padding-block: clamp(2.75rem, 5.5vw, 5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-heading { display: flex; flex-wrap: wrap; gap: .65rem 2rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.6rem; }
.section-heading span, .concept-label, .section p, .intro p, .contact-grid p { color: var(--muted); }
.concept-label { margin-top: 1.25rem; }
.service-list { display: grid; }
.service-plan { display: grid; grid-template-columns: minmax(6rem, .65fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: baseline; gap: .5rem 1.5rem; border-top: 1px solid var(--rule); padding-block: 1.3rem; }
.service-plan:last-child { border-bottom: 1px solid var(--rule); }
.service-plan .eyebrow { font-weight: 700; color: var(--ink); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.service { border-top: 1px solid var(--rule); padding-top: 1rem; }
.service p, .details p, .intro p, .contact-grid p { margin-top: .85rem; }
details { border-bottom: 1px solid var(--rule); padding-block: 1rem; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: .5rem; }
.intro, .details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1.5rem 3rem; }
.intro { border-bottom: 1px solid var(--rule); }
.intro img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }


.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: 2rem clamp(2rem, 7vw, 7rem); }
.contact-grid h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.contact-grid .text-link { display: inline-block; margin-top: .9rem; }
form { display: grid; gap: 1rem; border-top: 4px solid var(--accent); background: var(--surface); padding: clamp(1rem, 3vw, 2rem); }
label { display: grid; gap: .35rem; font-size: .9375rem; font-weight: 700; }
input, select, textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: .65rem .7rem; width: 100%; }
textarea { resize: vertical; }
.form-hint { font-size: .875rem; }
.contact-grid .form-hint, .contact-grid #result { margin: 0; }
#result:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.check input { width: auto; margin-top: .35rem; accent-color: var(--cobalt); }
.hp { position: absolute; left: -9999px; }

footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 1.5rem; }
.footer-top, .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-top p { margin-top: .75rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: .9375rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; align-items: center; }



@media (max-width: 850px) {
  .service-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 700px) {
  .header { min-height: 64px; flex-wrap: wrap; }
  .brand img { width: 135px; }
  .header:has(.menu-toggle[hidden]) { padding-block: .75rem; }
  .js .menu-toggle:not([hidden]) { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: 0; color: var(--ink); background: none; cursor: pointer; }
  .js .nav { display: none; position: absolute; z-index: 2; top: 100%; left: calc(var(--space) * -1); right: calc(var(--space) * -1); padding: .75rem var(--space); background: var(--paper); border-block: 1px solid var(--rule); }
  .js .nav.open { display: grid; gap: 0; }
  .js .nav a { padding-block: .6rem; }

  .home-intro, .service-overview, .home-next .container, .page-hero-layout,
  .service-plan, .services, .intro, .details, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .home-intro { gap: 2rem; padding-block: 2.65rem; }
  .home-copy h1 { font-size: clamp(2.75rem, 9.5vw, 4.1rem); }
  .home-copy .button { margin-top: 1.15rem; }
  .hearth-preview { min-height: 15rem; }
  .nav { gap: .35rem 1rem; }
}

.appearance:not([hidden]) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.appearance:hover { background: var(--panel); }
.appearance .theme-sun,
.appearance[aria-pressed="true"] .theme-moon { display: none; }
.appearance[aria-pressed="true"] .theme-sun { display: block; }
