:root {
  --bone: #f6f1ea;
  --sand: #ebe2d6;
  --clay: #b4532a;
  --clay-deep: #8f3e1d;
  --sage: #7f8f72;
  --ink: #221b16;
  --muted: #6f645b;
  --white: #fffdf9;
  --line: rgba(34, 27, 22, 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 1.02rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.cart-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em { color: var(--clay); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font: 600 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

.ship-bar { background: var(--ink); color: var(--sand); text-align: center; font-size: 0.85rem; padding: 8px 16px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(246, 241, 234, 0.96); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { font: 500 2rem/1 var(--serif); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--clay); }
.logo.small { font-size: 1.5rem; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; font: 600 0.92rem/1 var(--sans); color: var(--ink); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 0.78rem; }
.count.bump { animation: bump 0.45s; }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(0.9); } }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 44ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-art { margin: 0; position: relative; justify-self: end; width: min(100%, 470px); }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px 12px 12px; }
.hero-art figcaption { position: absolute; left: -28px; bottom: 40px; background: var(--white); padding: 12px 16px; border-radius: 12px; font-size: 0.88rem; box-shadow: 0 18px 40px -20px rgba(34, 27, 22, 0.5); }
.hero-art figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); margin-right: 8px; vertical-align: middle; }

/* Shop */
.shop { padding: 40px 0 96px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.shop-head h2, .story h2, .news h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 500 0.9rem/1 var(--sans); cursor: pointer; color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.sort select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font: inherit; color: var(--ink); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ph { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .ph img { transform: scale(1.06); }
.pill { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--white); font-size: 0.75rem; font-weight: 700; }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meta h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.add { padding: 11px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font: 600 0.9rem/1 var(--sans); cursor: pointer; color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.add:hover { background: var(--ink); color: var(--bone); }
.add.done { background: var(--sage); border-color: var(--sage); color: #fff; }

/* Story */
.story { padding: 96px 0; background: var(--sand); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.story-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.story-grid > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.story p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* Care */
.care { padding: 72px 0; }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.care-grid div { padding-top: 18px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.care-grid h3 { font-size: 1.4rem; }
.care-grid p { color: var(--muted); font-size: 0.95rem; }

/* Newsletter */
.news { padding: 0 0 88px; }
.news-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: clamp(24px, 4vw, 40px); background: var(--clay); color: #fff; border-radius: 20px; }
.news h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18ch; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; justify-content: flex-end; min-width: 0; }
.news-form input { flex: 1; min-width: 0; max-width: 320px; padding: 13px 18px; border-radius: 999px; border: 0; font: inherit; color: var(--ink); background: var(--white); }
.news-form .btn { background: var(--ink); }

.foot { border-top: 1px solid var(--line); padding-block: 26px; font-size: 0.9rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Cart drawer */
.cart { position: fixed; inset: 0; z-index: 90; background: rgba(34, 27, 22, 0.45); display: flex; justify-content: flex-end; }
.cart-panel { width: min(420px, 100%); height: 100%; background: var(--bone); display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 20px; gap: 16px; animation: slide 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0.4; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 2rem; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.ship { padding: 14px; border-radius: 12px; background: var(--white); font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; }
.ship-track { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.ship-track i { display: block; height: 100%; width: 0; background: var(--sage); transition: width 0.4s; }
.lines { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.lines img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.l-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.l-info strong { font-weight: 600; }
.l-info > span { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty output { min-width: 18px; text-align: center; font-weight: 600; }
.rm { border: 0; background: none; color: var(--muted); font: 500 0.82rem var(--sans); cursor: pointer; text-decoration: underline; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; flex: 1; }
.cart-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.row.small { color: var(--muted); font-size: 0.92rem; }
.row.total { font-size: 1.15rem; margin-bottom: 6px; }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } .care-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; width: min(86%, 420px); }
  .grid { grid-template-columns: 1fr 1fr; }
  .shop-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .cart-btn span { display: none; }
  .grid { gap: 20px 12px; }
  .meta { flex-direction: column; gap: 2px; }
  .meta h3 { font-size: 1rem; }
  .care-grid { grid-template-columns: 1fr; }
  .hero-art figcaption { left: -8px; }
  .news-form input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ph img, .btn { transition: none; } .count.bump, .cart-panel { animation: none; } }
