:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --ink: #211a15;
  --muted: #63564c;
  --line: #dfd2c4;
  --sand: #efe2d3;
  --accent: #edb37b;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a65335; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 400 2rem/1.05 var(--serif); letter-spacing: -.055em; }
h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
p, figure { font-weight: 400; }
section[id] { scroll-margin-top: 18px; }
.frame { width: min(1240px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: .6rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.masthead, .hero { background: var(--ink); color: #fff6e7; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.header { min-height: 78px; border-bottom: 1px solid #ffffff29; }
.logo { font: 700 2.12rem/.9 var(--serif); letter-spacing: -.08em; white-space: nowrap; }
.logo span { font-weight: 400; font-style: italic; color: #a34c34; margin-left: .12em; }
.masthead .logo span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem clamp(.8rem, 2vw, 2rem); font-size: .94rem; }
nav a { padding: .34rem 0; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.solid, .outline {
  display: inline-flex; justify-content: center; align-items: center; gap: .58em;
  border: 1px solid currentColor; border-radius: 999px; padding: .66em 1.12em;
  font-weight: 650; font-size: .94rem; text-align: center;
}
.solid { background: var(--ink); color: #fff7eb; border-color: var(--ink); }
.solid:hover { background: #633623; border-color: #633623; }
.outline { background: transparent; color: inherit; }
.outline:hover { background: #9b68431c; }
#bag-button { border-color: #bfa18d; white-space: nowrap; }
#bag-count { min-width: 1.5em; text-align: center; border-radius: 100px; background: #fff3e02a; }
.hero-layout { min-height: min(670px, 70vw); display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: 3rem 4rem; }
.eyebrow { font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.hero h1 { font-size: clamp(3.8rem, 8.2vw, 8rem); line-height: .9; letter-spacing: -.075em; margin: 1.2rem 0 1.65rem; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero-copy > p:not(.eyebrow) { color: #e2d2c4; max-width: 35ch; font-size: 1.1rem; margin-bottom: 1.6rem; }
.hero .solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero .solid:hover { background: #ffd0a6; border-color: #ffd0a6; }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 1.02; border-radius: 48% 48% 9px 9px / 32% 32% 9px 9px; background: #88623e; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 60%; }
.hero-photo figcaption { position: absolute; bottom: 1rem; right: 1rem; border-radius: 99px; padding: .45em .8em; background: #fff7eb; color: var(--ink); font-size: .875rem; font-weight: 650; }
.collection, .about { padding-block: clamp(3.2rem, 8vw, 7rem); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); margin-bottom: 1.65rem; }
.section-title p, .decor p, .about p { color: var(--muted); max-width: 37ch; }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.35rem; }
.card { grid-column: span 2; }
.card:nth-child(n+4) { grid-column: span 3; }
.card img { display: block; width: 100%; aspect-ratio: 4/4.35; object-fit: cover; border-radius: 12px; background: #dec4a4; }
.card:nth-child(n+4) img { aspect-ratio: 4/3; }
.card h3 { font-size: clamp(1.55rem, 2.7vw, 2.35rem); margin: .85rem 0 .7rem; }
.card-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.card-actions .outline { border-color: #bda692; padding: .48em .85em; }
.card-actions .outline:last-child { background: var(--ink); color: #fff7eb; border-color: var(--ink); }
.card-actions .outline:last-child:hover { background: #633623; border-color: #633623; }
.decor { margin-top: 2.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.decor p { margin-top: .35rem; }
.story-wrap { background: var(--sand); }
.story { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(1.5rem, 8vw, 9rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.story img { width: 100%; height: auto; max-height: 530px; object-fit: cover; object-position: center 54%; aspect-ratio: 1.1; border-radius: 10px 42% 10px 10px / 10px 30% 10px 10px; }
.story p, .contact p { max-width: 43ch; margin-block: 1rem 1.3rem; }
.text-link { border-bottom: 1px solid #8a4a32; color: #7c3d2b; font-weight: 650; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principles article { background: #f2e8dd; border-radius: 12px; padding: clamp(1.15rem, 3vw, 2rem); }
.principles p { margin-top: .6rem; }
.contact { background: #75412d; color: #fff7eb; }
.contact-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.contact p { margin-bottom: 0; }
.contact .solid { background: #fff7eb; color: var(--ink); border-color: #fff7eb; }
.contact .solid:hover { background: #f8d9bf; border-color: #f8d9bf; }
.footer { padding-block: 1.5rem; }
.footer a:last-child { color: var(--muted); }
dialog { margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); width: min(560px, calc(100% - 2rem)); max-height: 90dvh; }
dialog::backdrop { background: #1c100dcc; }
.sheet { padding: clamp(1rem, 5vw, 2.2rem); }
.sheet-head, .bag-row, .sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sheet-head h2 { font-size: 2.45rem; }
#bag-items { padding: 0; list-style: none; }
.bag-row { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.bag-row div { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.bag-row button { padding: .25rem .55rem; }
textarea { width: 100%; border: 1px solid var(--line); padding: .6rem; margin-block: .6rem; background: white; color: var(--ink); }
.sheet-actions { flex-wrap: wrap; justify-content: start; }
#copy-status { margin-top: .5rem; color: var(--muted); }
#product-detail { width: min(740px, calc(100% - 2rem)); }
.detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail > img { display: block; width: 100%; height: 100%; min-height: 370px; object-fit: cover; background: #e7d3bf; }
.detail-copy { padding: clamp(1.2rem, 4vw, 2.4rem); }
.detail-copy form { display: flex; justify-content: end; margin-bottom: 1.15rem; }
.detail-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.detail-copy p { margin-block: .7rem 1rem; color: var(--muted); }
#product-status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 850px) {
  .frame { width: calc(100% - 2.5rem); }
  .header { flex-wrap: wrap; padding-block: .8rem; }
  .header nav { order: 3; width: 100%; }
  .hero h1 { font-size: clamp(3.4rem, 8.8vw, 5.5rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card:nth-child(n+4) { grid-column: auto; }
  .card:nth-child(n+4) img { aspect-ratio: 4/4.35; }
}
@media (max-width: 600px) {
  .frame { width: calc(100% - 1.5rem); }
  .header, .header nav { gap: .5rem .85rem; }
  .header nav { font-size: .88rem; }
  .logo { font-size: 1.9rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2rem 2.25rem; }
  .hero-copy { padding-inline: .3rem; }
  .hero-photo { aspect-ratio: 1.27; }
  .section-title, .decor, .contact-layout { flex-direction: column; align-items: start; }
  .cards { gap: 1.35rem .75rem; }
  .card-actions { flex-direction: column; align-items: stretch; }
  .story { grid-template-columns: 1fr; }
  .story img { max-height: 350px; }
  .principles { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail > img { height: 220px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

