@font-face { font-family: Noto Serif; src: url('../assets/NotoSerif-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: Noto Sans; src: url('../assets/NotoSans-Regular.woff') format('woff'); font-display: swap; }
:root {
  --ink: #392b25;
  --wine: #55252d;
  --paper: #f8f0e2;
  --panel: #fffbf4;
  --muted: #64544a;
  --line: #d4c4ae;
  --serif: Noto Serif, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 Noto Sans, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #9b4d40; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: -5rem; left: 1rem; padding: .65rem 1rem; background: var(--panel); }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { flex: none; }
.brand img { width: 122px; height: 48px; object-fit: contain; }
nav, .language, .filters { display: flex; align-items: center; }
nav { gap: clamp(1rem, 4vw, 3.5rem); }
nav a { font-size: .875rem; text-decoration: none; padding-block: .4rem; }
nav a[aria-current], nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .4rem; }
.language { gap: .4rem; }
.language button, .filters button { background: transparent; border: 1px solid transparent; }
.language button { padding: .35rem .28rem; font-size: .875rem; }
.language button[aria-pressed=true] { border-bottom-color: var(--wine); color: var(--wine); }
.hero { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 5.8rem); }
.hero-copy { padding-bottom: 1.2rem; }
.eyebrow { color: var(--wine); font-size: .82rem; letter-spacing: .12em; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 400; }
h1 { color: var(--wine); font-size: clamp(4.6rem, 10vw, 9.1rem); letter-spacing: -.082em; margin-left: -.052em; }
h2 { color: var(--wine); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; }
h3 { font-size: 1.35rem; }
.hero-sub { font: clamp(1.35rem, 3vw, 2.2rem)/1.23 var(--serif); letter-spacing: -.035em; margin-block: .3rem 1rem; }
.hero-description { max-width: 35ch; color: var(--muted); }
.primary { display: inline-block; background: var(--wine); color: #fff8ec; text-decoration: none; padding: .75rem 1.25rem; margin-top: 1.45rem; }
.primary:hover { background: #6e343e; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.45rem; }
.hero-actions .primary { margin-top: 0; }
.catalog-link { color: var(--wine); text-underline-offset: .2em; }
.hero-visual img { width: 100%; aspect-ratio: 1.48; object-fit: cover; background: #d7c6b0; }
figcaption { color: var(--muted); font-size: .875rem; padding-top: .42rem; }
.collection { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head p { margin-top: .55rem; color: var(--muted); }
.filters { gap: .38rem; flex-wrap: wrap; }
.filters button { padding: .43rem .75rem; font-size: .875rem; border-color: var(--line); }
.filters button:hover, .filters button[aria-pressed=true] { background: var(--wine); border-color: var(--wine); color: var(--panel); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.product { border: 1px solid var(--line); background: #fffdf8; }
.product-button { display: block; width: 100%; height: 100%; text-align: left; padding: 0; border: 0; background: transparent; }
.product-button img { width: 100%; aspect-ratio: 1.48; object-fit: cover; background: #e7dac5; }
.product-copy { display: grid; padding: 1rem 1.05rem 1.15rem; gap: .22rem; }
.product-name { font: 1.75rem/1.15 var(--serif); color: var(--wine); }
.product-meta, .product-tag, .product-action { font-size: .875rem; }
.product-meta { color: var(--ink); }
.product-tag { color: var(--muted); }
.product-action { margin-top: .4rem; color: var(--wine); text-decoration: underline; text-underline-offset: .22rem; }
.product-button:hover .product-action { text-decoration-thickness: 2px; }
.materials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.materials h3 { margin-bottom: .55rem; color: var(--wine); }
.materials p { color: var(--muted); }
.materials p + p { margin-top: .65rem; }
.palette { grid-column: 1 / -1; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.palette ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: .8rem; padding: 0; margin: .85rem 0 .7rem; list-style: none; }
.palette li { display: flex; flex-direction: column; gap: .1rem; font-size: .875rem; }
.palette li::before { content: ''; display: block; height: 2.7rem; background: var(--swatch); border: 1px solid var(--line); margin-bottom: .3rem; }
.palette small, .palette p { color: var(--muted); font-size: .875rem; }
footer { background: var(--wine); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; padding-block: 1.15rem; font-size: .875rem; }
.detail { width: min(920px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.detail::backdrop { background: #2e211c9e; }
.detail-layout { display: grid; position: relative; grid-template-columns: .95fr 1fr; gap: 1.65rem; padding: 1.65rem; }
.detail figure { align-self: start; }
.detail figure img { width: 100%; aspect-ratio: 1.48; object-fit: cover; }
.detail h2 { padding-right: 1.5rem; }
.detail .eyebrow { padding-right: 1.5rem; }
.detail .story { color: var(--wine); font: 1.23rem/1.46 var(--serif); margin-block: .75rem; }
.detail #detail-description { color: var(--muted); }
.detail dl { display: grid; gap: .43rem; margin-block: 1rem; }
.detail dl > div { display: grid; grid-template-columns: 6.9rem 1fr; gap: .55rem; border-top: 1px solid var(--line); padding-top: .45rem; }
.detail dt { font-weight: 700; }
.detail dt, .detail dd { font-size: .875rem; }
.detail ul { margin: 0; padding-left: 1.1rem; }
.detail h3 + p { font-size: .875rem; margin-top: .3rem; }
.detail-note { border-left: 2px solid var(--wine); padding-left: .6rem; margin-top: .8rem; color: var(--muted); font-size: .875rem; }
.order-panel { display: grid; gap: .65rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.back-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.back-options legend { padding: 0; margin-bottom: .35rem; font-weight: 700; }
.back-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.back-options-grid label {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .45rem; align-items: center;
  padding: .45rem .55rem; border: 1px solid var(--line); cursor: pointer;
}
.back-options-grid label:has(input:checked) { background: var(--paper); border-color: var(--wine); }
.back-options-grid input { accent-color: var(--wine); margin: 0; }
.district-field { display: grid; gap: .25rem; font-size: .875rem; }
.district-field input {
  width: 100%; padding: .38rem .5rem; border: 1px solid var(--line);
  color: inherit; background: #fffdf8; font: inherit; font-size: 1rem;
}
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
.order-actions .primary { margin-top: 0; padding: .55rem .85rem; }
.order-actions a:not(.primary) { color: var(--wine); text-underline-offset: .2em; }
.order-help { color: var(--muted); font-size: .875rem; }
.close { position: absolute; z-index: 1; top: .65rem; right: .65rem; border: 1px solid var(--line); background: var(--panel); width: 2.35rem; height: 2.35rem; padding: 0; line-height: 1; font-size: 1.55rem; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials { grid-template-columns: 1fr 1fr; }
  .materials h2 { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header-inner { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .5rem .65rem; }
  .site-header nav { width: 100%; order: 2; gap: .4rem 1rem; flex-wrap: wrap; }
  .hero, .materials, .detail-layout { grid-template-columns: 1fr; }
  .hero { gap: .65rem; }
  .hero-copy { padding-bottom: .75rem; }
  .detail-layout { padding: 1rem; gap: .75rem; }
  .product-grid { gap: .65rem; }
  .product-copy { padding: .65rem; }
  .product-name { font-size: 1.48rem; }
}
