:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --white: #fffcf7;
  --ink: #28211d;
  --muted: #64574d;
  --rule: #dcd1c3;
  --accent: #8b432c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Aptos", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #bb653f; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--white); background: var(--accent); }

.shell { width: min(100% - 2.25rem, 80rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  white-space: nowrap; clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 10;
  padding: .7rem 1rem; color: var(--white); background: var(--ink);
}

.header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding-block: .65rem; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 4.25rem; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: .9rem; }
.nav a, .footer a { text-underline-offset: .3em; }
.nav a:hover, .footer a:hover { text-decoration: underline; }
.header-shop { margin-left: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid transparent;
  border-radius: .2rem; font-weight: 650; font-size: .9rem; line-height: 1.25;
  text-align: center; transition: background-color .18s, color .18s, border-color .18s;
}
.header-shop, .button-outline { border-color: #9d8574; background: transparent; }
.header-shop:hover, .button-outline:hover { background: #eee3d6; border-color: var(--ink); }
.button-primary { background: #36251e; color: var(--white); }
.button-primary:hover { background: var(--accent); }

.hero { display: grid; gap: 1.65rem; padding-block: 2.6rem 2.25rem; }
.hero-content { min-width: 0; }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 750; letter-spacing: .16em; }
.hero h1 { margin-block: .85rem 1.15rem; font-size: clamp(3.15rem, 10.6vw, 5.7rem); line-height: .99; letter-spacing: -.061em; }
.hero h1 em, .guide h2 em { color: var(--accent); font-weight: 400; }
.hero-summary { color: var(--muted); max-width: 29rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; margin-top: 1.25rem; }
.text-link {
  display: inline-flex; width: fit-content; align-items: center; min-height: 2.75rem;
  padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .9rem;
  font-weight: 650; text-align: left; text-decoration: underline; text-decoration-color: #ab7b63;
  text-underline-offset: .29em; transition: color .18s, text-decoration-color .18s;
}
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.hero-visual {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: flex-end;
  min-width: 0; aspect-ratio: 1.28; overflow: hidden; margin: 0;
  background: #301d16 url("assets/studio.webp") center / cover no-repeat; border-radius: .25rem;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 58% 0 0; z-index: -1;
  background: linear-gradient(transparent, rgb(18 9 6 / 36%));
}
.hero-bottle { position: absolute; bottom: 18.2%; display: grid; place-items: end center; width: 21%; }
.hero-bottle::after {
  content: ""; position: absolute; left: -4%; right: -15%; bottom: -1%; z-index: -1;
  height: 5.5%; border-radius: 50%; background: rgb(19 8 5 / 74%); filter: blur(.43rem);
}
.hero-bottle img { width: 100%; height: auto; }
.hero-bottle-orion { left: 18.5%; bottom: 20.4%; width: 20%; z-index: 0; }
.hero-bottle-orion img { filter: brightness(.87) sepia(.16); }
.hero-bottle-arcane { left: 61.5%; bottom: 19.4%; width: 20%; z-index: 0; }
.hero-bottle-arcane img { filter: brightness(.92) sepia(.18); }
.hero-bottle-amor { left: 38.8%; width: 22.5%; z-index: 1; }
.hero-bottle-amor img { filter: brightness(.92) sepia(.16); }
.hero-visual figcaption {
  position: relative; z-index: 2; margin: 0 1rem .85rem; display: flex; align-items: center; gap: .55rem;
  color: #fff3df; font-size: .71rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero-visual figcaption span { width: .27rem; height: .27rem; background: #e3b58b; border-radius: 50%; }

.collection { padding-block: 2.75rem 3.4rem; border-top: 1px solid var(--rule); background: var(--white); }
.section-head { display: grid; gap: .55rem 2rem; align-items: end; margin-bottom: 1.4rem; }
.section-head h2, .guide h2 { font-size: clamp(2.6rem, 7.3vw, 4rem); line-height: 1.03; letter-spacing: -.055em; }
.section-head p { color: var(--muted); max-width: 26rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-block: .8rem .85rem; border-block: 1px solid var(--rule); }
.category-filter, .moods { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.chip {
  min-height: 2.75rem; padding: .42rem .75rem; border: 1px solid #d6c9bc; border-radius: 2rem;
  background: transparent; font-size: .9rem; transition: background-color .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: #806451; background: #f4eae0; }
.chip[aria-pressed="true"] { background: #36251e; color: var(--white); border-color: #36251e; }
.character-filter { display: flex; align-items: center; gap: .55rem; flex: 1; }
.character-filter label { white-space: nowrap; color: var(--muted); font-size: .875rem; }
.character-filter select {
  appearance: none; width: 100%; min-height: 2.75rem; padding: .48rem 2rem .48rem .7rem;
  border: 1px solid #d6c9bc; border-radius: .2rem; color: var(--ink); background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, #59463a 50%), linear-gradient(135deg, #59463a 50%, transparent 50%);
  background-position: calc(100% - 15px) 54%, calc(100% - 10px) 54%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.result-count { margin-block: .9rem .65rem; font-size: .85rem; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .75rem; }
.orion { --plate: #e6d9c8; --plate-light: #f4eadd; --product-accent: #73422c; }
.amor { --plate: #f1d8c4; --plate-light: #fcebd9; --product-accent: #8a4936; }
.arcane { --plate: #dce0d3; --plate-light: #eef1e7; --product-accent: #4c5e42; }
.lunox { --plate: #ead4d3; --plate-light: #f6e7e6; --product-accent: #874457; }
.product { display: flex; flex-direction: column; border: 1px solid #e7ddd1; border-radius: .25rem; overflow: hidden; background: var(--white); }
.product-photo, .recommendation-photo, .detail-photo {
  display: grid; place-items: center; position: relative; isolation: isolate;
  background: radial-gradient(ellipse at 52% 43%, var(--plate-light), var(--plate));
}
.product-photo { aspect-ratio: .96; }
.product-photo img, .recommendation-photo img, .detail-photo img {
  position: absolute; top: 56%; left: 50%; transform: translate(-50%, -50%);
  width: auto; max-width: 55%; height: 67%; object-fit: contain; filter: drop-shadow(.43rem .53rem .3rem #3b291f35);
}
.product-tag {
  position: absolute; z-index: 1; top: .55rem; left: .55rem; padding: .22rem .52rem;
  border-radius: 2rem; background: var(--white); color: var(--product-accent); font-size: .75rem; font-weight: 700;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: .65rem .7rem .3rem; }
.product h3 { font-size: clamp(1.65rem, 5.7vw, 2.2rem); line-height: 1.13; letter-spacing: -.04em; }
.profile { color: var(--product-accent, var(--accent)); font-size: .875rem; font-weight: 700; }
.product-summary { margin-top: .45rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: .65rem; margin-top: auto; padding-top: .25rem; }
.card-actions .text-link { font-size: .82rem; }
.shop-link { color: var(--accent); }
.empty-state { padding: 2.4rem 1rem; text-align: center; border: 1px dashed #cebcab; }
.empty-state p { margin-bottom: 1rem; }

.guide { color: var(--white); background: #2b211b; padding-block: 2.8rem; }
.guide-inner { display: grid; align-items: center; gap: 1.4rem; }
.guide .eyebrow, .guide h2 em { color: #e2af8e; }
.guide h2 { margin-block: .6rem .85rem; }
.guide-intro > p:last-of-type { color: #e3d4c6; max-width: 27rem; }
.moods { margin-top: 1rem; }
.moods .chip { color: #f6e9dd; border-color: #876d5c; }
.moods .chip:hover { color: var(--ink); background: #f5dfcb; border-color: #f5dfcb; }
.moods .chip[aria-pressed="true"] { color: var(--ink); background: #efc7a8; border-color: #efc7a8; }
.recommendation {
  display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  color: var(--ink); background: var(--white); border-radius: .25rem; overflow: hidden;
}
.recommendation-photo { min-height: 12rem; }
.recommendation-photo img { top: 50%; height: 74%; }
.recommendation-body { align-self: center; padding: .9rem .85rem .45rem; }
.recommendation h3 { margin: .12rem 0 .28rem; font-size: clamp(1.8rem, 5.5vw, 2.55rem); letter-spacing: -.035em; line-height: 1.08; }
#guide-reason { color: var(--muted); font-size: .9rem; }
.recommendation .text-link { margin-top: .18rem; }

.footer { padding-block: 1.25rem; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.2rem; }
.footer-inner p { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .085em; }
.footer-links { display: flex; gap: 1rem; font-size: .9rem; }

.detail-dialog {
  padding: 0; color: var(--ink); border: 1px solid var(--rule); border-radius: .3rem;
  background: var(--white); width: min(100% - 1.5rem, 43rem); max-height: calc(100% - 1.5rem);
  box-shadow: 0 1.2rem 4rem #21181256;
}
.detail-dialog::backdrop { background: #1f1612b8; }
.dialog-close-form { position: absolute; right: .55rem; top: .55rem; z-index: 2; }
.dialog-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 50%; font-size: 1.55rem; line-height: 1; }
.dialog-close:hover { background: var(--paper); }
.detail-photo { height: 12rem; }
.detail-photo img { top: 50%; height: 79%; }
.detail-body { padding: 1.1rem 1.25rem 1.5rem; }
.detail-body h2 { font-size: 2.9rem; line-height: 1.04; letter-spacing: -.055em; }
.detail-body .profile { margin: .25rem 0 .65rem; }
.detail-moment { margin-block: .65rem .85rem; color: var(--muted); }
.shop-note { color: var(--muted); margin-top: .6rem; font-size: .85rem; }

@media (max-width: 359px) {
  .shell { width: calc(100% - 1.75rem); }
  .products { grid-template-columns: 1fr; }
  .product-photo { aspect-ratio: 1.35; }
}
@media (max-width: 550px) {
  .nav { order: 3; width: 100%; gap: 1.3rem; padding-top: .05rem; }
  .nav a { padding-block: .37rem; }
}
@media (min-width: 551px) {
  .shell { width: min(100% - 4rem, 80rem); }
  .header-inner { min-height: 4.6rem; flex-wrap: nowrap; display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand img { width: 5.25rem; }
  .header-shop { justify-self: end; }
  .hero { gap: 2.2rem; }
  .hero-visual figcaption { margin: 0 1.4rem 1.1rem; }
  .section-head { grid-template-columns: 1fr auto; }
  .character-filter { flex: 0 1 auto; }
  .character-filter select { width: 11.5rem; }
  .products { gap: 1rem; }
  .product-body { padding: .85rem 1rem .5rem; }
  .product-tag { left: .75rem; top: .75rem; }
  .card-actions .text-link { font-size: .875rem; }
  .recommendation-body { padding: 1.25rem 1.15rem .65rem; }
  .detail-layout { display: grid; grid-template-columns: .78fr 1fr; }
  .detail-photo { height: auto; min-height: 19rem; }
  .detail-body { padding: 2.5rem 2rem 1.75rem; }
  .footer-links { margin-left: auto; }
}
@media (min-width: 820px) {
  .shell { width: min(100% - 6rem, 80rem); }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; padding-block: 2.45rem 2.65rem; gap: 2.35rem; }
  .hero h1 { font-size: clamp(3.34rem, 6.55vw, 5.75rem); }
  .hero-visual { aspect-ratio: 1.29; }
  .hero-actions { margin-top: 1.5rem; }
  .collection { padding-block: 3rem 4.2rem; }
  .section-head { margin-bottom: 1.65rem; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide { padding-block: 3.7rem; }
  .guide-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; }
  .recommendation { min-height: 13.75rem; }
  .recommendation-body { padding-inline: 1.4rem; }
}
@media (min-width: 1150px) {
  .hero { gap: 3rem; padding-block: 2.6rem 2.9rem; }
  .hero-content { padding-inline: .55rem 0; }
  .hero-summary { font-size: 1.075rem; }
  .hero-visual { aspect-ratio: 1.33; }
  .product-photo { aspect-ratio: 1.05; }
  .card-actions { padding-top: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
