:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --surface: #fffaf1;
  --ink: #252d25;
  --soft: #515e51;
  --green: #223c30;
  --sage: #e4e8da;
  --peach: #f2d5bd;
  --line: #d9d4c5;
  --gutter: clamp(18px, 4.6vw, 66px);
  --radius: 15px;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
}

main { flex: 1; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--soft); }
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 2px solid #a15b35; outline-offset: 5px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.75rem, 6.5vw, 5.9rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.35rem); }
h3 { font-size: clamp(1.42rem, 2.4vw, 2.1rem); line-height: 1.14; }

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 10px; top: 8px; background: var(--surface); padding: 8px 14px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }

.top, .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.top { min-height: 73px; padding-block: 11px; }
.wordmark { color: var(--green); font: 400 clamp(1.65rem, 3.6vw, 2.55rem)/1.1 var(--display); letter-spacing: -.055em; text-decoration: none; }
.archive-link { color: var(--soft); font-size: .8rem; font-weight: 620; text-underline-offset: 4px; }

.navigation, .footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px clamp(12px, 2.8vw, 36px);
}

.navigation { border-top: 1px solid var(--line); padding-block: 11px; }
.navigation a, .footer-inner nav a { color: var(--soft); font-size: .89rem; font-weight: 610; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current], .footer-inner nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  margin-top: clamp(18px, 3.1vw, 43px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  background: var(--peach);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-copy { align-self: center; padding: clamp(25px, 4.7vw, 68px); }
.hero h1 { margin-block: 13px 19px; font-size: clamp(3.1rem, 5.95vw, 5.55rem); color: var(--green); }
.hero .lead { max-width: 39ch; font-size: clamp(1rem, 1.25vw, 1.16rem); }
.hero-photo { min-height: clamp(375px, 37vw, 535px); position: relative; background: #b57862; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }

.source {
  color: #52604e;
  font-size: .75rem;
  font-weight: 730;
  letter-spacing: .07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; margin-top: 23px; }
.button, .text-link, .back { color: var(--green); font-size: .9rem; font-weight: 690; text-underline-offset: 5px; }
.text-link:hover, .back:hover { color: #8c492b; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 47px;
  gap: 10px;
  padding: 11px 15px;
  background: var(--green);
  color: var(--surface);
  border: 1px solid var(--green);
  border-radius: 6px;
  line-height: 1.25;
  text-decoration: none;
}

.button:hover { background: #375642; }

.section { margin-top: clamp(48px, 6.5vw, 88px); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 23px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 27px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.catalog-card a { display: block; height: 100%; text-decoration: none; border-radius: inherit; }
.catalog-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--sage); }
.card-photo img { width: 100%; height: 100%; object-fit: contain; }
.home-cards .card-photo img { object-fit: cover; }
.cover-missing { display: grid; place-content: center; height: 100%; min-height: 110px; color: var(--soft); font: 400 1.6rem var(--display); }
.card-copy { padding: clamp(15px, 2.4vw, 23px); }
.card-copy p { margin-bottom: 7px; font-size: .78rem; font-weight: 670; }
.panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px 25px; background: var(--sage); padding: clamp(24px, 4.2vw, 50px); border-radius: var(--radius); }
.panel p { margin-top: 9px; }
.work-links { width: min(100%, 380px); padding: 0; margin: 0; list-style: none; }
.work-links li { border-bottom: 1px solid #bfc9b5; }
.work-links li:first-child { border-top: 1px solid #bfc9b5; }
.work-links a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 1px; color: var(--green); font-size: .91rem; font-weight: 670; text-underline-offset: 4px; }

.inner { padding-top: clamp(37px, 6.3vw, 77px); }
.page-title { max-width: 710px; margin-bottom: 28px; }
.page-title p { margin-top: 13px; }
.catalog-tools { display: grid; grid-template-columns: minmax(180px, 380px) 1fr; align-items: center; gap: 3px 16px; margin-bottom: 22px; }
.catalog-tools label { grid-column: 1 / -1; font-size: .88rem; font-weight: 640; }
.catalog-tools input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #aaa996;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 11px;
  font: inherit;
}

.catalog-tools p { font-size: .87rem; }
.empty { padding: 12px 0; }
.back { display: inline-block; margin-bottom: 19px; }
.product, .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(22px, 5.5vw, 77px); }
.product-copy { align-self: start; padding-top: 13px; }
.product h1 { margin-top: 11px; font-size: clamp(2.5rem, 5vw, 4.65rem); }
.product-copy p:not(.source) { margin-top: 16px; }
.product-copy .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.price strong { color: var(--green); }
.price span, .item-source { font-size: .88rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 13px; }
.gallery figure { border-radius: var(--radius); background: var(--sage); padding: 9px; overflow: hidden; }
.gallery figure:first-child, .detail-placeholder { grid-column: 1 / -1; }
.gallery img { max-height: 670px; object-fit: contain; border-radius: 8px; }
.detail-placeholder { background: var(--sage); border-radius: var(--radius); min-height: 190px; }
.story { align-items: center; }
.story-photo img { max-height: 650px; object-fit: contain; border-radius: var(--radius); }
.document { max-width: 740px; }
.document p { margin-top: 16px; }
.document h2 { margin-top: 28px; font-size: clamp(1.65rem, 3.7vw, 2.6rem); }
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(52px, 8vw, 96px); }
.footer-inner { min-height: 100px; padding-block: 13px; }
.footer-inner .wordmark { font-size: clamp(1.45rem, 3vw, 2.1rem); }

@media (max-width: 815px) {
  .hero-copy { padding: clamp(22px, 3.8vw, 36px); }
  .hero-photo { min-height: 350px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 630px) {
  .hero, .product, .story { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.25rem); }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .product-copy { grid-row: 1; padding-top: 0; }
  .story .document { grid-row: 1; }
  .top, .footer-inner { min-height: 0; padding-block: 13px; }
  .navigation a { font-size: .84rem; padding-block: 3px; }
  .gallery img { max-height: 470px; }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 395px) {
  .home-cards, .cards:not(.home-cards) { gap: 12px; }
  .card-copy { padding: 12px; }
  .card-copy h3 { font-size: 1.28rem; }
}
