/* ============================================================
   Whiskerwing Aerial Perfumery — styles.css
   Concept site: cream paper, espresso ink, rosewood accent.
   Type: Fraunces (display) + Archivo (body)
   ============================================================ */

:root {
  --paper:      #F6F0E4;
  --paper-2:    #F0E7D5;
  --card:       #FBF7EE;
  --ink:        #241C12;
  --ink-soft:   #5D5344;
  --line:       #DACDB4;
  --rose:       #C14B63;
  --rose-deep:  #8E2F44;
  --honey:      #D9A441;
  --sage:       #7C8450;
  --cream-on-ink: #F2E9D8;
  --shadow:     0 14px 30px rgba(36, 28, 18, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
a.btn { color: inherit; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 14px;
}
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.87rem; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.18rem;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a.active { color: var(--rose-deep); box-shadow: inset 0 -2px 0 var(--rose); }

.hamburger {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cart-count.zero { background: var(--line); color: var(--ink-soft); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--rose-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-deep); color: #fff; }
.btn-block { width: 100%; }
/* Buttons styled as <a> must win over the site-wide link color */
a.btn-ink { color: var(--paper); }
a.btn-ink:hover { color: #fff; }
a.btn-ghost { color: var(--ink); }
a.btn-ghost:hover { color: var(--paper); }
a.btn-rose { color: #fff; }
a.btn-rose:hover { color: #fff; }

/* ---------------- Hero ---------------- */

.hero { padding: 76px 0 84px; }
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-art {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px 26px;
  position: relative;
  overflow: hidden;
}
.hero-art .art-caption {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: right;
}
.drone-svg { width: 100%; height: auto; display: block; }

.puff { transform-box: fill-box; transform-origin: center; opacity: 0; animation: puff 2.9s ease-out infinite; }
.puff.p2 { animation-delay: 0.45s; }
.puff.p3 { animation-delay: 0.9s; }
@keyframes puff {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.7); }
  18%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(30px, 14px) scale(1.25); }
}

/* ---------------- Sections ---------------- */

.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .lede { margin-top: 10px; }

/* ---------------- Cards & grids ---------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .card-num {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; color: var(--ink-soft); }
.card .card-foot { margin-top: auto; padding-top: 16px; }

.tier {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.price { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 700; }
.per { font-size: 0.85rem; color: var(--ink-soft); }
.card ul { list-style: none; margin: 14px 0 18px; padding: 0; }
.card ul li { padding: 7px 0 7px 26px; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--rose); }
.card-cta { margin-top: auto; padding-top: 18px; }

.mini-spec { list-style: none; margin: 0 0 4px; padding: 14px 0 0; border-top: 1px dashed var(--line); }
.mini-spec li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.mini-spec li span:first-child { color: var(--ink-soft); }
.mini-spec li span:last-child { font-weight: 600; }

/* ---------------- Chips ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--ink);
}
.chip .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--rose)); flex: none; }

/* ---------------- Dark band ---------------- */

.band-dark { background: var(--ink); color: var(--cream-on-ink); padding: 76px 0; }
.band-dark .eyebrow { color: var(--honey); }
.band-dark h2 { color: var(--cream-on-ink); }
.band-dark .pull {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--cream-on-ink);
  margin: 0 0 40px;
}
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 4px; border-bottom: 1px solid rgba(242, 233, 216, 0.18); font-size: 0.97rem; }
.spec-table th { font-weight: 500; color: rgba(242, 233, 216, 0.72); }
.spec-table td { text-align: right; font-weight: 600; }
.band-dark a { color: var(--honey); }

/* ---------------- Steps ---------------- */

.steps { max-width: 820px; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step-num { font-family: "Fraunces", serif; font-size: 2.1rem; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* ---------------- Scent cards ---------------- */

.scent-card { align-items: flex-start; }
.swatch {
  width: 100%;
  height: 92px;
  border-radius: 10px;
  background: var(--c, var(--rose));
  border: 1px solid rgba(36, 28, 18, 0.14);
  margin-bottom: 18px;
}
.scent-no { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--rose-deep); margin-bottom: 4px; }
.scent-card .note { font-size: 0.97rem; color: var(--ink-soft); font-style: italic; font-family: "Fraunces", serif; }
.scent-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag-safe {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage);
}
.tag-safe::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------------- FAQ ---------------- */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 2px;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--rose-deep);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details .ans { padding: 0 2px 22px; color: var(--ink-soft); max-width: 64ch; }

/* ---------------- CTA band ---------------- */

.cta-band { background: var(--rose-deep); color: #fff; padding: 72px 0; text-align: left; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 50ch; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--rose-deep); }
.cta-band .btn-ink { background: var(--ink); }

/* ---------------- Detail page ---------------- */

.detail-hero { padding: 64px 0 56px; }
.detail-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.detail-hero .buybox { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.feature-list { list-style: none; margin: 0 0 26px; padding: 0; }
.feature-list li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--sage); font-weight: 700; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--ink); color: rgba(242, 233, 216, 0.78); margin-top: 80px; }
.footer-in { padding: 58px 24px 30px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--cream-on-ink); font-family: "Fraunces", serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; }
.site-footer h4 { color: var(--cream-on-ink); font-size: 0.85rem; font-family: "Archivo", sans-serif; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(242, 233, 216, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.fineprint {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 233, 216, 0.16);
  font-size: 0.84rem;
  color: rgba(242, 233, 216, 0.55);
}

/* ---------------- Cart drawer ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(430px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.26s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); box-shadow: -18px 0 44px rgba(36, 28, 18, 0.18); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 700; margin: 0; }
.icon-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink);
  border-radius: 10px;
}
.icon-btn:hover { background: var(--paper-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--card); }

.line {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.line:last-child { border-bottom: none; }
.line-art { width: 34px; height: 34px; border-radius: 9px; background: var(--c, var(--rose)); border: 1px solid rgba(36, 28, 18, 0.15); }
.line-name { font-weight: 600; font-size: 0.95rem; }
.line-sub { font-size: 0.82rem; color: var(--ink-soft); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-weight: 600; font-size: 0.95rem; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qbtn {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.qbtn:hover { border-color: var(--ink); }
.qty b { min-width: 24px; text-align: center; font-size: 0.95rem; }

.empty, .success { padding: 54px 10px; text-align: center; }
.empty .empty-icon { font-size: 2rem; margin-bottom: 10px; }
.empty p, .success p { color: var(--ink-soft); font-size: 0.95rem; }
.success { display: none; }
.success.show { display: block; }
.success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.success .okmark {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.success .btn { margin-top: 20px; }

.hidden { display: none !important; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total-row b { font-family: "Fraunces", serif; font-size: 1.35rem; }
.concept-note { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------------- 404 ---------------- */

.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.lost .lost-404 { font-family: "Fraunces", serif; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--rose-deep); line-height: 1; margin-bottom: 10px; }

/* ---------------- Mobile ---------------- */

@media (max-width: 940px) {
  .hero-in, .detail-in, .band-in { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-art { max-width: 560px; }
  .band-in { gap: 30px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hamburger { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; font-size: 1.05rem; }
  .cart-btn .cart-label { display: none; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 52px; }
  .cta-band, .band-dark { padding: 56px 0; }
  .spec-table td { font-size: 0.9rem; }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------- Motion discipline ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puff { animation: none; opacity: 0.5; }
  .card, .btn { transition: none; }
  .drawer, .overlay { transition: none; }
}
