/* ============================================================
   EMMA LAGOS — editorial minimal design system
   Bone ground · ink type · burnt-clay accent · hairline rules
   ============================================================ */

:root {
  --bone: #f3efe7;
  --paper: #faf8f2;
  --ink: #1a1512;
  --ink-soft: #5c544c;
  --clay: #a3512b;
  --clay-deep: #7e3c1e;
  --hairline: rgba(26, 21, 18, 0.16);
  --ok: #2e6b46;
  --warn: #8a6d1f;
  --danger: #963a2a;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --pad: clamp(18px, 4vw, 48px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- labels: the uppercase tracking voice ---- */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- announcement bar ---- */
.announce {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: 9px var(--pad);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.announce strong { color: #e8c9a8; font-weight: 500; }

/* ---- demo ribbon ---- */
.demo-ribbon {
  background: repeating-linear-gradient(-45deg, #efe3c8, #efe3c8 12px, #e9dab7 12px, #e9dab7 24px);
  color: #5d4a12;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--hairline);
}

/* ---- header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 420;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark em { font-style: italic; color: var(--clay); }
nav.main { display: flex; gap: 26px; }
nav.main a { position: relative; padding: 4px 0; font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
.site-tools { display: flex; align-items: center; gap: 16px; }
.ccy {
  border: none; background: transparent; font-family: var(--font-body);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-soft);
  padding: 4px 2px; cursor: pointer;
}
.cart-link { display: flex; align-items: baseline; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.cart-count {
  min-width: 19px; height: 19px; border-radius: 50%;
  background: var(--clay); color: var(--bone);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0; padding: 0 4px; transform: translateY(-1px);
}
.burger { display: none; border: none; background: none; padding: 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

@media (max-width: 560px) {
  .site-bar { gap: 8px; }
  .site-tools { gap: 8px; }
  .wordmark { font-size: 16px; letter-spacing: 0.22em; }
  .ccy { font-size: 10px; letter-spacing: 0.08em; }
  .cart-link { font-size: 10px; letter-spacing: 0.1em; }
}
@media (max-width: 820px) {
  nav.main {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    flex-direction: column; gap: 0; padding: 10px var(--pad) 18px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
  nav.main a:last-child { border-bottom: none; }
  .burger { display: block; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: end; }
.hero-media { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; overflow: hidden; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: 34px 0 10px; }
.hero-copy .kicker { color: var(--clay); margin-bottom: 14px; display: block; }
.hero-copy h1 { font-size: clamp(42px, 8.5vw, 96px); max-width: 10ch; }
.hero-copy h1 em { font-style: italic; font-weight: 300; }
.hero-copy p { max-width: 44ch; color: var(--ink-soft); font-size: 15px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 4fr; gap: clamp(24px, 5vw, 80px); }
  .hero-copy { padding: 0 0 48px; }
  .hero-media { max-height: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink);
  padding: 15px 34px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.clay { background: var(--clay); border-color: var(--clay); }
.btn.clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

/* ---- section headers ---- */
.section { padding: clamp(52px, 9vw, 110px) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 4vw, 40px); }
.section-head h2 { font-size: clamp(26px, 4vw, 44px); margin: 0; }
.section-head a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--hairline); padding-bottom: 3px; transition: border-color 0.3s, color 0.3s; }
.section-head a:hover { color: var(--clay); border-color: var(--clay); }

/* ---- product grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  row-gap: clamp(30px, 4vw, 52px);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid.cols3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid.cols3 { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; }
.card .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e7e1d4; }
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.19,1,.22,1), opacity 0.5s; }
.card .frame img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .frame img.alt { opacity: 1; }
.card:hover .frame img.primary { transform: scale(1.04); }
.card .flag {
  position: absolute; top: 10px; left: 10px;
  background: var(--bone); color: var(--ink);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 9px;
}
.card .flag.sale { background: var(--clay); color: var(--bone); }
.card .meta { padding-top: 13px; }
.card .name { font-family: var(--font-display); font-size: 16.5px; font-weight: 400; margin: 0 0 3px; }
.card .price { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.card .price s { color: #a49a8d; margin-left: 8px; }
.card a.cover { position: absolute; inset: 0; z-index: 2; }

/* ---- editorial split band ---- */
.band { margin-top: clamp(60px, 10vw, 130px); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper); }
.band-grid { display: grid; grid-template-columns: 1fr; }
.band-media { aspect-ratio: 4 / 3; overflow: hidden; }
.band-media img, .band-media svg { width: 100%; height: 100%; object-fit: cover; }
.band-copy { padding: clamp(36px, 6vw, 90px) var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.band-copy h2 { font-size: clamp(28px, 4.2vw, 52px); max-width: 14ch; }
.band-copy p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }
@media (min-width: 900px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-media { aspect-ratio: auto; }
}

/* ---- values strip ---- */
.values { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); margin-top: clamp(60px, 10vw, 120px); }
.values > div { padding: 30px var(--pad); border-bottom: 1px solid var(--hairline); }
.values .label { color: var(--clay); display: block; margin-bottom: 8px; }
.values p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
@media (min-width: 820px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .values > div { border-bottom: none; border-right: 1px solid var(--hairline); }
  .values > div:last-child { border-right: none; }
}

/* ---- footer ---- */
footer.site { margin-top: clamp(70px, 11vw, 140px); background: var(--ink); color: #cfc8bd; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 38px; padding: clamp(44px, 7vw, 80px) 0 40px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid .wordmark { color: var(--bone); font-size: 20px; margin-bottom: 14px; display: inline-block; }
.foot-grid p { font-size: 13px; max-width: 34ch; margin: 0; color: #a79d90; }
.foot-grid h4 { color: var(--bone); font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { font-size: 13px; color: #cfc8bd; transition: color 0.25s; }
.foot-grid a:hover { color: var(--bone); }
.foot-legal { border-top: 1px solid rgba(243,239,231,0.14); padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 11px; letter-spacing: 0.08em; color: #8d8477; }

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1fae54; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(26,21,18,0.25);
  transition: transform 0.25s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---- page head (shop, policies) ---- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 0; }
.page-head .kicker { color: var(--clay); display: block; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(34px, 6vw, 68px); }
.page-head p.lede { color: var(--ink-soft); max-width: 52ch; }

/* ---- filters ---- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 14px 0; margin: clamp(22px, 4vw, 38px) 0 clamp(26px, 4vw, 44px);
}
.filter-bar select {
  border: none; background: transparent; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); padding: 6px 2px; cursor: pointer;
}
.filter-bar .count { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- product page ---- */
.pdp { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 64px); padding-top: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .pdp { grid-template-columns: 7fr 5fr; } }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-gallery .frame { aspect-ratio: 4 / 5; overflow: hidden; background: #e7e1d4; }
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .pdp-gallery { grid-template-columns: 1fr 1fr; } .pdp-gallery .frame:first-child { grid-column: 1 / -1; } }
.pdp-info { position: sticky; top: 90px; align-self: start; }
.pdp-info .kicker { color: var(--clay); display: block; margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.pdp-price { font-size: 17px; letter-spacing: 0.04em; margin-bottom: 24px; }
.pdp-price s { color: #a49a8d; margin-left: 10px; font-size: 14px; }
.pdp-info .desc { color: var(--ink-soft); max-width: 46ch; }
.size-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 26px; }
.size-btn {
  min-width: 52px; padding: 11px 14px;
  border: 1px solid var(--hairline); background: transparent;
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  transition: 0.25s;
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.selected { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.size-btn.out { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.stock-note { font-size: 11.5px; letter-spacing: 0.08em; color: var(--warn); margin: -14px 0 20px; }
.pdp-meta { border-top: 1px solid var(--hairline); margin-top: 30px; }
.pdp-meta details { border-bottom: 1px solid var(--hairline); }
.pdp-meta summary { padding: 15px 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-meta summary::after { content: "+"; font-size: 14px; }
.pdp-meta details[open] summary::after { content: "–"; }
.pdp-meta .body { padding: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); }

/* ---- cart & checkout ---- */
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline); align-items: center; }
.cart-line .thumb { aspect-ratio: 4/5; overflow: hidden; background: #e7e1d4; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-family: var(--font-display); font-size: 16px; }
.cart-line .sub { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); margin-top: 10px; }
.qty button { width: 30px; height: 30px; border: none; background: none; font-size: 15px; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.cart-line .rm { border: none; background: none; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; margin-top: 8px; padding: 0; }
.cart-line .amt { font-size: 14px; text-align: right; }

.summary { background: var(--paper); border: 1px solid var(--hairline); padding: clamp(22px, 3vw, 34px); }
.summary h3 { font-size: 21px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--hairline); margin-top: 10px; padding-top: 14px; color: var(--ink); font-size: 16px; font-family: var(--font-display); }
.two-col { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); padding-top: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 7fr 5fr; align-items: start; } }

/* ---- forms ---- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--hairline); background: var(--paper);
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  padding: 13px 14px; color: var(--ink); transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.notice { border: 1px solid var(--hairline); background: var(--paper); padding: 14px 16px; font-size: 12.5px; color: var(--ink-soft); margin: 16px 0; }
.notice.demo { border-color: #d9c789; background: #f6efdb; color: #5d4a12; }
.notice.ok { border-color: #b7cfbf; background: #eaf2ec; color: var(--ok); }
.notice.err { border-color: #d9b3aa; background: #f6e8e4; color: var(--danger); }

/* ---- confirmation ---- */
.confirm-wrap { max-width: 640px; margin: 0 auto; text-align: center; padding-top: clamp(48px, 8vw, 100px); }
.confirm-wrap .mark { font-family: var(--font-display); font-size: 52px; color: var(--clay); line-height: 1; }
.confirm-wrap h1 { font-size: clamp(30px, 5vw, 48px); }
.order-card { text-align: left; border: 1px solid var(--hairline); background: var(--paper); padding: 26px; margin-top: 30px; }

/* ---- prose pages ---- */
.prose { max-width: 680px; padding-top: 10px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 14.5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
.prose th, .prose td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; }
.prose th { font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--paper); }

/* ---- reveal animation ---- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise 0.9s cubic-bezier(.22,1,.36,1) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.4s; }
.reveal:nth-child(7) { animation-delay: 0.48s; }
.reveal:nth-child(8) { animation-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .card .frame img { transition: none; }
}

/* ---- grain overlay for depth ---- */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- empty state ---- */
.empty { text-align: center; padding: clamp(50px, 9vw, 110px) 0; }
.empty .mark { font-family: var(--font-display); font-size: 44px; color: var(--clay); }
.empty p { color: var(--ink-soft); }
