:root {
  color-scheme: light;
  --paper: #f9efe1;
  --white: #fff7eb;
  --ink: #362019;
  --muted: #654936;
  --brick: #913619;
  --orange: #dc6922;
  --olive: #343d2e;
  --olive-paper: #e5e7d8;
  --sand: #efe0ca;
  --rule: #d7bfa6;
  --gutter: clamp(20px, 5vw, 80px);
  --body: "Onest", Arial, sans-serif;
  --display: "Lora", Georgia, serif;
  --heading-spacing: -.041em;
  --control-height: 44px;
  --focus: #a1421d;
  --cut-corner: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper) url("/assets/cover-paper.webp") repeat; font: 1rem/1.58 var(--body); }
img { display: block; max-width: 100%; }
svg { display: block; width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
:where(main, section)[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
p, figure, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 670; letter-spacing: var(--heading-spacing); }
h2 { font-size: clamp(2.12rem, 4.15vw, 4.15rem); line-height: 1.09; text-wrap: balance; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.48rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.wrap { width: min(calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right))), 1350px); margin-inline: auto; }
.section { padding-block: clamp(60px, 8vw, 118px); }
section[id] { scroll-margin-top: 24px; }

.skip { position: fixed; z-index: 60; padding: .8rem 1rem; margin: 10px; background: var(--white); color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { width: 116px; height: auto; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; background: var(--brick); color: #fffaf4; font-size: .94rem; font-weight: 660; text-align: center; line-height: 1.25; transition: transform 150ms ease-out; }
.btn:hover { background: #762c1b; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn.sample-button {
  --sample-ink: #fff7e8;
  --sample-fill: #9a391c;
  --sample-edge: #6f2a17;
  --sample-mark: #752b15;
  --sample-rule: #e7b69d70;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-height: 53px;
  padding: 0;
  border: 1px solid var(--sample-edge);
  border-radius: 7px 18px 7px 7px;
  color: var(--sample-ink);
  background: var(--sample-fill);
  box-shadow: 0 3px 0 var(--sample-edge), inset 0 1px 0 #fff5e845;
  font-weight: 680;
  text-align: start;
}
.sample-label { display: flex; align-items: center; padding: 10px 16px; }
.sample-mark { display: grid; width: 46px; min-height: 100%; place-items: center; border-left: 1px solid var(--sample-rule); border-radius: 0 17px 6px 0; background: var(--sample-mark); }
.sample-mark svg { width: 22px; height: 22px; }
.sample-button:hover { --sample-fill: #863016; --sample-mark: #652413; }
.sample-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sample-edge); }
.btn.sample-secondary {
  --sample-ink: #702a18;
  --sample-fill: #fff1de;
  --sample-edge: #9a5a3d;
  --sample-mark: #f3d7bc;
  --sample-rule: #b38163;
  box-shadow: 0 3px 0 #9a5a3d24, inset 0 1px 0 #fffaf4;
}
.sample-secondary:hover { --sample-fill: #f9e6cd; --sample-mark: #eac8aa; }
.btn.header-quote.sample-button {
  --sample-ink: #702a18;
  --sample-fill: #fff5e645;
  --sample-edge: #a66145;
  --sample-mark: #b06d501a;
  --sample-rule: #b3816390;
  min-height: var(--control-height);
  border-radius: 6px 12px 6px 6px;
  box-shadow: none;
}
.header-quote.sample-button:hover { --sample-fill: #f6ddc2; --sample-mark: #ebc4a2; }
.header-quote .sample-label { padding: 7px 12px; }
.header-quote .sample-mark { width: 37px; border-radius: 0 11px 5px 0; }
.header-quote .sample-mark svg { width: 17px; height: 17px; }
.header-quote { min-height: var(--control-height); padding: 9px 13px; background: transparent; color: var(--brick); border-color: var(--brick); font-size: .89rem; white-space: nowrap; }
.plain-link, .link-button, .footer-links a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: var(--control-height); border: 0; padding: 5px 0; background: transparent; color: inherit; font-size: .91rem; font-weight: 610; text-align: start; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.plain-link:hover, .link-button:hover, .footer-links a:hover { text-decoration-thickness: 2px; }


.section-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px clamp(30px, 5vw, 82px); align-items: end; margin-bottom: clamp(22px, 4vw, 46px); }
.section-head h2 { text-wrap: initial; }
.section-head p:not(.section-kicker) { max-width: 41ch; color: var(--muted); font-size: 1.04rem; }
.section-kicker { margin-bottom: 11px; font-size: .88rem; font-weight: 690; color: var(--brick); }
.project { position: relative; }
.compare { --split: 47%; position: relative; aspect-ratio: 2.03; overflow: hidden; isolation: isolate; background: #9f7252; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.compare-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-tag { position: absolute; top: 17px; padding: 5px 13px; border-radius: 2px 11px 2px 2px; background: #fff8ee; color: var(--ink); font-size: .875rem; font-weight: 640; pointer-events: none; }
.compare-tag.before { left: 17px; }
.compare-tag.after { right: 17px; }
.compare-line { position: absolute; top: 0; bottom: 0; left: clamp(2px, var(--split), calc(100% - 2px)); width: 3px; background: #fff2df; transform: translateX(-50%); pointer-events: none; }
.compare-line span { position: absolute; left: 50%; top: 50%; width: 48px; height: 44px; display: grid; place-items: center; background: var(--brick); color: var(--white); border: 1px solid #f3ccaa; border-radius: 5px 14px 5px 5px; transform: translate(-50%, -50%); box-shadow: 0 2px 0 #62290f; }
.compare-input { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-input::-webkit-slider-thumb { appearance: none; width: 1px; height: 42px; }
.compare-input::-moz-range-thumb { width: 1px; height: 42px; border: 0; }
.compare[data-view="0"] .before, .compare[data-view="100"] .after,
.compare[data-view="0"] .compare-line, .compare[data-view="100"] .compare-line { visibility: hidden; }
.compare:has(.compare-input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.project figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 24px; margin-top: 14px; }
.project-caption { display: grid; gap: 2px; }
.project-caption small { color: var(--muted); font-size: .82rem; }
.compare-controls { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.compare-controls button { min-height: var(--control-height); padding: 6px 12px; border: 0; border-radius: 3px; background: transparent; font-weight: 590; font-size: .875rem; }
.compare-controls button:hover { background: #a66b4020; }
.compare-controls [aria-pressed="true"], .compare-controls [aria-pressed="true"]:hover { background: var(--ink); color: var(--white); }

.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px clamp(35px, 7vw, 100px); }
.quote-grid > div:first-child > p { margin-top: 16px; max-width: 48ch; color: var(--muted); }
.quote-location { display: flex; align-items: center; gap: 7px; }
.quote-location svg { color: var(--brick); }
.quote-box { padding: clamp(19px, 3vw, 36px); border: 1px solid #e0d0bf; border-radius: 4px var(--cut-corner) 4px 4px; background: var(--white); }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.quote-form label { display: block; font-weight: 680; font-size: .91rem; }
.quote-form label small, .form-actions small { color: var(--muted); font-weight: 450; }
.quote-form input, .quote-form textarea, .quote-form select, .quote-result textarea { display: block; width: 100%; padding: 11px 12px; margin-top: 5px; border-radius: 6px; border: 1px solid #c9b6a3; background: #fffdf9; font-size: 1rem; font-weight: 400; }
.quote-form select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e5a4b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.quote-form textarea, .quote-result textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.form-actions small { flex: 1 1 180px; font-size: .84rem; }
.quote-result p { margin: 9px 0 15px; color: var(--muted); }
.quote-result .form-status:empty { margin: 0; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 35px; padding-block: 29px; }
.footer-inner p { color: var(--muted); margin-top: 7px; font-size: .88rem; }
.footer-inner .logo img { width: 108px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 19px; font-size: .875rem; }
.footer-links a { font-weight: 560; font-size: inherit; }
.privacy { max-width: min(550px, calc(100% - 36px)); border: 1px solid var(--rule); border-radius: 4px var(--cut-corner) 4px 4px; background: var(--white); color: var(--ink); padding: 0; overscroll-behavior: contain; }
.privacy > div { padding: 30px; }
.privacy h2 { font-size: 2rem; margin-right: 25px; }
.privacy p { margin-top: 17px; }
.privacy::backdrop { background: #271910a0; }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: var(--control-height); height: var(--control-height); padding: 5px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; }
.dialog-close:hover { background: #a66b4020; }

@media (max-width: 1030px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section-head, .quote-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .compare-tag { top: 9px; }
  .compare-tag.before { left: 9px; }
  .compare-tag.after { right: 9px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .quote-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:active, .sample-button:active { transform: none; }
}
