@font-face { font-family: Parete Serif; src: url("./assets/serif.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Parete Serif; src: url("./assets/serif-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: Parete Sans; src: url("./assets/sans.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Parete Sans; src: url("./assets/sans-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #f7f4ed;
  --paper: #fbf8f1;
  --sand: #eee8dc;
  --ink: #292e25;
  --muted: #56594d;
  --olive: #363e2e;
  --olive-dark: #2d3428;
  --clay: #874936;
  --peach: #e6ae94;
  --line: #d7cec0;
  --serif: "Parete Serif", Georgia, serif;
  --sans: "Parete Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--sans); }
body, h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { font: 400 1rem/1.1 var(--serif); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 5px; }
section[id] { scroll-margin-top: 22px; }

.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.section-space { padding-block: clamp(65px, 7.3vw, 108px); }
.skip-link { position: fixed; z-index: 2; inset: 12px auto auto 12px; padding: 10px 16px; background: var(--paper); transform: translateY(calc(-100% - 16px)); }
.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 83px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { width: max-content; font: 400 2.05rem/1 var(--serif); letter-spacing: .11em; text-decoration: none; }
.wordmark span { margin-inline-start: 1px; color: var(--clay); }
.header nav { display: flex; gap: clamp(22px, 3.8vw, 62px); align-items: center; }
.header nav a { font-size: .9rem; font-weight: 600; text-underline-offset: 5px; text-decoration: none; }
.header nav a:hover { text-decoration: underline; }
.header-action { justify-self: end; }

.button { display: inline-flex; min-height: 50px; justify-content: center; align-items: center; padding: 10px 19px; text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 3px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .16s, color .16s, border-color .16s; }
.button-outline { border-color: #a6a597; background: transparent; }
.button-outline:hover { background: var(--sand); border-color: var(--ink); }
.button-primary { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.button-primary:hover { background: #20271e; border-color: #20271e; }
.button-clay { background: var(--peach); color: #2e251f; border-color: var(--peach); }
.button-clay:hover { background: #f4c8b0; border-color: #f4c8b0; }
.text-link { display: inline-block; width: fit-content; color: var(--clay); font-size: .9rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); gap: clamp(30px, 5.4vw, 82px); align-items: center; padding-top: 44px; padding-bottom: 51px; }
.hero-copy { padding-block: 21px 28px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--clay); font-size: .78rem; font-weight: 600; letter-spacing: .135em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero h1 { margin-top: 20px; font-size: clamp(3rem, 6.05vw, 6.1rem); letter-spacing: -.063em; line-height: .99; }
h1 em, h2 em { color: var(--clay); }
.hero-description { max-width: 390px; margin-top: 26px; color: var(--muted); font-size: clamp(1.02rem, 1.38vw, 1.19rem); line-height: 1.57; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-figure { position: relative; min-width: 0; align-self: stretch; background: #d2b8a0; }
.hero-figure picture { display: block; height: 100%; }
.hero-figure img { width: 100%; height: 100%; min-height: clamp(400px, 40vw, 610px); max-height: 660px; object-fit: cover; object-position: 49% center; }
.hero-figure figcaption { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, rgba(30, 27, 18, .69)); padding: 37px 18px 13px; color: white; font-size: .77rem; text-align: right; }

.services { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .process h2 { margin-top: 13px; font-size: clamp(2.3rem, 4.35vw, 4.1rem); letter-spacing: -.055em; }
.section-heading > p { max-width: 378px; color: var(--muted); justify-self: end; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 27px); }
.service-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.service-media { overflow: hidden; background: #d2b8a0; }
.service-media img { aspect-ratio: 1.43; object-fit: cover; object-position: center 55%; }
.service-card:nth-child(2) img { object-position: center 60%; }
.service-card:nth-child(3) img { object-position: center 67%; }
.service-copy { padding: 24px clamp(17px, 2vw, 28px) 26px; display: flex; flex-direction: column; align-items: flex-start; }
.service-copy h3 { font-size: clamp(1.52rem, 2.3vw, 2rem); letter-spacing: -.045em; }
.service-copy p { margin-top: 12px; margin-bottom: 19px; color: var(--muted); }
.service-copy a { margin-top: auto; }

.process { background: var(--sand); }
.process-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 7.3vw, 117px); }
.process-heading > p:not(.eyebrow) { max-width: 315px; margin-top: 21px; color: var(--muted); }
.process-heading .text-link { margin-top: 20px; }
.steps { list-style: none; padding: 0; border-top: 1px solid #c9beae; }
.steps li { display: grid; grid-template-columns: 41px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid #c9beae; }
.step-number { padding-top: 3px; color: var(--clay); font-size: .83rem; font-weight: 600; letter-spacing: .1em; }
.steps h3 { font-size: 1.31rem; letter-spacing: -.025em; }
.steps p { margin-top: 5px; color: var(--muted); }

.configuration { background: var(--olive-dark); color: var(--paper); }
.configuration :focus-visible { outline-color: var(--peach); }
.configuration .eyebrow { color: var(--peach); }
.config-heading > p { color: #dcddd0; }
.config-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(20px, 4.5vw, 72px); align-items: stretch; }
.config-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.config-form legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.stage-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stage-controls label { position: relative; }
.stage-controls span { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; border: 1px solid #8b9282; border-radius: 3px; color: var(--paper); font-size: .875rem; cursor: pointer; }
.stage-controls span:hover, .stage-controls :checked + span { background: #e2dbca; color: var(--olive-dark); border-color: #e2dbca; }
.stage-controls input, .option input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.stage-controls :focus-visible + span, .option:has(input:focus-visible) { outline: 2px solid var(--peach); outline-offset: 3px; }
.config-form .service-options { margin-top: 23px; }
.option { position: relative; display: flex; width: 100%; min-height: 65px; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 14px; margin-bottom: 8px; border: 1px solid #79816e; border-radius: 3px; cursor: pointer; }
.option:hover { background: #3b4536; }
.option:has(:checked) { background: #424a3a; border-color: var(--peach); }
.option-copy { display: flex; flex-direction: column; }
.option-copy strong { font-weight: 600; }
.option-copy > span { color: #e2e2d7; font-size: .875rem; }
.option-mark { width: 21px; height: 21px; border: 1px solid #acb19f; border-radius: 3px; flex: none; }
.option :checked ~ .option-mark { background: var(--peach); border-color: var(--peach); }
.option :checked ~ .option-mark::before { content: ""; display: block; width: 9px; height: 5px; border: solid var(--olive-dark); border-width: 0 0 2px 2px; transform: translate(5px, 5px) rotate(-45deg); }
.reset-link { margin-top: 6px; padding: 6px 1px; border: 0; background: transparent; color: #e4dfd3; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; cursor: pointer; }
.reset-link:disabled { opacity: .62; text-decoration: none; cursor: default; }

.result { padding: clamp(23px, 3.3vw, 46px); background: #fffbf4; border-top: 3px solid var(--peach); color: var(--ink); align-self: stretch; }
.result :focus-visible { outline-color: var(--clay); }
.result-label { color: var(--clay); font-size: .8rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.result h3 { margin-top: 14px; font-size: clamp(1.81rem, 3.3vw, 2.85rem); letter-spacing: -.049em; }
.result-content > p { margin-top: 12px; color: var(--muted); }
.recommendation-list { margin: 15px 0 17px; padding-inline-start: 1.2em; }
.recommendation-list li { padding-block: 2px; }
.recommendation-list li::marker { color: var(--clay); }
.next-step { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.next-step strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.result-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.copy-status { font-size: .85rem; color: var(--muted); }

.footer { background: var(--cream); }
.footer-inner { min-height: 109px; padding-block: 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px 25px; flex-wrap: wrap; }
.footer p, .footer-inner > span { color: var(--muted); font-size: .875rem; }

dialog { width: min(calc(100vw - 36px), 580px); max-height: calc(100dvh - 36px); border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--cream); }
dialog::backdrop { background: rgba(27, 32, 25, .65); }
.dialog-inner { padding: clamp(18px, 5vw, 36px); }
.dialog-inner h2 { margin-bottom: 10px; font-size: 2rem; }
.dialog-inner textarea { margin: 10px 0; display: block; width: 100%; padding: 9px; background: var(--paper); border: 1px solid #a6a597; color: var(--ink); resize: vertical; }

@media (min-width: 761px) and (max-width: 950px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .service-grid { gap: 12px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 44px); }
  .header-inner { min-height: 74px; gap: 13px; }
  .header nav { gap: 18px; }
  .header-action { min-height: 43px; padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 27px; padding-bottom: 39px; gap: 23px; }
  .hero-copy { padding: 7px 0 0; }
  .hero h1 { font-size: clamp(3.3rem, 9.2vw, 5.25rem); }
  .hero-description { margin-top: 18px; }
  .hero-actions { margin-top: 21px; }
  .hero-figure img { min-height: 0; aspect-ratio: 1.39; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 25px; }
  .section-heading > p { justify-self: start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-media img { aspect-ratio: 1.85; }
  .service-copy { padding: 20px; }
  .process-inner, .config-layout { grid-template-columns: 1fr; }
  .result { min-height: 230px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr 1fr; padding-block: 10px 8px; row-gap: 4px; }
  .header nav { grid-row: 2; grid-column: 1 / -1; }
  .header nav a { display: inline-flex; align-items: center; min-height: 37px; }
  .wordmark { font-size: 1.8rem; }
  .hero-figure img { aspect-ratio: 1.24; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 24px; }
}

@media (max-width: 360px) {
  .header-inner { grid-template-columns: auto 1fr; column-gap: 8px; }
  .header .wordmark { font-size: 1.58rem; }
  .header-action { padding-inline: 9px; font-size: .82rem; white-space: nowrap; }
  .hero h1 { font-size: 2.85rem; }
  .hero-actions { row-gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
