:root {
  --ink: #1c1814;
  --muted: #6d645a;
  --paper: #f3eee6;
  --cream: #faf7f1;
  --line: #ddd4c8;
  --accent: #8c3b1e;
  --accent-deep: #6e2d16;
  --leaf: #2f4a3a;
  --shadow: 0 24px 60px rgba(28, 24, 20, 0.12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(140, 59, 30, 0.12), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(47, 74, 58, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f2ea 0%, var(--paper) 40%, #efe8dc 100%);
  font-family: var(--sans);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(247, 242, 234, 0.86); border-bottom: 1px solid rgba(221, 212, 200, 0.7); }
.bar { background: var(--leaf); color: #e8efe9; text-align: center; font-size: 12px; letter-spacing: 0.06em; padding: 8px 12px; }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.02em; }
.brand span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); margin-top: 2px; }
nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
nav a:hover { color: var(--accent); }
.cart-btn {
  border: 1px solid var(--line); background: var(--cream); border-radius: 999px;
  padding: 10px 14px; cursor: pointer;
}
.cart-btn em {
  font-style: normal; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; font-size: 12px;
}

.hero {
  min-height: min(88vh, 760px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(135deg, #ebe3d5 0%, #d7c7b4 48%, #b89a7d 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -20% 35%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}
.hero-copy {
  width: min(560px, calc(100% - 48px));
  margin: 0;
  padding: 88px 48px 72px max(40px, calc((100vw - 1120px) / 2));
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  font-weight: 700; color: var(--accent-deep); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95; margin: 0 0 22px; letter-spacing: -0.02em;
}
.lede { max-width: 34ch; color: #3d342c; font-size: 1.05rem; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #f7f2ea; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; border-color: rgba(28,24,20,0.35); }

.hero-visual {
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(28,24,20,0.15), rgba(28,24,20,0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='1000' viewBox='0 0 800 1000'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23c4a484'/%3E%3Cstop offset='1' stop-color='%237a5a42'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='1000' fill='url(%23g)'/%3E%3Cpath d='M180 220h180v560H180z' fill='%23e8dccb' opacity='.55'/%3E%3Cpath d='M420 180h170v620H420z' fill='%23f2e8da' opacity='.4'/%3E%3Ccircle cx='560' cy='240' r='70' fill='%238c3b1e' opacity='.35'/%3E%3C/svg%3E")
    center / cover no-repeat;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-12px); }
}

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); margin-top: -28px; position: relative; z-index: 2;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.strip article { background: var(--cream); padding: 22px 18px; }
.strip strong { display: block; margin-bottom: 6px; }
.strip span { color: var(--muted); font-size: 14px; }

.collections { padding: 88px 0 40px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px;
}
.section-head h2, .story h2, .care h2, .contact h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0; line-height: 1.05;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line); background: var(--cream); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; color: var(--muted);
}
.filter.active, .filter:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: rgba(250, 247, 241, 0.9); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: rise .6s ease both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb {
  aspect-ratio: 4 / 5; background: #ddd2c3 center / cover no-repeat;
  position: relative;
}
.card .thumb span {
  position: absolute; left: 12px; top: 12px; background: rgba(250,247,241,.92);
  font-size: 11px; letter-spacing: .08em; padding: 5px 8px; text-transform: uppercase;
}
.card .body { padding: 18px 16px 20px; display: grid; gap: 8px; }
.card h3 { margin: 0; font-size: 1.2rem; font-family: var(--serif); font-weight: 400; }
.card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.card .actions { display: flex; gap: 8px; margin-top: 6px; }
.card .actions button { flex: 1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.story {
  margin-top: 72px; padding: 84px 0;
  background:
    linear-gradient(180deg, rgba(47,74,58,0.92), rgba(28,40,34,0.96)),
    #2f4a3a;
  color: #f3efe7;
}
.story .eyebrow { color: #d7c39a; }
.story p { color: #d5ddd6; max-width: 48ch; }
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.story-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 28px 24px; backdrop-filter: blur(8px);
}
.story-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.story-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: #e4ebe5; }

.care { padding: 84px 0 40px; }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.care-grid article {
  background: var(--cream); border: 1px solid var(--line); padding: 24px 20px;
}
.care-grid h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.care-grid p { margin: 0; color: var(--muted); }

.contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px;
  padding: 48px 0 96px; align-items: start;
}
.inquiry {
  display: grid; gap: 14px; background: var(--cream); border: 1px solid var(--line);
  padding: 24px; box-shadow: var(--shadow);
}
.inquiry label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.inquiry input, .inquiry textarea {
  border: 1px solid var(--line); background: #fff; padding: 12px 14px; border-radius: 10px;
}
.form-note { margin: 0; color: var(--leaf); font-size: 14px; }

.drawer {
  position: fixed; inset: 0; background: rgba(20,16,12,0.45); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 100%);
  background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: translateX(12px); transition: transform .25s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel header, .drawer-panel footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px; border-bottom: 1px solid var(--line);
}
.drawer-panel footer { border-bottom: 0; border-top: 1px solid var(--line); gap: 12px; }
.drawer-panel h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
#cart-close { border: 0; background: transparent; font-size: 28px; cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow: auto; padding: 12px 16px; display: grid; gap: 12px; align-content: start; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); padding: 8px; background: #fff;
}
.cart-row .swatch { width: 64px; height: 64px; background: #d7c7b4; }
.cart-row p { margin: 0; font-size: 14px; }
.cart-row button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.total { margin: 0; }
.total strong { font-size: 1.2rem; }

.site-footer {
  background: #171410; color: #d9d1c5; padding: 56px 0 28px;
}
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot .brand { color: #f4eee4; }
.foot p, .foot a { color: #a99d8e; }
.foot b { display: block; margin-bottom: 10px; color: #f4eee4; }
.foot a { display: block; margin: 8px 0; }
.copy { margin: 34px auto 0; padding-top: 18px; border-top: 1px solid #2c2620; font-size: 12px; color: #8d8275; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 64px 24px 40px; width: auto; }
  .hero-visual { min-height: 360px; }
  .strip, .grid, .care-grid, .story-grid, .contact, .foot { grid-template-columns: 1fr 1fr; }
  .contact { padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .strip, .grid, .care-grid, .story-grid, .contact, .foot { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .filters { margin-top: 16px; }
}
