﻿:root {
  color-scheme: light;
  --paper: #faf8f2;
  --panel: #efede3;
  --green: #203b32;
  --ink: #242d27;
  --muted: #505b51;
  --rule: #d8d8ca;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #867032; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip { position: absolute; top: -5rem; padding: .6rem 1rem; background: white; z-index: 1; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--rule); }
.navigation, .footer { display: flex; justify-content: space-between; gap: .8rem 2rem; align-items: center; padding-block: 1rem; }
.brand { font: bold clamp(1.55rem, 4vw, 2.05rem)/1 var(--serif); letter-spacing: -.065em; text-decoration: none; white-space: nowrap; color: var(--green); }
.brand span { font-weight: normal; }
nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.8rem, 3vw, 2.2rem); }
nav a { font-weight: 600; text-decoration: none; font-size: .94rem; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: stretch; padding-block: 2.4rem 2rem; }
.hero-copy { align-content: center; padding: clamp(1.5rem, 4vw, 4rem); background: var(--green); color: #fcf9ed; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.05; font-weight: normal; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(2.75rem, 5.15vw, 5.1rem); }
h2 { font-size: clamp(2.25rem, 4.25vw, 3.6rem); color: var(--green); }
h3 { font-size: 1.65rem; color: var(--green); }
p { margin: .85rem 0 0; }
.hero-copy > p:not(.eyebrow) { max-width: 33ch; color: #f0eee2; margin-top: 1.2rem; }
.hero-image { width: 100%; height: 100%; min-height: 29rem; object-fit: cover; display: block; background: #ded5c4; }
.actions { display: flex; gap: .85rem 1.35rem; flex-wrap: wrap; align-items: center; margin-top: 1.7rem; }
.button { background: var(--green); color: white; padding: .72rem 1.08rem; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; display: inline-block; }
.button:hover { background: #315449; }
.hero .button { background: #f4ebd6; color: var(--green); }
.hero .button:hover { background: #fff9e9; }
.text-link { font-weight: 650; }
.section { padding-block: clamp(2.5rem, 7vw, 5.25rem); }
.section > .eyebrow, .estimator .eyebrow { color: var(--muted); }
.materials, .supplier-grid { display: grid; gap: 1rem; margin-top: 1.7rem; }
.materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.materials article { border-top: 2px solid #6b7c66; padding: 1.3rem .65rem .25rem 0; }
.materials a, .supplier-grid a { display: inline-block; font-weight: 650; margin-top: 1rem; }
.estimate-section { background: var(--panel); }
.estimator { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.25rem, 5vw, 4.5rem); }
.fields, .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin: 1.35rem 0; }
label { display: grid; gap: .3rem; font-size: .94rem; font-weight: 650; align-content: start; }
input, select { width: 100%; min-width: 0; min-height: 2.8rem; padding: .55rem; border: 1px solid #818a7e; border-radius: 0; background: #fffefa; color: var(--ink); font: inherit; }
.filters { max-width: 36rem; margin-bottom: .5rem; }
.result { background: #fffefa; border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); }
.box-count { color: var(--green); font: clamp(2.5rem, 5vw, 4rem)/1 var(--serif); overflow-wrap: anywhere; }
dl { margin-block: 1rem; }
dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; border-top: 1px solid var(--rule); padding: .55rem 0; }
dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.result-note, .count, .footer p { font-size: .9rem; color: var(--muted); }
.supplier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.supplier-grid article { padding: 1.35rem; border: 1px solid var(--rule); }
footer { border-top: 1px solid var(--rule); }
.footer p { margin: 0; }
@media (max-width: 780px) {
  .hero, .estimator { grid-template-columns: 1fr; }
  .hero-image { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .materials { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 2rem); }
  .navigation, .footer { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 1rem; }
  .supplier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .fields, .filters { grid-template-columns: 1fr; }
}

