/* ==========================================================================
   Kindled — v3 "gallery minimal"
   Warm paper neutrals, hairline serif (Italiana), letter-spaced micro-labels,
   square edges, hairline borders. No gradients, no shadows, no rounding.
   Design tokens live in :root — change a color once, it updates everywhere.
   ========================================================================== */

:root {
  /* Palette — warm neutrals + ink. Color comes from the photos. */
  --paper: #F4F1EC;
  --sand: #E7DFD3;
  --greige: #D9D0C1;
  --taupe: #A99C89;
  --ink: #1E1B17;
  --ink-soft: #5D554A; /* >=4.5:1 on both paper and sand */
  --hairline: rgba(30, 27, 23, 0.18);

  /* Type */
  --font-head: "Italiana", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400; /* Italiana has a single weight */
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3rem, 6.5vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

a { color: var(--ink); }
a:hover { color: var(--ink-soft); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* centered eyebrows get hairline rules on both sides */
.section-head .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: var(--hairline);
}

/* left-aligned eyebrows (story, gifting, find us) get a leading rule */
.story-copy .eyebrow,
.gifting-copy .eyebrow,
.find-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.story-copy .eyebrow::before,
.gifting-copy .eyebrow::before,
.find-copy .eyebrow::before {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: var(--hairline);
}

.micro-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--hairline);
}
.section-alt { background: var(--sand); }

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.section-sub { color: var(--ink-soft); }

.two-col {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Buttons — square, spaced caps, invert on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.95rem 1.9rem;
  min-height: 48px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.15s ease;
}
.btn:active { opacity: 0.65; } /* pressed feedback without layout shift */

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* quiet text-link button (product cards) — 44px tap area kept */
.btn-soft {
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.2rem;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.btn-soft:hover { color: var(--ink-soft); }

.btn-sm { padding: 0.7rem 1.3rem; min-height: 40px; }
.btn-lg { padding: 1.15rem 2.6rem; }

/* Image placeholders — flat tiles; photo (if any) sits on top */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--greige);
  color: rgba(30, 27, 23, 0.45);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.img-placeholder[hidden] { display: none; }
.story-placeholder,
.gifting-placeholder {
  position: relative;
  overflow: hidden;
}

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

/* ---------- Logo ----------
   The wordmark is a vector lockup in assets/img/. Height is the only knob —
   width follows from the SVG's own aspect ratio. */
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark img {
  height: 2.3rem; /* the flame sits above the caps, so the box runs taller than the letters */
  width: auto;
  transition: opacity 0.2s ease;
}
.wordmark:hover img { opacity: 0.66; }

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.4rem 0.1rem;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .btn-primary {
  background: transparent;
  color: var(--ink);
}
.header-actions .btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.25rem; }
}

/* ---------- 2. Hero — gallery grid ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 0.9fr 1.1fr; }
}

.monogram {
  display: block;
  color: var(--ink);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.hero h1 { text-transform: lowercase; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-copy .micro-label { margin: 2.5rem 0 0; }

/* Interactive 3D candle — one product-photograph-style frame.
   The gradients below are imagery (the photo set), not UI chrome:
   warm wall, glow behind the flame, and a lighter table band. */
.candle-3d {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 10 / 11;
  background:
    /* glow where the flame sits */
    radial-gradient(ellipse 52% 38% at 50% 34%, rgba(255, 216, 166, 0.55), transparent 70%),
    /* table surface, lower ~30% */
    linear-gradient(180deg, transparent 0%, transparent 68%, rgba(120, 96, 62, 0.10) 70%, rgba(226, 211, 187, 0.85) 71%, rgba(239, 230, 214, 0.9) 100%),
    /* warm wall */
    linear-gradient(180deg, #F1E9DC 0%, #E9DCC8 100%);
}
/* soft lens vignette */
.candle-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(64, 50, 34, 0.11) 100%);
  pointer-events: none;
}
.candle-3d.is-3d { cursor: grab; }
.candle-3d.is-grabbing { cursor: grabbing; }
.candle-3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.candle-3d .hero-placeholder {
  position: absolute;
  inset: 0;
  background: transparent; /* let the styled set show through */
}

.candle-hint {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
  transition: opacity 0.6s ease;
}
.candle-hint.is-faded { opacity: 0; }

/* ---------- 3. Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--hairline);
  padding-block: 1.2rem;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0;
}
.trust-item {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.trust-item + .trust-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: var(--hairline);
  margin-inline: 1.8rem;
  vertical-align: -0.12em;
}

/* ---------- 4. Story ---------- */
.story-placeholder { aspect-ratio: 6 / 7; max-width: 460px; }
.hiligaynon {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--ink);
}

/* ---------- 5. Scents ---------- */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.product-card:hover { border-color: var(--ink); }

/* photo slot — flat tile shows until/unless the image loads */
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.card-photo img,
.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* label-style card body, centered like a jar label */
.product-body {
  padding: 1.6rem 1.5rem 1.5rem;
  text-align: center;
}

.card-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.product-body h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.card-category {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0;
  margin: 0 1rem 0.8rem;
}

.notes {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.card-meta {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 0.65rem;
  margin: 0 1rem 1.1rem;
}

.card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.price {
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin: 0;
}

.marketplace-links {
  text-align: center;
  margin-top: 3rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.marketplace-links a { font-weight: 500; }

/* ---------- 6. Why — flat columns over hairlines ---------- */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.why-card {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}
.why-card h3 { font-size: 1.3rem; }
.why-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- 7. How to order ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: var(--hairline);
  }
}

.step { position: relative; text-align: center; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.3rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.delivery-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 0.9rem 1.6rem;
  display: table;
  margin-inline: auto;
}
.note-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 0.7rem;
}

/* ---------- 8. Gifting — the ink block ---------- */
.gifting { border-top: 0; padding-top: 0; }
.gifting-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 768px) {
  .gifting-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.gifting-copy .eyebrow { color: var(--taupe); }
.gifting-copy .eyebrow::before { background: rgba(244, 241, 236, 0.3); }
.gifting-copy h2 { color: var(--paper); }
.gifting-copy p { color: var(--greige); }
.gifting-copy .btn { margin-top: 0.5rem; }
.gifting-copy .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.gifting-copy .btn-primary:hover {
  background: transparent;
  color: var(--paper);
}
.gifting-placeholder {
  aspect-ratio: 6 / 5;
  background: var(--greige);
}

/* ---------- 9. Testimonials — flat columns ---------- */
.quote-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.quote-card {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-card blockquote { margin: 0 0 1.25rem; }
.quote-card blockquote p {
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0;
}
.quote-by {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 10. FAQ — hairline rows ---------- */
.faq-inner { max-width: 46rem; }

.faq-list details {
  border-top: 1px solid var(--hairline);
}
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 1.15rem 3rem 1.15rem 0.1rem;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 0.1rem 1.2rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- 11. Find us ---------- */
address { font-style: normal; }
address p { margin-bottom: 1.1rem; }
.map-placeholder { aspect-ratio: 4 / 3; background: var(--sand); }

/* ---------- 12. Final CTA + footer ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding-top: clamp(4rem, 9vw, 6.5rem);
  padding-bottom: 0; /* the cropped wordmark forms the bottom edge */
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.final-cta p { color: var(--ink-soft); margin-bottom: 2rem; }

/* oversized cropped wordmark */
.mega-wordmark {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 0.75;
  letter-spacing: 0.01em;
  color: var(--taupe);
  opacity: 0.55;
  text-align: center;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  transform: translateY(0.16em); /* crop the bottom of the letters */
  user-select: none;
  pointer-events: none;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  padding-block: 2.75rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
/* footer carries the full lockup, tagline and all */
.wordmark-footer img { height: 4.25rem; }
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--ink); }
.footer-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.9;
}

/* ---------- Scroll reveal — quiet opacity fade only ----------
   Hidden state only applies when JS has run (html.js),
   so content is never invisible if JS fails to load. */
.js .reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; }
}
