/* ---------- Tokens ---------- */
:root {
  --bg: #F4EFE6;
  --bg-alt: #EBE3D5;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --muted: #8A8378;
  --line: #D9D2C5;
  --copper: #B86A3C;
  --copper-deep: #8E4E2A;
  --sage: #7B8970;
  --cream: #FBF8F2;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease); }
a:hover { opacity: .65; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout ---------- */
.shell { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; }
.stack { display: flex; flex-direction: column; }
.spacer-l { height: 120px; }
.spacer-m { height: 80px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(56px, 9vw, 144px); line-height: 0.95; }
h2 { font-size: clamp(40px, 5.5vw, 84px); line-height: 1.02; }
h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
h4 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }

.italic { font-style: italic; }

p.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

.brand { display: flex; align-items: center; gap: 10px; justify-self: center; }
.brand .mark { width: 28px; height: 32px; color: var(--ink); }
.brand .name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.brand .amp { font-style: italic; color: var(--copper); }

.head-right { justify-self: end; display: flex; gap: 24px; align-items: center; }
.icon-btn { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 140px) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: end;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-title { color: var(--ink); }
.hero-title .line { display: block; }
.hero-title .swash { font-style: italic; color: var(--copper-deep); }

.hero-meta { padding-bottom: 32px; }
.hero-meta .lede { margin: 24px 0 36px; }

.hero-portrait {
  margin: clamp(40px, 6vw, 90px) auto 0;
  width: min(560px, 92%);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #C8744A 0%, #8E4E2A 70%, #2C1A12 100%);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.hero-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,230,200,0.35), transparent 55%);
  mix-blend-mode: screen;
}
.hero-portrait .silhouette {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 92%;
  color: rgba(28, 14, 6, 0.78);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero-portrait .silhouette svg { width: 100%; height: 100%; }

.marquee {
  margin-top: clamp(40px, 7vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink-soft);
}
.marquee-track {
  display: inline-block;
  animation: scroll 36s linear infinite;
  padding-left: 100%;
}
.marquee-track span { margin: 0 36px; }
.marquee-track .dot { color: var(--copper); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Section primitives ---------- */
section { padding: clamp(80px, 12vw, 160px) var(--gutter); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
  max-width: var(--container);
  margin: 0 auto clamp(40px, 5vw, 70px);
}
.section-head .number {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--copper);
  line-height: 1;
}
.section-head .title-block { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Collection ---------- */
.collection {
  background: var(--bg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: var(--container);
  margin: 0 auto;
}
.product {
  position: relative;
  background: var(--bg-alt);
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}
.product .swatch {
  position: absolute; inset: 0;
  transition: transform .8s var(--ease);
}
.product:hover .swatch { transform: scale(1.04); }
.product .label {
  position: absolute;
  left: 22px; bottom: 22px; right: 22px;
  display: flex; justify-content: space-between; align-items: end;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.product .label .name { font-family: var(--serif); font-size: 24px; font-style: italic; }
.product .label .price { font-size: 12px; letter-spacing: 0.18em; }

.swatch-1 { background: linear-gradient(135deg, #C8744A, #5C2C18); }
.swatch-2 { background: linear-gradient(135deg, #B6A78A, #423B2C); }
.swatch-3 { background: linear-gradient(135deg, #7B8970, #2A3128); }
.swatch-4 { background: linear-gradient(135deg, #DDD3BE, #8A7E62); }
.swatch-5 { background: linear-gradient(135deg, #2A2622, #0E0B08); }
.swatch-6 { background: linear-gradient(135deg, #E8B89A, #B86A3C); }

.product .silhouette-overlay {
  position: absolute; right: -20px; bottom: -10px; width: 55%; opacity: 0.18;
  color: var(--cream); pointer-events: none;
}

/* ---------- Story ---------- */
.story {
  background: var(--cream);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.story-text p { color: var(--ink-soft); margin-top: 22px; max-width: 50ch; font-size: 16px; line-height: 1.7; }
.story-quote {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--copper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.story-portrait {
  aspect-ratio: 1/1.2;
  background: linear-gradient(180deg, #2A1F18 0%, #5C3A22 60%, #C8744A 100%);
  position: relative;
  overflow: hidden;
}
.story-portrait .silhouette {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 88%; color: rgba(252, 248, 242, 0.92);
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.35));
}

/* ---------- Values ---------- */
.values { background: var(--ink); color: var(--cream); }
.values .section-head .number { color: var(--copper); }
.values h2 { color: var(--cream); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  max-width: var(--container);
  margin: 0 auto;
}
.value {
  background: var(--ink);
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
}
.value .num {
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--copper);
}
.value h4 { color: var(--cream); }
.value p { color: rgba(251, 248, 242, 0.7); font-size: 14px; line-height: 1.7; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-alt);
  text-align: center;
}
.newsletter-inner { max-width: 720px; margin: 0 auto; }
.newsletter h2 { margin: 18px 0 10px; }
.newsletter p { color: var(--ink-soft); font-size: 15px; }
.subscribe-form {
  margin-top: 36px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.subscribe-form input {
  flex: 1;
  padding: 16px 4px;
  border: none; background: transparent;
  font: inherit; color: var(--ink);
  outline: none;
}
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form button {
  padding: 16px 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
}
.fine { margin-top: 16px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  max-width: var(--container);
  margin: 0 auto;
}
.foot-brand .mark { width: 64px; height: 72px; color: var(--cream); margin-bottom: 22px; }
.foot-brand p { color: rgba(251,248,242,0.6); font-size: 14px; max-width: 36ch; }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(251,248,242,0.55); font-weight: 500; margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--cream); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(60px, 7vw, 90px); padding-top: 24px;
  border-top: 1px solid rgba(251,248,242,0.12);
  max-width: var(--container); margin-left: auto; margin-right: auto;
  font-size: 12px; color: rgba(251,248,242,0.55); letter-spacing: 0.06em;
}
.foot-bottom .legal-links { display: flex; gap: 22px; }

/* ---------- Legal pages (terms, privacy) ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(80px, 10vw, 140px);
}
.legal .eyebrow { display: block; margin-bottom: 18px; }
.legal h1 {
  font-size: clamp(48px, 6vw, 88px);
  margin-bottom: 18px;
}
.legal .updated { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 60px; }
.legal h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  margin-top: 56px; margin-bottom: 18px;
  font-family: var(--serif); font-weight: 500;
}
.legal h3 { font-size: 20px; margin-top: 30px; margin-bottom: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--copper-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 60px;
}
.legal-toc ol { list-style: none; padding: 0; columns: 2; column-gap: 40px; }
.legal-toc li { margin: 0 0 8px; font-size: 14px; }
.legal-toc a { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); opacity: 1; }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { padding-bottom: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .site-head { grid-template-columns: 1fr auto 1fr; }
  .legal-toc ol { columns: 1; }
  .foot-bottom { flex-direction: column; gap: 16px; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-right .icon-btn:first-child { display: none; }
}
