:root {
  --paper: #faf6ee;
  --surface: #fffdf9;
  --ink: #221812;
  --muted: #65574c;
  --line: #e4d9c9;
  --walnut: #4a2c1a;
  --green: #1d4d36;
  --green-dark: #143a28;
  --red: #b91c1c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 6px;
  --page: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn { font: 600 1rem/1.2 var(--sans); background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: var(--radius); padding: 0.75rem 1.25rem; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--green-dark); }
.btn:disabled { background: #e9e2d6; border-color: #e9e2d6; color: #5d5147; cursor: default; }
.btn-large { padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn-wide { width: 100%; }
.btn-quiet { background: transparent; color: var(--green); }
.btn-quiet:hover { background: #eaf1ec; }
.btn-plain { font: 600 0.9375rem/1.2 var(--sans); background: none; border: 0; color: var(--green); padding: 0.5rem; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.announce { background: var(--green); color: #fff; text-align: center; padding: 0.625rem 1rem; font-size: 0.9375rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.75rem clamp(1rem, 4vw, 2rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font: 600 clamp(1.2rem, 3vw, 1.5rem)/1.2 var(--serif); color: var(--walnut); text-decoration: none; }
.cart-btn { background: var(--walnut); border-color: var(--walnut); white-space: nowrap; }
.cart-btn:hover { background: #351e10; }

.hero { max-width: var(--page); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2rem); display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.25rem; justify-items: start; }
.hero h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); letter-spacing: -0.01em; }
.hero-text > p { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.from { font: 600 1.25rem/1 var(--serif); color: var(--walnut); }
.hero-photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; aspect-ratio: 1; background: #efe6d8; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(34, 24, 18, 0.86); color: #fff; padding: 0.875rem 1.125rem; display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1fr 1.05fr; } }

.promises { list-style: none; margin: 0; padding: 1.25rem clamp(1rem, 4vw, 2rem); background: #f1e9dc; display: grid; gap: 1rem; text-align: center; }
.promises strong { display: block; font-family: var(--serif); font-size: 1.125rem; }
.promises span { color: var(--muted); }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(3, 1fr); } }

main { max-width: var(--page); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem); }
.shop-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.shop-head p { color: var(--muted); }
.filters { display: grid; gap: 0.75rem; margin-bottom: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: 500 0.9375rem/1.2 var(--sans); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.625rem 1rem; min-height: 44px; cursor: pointer; }
.chip:hover { border-color: var(--walnut); }
.chip[aria-pressed="true"] { background: var(--walnut); border-color: var(--walnut); color: #fff; }
.sort { color: var(--muted); }
.sort select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; min-height: 44px; }
@media (max-width: 639px) { .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; margin-right: -1rem; padding-right: 1rem; } .chip { flex: none; } }

.grid { display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-photo { display: block; aspect-ratio: 1; background: #efe6d8; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.no-photo { height: 100%; min-height: 200px; display: grid; place-items: center; color: var(--muted); }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card h3 { font-size: 1.1875rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.size { color: var(--muted); font-size: 0.9375rem; min-height: 1.5em; }
.buy { margin-top: auto; padding-top: 0.75rem; display: grid; gap: 0.75rem; }
.buy-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 0.75rem; }
.size-name { display: block; font-size: 0.875rem; color: var(--muted); }
.price { font: 600 1.375rem/1 var(--serif); color: var(--walnut); }
.in-other-cart { color: var(--red); font-weight: 700; }
.buy-row .in-other-cart { flex-basis: 100%; }

.skeleton { background: #efe6d8; animation: pulse 1.4s ease-in-out infinite; }
.card.skeleton { min-height: 400px; }
@keyframes pulse { 50% { opacity: 0.55; } }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(34, 24, 18, 0.6); display: flex; }
.backdrop.center { align-items: center; justify-content: center; padding: 1rem; }
.backdrop.right { justify-content: flex-end; }
.detail { background: var(--surface); border-radius: var(--radius); width: min(1040px, 100%); max-height: 100%; overflow: auto; display: grid; }
.detail-photo { background: #efe6d8; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.detail-body { padding: clamp(1rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.75rem; }
.close { align-self: flex-end; }
.facts { margin: 0.5rem 0 0; padding-left: 1.125rem; color: var(--muted); }
@media (min-width: 800px) { .detail { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 799px) { .detail-photo img { max-height: 46vh; } .detail-body { position: relative; } }

.drawer { width: min(440px, 100%); height: 100%; overflow-y: auto; background: var(--surface); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-item { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.drawer-price { text-align: right; display: grid; justify-items: end; align-content: start; }
.drawer-foot { margin-top: auto; display: grid; gap: 1rem; }
.zip-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.zip-form div { display: flex; gap: 0.5rem; }
.zip-form input { width: 8rem; font: inherit; padding: 0.5rem 0.75rem; min-height: 44px; border: 1px solid #a89a88; border-radius: var(--radius); background: #fff; color: var(--ink); }
.totals { margin: 0; display: grid; gap: 0.25rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; }
.totals .total { font-weight: 700; font-size: 1.125rem; border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.25rem; }
.small { font-size: 0.875rem; color: var(--muted); }
.form-error { color: var(--red); font-weight: 600; }
.notice { background: #fbf1dc; border: 1px solid #dfc58e; border-radius: var(--radius); padding: 0.75rem 1rem; }
.cart-bar { display: none; }
@media (max-width: 639px) { .cart-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: var(--green); color: #fff; border: 0; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); font: 600 1.0625rem/1 var(--sans); cursor: pointer; } footer { padding-bottom: 6rem; } }

.questions { max-width: 760px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 3rem; }
.questions h2 { margin-bottom: 0.75rem; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.0625rem; }
.questions details p { padding-bottom: 1rem; color: var(--muted); }
.status-box, .banner-success { max-width: 720px; margin: 1.5rem auto; padding: 1.25rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.status-box .btn { margin-top: 0.75rem; }
.banner-success { background: #e8f3ea; border-color: #9cc8a6; color: #14432a; font-weight: 600; }
footer { text-align: center; padding: 2rem 1.25rem; color: var(--muted); font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.policies { background: #f1e9dc; padding: 3rem clamp(1rem, 4vw, 2rem); }
.policies > * { max-width: 960px; margin-inline: auto; }
.policy-grid { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.25rem; }
.policy-grid h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
@media (min-width: 700px) { .policy-grid { grid-template-columns: repeat(3, 1fr); } }
