:root {
  --paper: #f6f2e9;
  --ink: #232d23;
  --muted: #545c4d;
  --line: #d8d0c0;
  --green: #1b231b;
  --lime: #b6e83d;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--body); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .ideas:focus-visible { outline: 3px solid #6b8c1d; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.site-header { background: #000; color: var(--paper); }
.header-inner, .footer-inner, nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: clamp(7.25rem, 12vw, 9rem); }
.brand { display: block; }
.brand img { display: block; width: clamp(6.75rem, 17vw, 10rem); height: auto; }
nav a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid transparent; padding: .85rem 1.15rem; background: var(--green); color: #fffaf0;
  font: 600 .9rem/1.4 var(--body); text-decoration: none; cursor: pointer;
}
.button:hover { background: #3e5140; }
.button-small { padding: .68rem .9rem; }
.site-header .button, form .button { background: var(--lime); color: #151d0e; }
.site-header .button:hover, form .button:hover { background: #d2f48c; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2.75rem, 7vw, 6rem); }
.hero-copy { container-type: inline-size; min-width: 0; padding-top: 1rem; }
h1, h2, h3 { margin: 0; font: 400 1rem/1 var(--display); }
h1 { font-size: clamp(3.7rem, 6.65vw, 6.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(3rem, 5.7vw, 5.4rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
h1 em, h2 em { display: block; }
h1 em { font-size: min(3.25rem, 8.8cqi); letter-spacing: -.02em; margin-top: .15em; white-space: nowrap; }
.hero p { max-width: 31ch; margin: 1.3rem 0 1.6rem; color: var(--muted); }
.hero-image {
  width: min(90%, 31rem);
  aspect-ratio: 1.35;
  justify-self: end;
  background: url("workshop.jpg") center / cover no-repeat,
    repeating-linear-gradient(107deg, #26392d 0 18px, #293d30 18px 19px, #2c4133 19px 40px);
}
.project-band { border-block: 1px solid var(--line); background: #eee6d8; padding-block: clamp(2.75rem, 6vw, 5rem); }
.gallery-frame {
  --card-width: calc((100cqi - 2rem) / 3);
  --photo-ratio: 1.45;
  position: relative;
  container-type: inline-size;
  margin-top: 1.6rem;
}
.gallery-buttons {
  position: absolute;
  z-index: 1;
  inset-inline: .6rem;
  top: calc(var(--card-width) / var(--photo-ratio) / 2);
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-buttons[hidden] { display: none; }
.gallery-buttons button { display: grid; place-items: center; background: var(--green); border: 1px solid var(--paper); color: var(--paper); border-radius: 50%; font-size: 1.25rem; width: 2.75rem; height: 2.75rem; cursor: pointer; pointer-events: auto; }
.gallery-buttons button:disabled { opacity: .55; cursor: default; }
.ideas { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-width); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-color: #6b7866 #d8d0c0; }
.ideas article { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.ideas h3 { padding: 1rem 1rem 0; }
.ideas p { color: var(--muted); margin: .55rem 1rem 1rem; }
.ideas .price { margin-top: auto; font-weight: 700; color: var(--ink); }
.project-image { width: 100%; aspect-ratio: var(--photo-ratio); background-repeat: no-repeat; background-color: #ad916b; }
.shelves, .bench, .garage { background-image: url("catalog-home.jpg"); }
.shelves { background-size: 572% auto; background-position: 15.4% 100%; }
.bench { background-size: 577% auto; background-position: 47% 100%; }
.garage { background-size: 445% auto; background-position: 82.4% 100%; }
.mantel, .cart { background-image: url("catalog-outdoors.jpg"); }
.mantel { background-size: 333% auto; background-position: 18.6% 76%; }
.cart { background-size: 338% auto; background-position: 74.7% 76%; }
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.about img { width: 100%; height: auto; display: block; }
.about p { max-width: 41ch; }
.estimate { color: #fffaf0; background: var(--green); padding-block: clamp(3rem, 7vw, 6rem); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 7vw, 6rem); }
.estimate p { max-width: 36ch; margin: 1.2rem 0; color: #e5dfd0; }
.email { text-underline-offset: .25em; overflow-wrap: anywhere; }
form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: block; font-size: .9rem; font-weight: 600; }
input, textarea, select {
  display: block; width: 100%; padding: .78rem .85rem; margin-top: .32rem;
  border: 1px solid #b7b6a3; border-radius: 0; background: #fffaf0; color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 8rem; }
.full { grid-column: 1 / -1; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-inner { padding-block: 1.35rem; font-size: .875rem; }
@media (max-width: 760px) {
  .hero, .estimate-grid, .about { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-image { width: min(100%, 26rem); justify-self: start; }
  .gallery-frame { --card-width: calc((100cqi - 1rem) / 2); }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  nav > a:not(.button) { display: none; }
  .header-inner { gap: .5rem; }
  .button-small { font-size: .8rem; gap: .4rem; }
  h1 { font-size: clamp(3rem, 10.7vw, 5.2rem); }
  .gallery-frame { --card-width: 88cqi; }
  form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
