:root {
  color-scheme: light;
  font: 17px/1.6 system-ui, sans-serif;
  background: #f7f6ef;
  color: #23362c;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(100% - 2rem, 66rem); margin-inline: auto; }
header { display: flex; flex-wrap: wrap; gap: .7rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
a { color: #22593f; text-underline-offset: .2em; }
nav a, .brand { text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.brand { font: 700 1.65rem Georgia, serif; }
.intro { padding: clamp(1.5rem, 5vw, 4rem); background: #153c2e; color: #fffdf3; }
.intro p { max-width: 42rem; }
.label { color: #dce6ad; font-weight: 650; }
.product-page, .home-page { background: #fff; color: #252a25; }
.site-header { padding-block: .75rem; border-bottom: 1px solid #e3e4df; }
.site-header .brand img { display: block; width: 5.25rem; height: auto; }
.site-header nav a { color: #252a25; font-weight: 650; }
.site-header nav a[aria-current] { text-decoration-color: #e58b05; text-decoration-thickness: 3px; }
.home-page h1, .home-page h2 { font-family: inherit; }
.home-hero {
  display: grid;
  align-items: center;
  gap: clamp(.75rem, 3.5vw, 2.6rem);
  padding: clamp(1.15rem, 4vw, 3rem);
  margin-top: 1rem;
  background: #f3f5ec;
  border-radius: .75rem;
}
.home-hero .label { color: #315741; margin: 0; font-size: .9rem; }
.home-hero h1 { max-width: 16ch; margin: .28em 0; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
.home-hero-copy .intro-copy > p:last-child { max-width: 42ch; margin-block: 0 1rem; }
.home-hero-image { display: block; width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: .5rem; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.05rem; font-weight: 650; }
.home-categories, .home-products { padding-block: 1.6rem; }
.home-categories h2, .home-products h2 { margin-top: 0; }
.category-grid, .product-grid { display: grid; gap: .9rem; }
.category-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 11rem;
  aspect-ratio: 2.4;
  color: #fff;
  text-decoration: none;
  border-radius: .55rem;
  overflow: hidden;
  background: #294236;
}
.category-card img, .category-card::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-card img { z-index: -2; object-fit: cover; transition: transform .25s ease; }
.category-card::before {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(13, 34, 25, .94), rgba(13, 34, 25, .7) 35%, rgba(13, 34, 25, .16) 100%);
}
.category-card > div { padding: .85rem 1rem; }
.category-card h3 { margin: 0; font-size: 1.28rem; }
.category-card p { margin: .15rem 0 0; font-size: .95rem; }
.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e3e4df;
  border-radius: .55rem;
  overflow: hidden;
}
.product-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f4f0; }
.product-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #19778a;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 750;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.product-card-copy { display: flex; flex: 1; flex-direction: column; gap: .32rem; padding: .85rem 1rem; }
.product-card-copy h3, .product-card-copy p { margin: 0; }
.product-card-copy h3 { font-size: 1.07rem; }
.product-card-copy p { font-size: .95rem; }
.product-card-copy .product-card-caption { color: #526056; font-size: .82rem; }
.product-card-action { margin-top: auto; color: #22593f; font-weight: 700; }
.product-card:focus-visible .product-card-arrow { opacity: 1; transform: translate(-50%, -50%); }
.product-card:focus-visible .product-card-action, .category-card:focus-visible h3 { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .category-card:hover::before { background: linear-gradient(0deg, rgba(13, 34, 25, .96), rgba(13, 34, 25, .55)); }
  .category-card:hover img { transform: scale(1.06); }
  .category-card:hover h3, .product-card:hover .product-card-action { text-decoration: underline; }
  .product-card:hover .product-card-media img { transform: scale(1.1); }
  .product-card:hover .product-card-arrow { opacity: 1; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .category-card img, .product-card-media img, .product-card-arrow { transition: none; }
  .category-card:hover img, .product-card:hover .product-card-media img { transform: none; }
}
.home-page main > section:last-child {
  margin-block: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  background: #f3f5ec;
  border: 0;
  border-radius: .55rem;
}
.home-page main > section:last-child h2 { margin-top: 0; }
.home-page main > section:last-child a { font-weight: 700; }
.breadcrumbs { align-items: center; gap: .35rem .6rem; padding-block: .9rem 1.15rem; font-size: .89rem; color: #4e5750; }
.breadcrumbs a { color: inherit; }
.product-intro {
  display: grid;
  grid-template-areas: "copy" "photo" "specs";
  gap: 1rem;
  align-items: start;
  padding: 0 0 1.5rem;
  background: #fff;
  color: inherit;
}
.product-intro .intro-copy { grid-area: copy; min-width: 0; }
.product-intro .intro-copy p { margin: 0; }
.product-intro .label { color: #315741; font-size: .92rem; }
.product-page h1, .product-page h2 { font-family: inherit; }
.product-intro h1 { max-width: 19ch; margin: .25em 0; font-size: clamp(1.9rem, 4.5vw, 3.05rem); }
.product-photo { grid-area: photo; margin: 0; overflow: hidden; border: 1px solid #e3e4df; border-radius: .6rem; }
.product-image-frame { height: clamp(14rem, 61vw, 20rem); background: #eeefea; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .55rem .8rem; font-size: .85rem; }
.buying-details { grid-area: specs; }
.buying-details dl { margin: 0 0 1.2rem; border-top: 1px solid #e3e4df; }
.buying-details dl div {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  align-items: baseline;
  gap: .2rem .7rem;
  padding: .6rem 0;
  border-bottom: 1px solid #e3e4df;
}
.buying-details dt { color: #46554b; font-size: .9rem; }
.buying-details dd { margin: 0; font-weight: 650; }
.inquiry-link, .primary-link { display: inline-block; background: #f5a31d; color: #252013; padding: .7rem 1rem; border-radius: .3rem; font-weight: 750; text-decoration: none; }
.inquiry-link:hover, .primary-link:hover { background: #e9970a; text-decoration: underline; }
.buying-details p { margin: .65rem 0 0; font-size: .9rem; }
.product-page main > section:first-of-type { border-top: 1px solid #e3e4df; }
@media (min-width: 42rem) {
  .home-page .site-header { position: sticky; top: 0; z-index: 2; background: #fff; }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .product-intro {
    grid-template-areas: "photo copy" "photo specs";
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.1rem clamp(1.35rem, 4vw, 3.1rem);
  }
  .product-image-frame { height: clamp(20rem, 41vw, 29rem); }
}
h1, h2 { font-family: Georgia, serif; line-height: 1.12; }
h1 { font-size: clamp(2rem, 7vw, 4.2rem); margin: .4em 0; max-width: 15ch; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
section, form { padding-block: 1.2rem; border-bottom: 1px solid #d5d9cd; }
section p { max-width: 68ch; }
footer { padding-block: 1.4rem; color: #516257; }
form, #result { max-width: 43rem; }
label { display: block; margin-bottom: .9rem; font-weight: 600; }
input, textarea { display: block; width: 100%; padding: .65rem; border: 1px solid #687b6d; border-radius: .2rem; font: inherit; background: #fff; }
button { padding: .65rem 1rem; margin-top: .5rem; color: #fff; background: #22593f; border: 0; border-radius: .25rem; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #926007; outline-offset: 3px; }
