/* ===========================================================
   Ember & Vetiver — design tokens
   Palette: modern monochrome. Pure black, pure white, and a
   tight range of grays. No color accents — contrast does the work.
   =========================================================== */
:root{
  --bg: #ffffff;
  --bg-2: #f4f4f2;
  --panel: #ffffff;
  --panel-2: #f0f0ee;
  --line: rgba(17,17,17,0.12);
  --line-strong: rgba(17,17,17,0.5);
  --gold: #111111;
  --gold-soft: #3a3a3a;
  --copper: #111111;
  --ivory: #111111;
  --muted: #63625d;
  --muted-2: #98968f;
  --danger: #b3261e;
  --danger-bg: rgba(179,38,30,0.06);
  --success: #1f6b34;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 0px;
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: 0.01em; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.eyebrow::before{
  content: "";
  width: 20px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===================== Header ===================== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{ display: flex; align-items: center; gap: 10px; color: var(--ivory); }
.brand-mark{ color: var(--gold); display:flex; }
.brand-word{ font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; }
.brand-word.small{ font-size: 17px; }
.brand-word em{ color: var(--gold-soft); font-style: italic; }

.main-nav{ display: flex; align-items: center; gap: 30px; font-size: 14px; }
.main-nav a{ color: var(--muted); transition: color 0.15s ease; position: relative; }
.main-nav a:hover, .main-nav a.active{ color: var(--ivory); }
.main-nav a.active::after{
  content:""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--gold);
}
.main-nav a.nav-cta{
  color: var(--bg);
  background: var(--gold);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 500;
}
.main-nav a.nav-cta:hover{ background: var(--gold-soft); color: var(--bg); }

.nav-toggle{ display:none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span{ width: 22px; height: 1.5px; background: var(--ivory); display:block; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 780px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open{ max-height: 340px; }
  .main-nav a{ width: 100%; padding: 16px 28px; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after{ display:none; }
  .main-nav a.nav-cta{ border-radius: 0; }
}

/* ===================== Hero ===================== */
.hero{
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1{
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  margin-top: 18px;
}
.hero h1 em{ font-style: italic; color: var(--gold-soft); }
.hero p.lede{
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-top: 22px;
}
.hero-actions{ display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--gold); color: var(--bg); }
.btn-primary:hover{ background: var(--gold-soft); }
.btn-outline{ border-color: var(--line-strong); color: var(--ivory); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-soft); }
.btn-full{ width: 100%; }
.btn:disabled{ opacity: .55; cursor: not-allowed; transform: none; }

/* Hero bottle signature graphic */
.hero-art{ display:flex; justify-content:center; position: relative; }
.bottle-svg{ width: min(100%, 260px); height: auto; overflow: visible; }
.mist circle{
  fill: var(--gold-soft);
  opacity: 0;
  animation: rise 4.5s ease-in infinite;
}
.mist circle:nth-child(2){ animation-delay: 1.1s; fill: var(--ivory); }
.mist circle:nth-child(3){ animation-delay: 2.3s; fill: var(--gold); }
.mist circle:nth-child(4){ animation-delay: 3.2s; fill: var(--ivory); }
@keyframes rise{
  0%{ opacity: 0; transform: translateY(0) scale(1); }
  15%{ opacity: .55; }
  100%{ opacity: 0; transform: translateY(-90px) scale(1.6); }
}

/* ===================== Sections ===================== */
section{ padding: 84px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); margin-top: 16px; }
.section-head p{ color: var(--muted); margin-top: 14px; font-size: 15.5px; }

/* Notes pyramid — genuine sequence: how a fragrance unfolds over time */
.pyramid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pyramid-step{ background: var(--panel); padding: 32px 26px; }
.pyramid-step .stage{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.pyramid-step h3{ font-size: 22px; margin-top: 10px; }
.pyramid-step p{ color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 760px){ .pyramid{ grid-template-columns: 1fr; } }

/* ===================== Product cards ===================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover{ border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(17,17,17,0.08); }
.card-corner{ position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); opacity: .55; }
.card-corner.tl{ top: 10px; left: 10px; border-right: none; border-bottom: none; }
.card-corner.br{ bottom: 10px; right: 10px; border-left: none; border-top: none; }

.bottle-swatch{
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.bottle-swatch svg{ height: 130px; width: auto; }

.card-body{ padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-type{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.card-body h3{ font-size: 20px; margin-top: 8px; }
.card-notes{ color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.55; }
.card-footer{ display:flex; align-items:center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.price{ font-family: var(--font-display); font-size: 19px; color: var(--gold-soft); }
.card-link{ font-size: 13px; font-weight: 500; color: var(--ivory); display:flex; align-items:center; gap: 6px; }
.card-link:hover{ color: var(--gold-soft); }

/* Filter tabs */
.filters{ display:flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); background: transparent; cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover{ color: var(--ivory); border-color: var(--gold); }
.filter-btn.active{ background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ===================== Product detail ===================== */
.product-detail{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: flex-start; }
.detail-swatch{
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 60px 20px;
}
.detail-swatch svg{ height: 220px; width: auto; }
.detail-notes{ margin-top: 30px; display: grid; gap: 14px; }
.detail-note-row{ display:flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.detail-note-row .stage{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); width: 70px; flex-shrink: 0; }
.detail-note-row .notes{ color: var(--muted); }
@media (max-width: 800px){ .product-detail{ grid-template-columns: 1fr; } }

/* ===================== CTA banner ===================== */
.cta-banner{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.cta-banner h2{ font-size: clamp(26px, 3.6vw, 40px); }
.cta-banner p{ color: var(--muted); margin-top: 14px; }
.cta-banner .hero-actions{ justify-content: center; margin-top: 30px; }

/* ===================== Auth pages ===================== */
.auth-wrap{
  min-height: calc(100vh - 76px - 160px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.auth-card{
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
}
.auth-card .card-corner.tl{ top: 12px; left: 12px; }
.auth-card .card-corner.br{ bottom: 12px; right: 12px; }
.auth-card h1{ font-size: 30px; }
.auth-card .lede{ color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.field{ margin-top: 22px; }
.field label{ display:block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input{
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ivory); font-family: var(--font-body); font-size: 14.5px;
}
.field input:focus{ outline: none; border-color: var(--gold); }
.field-hint{ font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.auth-card .btn{ margin-top: 28px; }
.auth-switch{ margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch a{ color: var(--gold-soft); }
.auth-switch a:hover{ text-decoration: underline; }

.alert{
  padding: 13px 16px; border-radius: var(--radius); font-size: 13.5px; margin-top: 22px;
  border: 1px solid;
}
.alert-error{ background: var(--danger-bg); border-color: rgba(179,38,30,0.35); color: var(--danger); }
.alert-success{ background: rgba(31,107,52,0.07); border-color: rgba(31,107,52,0.35); color: var(--success); }

/* Account page */
.account-panel{
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; max-width: 560px;
}
.account-row{ display:flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.account-row:first-of-type{ border-top: none; }
.account-row .k{ color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ===================== Footer ===================== */
.site-footer{ border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner{
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px;
  padding: 56px 0 28px;
}
.footer-note{ color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 32ch; }
.footer-links{ display: flex; gap: 24px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover{ color: var(--gold-soft); }
.footer-bottom{
  border-top: 1px solid var(--line); padding: 20px 0;
  font-size: 12px; color: var(--muted-2);
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; }
}
