/* Lunar Lane Apothecary — styles */
:root {
  --night: #17131f;
  --night-2: #221b2e;
  --plum: #2f2540;
  --parchment: #f3ebd9;
  --parchment-2: #e8dcc0;
  --paper-line: #d6c6a0;
  --ink: #241d17;
  --ink-soft: #5a4d3f;
  --gold: #c49a45;
  --gold-soft: #e2c78a;
  --rose: #c2456e;
  --moon: #f6efdc;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(23, 19, 31, .45);
  --wrap: 1180px;
  --f-mark: "Uncial Antiqua", "Cormorant Garamond", Georgia, serif;
  --f-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--f-body); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.center { text-align: center; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-body); font-size: .9rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: .95em 1.7em; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(246, 239, 220, .45); color: var(--moon); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-ink { background: var(--ink); color: var(--parchment); }
.btn-ink:hover { background: var(--plum); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--parchment); }

/* Announcement ribbon (Cauldron) */
.ribbon { background: linear-gradient(90deg, var(--plum), #3a2c4f 50%, var(--plum)); color: var(--moon); border-bottom: 1px solid rgba(196, 154, 69, .35); font-size: .88rem; }
.ribbon .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 6px; position: relative; padding-right: 52px; padding-left: 52px; }
.ribbon a { text-decoration: none; text-align: center; letter-spacing: .03em; }
.ribbon a b { color: var(--gold-soft); font-weight: 500; }
.ribbon a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ribbon-star { color: var(--gold); }
.ribbon-x { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: rgba(246, 239, 220, .7); cursor: pointer; }
.ribbon-x:hover { color: var(--moon); background: rgba(246, 239, 220, .1); }
.ribbon-x svg { width: 14px; height: 14px; }
@media (max-width: 520px) { .ribbon { font-size: .8rem; } .ribbon-long { display: none; } .ribbon .wrap { padding-left: 16px; padding-right: 46px; } }

/* "Soon" tag on the Cauldron nav link */
.nav a[href="cauldron.html"]::after { content: "Soon"; margin-left: 8px; font-size: .6rem; letter-spacing: .14em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-soft); vertical-align: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 19, 31, .92); backdrop-filter: blur(8px);
  color: var(--moon); border-bottom: 1px solid rgba(196, 154, 69, .25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--f-mark); font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-head); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); }
.nav .btn { padding: .7em 1.3em; opacity: 1; border-bottom: 0; }
.menu-btn { display: none; background: none; border: 0; color: var(--moon); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--night); border-bottom: 1px solid rgba(196, 154, 69, .25); padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(246, 239, 220, .08); }
  .nav .btn { margin-top: 14px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--moon);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(246, 239, 220, .12), transparent 45%),
    linear-gradient(180deg, rgba(23, 19, 31, .55) 0%, rgba(23, 19, 31, .88) 70%, var(--night) 100%),
    url("../assets/img/banner.jpg") center / cover no-repeat;
  padding: clamp(80px, 13vw, 160px) 0 clamp(90px, 12vw, 150px);
}
.hero .stars { position: absolute; inset: 0; pointer-events: none; opacity: .7; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--f-mark); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1; margin-bottom: .1em; }
.hero .sub { font-family: var(--f-head); font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .5em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.6rem; }
.hero p.lede { color: rgba(246, 239, 220, .85); font-size: 1.18rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-art { position: relative; justify-self: center; width: min(380px, 100%); aspect-ratio: 1; }
.hero-art .moon {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf0, #efe2c2 55%, #cdb88d 100%);
  box-shadow: 0 0 80px 10px rgba(246, 239, 220, .22), inset -18px -24px 50px rgba(120, 95, 50, .35);
}
.hero-art .bar {
  position: absolute; width: 62%; left: 19%; top: 24%; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); transform: rotate(-6deg); border: 4px solid var(--parchment);
}
.hero-art .bar img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .actions { justify-content: center; }
  .hero p.lede { margin-inline: auto; }
  .hero-art { width: min(260px, 80%); order: -1; }
}

/* Divider */
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 1.4rem; }
.flourish::before, .flourish::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.flourish::after { transform: scaleX(-1); }
.flourish svg { width: 22px; height: 22px; }

section { padding: clamp(70px, 9vw, 120px) 0; }
.section-dark { background: var(--night); color: var(--moon); }
.section-dark .lede { color: rgba(246, 239, 220, .78); }
.section-paper { background: var(--parchment-2); }

/* Collections */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.path {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid rgba(196, 154, 69, .25); text-decoration: none; color: var(--moon);
  transition: transform .25s, border-color .25s;
}
.path:hover { transform: translateY(-4px); border-color: var(--gold); }
.path .glyph { width: 46px; height: 46px; color: var(--gold); margin-bottom: 18px; }
.path h3 { font-size: 1.8rem; }
.path p { color: rgba(246, 239, 220, .72); font-size: .98rem; }
.path .count { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  --accent: var(--gold);
  display: flex; flex-direction: column; background: #fbf7ee; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--paper-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform .25s, box-shadow .25s; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--parchment-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.04); }
.card .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(23, 19, 31, .82); color: var(--moon);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.55rem; margin-bottom: 2px; }
.card .intent { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.card .intent::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.card .row { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--paper-line); margin-top: 16px; }
.card .price { font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; }
.card .more { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.card .soldout { color: var(--rose); }

/* Ritual steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 50px; counter-reset: step; }
.step { text-align: center; padding: 0 6px; }
.step .num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-family: var(--f-head); font-size: 1.7rem; position: relative;
}
.step h3 { font-size: 1.35rem; }
.step p { font-size: .96rem; color: rgba(246, 239, 220, .75); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-photos { position: relative; aspect-ratio: 1; }
.about-photos img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; border: 6px solid #fbf7ee; }
.about-photos img:first-child { width: 72%; height: 72%; top: 0; left: 0; }
.about-photos img:last-child { width: 58%; height: 58%; right: 0; bottom: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.fact b { display: block; font-family: var(--f-head); font-size: 2rem; line-height: 1; }
.fact span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } .about-photos { max-width: 440px; } }

/* Coming soon */
.soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.soon div { border: 1px dashed var(--paper-line); border-radius: var(--radius); padding: 26px 18px; text-align: center; background: rgba(251, 247, 238, .6); }
.soon svg { width: 34px; height: 34px; color: var(--gold); margin: 0 auto 10px; }
.soon b { font-family: var(--f-head); font-size: 1.3rem; display: block; }
.soon span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 820px) { .soon { grid-template-columns: repeat(2, 1fr); } }

.soon-lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.soon-lg > div { padding: 34px 24px; }
.soon-lg svg { width: 44px; height: 44px; }
.soon .badge { display: inline-block; margin-top: 14px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--paper-line); border-radius: 999px; padding: 3px 12px; }

/* CTA band */
.band { text-align: center; background: linear-gradient(180deg, var(--plum), var(--night)); color: var(--moon); }
.band .lede { color: rgba(246, 239, 220, .78); margin-inline: auto; }
.band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.6rem; }

/* Shop page */
.page-head { background: var(--night); color: var(--moon); padding: 70px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head .lede { color: rgba(246, 239, 220, .78); margin-inline: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 28px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.chip {
  font: inherit; font-size: .88rem; padding: .45em 1.05em; border-radius: 999px; border: 1px solid var(--paper-line);
  background: #fbf7ee; color: var(--ink); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.search { position: relative; flex: 1 1 240px; max-width: 320px; }
.search input {
  width: 100%; font: inherit; font-size: .95rem; padding: .6em 1em .6em 2.4em; border-radius: 999px;
  border: 1px solid var(--paper-line); background: #fbf7ee; color: var(--ink);
}
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--ink-soft); }
.collection-note { min-height: 1.6em; color: var(--ink-soft); font-style: italic; font-family: var(--f-head); font-size: 1.15rem; margin: 6px 0 26px; }
.empty { text-align: center; padding: 60px 0; color: var(--ink-soft); }
.shop-section { padding-top: 0; }

/* Product dialog */
dialog.product {
  width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 18px;
  background: #fbf7ee; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
dialog.product::backdrop { background: rgba(23, 19, 31, .72); backdrop-filter: blur(3px); }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: var(--parchment-2); display: flex; flex-direction: column; }
.pd-gallery .main { flex: 1; width: 100%; min-height: 340px; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; width: 64px; height: 64px; background: none; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 36px 34px 30px; overflow-y: auto; }
.pd-info h2 { font-size: 2.5rem; margin-bottom: 4px; }
.pd-meta { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pd-intent { font-family: var(--f-head); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 16px; }
.pd-price { font-family: var(--f-head); font-size: 2rem; font-weight: 600; display: flex; align-items: baseline; gap: 12px; margin: 14px 0 18px; }
.pd-price small { font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.pd-ing { border-top: 1px dashed var(--paper-line); margin-top: 18px; padding-top: 14px; }
.pd-ing h4 { margin: 12px 0 4px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.pd-ing p { margin: 0; font-size: .95rem; }
.pd-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(23, 19, 31, .8); color: var(--moon); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.pd-close svg { width: 18px; height: 18px; }
.pd-note { font-size: .8rem; color: var(--ink-soft); margin-top: 14px; }
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; }
  .pd-gallery .main { aspect-ratio: 4/3; }
  .pd-info { padding: 24px 22px; }
  .pd-info h2 { font-size: 2rem; }
}

[hidden] { display: none !important; }
.card .price.soon-status { font-size: 1.05rem; font-style: italic; color: var(--gold); }

/* Footer */
.site-footer { background: var(--night); color: rgba(246, 239, 220, .7); padding: 60px 0 34px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--moon); font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.disclaimer { border-top: 1px solid rgba(246, 239, 220, .1); margin-top: 40px; padding-top: 22px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 28px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
