@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --charcoal: #211c18;
  --deep: #151311;
  --ink: #211b17;
  --muted: #5f534b;
  --dark-muted: #ccbeb1;
  --line: #ded2c7;
  --dark-line: #504037;
  --orange: #f99c56;
  --orange-ink: #8c3a13;
  --white: #fff;
  --paper: #f9f5ef;
  --tint: #efe6dc;
  --wide: 76rem;
  font-family: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 5rem) + .75rem); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.62; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .close-section :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }
.skip { position: fixed; inset: 1rem auto auto 1rem; z-index: 10; transform: translateY(-250%); padding: .65rem 1rem; background: white; color: var(--ink); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 5rem, var(--wide)); margin-inline: auto; }
.reading { max-width: 48rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 1rem; font-weight: 800; line-height: 1.08; letter-spacing: -.057em; text-wrap: balance; }
h1 { font-size: clamp(3.15rem, 6.1vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.1vw, 4.1rem); }
h3 { font-size: clamp(1.19rem, 2.1vw, 1.68rem); letter-spacing: -.035em; }
.eyebrow { margin-bottom: 1.15rem; color: var(--orange-ink); font-size: .875rem; font-weight: 800; letter-spacing: .125em; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 1.75vw, 1.32rem); line-height: 1.54; }

.site-header { position: sticky; z-index: 5; top: 0; background: #151311; color: var(--white); }
.site-header.is-scrolled { background: #151311f2; backdrop-filter: blur(14px); box-shadow: 0 .4rem 1.3rem #1d0c0026; }
.scroll-progress { height: 3px; background: #46342a; }
.scroll-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #db6c36, #ffc28b); }
.header-actions { grid-area: 1 / 3; justify-self: end; display: flex; align-items: center; gap: clamp(.65rem, 1.8vw, 1.5rem); white-space: nowrap; }
.header-actions > a:not(.button) { color: #edd2be; text-decoration: none; font-size: .85rem; font-weight: 800; }
.header-actions > a:not(.button):hover { color: var(--orange); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-block; width: min(100%, 10rem); }
.brand img { width: 100%; height: auto; }
.mobile-menu-toggle { display: none; }
.main-nav { grid-area: 1 / 2; display: flex; gap: clamp(1.15rem, 3.4vw, 3rem); align-items: center; }
.main-nav a { position: relative; color: #f1eae3; white-space: nowrap; text-decoration: none; font-size: .94rem; font-weight: 700; transition: color .2s ease; }
.main-nav a::after { position: absolute; inset: auto 0 -.35rem; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; content: ""; }
.main-nav a:is(:hover, :focus-visible, [aria-current="page"]) { color: #ffb279; }
.main-nav a:is(:hover, :focus-visible, [aria-current="page"])::after { transform: scaleX(1); }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 3.28rem; padding: .7rem 1.25rem; border: 1px solid #f9a96e; border-radius: 999px; background: var(--orange); color: var(--deep); font-weight: 800; text-align: center; text-decoration: none; line-height: 1.2; box-shadow: inset 0 1px 0 #ffffff3a; transition: color .2s ease, border-color .2s ease, box-shadow .24s ease, transform .24s ease; }
.button::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, #ffd2a7, #ffb174); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; content: ""; }
.button:is(:hover, :focus-visible) { border-color: #ffd2a7; box-shadow: 0 .5rem 1rem #2a140836; }
.button:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.small { min-height: 2.7rem; padding: .49rem 1rem; font-size: .9rem; }
.button.ghost { background: #1c12072b; color: white; border-color: #9f8a79; box-shadow: none; }
.button.ghost:is(:hover, :focus-visible) { color: var(--deep); }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--orange-ink); font-weight: 800; }

.hero { position: relative; overflow: clip; isolation: isolate; background: var(--deep); color: var(--white); }
.hero-grid { display: flex; align-items: center; min-height: clamp(34rem, 48vw, 44rem); }
.hero-copy { position: relative; z-index: 1; width: min(100%, 49rem); padding: clamp(3.5rem, 6.9vw, 7.15rem) 0; }
.hero .eyebrow, .inner-hero .eyebrow, .close-section .eyebrow { color: #ffb279; }
.hero h1 { margin-bottom: 1.4rem; font-size: clamp(3.25rem, 6.05vw, 6rem); line-height: .99; text-transform: uppercase; text-wrap: initial; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { max-width: 39ch; color: #efe7de; }
.actions { display: flex; gap: .72rem; align-items: center; flex-wrap: wrap; margin-top: 1.85rem; }
.hero-visual { position: absolute; inset: 0; z-index: -1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero::after { position: absolute; z-index: -1; content: ""; inset: 0; pointer-events: none; background: linear-gradient(90deg, #130f0cf7, #15110de0 31%, #17110d55 70%, #17110d24), linear-gradient(0deg, #151311 0%, #15131130 25%, #15131110 100%); }
.hero-marquee {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #291e17;
  color: #fff3e7;
  border-block: 1px solid #8a4b2b;
}
.hero-marquee-window { flex: 1; min-width: 0; overflow: hidden; }
.hero-marquee-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(1rem, 3.5vw, 3rem);
  row-gap: .45rem;
  list-style: none;
  margin: 0;
  padding: .92rem 1.1rem;
}
.hero-marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.hero-marquee-list li::before {
  flex: none;
  width: .42rem;
  height: .42rem;
  border: 1px solid #ffb279;
  transform: rotate(45deg);
  content: "";
}
.hero-marquee-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-marquee[data-motion] .hero-marquee-track {
    display: flex;
    width: max-content;
    animation: service-highlights 27s linear infinite;
  }
  .hero-marquee[data-motion] .hero-marquee-list {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: clamp(1.9rem, 4vw, 5rem);
    min-width: 100vw;
    padding-inline: clamp(.95rem, 2vw, 2.5rem);
    white-space: nowrap;
  }
  .hero-marquee[data-motion="paused"] .hero-marquee-track { animation-play-state: paused; }
  .hero-marquee-toggle:not([hidden]) {
    display: grid;
    flex: 0 0 3rem;
    place-items: center;
    border: 0;
    border-left: 1px solid #8a4b2b;
    background: #37251c;
    color: #ffb279;
    cursor: pointer;
  }
  .hero-marquee-toggle:hover { background: #4a2d1e; }
  .hero-marquee-toggle:focus-visible { outline-offset: -4px; }
  .hero-marquee-toggle span { width: .65rem; height: .72rem; border-inline: 2px solid currentColor; }
  .hero-marquee[data-motion="paused"] .hero-marquee-toggle span {
    width: 0;
    height: 0;
    border: .37rem solid transparent;
    border-right-width: 0;
    border-left: .59rem solid currentColor;
  }
}
@keyframes service-highlights {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-toggle { display: none; }
}

.section, .close-section { padding-block: clamp(3.4rem, 7.2vw, 7.1rem); }
.section p { color: var(--muted); max-width: 66ch; }
.section .eyebrow { color: var(--orange-ink); }
.split, .close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.7rem, 7vw, 6.6rem); }
.process-intro { align-items: end; }
.process-intro h2 { max-width: 15ch; }
.process-intro .lead { max-width: 35ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 2.4rem 0 0; }
.steps > * { list-style: none; padding: clamp(1.35rem, 3.15vw, 2.6rem); border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.steps h3 { text-wrap: initial; }
.step-tag { display: inline-block; margin-bottom: 1.55rem; border-bottom: 2px solid var(--orange); padding-bottom: .25rem; color: var(--orange-ink); font-size: .875rem; font-weight: 800; }
.about-intro { align-items: center; }
.about-hero .eyebrow { color: var(--orange); }
.about-story { padding-inline-start: clamp(1rem, 2.5vw, 2.25rem); border-inline-start: 2px solid #cf7845; }
@media (prefers-reduced-motion: no-preference) {
  .about-hero h1, .about-hero .lead { animation: about-intro-rise .65s cubic-bezier(.2, .72, .24, 1) both; }
  .about-hero .lead { animation-delay: .14s; }
  @keyframes about-intro-rise {
    from { opacity: .76; transform: translateY(.85rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.fit-section, .muted-section { background: var(--tint); }
.fit-section .split { align-items: center; }
.check-panel { padding: clamp(1.25rem, 3.15vw, 2.65rem); border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.check-panel h3 { margin-bottom: 1.22rem; }
.check-panel a { overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: .64rem 0 .64rem 1.5rem; }
.checks li + li { border-top: 1px solid var(--line); }
.checks li::before { position: absolute; left: 0; color: var(--orange-ink); font-weight: 800; content: "✓"; }
.home .muted-section:has(.faq-grid) { background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 1.08rem 2.2rem 1.08rem 0; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: .35rem; color: var(--orange-ink); font-size: 1.25rem; line-height: 1.2; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 1.5rem 1.1rem 0; }
.faq-list + h2 { margin-top: 3rem; }

.results-section { background: #1d1815; color: #fff6ed; }
.results-section .eyebrow, .results-section .text-link { color: #ffb279; }
.home-results-testimonials h2 { margin-bottom: 0; }
.results-kicker { padding-block: clamp(1.7rem, 3.8vw, 3.15rem) .85rem; }
.results-kicker .eyebrow { margin: 0; }
.home-results-testimonials { padding-top: clamp(1.7rem, 3.8vw, 3.15rem); }
.home-results-testimonials .results-grid { margin-top: clamp(1.75rem, 3.3vw, 3rem); }
.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: clamp(1.15rem, 4.25vw, 3.8rem) 0;
  border-block: 1px solid #684533;
  background: linear-gradient(105deg, #2b2019, #231a16);
}
.results-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(.45rem, 1.05vw, .85rem);
  padding-inline: clamp(.5rem, 3.2vw, 2.8rem);
}
.results-metrics > div + div { border-left: 1px solid #664332; }
.results-metrics dt { color: #f0d6c3; font-size: clamp(.875rem, 1.45vw, 1.12rem); font-weight: 650; line-height: 1.4; }
.results-metrics dd {
  order: -1;
  margin: 0;
  color: var(--orange);
  font-size: clamp(2.32rem, 6.45vw, 5.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: .98;
}
@media (prefers-reduced-motion: no-preference) {
  [data-stat-reveal="pending"] > * { opacity: 0; }
  [data-stat-reveal="shown"] > * { animation: result-stat-rise .65s cubic-bezier(.2, .72, .24, 1) both; }
  [data-stat-reveal="shown"]:nth-child(2) > * { animation-delay: .105s; }
  [data-stat-reveal="shown"]:nth-child(3) > * { animation-delay: .21s; }
}
@keyframes result-stat-rise {
  from { opacity: 0; transform: translateY(1.05rem); }
  to { opacity: 1; transform: translateY(0); }
}
.results-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.result-card { grid-column: span 2; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #594235; border-radius: .75rem; background: #27201b; }
.result-card:nth-child(n+4) { grid-column: span 3; }
.result-card figcaption { display: flex; align-items: center; gap: .75rem; color: #fff6ed; }
.review-initials { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: #513521; color: #ffd1ac; font-size: .84rem; font-weight: 800; }
.result-card blockquote { margin: 1.12rem 0 0; }
.result-card blockquote p { color: #f7eae0; }
.results-section .results-note { color: #dbbcaa; font-size: .875rem; font-weight: 500; }
.results-section .results-note { margin-top: 1.2rem; }

.close-section { position: relative; overflow: hidden; isolation: isolate; background: #201713; color: white; }
.close-section::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(95deg, #1f1611fa 5%, #1f1611de 48%, #1f161188 100%), url("/assets/roof-detail.jpg") 55% 62% / cover; content: ""; }
.close-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.close-grid h2 { max-width: 18ch; }
.close-grid p { max-width: 53ch; color: #eee0d4; }
.close-actions { display: grid; justify-items: stretch; gap: .65rem; }
.inner-hero { padding-block: clamp(3.75rem, 7.1vw, 7.2rem); background: radial-gradient(ellipse at 92% 90%, #493123, transparent 60%), var(--deep); color: white; }
.inner-hero h1 { max-width: 17ch; font-size: clamp(2.8rem, 5.8vw, 5.6rem); }
.inner-hero .lead { max-width: 57ch; color: #e6d9ce; }
.prose p { max-width: none; }
.prose h2 { margin-top: 2.35rem; font-size: clamp(1.6rem, 3.3vw, 2.45rem); }
.prose h3, .prose h4 { margin-top: 1.5rem; }
.prose a { overflow-wrap: anywhere; }
.booking-section { background: var(--tint); }
.booking-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); }
.booking-grid h1 { font-size: clamp(2.75rem, 5.4vw, 5.25rem); }
.booking-fit { margin: 1.55rem 0; border-left: 3px solid var(--orange); padding: .25rem 0 .25rem 1rem; }
.booking-fit h2 { font-size: 1.35rem; margin-bottom: .45rem; }
.calendar-panel { min-width: 0; border: 1px solid var(--line); border-radius: .95rem; padding: clamp(.9rem, 2.8vw, 1.75rem); background: white; }
.calendar-panel h2 { margin-bottom: .24rem; font-size: 1.8rem; }
.calendar-panel iframe { display: block; width: 100%; height: 760px; border: 0; }
.site-footer { padding: clamp(2.8rem, 5vw, 4.5rem) 0 1.2rem; border-top: 1px solid #49382e; background: #151210; color: #f3ebe2; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .9fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); }
.footer-grid nav, .footer-contact { display: grid; align-content: start; justify-items: start; gap: .52rem; }
.footer-grid h2 { margin: .28rem 0 .42rem; color: #ffb279; font-size: .9rem; letter-spacing: .095em; text-transform: uppercase; }
.footer-brand .brand { width: 12rem; }
.footer-brand p { max-width: 28ch; margin-top: .8rem; color: var(--dark-muted); }
.footer-brand .footer-market { margin-top: .85rem; color: #ffb279; font-size: .9rem; font-weight: 800; }
.footer-grid a:not(.brand), .footer-bottom a { text-decoration: none; }
.footer-grid a:hover, .footer-bottom a:hover { color: #ffb279; text-decoration: underline; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.35rem; margin-top: 2.55rem; padding-top: 1.15rem; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: .9rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 2rem, 42rem); }
  .header-row { grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-top: .65rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-actions > a:not(.button) { display: none; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: center; gap: clamp(.9rem, 5vw, 2.5rem); }
  .main-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .main-nav a::after { bottom: .18rem; }
  .site-header[data-mobile-menu] .header-row { min-height: 4.35rem; padding-block: .45rem; }
  .site-header[data-mobile-menu] .header-actions { gap: .5rem; }
  .site-header[data-mobile-menu] .header-actions .button { padding-inline: .8rem; }
  .site-header[data-mobile-menu] .mobile-menu-toggle {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid #715241;
    border-radius: .55rem;
    background: #261c17;
    color: #ffb279;
    cursor: pointer;
  }
  .mobile-menu-toggle:hover { background: #3a271e; }
  .mobile-menu-toggle span { position: relative; width: 1.06rem; height: 2px; background: currentColor; }
  .mobile-menu-toggle span::before, .mobile-menu-toggle span::after {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    background: currentColor;
    transition: transform .18s ease;
    content: "";
  }
  .mobile-menu-toggle span::before { transform: translateY(-5px); }
  .mobile-menu-toggle span::after { transform: translateY(5px); }
  .mobile-menu-toggle[aria-expanded="true"] span { background: transparent; }
  .mobile-menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
  .site-header[data-mobile-menu] .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - var(--header-height, 4.35rem));
    overflow-y: auto;
    padding: .45rem max(1rem, calc((100% - 42rem) / 2)) .6rem;
    border-bottom: 1px solid #885234;
    background: #241b16;
    box-shadow: 0 .75rem 1.4rem #140b0860;
  }
  .site-header[data-mobile-menu="open"] .main-nav { display: grid; justify-content: stretch; gap: 0; }
  .site-header[data-mobile-menu] .main-nav a {
    min-height: 3.35rem;
    padding: .55rem .65rem;
    border-bottom: 1px solid #543b2d;
    font-size: 1.03rem;
  }
  .site-header[data-mobile-menu] .main-nav a:last-child { border-bottom: 0; }
  .site-header[data-mobile-menu] .main-nav a::after { inset: auto .65rem .4rem; }
  .hero-grid { display: block; min-height: 0; }
  .hero-copy { width: auto; padding: 3.45rem 0 4rem; }
  .hero h1 { font-size: clamp(2.4rem, 8.3vw, 4.65rem); }
  .hero-visual img { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(90deg, #15110eea, #15110e9c), linear-gradient(0deg, #151311 1%, #15131108 45%); }
  .close-section::before { background-image: linear-gradient(95deg, #1f1611f5 5%, #1f1611bf 100%), url("/assets/roof-detail-small.jpg"); }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .results-grid .result-card { grid-column: auto; }
  .close-actions { justify-self: start; }
  .split, .booking-grid, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .calendar-panel iframe { height: 960px; }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .site-header[data-mobile-menu="open"] .main-nav { animation: show-mobile-menu .2s ease-out both; }
}
@keyframes show-mobile-menu {
  from { opacity: 0; transform: translateY(-.4rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 385px) {
  .actions .button { font-size: .89rem; padding-inline: .75rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button::before, .main-nav a, .main-nav a::after, .mobile-menu-toggle span::before, .mobile-menu-toggle span::after { transition: none; }
  .button:hover { transform: none; }
}

.calculator-section {
  background: radial-gradient(ellipse at 86% 0%, #3e2920, transparent 60%), #211914;
  color: #fff6ed;
}
.calculator-intro h1, .calculator-intro h2 { max-width: 19ch; }
.calculator-intro .eyebrow { color: var(--orange); }
.calculator-intro .lead { max-width: 58ch; color: #dfcbbd; }
.calculator-page-link { margin-top: .75rem; }
.calculator-page-link .text-link { color: var(--orange); }
.calculator-grid:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2.1rem;
}
.calculator-inputs, .calculator-results {
  min-width: 0;
  margin: 0;
  padding: clamp(1.15rem, 3.2vw, 2.35rem);
  border: 1px solid #61483a;
  border-radius: .85rem;
}
.calculator-inputs { background: #f9f1e7; color: #261b14; }
.calculator-inputs legend {
  padding: .26rem .85rem;
  border: 1px solid #ba8c70;
  border-radius: 999px;
  background: #f9e3cf;
  font-weight: 800;
}
.calculator-inputs .calculator-example {
  color: #645144;
  font-size: .9rem;
}
.calculator-inputs .calculator-example { margin-bottom: .75rem; }
.calculator-slider { border-bottom: 1px solid #e0cbb9; padding: .8rem 0 .45rem; }
.slider-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; }
.slider-heading label { font-weight: 750; }
.slider-heading span {
  flex: none;
  color: var(--orange-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.calculator-slider input {
  --range-track: linear-gradient(to right, #a84b22 0 var(--range-fill, 0%), #ddc5b4 var(--range-fill, 0%) 100%);
  appearance: none;
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  border-radius: .25rem;
  background: transparent;
  cursor: pointer;
}
.calculator-slider input:disabled { cursor: default; opacity: .48; }
.calculator-slider input::-webkit-slider-runnable-track {
  height: .42rem;
  border-radius: 999px;
  background: var(--range-track);
}
.calculator-slider input::-moz-range-track {
  height: .42rem;
  border-radius: 999px;
  background: var(--range-track);
}
.calculator-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -.39rem;
  border: 2px solid #fffaf5;
  border-radius: 50%;
  background: #983c19;
  box-shadow: 0 0 0 1px #983c19;
}
.calculator-slider input::-moz-range-thumb {
  width: .95rem;
  height: .95rem;
  border: 2px solid #fffaf5;
  border-radius: 50%;
  background: #983c19;
  box-shadow: 0 0 0 1px #983c19;
}
.calculator-results {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  background: #2c2019;
  box-shadow: inset 0 3px 0 #c76c3e;
}
.calculator-results dl { margin: 0; }
.calculator-results dt { color: #f0dbca; font-size: .94rem; font-weight: 650; }
.calculator-results dd {
  margin: 0;
  color: #ffd0a9;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calculator-primary dd {
  margin-top: .3rem;
  color: var(--orange);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -.065em;
  line-height: 1.05;
  text-align: left;
}
.calculator-health {
  padding: .85rem 1rem;
  border: 1px solid #826653;
  border-left-width: 4px;
  border-radius: .45rem;
  background: #3a2c23;
}
.calculator-health[data-state="healthy"] { border-color: #77916a; background: #283326; }
.calculator-health[data-state="workable"] { border-color: #d4a45c; background: #403121; }
.calculator-health[data-state="unhealthy"] { border-color: #ce876f; background: #412921; }
.calculator-health .calculator-health-label {
  margin-bottom: .25rem;
  color: #f0c4a6;
  font-size: .875rem;
  font-weight: 800;
}
.calculator-health strong { color: #fff6ed; font-size: 1.14rem; }
.calculator-health p:last-child { margin-top: .35rem; color: #f2dfd2; font-size: .9rem; }
.calculator-results .calculator-benchmark { color: #e6c6ae; font-size: .875rem; margin: -.45rem 0 0; }
.calculator-metrics div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding-block: .58rem;
  border-bottom: 1px solid #634739;
}
.calculator-results .button { justify-self: start; margin-top: .2rem; }
.calculator-results .button:focus-visible { outline-color: var(--orange); }
.calculator-section noscript p { color: #dfcbbd; }
@media (max-width: 700px) {
  .calculator-grid:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
}
