:root {
  --bg: #0a0a0b;
  --bg-elev: #161214;
  --velvet: #4a1524;
  --burgundy: #7a2038;
  --burgundy-deep: #3d121d;
  --gold: #d4b072;
  --gold-soft: #e8d7a8;
  --silver: #c5c9d0;
  --text: #f6f1ea;
  --muted: #b7aea4;
  --line: rgba(212, 176, 114, 0.28);
  --card: #1a1014;
  --card-shadow: 0 20px 44px rgba(0, 0, 0, 0.42), 0 6px 18px rgba(90, 18, 36, 0.28);
  --radius: 20px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --focus: 0 0 0 3px #070506, 0 0 0 5px var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
#results, .results-panel { scroll-margin-top: 6.5rem; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(122, 32, 56, 0.55), transparent 58%),
    linear-gradient(180deg, #1a0c11 0%, #0a0a0b 28%, #0a0a0b 72%, #14080c 100%),
    #0a0a0b;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff6e0; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #1a0c10;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(28, 10, 16, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 6.25rem;
  padding-block: 0.65rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}
.logo-link:focus-visible { border-radius: 8px; }
.logo-header {
  height: 88px;
  width: auto;
  max-width: min(560px, 68vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
}
.logo-mark {
  display: none;
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
@media (max-width: 720px) {
  .logo-header { display: none; }
  .logo-mark { display: block; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.15rem;
}
.site-nav ul {
  display: flex;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: rgba(12, 8, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.65em;
  color: #fff8ee;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.45rem; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
  font-weight: 500;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-header { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #e8d7a8 0%, #d4b072 55%, #b8924a 100%);
  color: #1a0e10 !important;
  box-shadow: 0 8px 22px rgba(212, 176, 114, 0.28);
  text-decoration: none;
}
.btn-primary:hover { color: #11080a !important; }
.btn-secondary {
  background: transparent;
  color: var(--silver) !important;
  border-color: rgba(197, 201, 208, 0.45);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-soft) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.hero-logo {
  width: min(820px, 100%);
  margin: 0 auto 1.75rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}
.hero h1 { margin-inline: auto; max-width: 18ch; }
.hero .lede { margin: 0 auto 1.75rem; }
.hero-rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.4rem;
  border: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.scent-card {
  background: linear-gradient(180deg, rgba(74, 21, 36, 0.55), rgba(16, 10, 12, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.65rem 1.55rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}
.scent-card__meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.scent-card h3 { margin: 0; font-size: 1.45rem; }
.scent-card h3 a { color: #fff8ee; text-decoration: none; }
.scent-card h3 a:hover { color: var(--gold-soft); }
.scent-card__brand { margin: 0; color: var(--silver); font-size: 0.95rem; }
.scent-card__family,
.scent-card__vibe { margin: 0; color: var(--muted); font-size: 0.95rem; }
.scent-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
}
.scent-card__tags li {
  font-size: 0.75rem;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.scent-card__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.scent-card__actions .btn { width: 100%; }

/* Note pyramid */
.pyramid {
  margin: 2rem 0 0;
  padding: 1.75rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(36, 18, 24, 0.6), rgba(14, 8, 10, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.pyramid figcaption {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 0.35rem;
  color: #fff8ee;
}
.pyramid__intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 auto 1.4rem;
  max-width: 42rem;
}
.pyramid__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.pyramid__tier {
  background: linear-gradient(180deg, #2c151c, #160a0e);
  border: 1px solid rgba(212, 176, 114, 0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  text-align: center;
  padding: 1rem 1.2rem 1.1rem;
  border-radius: 12px;
}
.pyramid__tiers li:nth-child(1) { width: min(100%, 36rem); }
.pyramid__tiers li:nth-child(2) { width: min(88%, 30rem); }
.pyramid__tiers li:nth-child(3) { width: min(74%, 24rem); }
.pyramid__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.pyramid__notes { color: var(--text); font-size: 0.98rem; }
.pyramid__source {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Quiz */
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .quiz-layout { grid-template-columns: 1fr; }
}
.question {
  background: rgba(18, 10, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.35rem 1.35rem 1.2rem;
  margin-bottom: 1.15rem;
}
.question h2 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.choice {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.choice:hover { border-color: var(--gold); }
.choice[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(212,176,114,0.2), rgba(110,29,51,0.35));
  border-color: var(--gold);
  color: var(--gold-soft);
}
.results-panel {
  position: sticky;
  top: 5.5rem;
  background: rgba(14, 8, 10, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
  min-height: 12rem;
}
.results-panel h2 { font-size: 1.5rem; }
.results-status { color: var(--muted); margin: 0 0 1rem; }
.results-list { display: flex; flex-direction: column; gap: 1.15rem; }
.quiz-reset {
  margin-top: 1rem;
  background: none;
  border: 0;
  color: var(--silver);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  font-size: 0.9rem;
}

/* Browse filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.3rem;
  background: rgba(18, 10, 12, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.filters select {
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: #0c090a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  min-width: 11rem;
}
.filter-count { color: var(--muted); margin: 0 0 1.25rem; }

/* Profile */
.profile-hero { padding-top: clamp(2rem, 5vw, 3.25rem); }
.profile-kicker { color: var(--silver); margin-top: -0.4rem; }
.profile-summary { max-width: 44rem; color: var(--muted); font-size: 1.08rem; }
.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.profile-facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--silver);
}
.profile-actions { margin-top: 1.75rem; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

/* Teaser tiles */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.teaser {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(74, 21, 36, 0.55), rgba(16, 10, 12, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.6rem 1.5rem;
}
.teaser:hover { border-color: var(--gold); }
.teaser h3 { color: #fff8ee; margin-bottom: 0.4rem; }
.teaser p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2.4rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.publisher { margin: 0; }

/* 404 */
.page-404 { text-align: center; padding: 4rem 0 6rem; }
.page-404 p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 30rem; }

/* Misc */
.fine-print { font-size: 0.85rem; color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
noscript p {
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  color: var(--muted);
}


/* 60-30-10 surfaces: charcoal field, burgundy bands, gold accents */
.section--velvet {
  background:
    linear-gradient(180deg, rgba(74, 21, 36, 0.42), rgba(20, 8, 12, 0.2));
  border-block: 1px solid var(--line);
}
.section--charcoal { background: transparent; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--silver);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(197, 201, 208, 0.45);
}
.crumbs a { color: var(--silver); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs [aria-current="page"] { color: var(--gold-soft); }

/* Sticky mobile quiz CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(28, 10, 16, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0,0,0,.35);
  justify-content: center;
}
.sticky-cta .btn { width: min(100%, 28rem); }
@media (max-width: 720px) {
  body.has-sticky-cta { padding-bottom: 5.25rem; }
  body.has-sticky-cta .sticky-cta { display: flex; }
}

/* Profile facts hide empty */
.fact-block { margin-top: 1.75rem; }
.fact-block h2 { font-size: 1.35rem; }
.fact-dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.55rem 1rem; margin: 0; }
.fact-dl dt { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fact-dl dd { margin: 0; color: var(--muted); }
.cite { font-size: 0.85rem; color: var(--silver); }

/* FAQ */
.faq details {
  background: linear-gradient(180deg, rgba(74, 21, 36, 0.4), rgba(16, 10, 12, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.85rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff8ee;
}
.faq details p { color: var(--muted); margin: 0.7rem 0 0.3rem; }

/* Gift groups */
.gift-group { margin-bottom: 2.75rem; }

/* Share results */
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.share-status { font-size: 0.85rem; color: var(--gold-soft); margin: 0.35rem 0 0; }

.site-footer {
  background: linear-gradient(180deg, rgba(20, 8, 12, 0), rgba(48, 14, 24, 0.45));
}
