/* ==========================================================================
   Bar-Top Burn — minimal gallery design system
   ========================================================================== */

:root {
  --cream: #f5f0e1;
  --cream-warm: #efe8d6;
  --ink: #22201c;
  --ink-muted: #6b655a;
  --ink-faint: #9a9384;
  --accent: #7d6a4a;
  --low-stock: #9c5b2c;
  --hairline: rgba(34, 32, 28, 0.14);
  --hairline-soft: rgba(34, 32, 28, 0.08);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --section-y: clamp(72px, 10vw, 132px);
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  animation: pageIn 0.35s var(--ease) both;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.rule { border: 0; border-top: 1px solid var(--hairline-soft); margin: 0; }

/* --------------------------------------------------------------- type ---- */

.eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.section-header { max-width: 620px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.section-header p { color: var(--ink-muted); font-size: 1.02rem; }

.lede { font-size: 1.1rem; color: var(--ink-muted); }

/* ------------------------------------------------------------- buttons ---- */

.btn {
  position: relative;
  display: inline-block;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: -1;
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--cream); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary::before { background: var(--accent); }
.btn-primary:hover { color: var(--cream); }

.btn-full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled::before { transform: scaleX(0); }

.link-underline {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}
.link-underline:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.cart-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  /* Comfortable thumb target on touch screens without moving the text. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cart-count::before { content: "("; }
.cart-count::after { content: ")"; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px var(--gutter); border-top: 1px solid var(--hairline-soft); }
  .brand span { font-size: 1rem; }
}

/* ---------------------------------------------------------------- hero ---- */

.hero { padding: clamp(72px, 12vw, 148px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin-bottom: 28px; }
.hero .lede { max-width: 540px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Hero headline line reveal */
.line-mask { display: block; overflow: hidden; }
.js .line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .line-mask.in > span { transform: translateY(0); }

/* --------------------------------------------------------- trust strip ---- */

.trust-line {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 22px 0;
  text-align: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.badge-row { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.badge-row span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------- process ---- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hairline-soft); }
.process-step { padding: 40px 30px 0 0; border-right: 1px solid var(--hairline-soft); padding-left: 30px; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { border-right: 0; }
.process-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.7; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid var(--hairline-soft); padding-bottom: 34px; }
  .process-step:nth-child(2n) { border-right: 0; }
  .process-step:nth-child(odd) { padding-left: 0; }
  .process-step:nth-child(even) { padding-left: 30px; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; padding-left: 0 !important; padding-right: 0; }
}

/* -------------------------------------------------------------- product ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  column-gap: clamp(24px, 3.4vw, 48px);
  row-gap: clamp(48px, 5vw, 76px);
}

.product-card { display: block; color: inherit; }

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-warm);
  margin-bottom: 22px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.045); }

.product-source {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 10px;
  line-height: 1.6;
}
.product-name { font-size: 1.24rem; margin-bottom: 7px; }
.product-scent { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 14px; }

.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.product-price { font-size: 0.96rem; letter-spacing: 0.02em; }
.stock-note { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); }
.stock-note.low { color: var(--low-stock); }
.stock-note.out { color: var(--ink-faint); }

/* ------------------------------------------------------- product detail ---- */

.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 92px); align-items: start; }
.product-detail .product-media { margin-bottom: 0; aspect-ratio: 4 / 5; }
.product-detail h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.detail-scent { color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 26px; }
.detail-body { color: var(--ink-muted); margin-bottom: 30px; }
.detail-price { font-size: 1.3rem; margin-bottom: 4px; }

.detail-divider { border: 0; border-top: 1px solid var(--hairline-soft); margin: 30px 0; }

.qty-row { display: flex; align-items: center; gap: 0; margin-bottom: 20px; border: 1px solid var(--hairline); width: fit-content; }
.qty-row button {
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  transition: background 0.3s var(--ease);
}
.qty-row button:hover { background: var(--cream-warm); }
.qty-row span { width: 48px; text-align: center; font-size: 0.95rem; }

.detail-notes { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.detail-notes span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }

@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- sticky story ---- */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.story-media { position: sticky; top: 108px; }
.story-media .product-media { aspect-ratio: 4 / 5; margin-bottom: 0; }
.story-copy > * + * { margin-top: 28px; }
.story-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.story-copy p { color: var(--ink-muted); }

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; }
  .story-media { position: static; }
}

/* ----------------------------------------------------------- value grid ---- */

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline-soft); }
.value-item { padding: 38px 30px 0; border-right: 1px solid var(--hairline-soft); }
.value-item:first-child { padding-left: 0; }
.value-item:last-child { border-right: 0; padding-right: 0; }
.value-item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.value-item p { color: var(--ink-muted); font-size: 0.92rem; }

@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-item { border-right: 0; border-bottom: 1px solid var(--hairline-soft); padding: 30px 0; }
  .value-item:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------- coming soon list --- */

.coming-soon-list { list-style: none; margin: 28px 0 0; padding: 0; }
.coming-soon-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 1rem;
}
.coming-soon-list li:first-child { border-top: 1px solid var(--hairline-soft); }
.coming-soon-stock { color: var(--ink-muted); font-size: 0.9rem; }

/* ----------------------------------------------------------- newsletter ---- */

.newsletter { text-align: center; border-top: 1px solid var(--hairline-soft); }
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.newsletter p { color: var(--ink-muted); max-width: 460px; margin: 0 auto 34px; }

.inline-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; align-items: stretch; }
.inline-form input {
  flex: 1;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.inline-form input:focus { outline: none; border-bottom-color: var(--ink); }
.inline-form input::placeholder { color: var(--ink-faint); }
.inline-form button {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  padding: 12px 0 12px 22px;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.inline-form button:hover { opacity: 0.55; }

/* --------------------------------------------------------------- forms ---- */

.form-stack { display: flex; flex-direction: column; gap: 26px; }
.field label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-success { color: var(--accent); text-align: center; font-size: 1.05rem; }

.size-choice { display: flex; flex-direction: column; gap: 10px; }
.size-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.size-option:has(input:checked) { border-color: var(--ink); background: var(--hairline-soft); }
.size-option input[type="radio"] { margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.size-option strong { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.size-option small { display: block; color: var(--ink-muted); font-size: 0.84rem; line-height: 1.5; }

/* ------------------------------------------------------------- pricing ---- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline-soft); }
.price-item { padding: 36px 30px 0; border-right: 1px solid var(--hairline-soft); }
.price-item:first-child { padding-left: 0; }
.price-item:last-child { border-right: 0; padding-right: 0; }
.price-item h3 { font-size: 1.08rem; margin-bottom: 12px; }
.price-amount { font-family: var(--serif); font-size: 2rem; display: block; margin-bottom: 10px; }
.price-item p { color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-item { border-right: 0; border-bottom: 1px solid var(--hairline-soft); padding: 28px 0; }
  .price-item:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------- page headers ---- */

.page-header { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.page-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.page-header p { color: var(--ink-muted); max-width: 560px; margin: 0 auto; }

/* -------------------------------------------------------------- footer ---- */

.site-footer { border-top: 1px solid var(--hairline-soft); padding: clamp(52px, 7vw, 84px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 56px; }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-brand p { color: var(--ink-muted); font-size: 0.95rem; max-width: 300px; }
.footer-links a { display: block; font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 11px; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--hairline-soft);
  font-size: 0.76rem; color: var(--ink-faint);
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }

/* --------------------------------------------------------- cart drawer ---- */

.overlay {
  position: fixed; inset: 0; background: rgba(34, 32, 28, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); z-index: 90;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: 400px; max-width: 90vw;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 100;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--hairline);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px; border-bottom: 1px solid var(--hairline-soft);
}
.cart-head h3 { font-size: 0.72rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500; }
.cart-head button { background: none; border: 0; cursor: pointer; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted); font-family: var(--sans); min-height: 44px; padding: 0 4px; }
.cart-head button:hover { color: var(--ink); }

.cart-items { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hairline-soft); }
.cart-item img { width: 68px; height: 85px; object-fit: cover; background: var(--cream-warm); }
.cart-item-name { font-family: var(--serif); font-size: 1rem; margin-bottom: 5px; }
.cart-item-meta { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 8px; }
.cart-item-remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-faint);
}
.cart-item-remove:hover { color: var(--ink); }
.cart-empty { text-align: center; color: var(--ink-faint); padding: 56px 0; font-size: 0.92rem; }

.cart-foot { padding: 26px 28px; border-top: 1px solid var(--hairline-soft); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.95rem; }
.cart-total span:last-child { font-family: var(--serif); font-size: 1.1rem; }

/* ------------------------------------------------------------ reveals ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

.js .reveal-img img { transform: scale(1.06); transition: transform 0.85s var(--ease); }
.js .reveal-img.in img { transform: scale(1); }

/* ------------------------------------------------- reduced motion ---- */

/* -------------------------------------------------------------- prose ---- */

.prose { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.prose h2 { font-size: 1.3rem; margin: 2.2em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--ink-muted); line-height: 1.7; margin-bottom: 0.9em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose strong { color: var(--ink); }
.prose .updated { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 2.4em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .line-mask > span { transform: none; }
  .js .reveal-img img { transform: none; }
}
