:root {
  --ink: #211d1a;
  --paper: #f3efe7;
  --cream: #fbf8f1;
  --wine: #6f1f2a;
  --wine-dark: #4d141d;
  --copper: #b96e3f;
  --sage: #7d8268;
  --line: rgba(33, 29, 26, .16);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); }
body.dialog-open { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: absolute; z-index: 10; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: auto; padding: 26px clamp(22px, 5vw, 72px);
  color: white;
}
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand-cow, .hero-brand img { height: auto; object-fit: contain; }
.brand-cow-header { width: clamp(210px, 20vw, 300px); filter: invert(1); }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
nav a { text-decoration: none; font-size: 13px; letter-spacing: .06em; }
.nav-etsy { padding: 12px 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.menu-toggle { display: none; color: inherit; border: 0; background: transparent; }

.hero { min-height: 760px; display: grid; grid-template-columns: 46% 54%; background: var(--wine); color: white; overflow: hidden; }
.hero-copy { align-self: center; padding: 210px clamp(32px, 7vw, 110px) 76px; }
.hero-brand { display: grid; justify-items: center; width: min(100%, 430px); margin: 0 0 32px; }
.hero-brand img { filter: invert(1); mix-blend-mode: screen; }
.hero-brand img + img { width: 68%; margin-top: 3px; }
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
.hero h1 { max-width: 660px; margin: 0; font: 400 clamp(55px, 6vw, 96px)/.91 var(--serif); letter-spacing: -.045em; }
.hero h1 em { color: #efad78; font-weight: 400; }
.hero-intro { max-width: 520px; margin: 34px 0; color: rgba(255,255,255,.8); font: 17px/1.7 var(--sans); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--wine-dark); background: #f2c49d; }
.text-link { color: white; text-underline-offset: 5px; font-size: 13px; }
.hero-gallery { position: relative; min-height: 760px; background: #d8c0aa; }
.hero-image-main { position: absolute; inset: 0 0 0 14%; margin: 0; }
.hero-image-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(111,31,42,.18), transparent 35%); }
.hero-image-small { position: absolute; z-index: 2; left: 0; bottom: 8%; width: 31%; height: 31%; margin: 0; border: 10px solid var(--wine); }
.made-note { position: absolute; z-index: 3; right: 5%; bottom: 5%; width: 120px; height: 120px; display: grid; place-items: center; text-align: center; border-radius: 50%; color: var(--wine-dark); background: #f2c49d; font: italic 16px/1.3 var(--serif); transform: rotate(8deg); }

.manifesto { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(220px, .65fr); align-items: center; gap: 40px; padding: 42px clamp(24px, 7vw, 110px); background: var(--paper); border-bottom: 1px solid var(--line); }
.manifesto p { margin: 0; max-width: 700px; font: 31px/1.2 var(--serif); }
.manifesto span { max-width: 330px; align-self: end; color: #69615b; font-size: 13px; line-height: 1.6; }

.collection { padding: 110px clamp(22px, 6vw, 90px) 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: 1280px; margin: 0 auto 42px; }
.section-heading h2, .story h2, .etsy-callout h2 { margin: 0; font: 400 clamp(40px, 5vw, 70px)/1 var(--serif); letter-spacing: -.035em; }
.section-heading > p { max-width: 370px; margin: 0; color: #6c645e; line-height: 1.6; }
.filters { display: flex; gap: 9px; max-width: 1280px; margin: 0 auto 28px; overflow-x: auto; padding-bottom: 4px; }
.filter { flex: 0 0 auto; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; color: #5c554f; background: transparent; cursor: pointer; font-size: 12px; }
.filter.is-active, .filter:hover { color: white; border-color: var(--ink); background: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 22px; max-width: 1280px; margin: auto; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; background: #e8e2d8; cursor: pointer; }
.product-image-wrap img { transition: transform .55s cubic-bezier(.2,.6,.2,1); }
.product-card:hover img { transform: scale(1.035); }
.product-tag { position: absolute; left: 14px; top: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(251,248,241,.92); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.quick-view { position: absolute; inset: auto 14px 14px; padding: 12px 16px; border: 0; border-radius: 999px; color: white; background: rgba(33,29,26,.9); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transform: translateY(70px); transition: transform .25s; }
.product-card:hover .quick-view, .quick-view:focus { transform: none; }
.product-info { padding-top: 17px; }
.product-info h3 { margin: 0 0 8px; font: 400 22px/1.15 var(--serif); }
.product-page-link { text-decoration: none; }
.product-page-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-meta { display: flex; justify-content: space-between; gap: 20px; color: #766d65; font-size: 12px; }
.product-price { color: var(--wine); font-weight: 700; }

.story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 700px; color: white; background: #232421; }
.story-image { min-height: 620px; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(32px, 7vw, 100px); }
.story-copy > p:not(.eyebrow) { max-width: 570px; color: rgba(255,255,255,.72); line-height: 1.8; }
.story-facts { margin: 28px 0 35px; border-top: 1px solid rgba(255,255,255,.15); }
.story-facts div { display: grid; grid-template-columns: 105px 1fr; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.story-facts dt { color: #d6a579; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.story-facts dd { margin: 0; font-size: 13px; }
.button-dark { align-self: flex-start; color: var(--ink); background: #e6b88f; }

.etsy-callout { padding: 110px 24px; text-align: center; color: white; background: var(--wine); }
.etsy-callout h2 { max-width: 850px; margin: 0 auto 34px; }
.button-light { color: var(--wine); background: var(--cream); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 42px clamp(22px, 6vw, 90px); background: var(--paper); }
.brand-footer { color: var(--ink); }
.brand-cow-footer { width: 145px; }
footer > p { color: #746b65; font: italic 16px var(--serif); }
footer > div { display: flex; justify-content: flex-end; gap: 24px; color: #746b65; font-size: 11px; }

.product-dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; color: var(--ink); background: var(--cream); box-shadow: 0 25px 80px rgba(0,0,0,.4); }
.product-dialog::backdrop { background: rgba(24,18,17,.74); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 4; top: 15px; right: 15px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(251,248,241,.92); cursor: pointer; font-size: 26px; }
.dialog-layout { display: grid; grid-template-columns: 55% 45%; min-height: 630px; }
.dialog-gallery { min-width: 0; background: #ded7cd; }
.dialog-main-image { height: 520px; }
.dialog-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 8px; overflow-x: auto; padding: 12px; }
.dialog-thumb { aspect-ratio: 1; padding: 0; border: 2px solid transparent; background: transparent; cursor: pointer; }
.dialog-thumb.is-active { border-color: var(--wine); }
.dialog-copy { padding: 58px 42px 45px; overflow: auto; }
.dialog-copy h2 { margin: 0 0 15px; font: 400 42px/1.02 var(--serif); }
.dialog-price { color: var(--wine); font-size: 20px; font-weight: 700; }
.dialog-description { margin: 24px 0; color: #625a54; line-height: 1.75; }
.spec-list { margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); list-style: none; }
.spec-list li { margin: 6px 0; font-size: 13px; }
.dialog-copy .button { width: 100%; color: white; background: var(--wine); }
.dialog-note { color: #776e67; font-size: 11px; text-align: center; }

.product-page-body { background: var(--paper); }
.product-page-header { position: relative; max-width: none; color: white; background: var(--wine); }
.product-page-main { max-width: 1280px; margin: auto; padding: 58px clamp(22px, 6vw, 90px) 110px; }
.product-page-back { display: inline-block; margin-bottom: 28px; color: #675f59; font-size: 13px; text-underline-offset: 4px; }
.product-page-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); overflow: hidden; background: var(--cream); box-shadow: 0 20px 70px rgba(33,29,26,.11); }
.product-page-gallery { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 2px; background: #ded7cd; }
.product-page-gallery figure { aspect-ratio: 4/5; margin: 0; overflow: hidden; }
.product-page-gallery figure:first-child:last-child { grid-column: 1 / -1; }
.product-page-copy { align-self: start; padding: clamp(44px, 6vw, 82px) clamp(28px, 5vw, 68px); }
.product-page-copy h1 { margin: 0 0 18px; font: 400 clamp(38px, 4.5vw, 64px)/1 var(--serif); letter-spacing: -.035em; }
.product-page-description { margin: 28px 0; color: #625a54; line-height: 1.75; white-space: pre-line; }
.product-page-copy .button { width: 100%; color: white; background: var(--wine); }

@media (max-width: 900px) {
  .site-header { position: absolute; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 124px; right: 20px; flex-direction: column; align-items: stretch; padding: 22px; color: var(--ink); background: var(--cream); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
  nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 680px; padding-top: 190px; }
  .hero-gallery { min-height: 620px; }
  .manifesto { grid-template-columns: 1fr minmax(220px, .65fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 560px; }
  footer { grid-template-columns: 1fr; }
  footer > div { justify-content: flex-start; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-main-image { height: min(58vh, 520px); }
  .product-page-layout { grid-template-columns: 1fr; }
  .product-page-header nav { display: flex; position: static; flex-direction: row; padding: 0; color: inherit; background: transparent; box-shadow: none; }
}

@media (max-width: 600px) {
  .hero-copy { min-height: 650px; padding-inline: 24px; }
  .brand-cow-header { width: min(54vw, 210px); }
  .hero-brand { width: min(90vw, 340px); }
  .hero-gallery { min-height: 500px; }
  .hero-image-main { left: 0; }
  .hero-image-small { display: none; }
  .manifesto { grid-template-columns: 1fr; padding: 45px 24px; }
  .section-heading { align-items: start; flex-direction: column; }
  .collection { padding: 78px 16px 90px; }
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-image-wrap { aspect-ratio: 5/6; }
  .quick-view { transform: none; }
  .story-copy { padding: 70px 24px; }
  .etsy-callout { padding: 80px 22px; }
  footer { padding: 38px 22px; }
  .dialog-copy { padding: 42px 24px; }
  .dialog-copy h2 { font-size: 34px; }
  .product-page-header { justify-content: center; }
  .product-page-header nav { display: none; }
  .product-page-main { padding: 36px 16px 72px; }
  .product-page-gallery { grid-template-columns: 1fr; }
  .product-page-copy { padding: 42px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
