:root {
  color-scheme: light;
  --canvas: #f7f6f0;
  --surface: #fcfbf6;
  --ink: #222c24;
  --muted: #606b5e;
  --green: #2d4939;
  --green-deep: #183225;
  --line: #e0e3d8;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.55 var(--sans); }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #426c55; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { max-width: 1328px; padding-inline: 48px; margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 12px auto auto 12px; z-index: 3; padding: 10px 15px; background: white; }
.site-header { background: #fbfaf6; border-bottom: 1px solid #e9e8df; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font: 650 29px/1 var(--serif); letter-spacing: .05em; color: #233a2b; }

.hero { position: relative; display: flex; align-items: center; min-height: 310px; margin-top: 24px; isolation: isolate; overflow: hidden; border-radius: 15px; color: #f5f3e9; background: #1b392a url("assets/hero.webp") center 54% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d231ae8 0%, #123126b9 38%, #0f2d230e 70%); }
.hero-content { padding: 38px clamp(28px, 5.2vw, 70px); }
.hero h1 { font: 500 clamp(43px, 6vw, 82px)/1.06 Georgia, serif; margin-block: 0 17px; letter-spacing: -.048em; text-wrap: balance; }
.hero-description { color: #ebeee4; font-size: 16px; line-height: 1.85; }

.catalog { padding-top: 34px; scroll-margin-top: 24px; }
.catalog-header { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.eyebrow { color: #536a52; letter-spacing: .17em; font-size: 12px; font-weight: 700; }
.catalog-header h2 { font: 600 clamp(29px, 4vw, 43px)/1.18 var(--serif); margin-top: 6px; }
.catalog-layout { display: grid; grid-template-columns: 254px minmax(0, 1fr); align-items: start; gap: 24px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.filter-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; }
.filter-header h3 { font-size: 17px; }
.reset { color: var(--green); background: none; border: 0; padding: 4px 0 4px 8px; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
fieldset + fieldset { margin-top: 18px; }
legend { width: 100%; padding: 13px 0 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span { padding: 5px 10px; font-size: 14px; border-radius: 6px; background: #f8f8f0; border: 1px solid #e0e4d8; color: #455146; }
.choice input:checked + span { color: #f7f8ef; background: var(--green); border-color: var(--green); }
.choice input:hover + span { border-color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid #426c55; outline-offset: 2px; }
.field-note { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.position-field { border-top: 1px solid var(--line); padding-top: 14px; }
#imagery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 98px), 1fr)); gap: 6px; }
.imagery-group { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: #f8f9f2; }
.imagery-group.is-expanded { grid-column: 1 / -1; }
.imagery-group-row { display: flex; min-height: 35px; align-items: stretch; }
.imagery-parent { display: flex; flex: 1; align-items: center; gap: 4px; padding: 4px 0 4px 6px; color: #385043; font-size: 13px; line-height: 1.25; cursor: pointer; }
.imagery-parent input { flex: 0 0 auto; width: 13px; height: 13px; margin: 0; accent-color: var(--green); }
.imagery-parent input:checked + span, .imagery-parent input:indeterminate + span { font-weight: 700; }
.imagery-toggle { display: grid; place-items: center; flex: 0 0 25px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--green); }
.imagery-toggle:hover { background: #e7eee2; }
.imagery-toggle::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.imagery-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.imagery-children { border-top: 1px solid var(--line); padding: 7px; }
.imagery-children .choice span { padding: 4px 7px; font-size: 13px; }
.results { min-width: 0; }
.results-bar { min-height: 37px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-view-controls { display: flex; gap: 4px 12px; align-items: center; flex-wrap: wrap; }
#catalog-view { border: 0; padding: 4px 0; color: var(--green); background: transparent; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#result-count { color: var(--muted); font-size: 14px; }
#result-count strong { color: var(--ink); font-size: 19px; margin-right: 4px; line-height: 1; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card { min-width: 0; display: flex; flex-direction: column; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #adbcaa; box-shadow: 0 5px 18px #243d2510; }
.card-image, .detail-visual { position: relative; display: grid; place-items: center; background: #eff0e7; }
.card-image { height: 167px; padding: 8px 12px; }
.bottle { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.positioning { position: absolute; inset: 11px auto auto 11px; background: #fffcf0ed; color: #344d3c; border: 1px solid #fff8; border-radius: 100px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.card-content { padding: 13px 14px 12px; flex: 1; display: flex; flex-direction: column; }
.brand { color: #4f6655; font-size: 13px; font-weight: 750; letter-spacing: .055em; }
.perfume-name { font: 650 23px/1.18 var(--serif); margin-block: 6px 3px; overflow-wrap: anywhere; }
.perfume-name-en { color: #637167; font: 500 14px/1.35 Georgia, serif; margin-bottom: 9px; overflow-wrap: anywhere; }
.concentration { display: inline-block; padding: 2px 5px; border: 1px solid #dbe2d7; border-radius: 4px; background: #eff2e9; color: #4d6254; font: 650 .75rem/1.15 var(--sans); letter-spacing: .015em; vertical-align: .14em; white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 11px 0 13px; display: flex; flex-wrap: wrap; gap: 5px; align-content: start; }
.family-tags { margin-bottom: 7px; }
.imagery-tags { margin-top: 0; }
.tags li { border-radius: 4px; padding: 2px 7px; font-size: 12px; white-space: nowrap; color: #4b5b4b; background: #edf0e6; }
.card-bottom { margin-top: auto; padding-top: 7px; border-top: 1px solid #e9eadf; display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.details { color: var(--green); background: transparent; border: none; border-radius: 4px; font-weight: 700; font-size: 14px; min-height: 36px; padding: 5px 3px; white-space: nowrap; }
.details:hover { background: #e9eee3; }
.empty { grid-column: 1 / -1; padding: 46px 22px; border-radius: 12px; border: 1px dashed #b9c2b4; background: var(--surface); text-align: center; }
.empty p { margin: 6px 0 19px; color: var(--muted); }
.empty button { padding: 8px 15px; border-radius: 6px; border: 1px solid var(--green); color: white; background: var(--green); }

.site-footer { margin-top: 40px; padding-block: 18px 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.footer-mark { font: 650 23px var(--serif); letter-spacing: .03em; color: var(--green); }
.catalog-method { flex: 1 1 275px; }
.catalog-method summary { width: fit-content; cursor: pointer; font-size: 14px; }
.catalog-method p { max-width: 72ch; margin-top: 6px; }
dialog { width: min(600px, calc(100% - 26px)); max-height: min(88vh, 760px); color: var(--ink); border: 1px solid #bcc7b7; border-radius: 15px; padding: 0; background: var(--surface); box-shadow: 0 18px 65px #17281f40; }
dialog::backdrop { background: #17281f8c; }
body:has(dialog[open]) { overflow: hidden; }
.detail-visual { height: 194px; padding: 8px; }
.close-detail { position: absolute; right: 13px; top: 13px; display: grid; place-items: center; width: 40px; height: 40px; font: 26px/1 system-ui, sans-serif; color: #213c2d; background: #fcfbf4; border: 1px solid #d9e2d5; border-radius: 50%; }
.close-detail:hover { background: #e6ebdf; }
.detail-body { padding: 20px 27px 27px; }
.detail-body h2 { font: 650 clamp(28px, 6vw, 38px)/1.15 var(--serif); margin: 5px 0 4px; overflow-wrap: anywhere; }
.detail-body .perfume-name-en { font-size: 16px; }
.detail-meta { color: var(--green); font-size: 14px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.detail-section h3 { font-size: 15px; margin-bottom: 5px; }
.detail-section p { color: #4c5b4e; }
.detail-section .imagery-tags { margin: 0; }
.source-link { display: inline-block; margin-top: 17px; border: 1px solid #bccaba; border-radius: 6px; background: #eef1e6; padding: 7px 12px; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; font-weight: 650; }
[data-family="citrus"] { --family: #9b610c; --family-surface: #fbedd2; --family-text: #744100; }
[data-family="green"] { --family: #527c35; --family-surface: #e7f0dd; --family-text: #355920; }
[data-family="aquatic"] { --family: #28748b; --family-surface: #e0f1f4; --family-text: #225770; }
[data-family="fougere"] { --family: #6d5896; --family-surface: #efebf6; --family-text: #4e3c70; }
[data-family="leather"] { --family: #805647; --family-surface: #f4e9e1; --family-text: #653e32; }
[data-family="chypre"] { --family: #707333; --family-surface: #eeefd9; --family-text: #535922; }
[data-family="woody"] { --family: #796236; --family-surface: #f0ecd9; --family-text: #604c29; }
[data-family="oriental"] { --family: #a25233; --family-surface: #f9e8dc; --family-text: #803a25; }
[data-family="gourmand"] { --family: #925e22; --family-surface: #f4e6d8; --family-text: #704014; }
[data-family="floral"] { --family: #aa4d70; --family-surface: #f8e6ef; --family-text: #7f3854; }
[data-family="fruity"] { --family: #a14944; --family-surface: #f9e9e7; --family-text: #842f2c; }

.choice[data-family] span, .family-tags li[data-family] { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: var(--family-surface); color: var(--family-text); }
.choice[data-family] span::before, .family-tags li[data-family]::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--family); flex: 0 0 auto; }
.choice[data-family] input:checked + span { background: var(--family-text); color: #fff; border-color: var(--family-text); }
.choice[data-family] input:checked + span::before { background: #fff; }
.choice[data-family] input:hover + span { border-color: var(--family); }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 23px; font-size: 14px; color: var(--muted); }
.pagination button { color: var(--green); background: var(--surface); border-radius: 6px; border: 1px solid var(--line); padding: 8px 14px; }
.pagination button:disabled { opacity: .45; cursor: default; }

@media (max-width: 1100px) {
  .shell { padding-inline: 32px; }
  .catalog-layout { grid-template-columns: 222px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { padding-inline: 18px; }
  .header-inner { min-height: 62px; }
  .hero { margin-top: 15px; min-height: 255px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, #132b20f0, #132b20ae 53%, #162f2582); }
  .catalog { padding-top: 23px; }
  .catalog-header { align-items: start; flex-direction: column; padding-bottom: 13px; margin-bottom: 13px; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  #filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; }
  .filter-header, .position-field { grid-column: 1 / -1; }
  .filter-header { padding-bottom: 0; }
  fieldset + fieldset { margin-top: 0; }
  legend { padding-top: 8px; }
  .card-image { height: 141px; }
}
@media (max-width: 390px) {
  .shell { padding-inline: 13px; }
  .hero-content { padding-inline: 20px; }
  #filters { gap: 11px; }
  .filter-panel, .card-content { padding-inline: 10px; }
  .cards { gap: 8px; }
  .perfume-name { font-size: 20px; }
  .card-bottom { flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.wordmark {
  gap: 9px;
  font: 500 24px/1.25 "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  letter-spacing: .15em;
}
.wordmark img { display: block; width: 29px; height: 29px; }
.search-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #d7ddd1;
  border-radius: 7px;
  background: var(--surface);
  color: #526457;
}
.search-field:focus-within { outline: 2px solid #426c55; outline-offset: 2px; }
.search-field input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: #67756a; opacity: 1; }
.search-icon { position: relative; display: inline-block; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; margin-right: 3px; flex: 0 0 11px; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1px; background: currentColor; bottom: -2px; right: -4px; transform: rotate(45deg); }
.catalog-search { width: min(390px, 70%); }
.filter-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-bottom: 5px; }
.filter-subhead h4 { font-size: 14px; margin: 0; }
.search-small { width: 108px; padding-inline: 7px; gap: 6px; background: #f8f9f2; }
.search-small input { font-size: 12px; padding: 5px 0; }
.search-brand { margin-bottom: 8px; background: #f8f9f2; }
.search-brand input { font-size: 13px; }
.brand-options { max-height: 216px; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; padding: 0 4px 3px; }
.brand-group + .brand-group { margin-top: 5px; }
.brand-letter { font: 700 12px/1.4 Georgia, serif; color: #506a57; padding: 4px 0 3px; }
.brand-option { display: flex; align-items: start; gap: 7px; color: #394a40; font-size: 13px; cursor: pointer; padding: 3px 0; }
.brand-option input { flex: 0 0 auto; width: 13px; height: 13px; margin: .25em 0 0; accent-color: var(--green); }
.brand-option span { min-width: 0; overflow-wrap: anywhere; }
#brand-empty, #imagery-empty { margin: 7px 0 0; }
.main-aromas { margin: 0; color: #4a5d50; font-size: .8125rem; line-height: 1.55; }
.main-aromas dt { font-size: .75rem; font-weight: 700; color: #41594a; }
.main-aromas dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.note-pyramid { margin: 0; }
.note-pyramid > div { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.note-pyramid dt { flex: 0 0 3em; color: var(--green); font-size: 14px; font-weight: 650; }
.note-pyramid dd { margin: 0; color: #4c5b4e; min-width: 0; }
.main-aromas .note-missing, .note-pyramid .note-missing { color: #68766b; }
.review-section { background: #edf0e7; border-radius: 8px; padding: 11px 13px 13px; }
.page-buttons, .page-jump { display: inline-flex; align-items: center; gap: 5px; }
.page-buttons button { min-width: 37px; padding-inline: 8px; }
.page-buttons button[aria-current="page"] { background: var(--green); color: var(--surface); border-color: var(--green); font-weight: 650; }
.page-jump input { width: 65px; min-height: 39px; padding: 7px 5px 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.page-jump button { white-space: nowrap; }
@media (max-width: 720px) {
  .brand-field { grid-column: 1 / -1; }
  .brand-options { max-height: 160px; }
  .pagination { gap: 6px; }
  .pagination button { padding-inline: 8px; }
  .page-buttons button { min-width: 30px; }
}
@media (max-width: 420px) {
  #filters { grid-template-columns: minmax(0, 1fr); }
  .catalog-search { width: 54%; }
  .search-field { gap: 6px; }
  .search-small { width: 87px; }
  .search-small input { font-size: 11px; }
  .pagination { justify-content: center; }
}
