/* ============================================================
   NAGORI — Base
   Kozo ground, Sumi ink. Newsreader (reading), DM Mono (notation).
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input { font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--vetiver-trace); }

/* ---------- Accessibility: skip link + keyboard focus ---------- */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 10001;
  transform: translateY(-120%);
  background: var(--vetiver); color: var(--bone);
  padding: 12px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); outline: none; }
/* The custom cursor hides the pointer; keyboard users still need a clear ring */
:focus-visible { outline: 2px solid var(--vetiver); outline-offset: 3px; }
.btn:focus-visible, .btn-nav:focus-visible, .cart-trigger:focus-visible,
.size-option:focus-within, .accordion-header:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--stone-1); }
::-webkit-scrollbar-thumb { background: var(--vetiver-lt); }
html { scrollbar-width: thin; scrollbar-color: var(--vetiver-lt) var(--stone-1); }

/* ============================================================
   SPACING SYSTEM
   ============================================================ */
.section     { padding: var(--sp-md) 0; }
.section--sm { padding: var(--sp-sm) 0; }

.container        { max-width: 1240px; margin: 0 auto; padding: 0 4rem; }
.container--narrow{ max-width: 760px;  margin: 0 auto; padding: 0 4rem; }
.container--wide  { max-width: 1320px; margin: 0 auto; padding: 0 4rem; }

@media (max-width: 768px) {
  .container, .container--narrow, .container--wide { padding: 0 1.75rem; }
  .section     { padding: 6rem 0; }
  .section--sm { padding: 5rem 0; }
}
/* Serif soul-accent inside display / headline */
.display em,
.headline em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--vetiver);
}

/* ── HEADLINE ── */
.headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* ── TITLE ── */
.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--ink);
}

/* ── EYEBROW — tiny, impossibly spaced, restrained ── */
.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
}

/* ── LABEL / CAPTION ── */
.label,
.caption {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── BODY ── */
.body-text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ── SMALL ── */
.small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

/* Rule — the signature vetiver hairline */
.rule {
  width: 32px;
  height: 1px;
  background: var(--vetiver);
  margin: 2rem 0;
  display: block;
  border: none;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   EDITORIAL PAUSE — full-width, one sentence, large serif, nothing else
   <section class="pause"><div class="container--narrow">
     <p class="pause-line fade-in-slow">…</p></div></section>
   ============================================================ */
.pause { padding: var(--sp-lg) 0; text-align: center; }
.pause-line {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}

/* ============================================================
   PAGE PLATE — full-bleed editorial image band (closes a page so
   no page reads "orphan"); one quiet line over an atmospheric image.
   ============================================================ */
.page-plate { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--noir); }
.page-plate-media { position: absolute; inset: 0; z-index: 0; }
.page-plate-media .ph-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.page-plate-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(15,13,9,0.42); }
.page-plate-inner { position: relative; z-index: 2; }
.page-plate-line { font-family: var(--serif); font-weight: 300; font-style: normal; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; color: var(--bone); max-width: 24ch; margin: 0 auto; }
@media (max-width: 768px) { .page-plate { min-height: 46vh; } }
@media (max-width: 768px) { .pause { padding: 7rem 0; } }

/* ============================================================
   BUTTONS — outline only, sharp corners
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--border-2);
  border-radius: 0;
  padding: 15px 32px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Signature variant — vetiver (HTML hook: .btn--border, .btn--accent) */
.btn--accent,
.btn--border {
  color: var(--vetiver-dk);
  border-color: var(--vetiver-lt);
}
.btn--accent:hover,
.btn--border:hover {
  border-color: var(--vetiver);
}

/* Large */
.btn--large,
.btn--lg { padding: 18px 46px; font-size: 10px; letter-spacing: 0.18em; }

/* Full width */
.btn--full { display: block; width: 100%; text-align: center; }

/* Ghost / subtle text link */
.btn--ghost {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  border-radius: 0;
  padding: 0 0 3px;
  display: inline-block;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn--ghost:hover { color: var(--ink); background: transparent; border-color: var(--ink); }

/* custom cursor removed — native cursor (Aesop restraint) */

/* ============================================================
   IMAGE PLACEHOLDERS — art-directed, image-ready
   Swap a .ph block for <img class="ph-img" src="images/NAME.webp" alt="…">
   when real/AI photography is ready. Ratios + grade are pre-set.
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  background-color: #15130e;
  background-image:
    radial-gradient(66% 52% at 30% 28%, rgba(241,238,230,0.17), rgba(241,238,230,0.04) 40%, rgba(0,0,0,0) 70%),
    linear-gradient(155deg, #24271f 0%, #15130e 72%);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.42; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}
.ph--01 { background-image: radial-gradient(64% 52% at 32% 30%, rgba(150,182,150,0.20), rgba(0,0,0,0) 68%), linear-gradient(155deg, #2c3b31 0%, #11160f 74%); }
.ph--02 { background-image: radial-gradient(64% 52% at 32% 30%, rgba(214,150,86,0.20), rgba(0,0,0,0) 68%), linear-gradient(155deg, #4a2f1e 0%, #150c06 74%); }
.ph--03 { background-image: radial-gradient(64% 52% at 32% 30%, rgba(170,196,180,0.20), rgba(0,0,0,0) 68%), linear-gradient(155deg, #36433d 0%, #10130f 74%); }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   ORIGIN LINE — signature provenance device
   <span class="origin">Petrichor · mitti attar · Kannauj</span>
   ============================================================ */
.origin {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.origin::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--vetiver-lt);
  
  position: relative;
}

/* ============================================================
   FOOTER — shared across every page
   ============================================================ */
.footer { background: var(--stone-1); border-top: 1px solid var(--border); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; }
.footer-logo { margin-bottom: 3rem; display: inline-flex; flex-direction: column; gap: 0; }
.footer-tagline { font-family: var(--serif); font-weight: 300; font-style: normal; font-size: 1.05rem; color: var(--ink-mute); line-height: 1.5; margin-bottom: 1.4rem; }
.footer-social { font-family: var(--sans); font-weight: 300; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.footer-social a:hover { color: var(--ink); }
.footer-label { margin-bottom: 1.6rem; color: var(--ink-mute); }
.footer-links li { margin: 0; }
.footer-links a { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); display: block; padding: 0.4rem 0; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-form { display: flex; align-items: center; border-bottom: 1px solid var(--border-2); max-width: 260px; }
.footer-input { flex: 1; background: transparent; border: none; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.03em; padding: 8px 0; outline: none; }
.footer-input::placeholder { color: var(--ink-faint); }
.footer-submit { color: var(--vetiver); font-size: 15px; padding: 0 0 0 0.6rem; transition: transform 0.2s ease; }
.footer-submit:hover { transform: translateX(3px); }
.footer-form-msg { font-family: var(--sans); font-weight: 300; font-size: 10px; letter-spacing: 0.05em; margin-top: 0.6rem; min-height: 14px; color: var(--vetiver); }
.footer-form-msg.error { color: var(--f02-lt); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 300; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Branded loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.done { opacity: 0; visibility: hidden; }

/* ---------- Page transition (fade out on internal navigation) ---------- */
body { transition: opacity 0.4s ease; }
body.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } body.is-leaving { opacity: 1; } }

/* ============================================================
   CART — nav trigger + slide-in drawer (injected by main.js)
   ============================================================ */
.cart-trigger {
  font-family: var(--sans); font-weight: 300; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  background: none; border: none; cursor: pointer; padding: 6px 2px;
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  transition: color 0.25s ease;
}
.cart-trigger:hover { color: var(--vetiver); }
.cart-count { font-family: var(--mono, var(--sans)); font-feature-settings: "tnum" 1; font-size: 10px; color: var(--vetiver); }
body.story-page .nav:not(.scrolled) .cart-trigger { color: var(--bone); }
body.story-page .nav:not(.scrolled) .cart-count { color: rgba(241,238,230,0.8); }
/* In-article inline image (fills the reading column) */
.article-figure { margin: clamp(2.6rem, 6vw, 4rem) 0; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); margin-top: 0.85rem; }

.cart-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15,13,9,0.42);
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 1101;
  width: min(420px, 92vw); height: 100%;
  background: var(--paper); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 2rem 1.8rem 1.4rem; border-bottom: 1px solid var(--border); }
.cart-title { font-family: var(--serif); font-style: normal; font-weight: 300; font-size: 1.5rem; color: var(--ink); }
.cart-close { background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-mute); padding: 0 4px; }
.cart-close:hover { color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.8rem; }
.cart-empty { font-family: var(--sans); font-weight: 300; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-mute); padding: 3rem 0; text-align: center; line-height: 1.7; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.cart-item-name { font-family: var(--serif); font-style: normal; font-weight: 300; font-size: 1.15rem; color: var(--ink); }
.cart-item-variant { font-family: var(--sans); font-weight: 300; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.cart-item-price { font-family: var(--mono, var(--sans)); font-feature-settings: "tnum" 1; font-size: 13px; color: var(--ink); text-align: right; align-self: center; }
.cart-qty { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 0.5rem; }
.cart-qty button { width: 22px; height: 22px; border: 1px solid var(--border-2); background: none; cursor: pointer; color: var(--ink); font-size: 13px; line-height: 1; }
.cart-qty button:hover { border-color: var(--ink); }
.cart-qty span { font-family: var(--mono, var(--sans)); font-feature-settings: "tnum" 1; font-size: 12px; min-width: 1ch; text-align: center; }
.cart-remove { grid-column: 1 / -1; justify-self: start; margin-top: 0.6rem; background: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 300; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.cart-remove:hover { color: var(--f02-lt); }
.cart-foot { padding: 1.6rem 1.8rem 2rem; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.cart-subtotal .lbl { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.cart-subtotal .val { font-family: var(--mono, var(--sans)); font-feature-settings: "tnum" 1; font-size: 1.4rem; color: var(--ink); }
.cart-note { font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: 0.02em; color: var(--ink-mute); margin-bottom: 1.2rem; }
.cart-checkout { width: 100%; text-align: center; }
.cart-msg { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.05em; color: var(--vetiver); margin-top: 0.8rem; min-height: 13px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cart-drawer { transition: none; } }
@keyframes loaderPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Image-card hover (subtle "alive") ---------- */
.spec-card .ph, .hj-card .ph, .j-card .ph, .gift-card .ph { transition: filter 0.45s ease; }
.spec-card:hover .ph, .hj-card:hover .ph, .j-card:hover .ph { filter: brightness(1.08) saturate(1.04); }

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

/* ---------- Metadata in mono (prices, specs, data) — Sillage voice ---------- */
.pdp-price, .pdp-price-alt, .spec-price, .feature-price, .disc-price-num,
.gift-price, .pdp-spec .spec-k, .pdp-spec .spec-v {
  font-family: var(--serif);
  font-feature-settings: "tnum" 1;
}

/* ============================================================
   LEGAL PAGES — privacy / terms / refunds
   ============================================================ */
.legal .container--narrow { max-width: 760px; }
.legal-updated {
  font-family: var(--sans); font-weight: 300; font-size: 12px; line-height: 1.7;
  letter-spacing: 0.01em; color: var(--ink-mute);
  margin-bottom: 2.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--border);
}
.legal-block { margin-bottom: 2.6rem; }
.legal-h { margin: 0.4rem 0 0.9rem; }
.legal-p { margin-bottom: 0.9rem; max-width: none; }
.legal-p:last-child { margin-bottom: 0; }
.legal-updated a, .legal-p a { color: var(--vetiver); border-bottom: 1px solid var(--border-2); }
.legal-updated a:hover, .legal-p a:hover { color: var(--ink); }
.footer-legal a { color: var(--ink-mute); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--ink); }
