* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--background-primary); color: var(--text-primary); font: 1rem/1.65 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; color: var(--brand-secondary); }
h1 { font-size: clamp(4rem, 8.2vw, 8.5rem); letter-spacing: -.068em; }
h2 { font-size: clamp(2.65rem, 5.2vw, 5.5rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
em { color: var(--brand-primary); font-weight: 400; }
p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button,input,select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 4px; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--button-primary); color: var(--text-on-primary); transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(88%, 1320px); margin-inline: auto; }
.announcement { text-align: center; padding: .46rem 1rem; background: var(--brand-primary); color: var(--text-on-primary); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.header { position: sticky; top: 0; z-index: 3; background: var(--header-background); border-bottom: 1px solid #ffffff14; transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 6px 18px var(--shadow-color); }
.nav { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.mark { color: var(--brand-secondary); font: 600 1.65rem/1 var(--serif); letter-spacing: .18em; display: inline-block; }
.mark img { object-fit: contain; width: 8rem; max-height: 3rem; }
.nav nav,.nav-actions,.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.nav nav { gap: clamp(.8rem, 2vw, 2rem); font-size: .875rem; }
nav a:hover,.text-link:hover { color: var(--brand-accent); }
.icon,.close { color: var(--brand-secondary); background: transparent; border: 0; min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; font-size: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .65rem 1.35rem; background: var(--button-primary); border: 1px solid var(--button-primary); color: var(--text-on-primary); font-size: .875rem; font-weight: 700; transition: background .2s,color .2s,border-color .2s; text-align: center; }
.button:hover { background: var(--button-hover); border-color: var(--button-hover); }
.button.outline { background: #0b0b0b66; color: var(--brand-secondary); border-color: var(--border-color); }
.button.outline:hover { background: var(--button-primary); color: var(--text-on-primary); }
.button.small { min-height: 2.5rem; padding: .4rem .85rem; }
.mobile { display: none; }
.hero { min-height: 80svh; display: grid; align-items: center; position: relative; isolation: isolate; background: #110e09; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#080706 0%,#08070611 68%),url("../images/editorial-amber.jpg") center 50%/cover no-repeat; }
.hero-copy { padding-block: 5rem; }
.eyebrow { color: var(--brand-accent); font-size: .8rem; letter-spacing: .21em; font-weight: 700; margin-bottom: 1rem; }
.lead { max-width: 27rem; font-size: 1.125rem; margin: 1.4rem 0 2rem; }
.visual-caption { position: absolute; right: 6%; bottom: 1.1rem; font-size: .8rem; color: var(--brand-secondary); background: #0b0b0baa; padding: .1rem .5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem; }
.section-head h2 + p,.editorial h2 + p,.finder-layout h2 + p,.final-cta h2 + p { margin-top: .8rem; }
.text-link { color: var(--brand-primary); border-bottom: 1px solid currentColor; padding-bottom: .2rem; display: inline-block; font-size: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product-card { background: var(--surface-color); overflow: hidden; border: 1px solid #ffffff10; }
.product-art { position: relative; display: grid; place-items: center; aspect-ratio: 1.25; width: 100%; padding: 1rem; background: radial-gradient(ellipse at 70% 85%, var(--tone,#574030), #1c1b1a 75%); color: var(--brand-secondary); border: 0; overflow: hidden; }
.product-art img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.product-art span { font: italic 400 clamp(1.5rem, 3.6vw, 3.7rem)/.95 var(--serif); text-align: center; text-wrap: balance; }
.product-art > * { transition: transform .25s; }
.product-art:hover > * { transform: scale(1.05); }
.product-copy { padding: 1rem; }
.product-copy h3 { margin-bottom: .45rem; }
.product-copy p,.muted,#count { color: var(--text-muted); }
.product-copy .meta { font-size: .85rem; margin: .45rem 0; }
.product-copy .actions { margin-top: .7rem; gap: .5rem 1rem; }
.editorial { display: grid; grid-template-columns: 1.08fr 1fr; background: var(--background-secondary); }
.editorial-photo { min-height: 28rem; background: #302015 url("../images/editorial-amber.jpg") 68% center/cover no-repeat; }
.about .editorial-photo { background-image: url("../images/editorial-notes.jpg"); }
.editorial-copy { align-self: center; padding: clamp(2rem,6vw,6rem); }
.editorial-copy .text-link { margin: 1rem .8rem 0 0; }
.category-grid,.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.category,.notes-grid article { padding: clamp(1rem,3vw,2rem); border: 1px solid var(--border-color); background: var(--background-secondary); }
.category { display: flex; flex-direction: column; align-items: start; min-height: 13rem; background: linear-gradient(0deg,#111 24%,var(--tone,#423326)); }
.category p,.notes-grid h3 + p { margin-top: .55rem; }
.category button { margin-top: auto; padding-top: .7rem; }
.link-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding-inline: 0; text-align: left; }
.band { background: var(--background-secondary); border-block: 1px solid #ffffff12; }
.toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.toolbar label { display: grid; gap: .35rem; font-size: .875rem; }
input,select { width: 100%; min-width: 0; color: var(--text-primary); background: var(--background-primary); border: 1px solid var(--border-color); padding: .65rem; color-scheme: dark; }
#count { margin-block: .8rem; }
.starter-packs { margin-top: 2rem; padding: 1.2rem; border: 1px solid var(--border-color); }
.starter-packs .actions { margin-top: .65rem; }
.finder-layout,.faq-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: clamp(1.5rem,5vw,5rem); }
.quiz,#result,.faq details { border: 1px solid var(--border-color); padding: 1rem; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.quiz legend { color: var(--brand-secondary); margin-bottom: .5rem; }
.quiz label { display: inline-flex; gap: .45rem; align-items: center; margin: 0 .8rem .5rem 0; }
.quiz input { width: auto; accent-color: var(--brand-primary); }
#result article { padding-block: .8rem; border-bottom: 1px solid var(--border-color); margin-bottom: .7rem; }
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.gallery-grid button { padding: 0; background: var(--surface-color); border: 1px solid var(--border-color); color: var(--brand-secondary); text-align: left; }
.gallery-grid img { aspect-ratio: 1.65; object-fit: cover; }
.gallery-grid span { display: block; padding: .6rem 1rem; }
.faq details + details { margin-top: .55rem; }
summary { cursor: pointer; }
.faq details p { margin-top: .65rem; }
.faq a { text-decoration: underline; }
.final-cta { text-align: center; background: radial-gradient(ellipse at bottom,#362619,#0b0b0b 67%); padding-inline: 1rem; }
.final-cta .actions { justify-content: center; margin-top: 1.4rem; }
footer { background: var(--footer-background); border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 1.5rem; padding-block: 3rem; }
.footer-grid p { margin-top: .7rem; }
.footer-grid nav { display: grid; align-content: start; gap: .4rem; color: var(--text-secondary); }
.footer-grid strong { color: var(--brand-secondary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-block: 1rem; font-size: .875rem; }
dialog { position: fixed; width: min(92%,48rem); max-height: 88svh; overflow: auto; color: var(--text-primary); background: var(--surface-color); border: 1px solid var(--border-color); padding: 3.2rem clamp(1rem,4vw,2.5rem) 1.5rem; }
dialog::backdrop { background: #000c; }
dialog .close { position: absolute; top: .2rem; right: .3rem; }
#drawer { margin: 0 0 0 auto; width: min(88%,25rem); height: 100%; max-height: 100%; }
#drawer nav { display: grid; gap: .8rem; }
#drawer a { padding: .55rem 0; border-bottom: 1px solid var(--border-color); }
#detail-content > * + * { margin-top: .7rem; }
#detail-content ul { padding-left: 1.1rem; }
#detail-content img,#light-image { max-height: 55svh; object-fit: contain; }
#light-caption { margin-block: .6rem; }
.detail-gallery { display: flex; gap: .5rem; overflow-x: auto; }
.detail-gallery button { flex: 0 0 5rem; padding: 0; border: 1px solid var(--border-color); background: var(--background-primary); }
.detail-gallery img { aspect-ratio: 1; object-fit: cover !important; }
@media(max-width: 1050px) { .nav .desktop { display: none; } .mobile { display: inline-grid; } .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 700px) {
  .shell { width: 91%; }
  .nav { min-height: 3.75rem; }
  .hero { min-height: 78svh; align-items: end; }
  .hero::before { background: linear-gradient(0deg,#0b0b0b 4%,#0b0b0be8 29%,transparent 74%),url("../images/editorial-amber.jpg") 70% top/auto 72% no-repeat; }
  .hero-copy { padding-top: 17rem; padding-bottom: 3rem; }
  .hero .lead { margin-block: .7rem 1rem; }
  .product-grid,.category-grid,.notes-grid,.footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editorial,.finder-layout,.faq-layout,.toolbar { grid-template-columns: 1fr; }
  .editorial-photo { min-height: 16rem; }
  .gallery-grid { gap: .5rem; }
}
@media(max-width: 350px) { .product-grid,.category-grid,.notes-grid { grid-template-columns: 1fr; } h1 { font-size: 3rem; } }
@media(prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
