@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #faf6ee;
  --ink: #261b16;
  --muted: #65554b;
  --line: #e0d5c6;
  --gold: #a3512d;
  --walnut: #38251c;
  --cream: #fff8e8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9d4827; outline-offset: 5px; }
::selection { color: var(--ink); background: #eec89e; }
.wrap { width: min(100% - 96px, 1320px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); position: absolute; white-space: nowrap; }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; background: var(--cream); padding: 12px; }

.site-header { background: #fbf7ee; border-bottom: 1px solid rgba(81,51,32,.14); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 8px; font: 400 2.22rem/.9 var(--serif); letter-spacing: -.02em; }
.sun { color: var(--gold); font: 400 1.24rem/1 Georgia, serif; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3.15vw, 44px); font-size: .94rem; font-weight: 600; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .24em; }
.header-action { justify-self: end; font-size: .9rem; font-weight: 700; border: 1px solid #9a7e67; border-radius: 3px; padding: 8px 16px; }
.header-action:hover { background: var(--ink); color: var(--cream); }

.hero {
  min-height: clamp(470px, 42vw, 620px);
  display: flex;
  align-items: center;
  isolation: isolate;
  position: relative;
  background: #e5cdb5 url("assets/lucinora-dawn.png") 64% 50% / cover no-repeat;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(253,243,228,.87) 0%, rgba(253,243,228,.65) 29%, rgba(253,243,228,.08) 56%, transparent 67%);
}
.hero-content { padding-block: 64px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.027em; }
h1 { font-size: clamp(5rem, 9vw, 9.25rem); line-height: .83; margin-left: -.035em; max-width: 9ch; }
h1 em, .guide h2 em { color: var(--gold); font-weight: 400; }
.hero p { margin: 25px 0 30px; font-size: clamp(1.04rem, 1.55vw, 1.2rem); line-height: 1.55; max-width: 34ch; color: #44342a; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 19px; border-radius: 3px; font-weight: 700; border: 1px solid transparent; }
.button-gold { background: #8f4326; color: #fff7eb; }
.button-gold:hover { background: #6e321e; }

.selection { padding-top: clamp(48px, 6.5vw, 96px); scroll-margin-top: 20px; }
.section-heading { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .875rem; font-weight: 700; }
h2 { font-size: clamp(3rem,6vw,5.1rem); line-height: .9; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; color: var(--ink); background: transparent; border: 1px solid #bcab99; border-radius: 30px; padding: 6px 15px; font-size: .94rem; font-weight: 600; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product { display: grid; grid-template-rows: auto 1fr; overflow: hidden; outline-offset: 4px; border: 1px solid var(--line); background: #fffbf4; }
.product-art {
  position: relative; display: grid; place-items: center;
  overflow: hidden; width: 100%; aspect-ratio: 1.64;
  background: radial-gradient(ellipse at 52% 37%, #f8ebd7, transparent 68%), linear-gradient(144deg,#e6d5bd,#c8aa8d);
  color: #66523f;
}
.product-art[data-kind="ampoule"] {
  background: radial-gradient(ellipse at 60% 12%, #fff3d8, transparent 65%), linear-gradient(143deg,#ecddc3,#dcc29d);
}
.product-tag { position: absolute; z-index: 1; top: 13px; left: 13px; background: #fcf6eb; border: 1px solid #c0ac92; border-radius: 24px; padding: 3px 9px; font-size: .85rem; font-weight: 700; }
.product-symbol { display: block; position: relative; height: 45%; width: clamp(43px,18%,85px); color: #5b402e; filter: drop-shadow(10px 12px 12px #5d391d33); }
.symbol-bulb { height: 49%; width: 22%; }
.symbol-bulb::before { content:""; position:absolute; width:100%; aspect-ratio:1; top:0; border-radius:50%; background:radial-gradient(circle at 38% 34%, #fff3cd 4%,#efd4a3 68%,#b38458); border:1px solid #a67b56; }
.symbol-bulb::after { content:""; position:absolute; top:62%; left:24%; width:52%; height:35%; border:1px solid #765638; border-radius:5px 5px 8px 8px; background:repeating-linear-gradient(to bottom,#b28b64 0 5px,#856546 5px 7px); }
.symbol-spot { height:29%; width:22%; border-radius:38% 38% 28% 28%; transform:rotate(-22deg); background:linear-gradient(113deg,#8b6d55,#fff2cd 52%,#7f6651); }
.symbol-spot::after { content:""; position:absolute; left:11%; right:11%; height:35%; bottom:-9%; border-radius:50%; border:3px solid #95745c; background:radial-gradient(#fff5ce,#af8a59 79%); }
.symbol-wall { height:37%; width:21%; border-radius:7px; transform:rotate(-10deg) skewY(-5deg); background:linear-gradient(100deg,#3e3028,#765846 68%,#3d3028); }
.symbol-wall::before, .symbol-wall::after { content:""; position:absolute; left:12%; width:78%; height:12%; border-radius:30%; background:#eeddbe; }
.symbol-wall::before { top:4%; }
.symbol-wall::after { bottom:4%; }
.symbol-post { height:64%; width:11%; border-radius:7px 7px 3px 3px; background:linear-gradient(90deg,#453027,#886957 55%,#453027); }
.symbol-post::before { content:""; position:absolute; top:10%; left:9%; width:82%; height:32%; border-radius:2px; background:#ebd7b5; }
.product-copy { min-width: 0; padding: clamp(14px,2.05vw,25px); display: flex; flex-direction: column; align-items: start; }
.brand { color: #76533e; font-size: .85rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 7px; }
.product h3 { margin: 0; font: 400 clamp(1.65rem,3vw,2.2rem)/1 var(--serif); overflow-wrap: anywhere; }
.product-desc { color: var(--muted); margin: 9px 0 12px; font-size: .98rem; }
.quick-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 13px; padding: 0; list-style:none; }
.quick-specs li { border: 1px solid #d5c4b1; border-radius: 3px; color: #493528; font-size: .85rem; padding: 2px 7px; white-space: nowrap; }
.text-button { color: #7b3b23; background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: .24em; font-weight: 700; }
.text-button:hover { color: #472316; }

.guide { margin-top: clamp(54px,7vw,110px); scroll-margin-top: 20px; }
.guide-inner { display:grid; grid-template-columns:1fr 1fr; align-items: start; gap: clamp(28px,6vw,100px); color: var(--cream); background: var(--walnut); padding: clamp(30px,6vw,78px); }
.guide .eyebrow, .guide h2 em { color: #f0bf90; }
.guide-intro > p:last-child { color: #ebd9c7; max-width: 39ch; margin: 20px 0 0; }
.guide-form { padding-top: 3px; }
.guide-form label { display: block; margin: 0 0 7px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; pointer-events: none; right: 17px; top: 45%; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); color: var(--walnut); }
select { width: 100%; appearance: none; background: #fcf0e0; color: var(--ink); border: 1px solid #f3ddc2; border-radius: 3px; min-height: 48px; padding: 9px 39px 9px 14px; }
#fixture-info { color: #e7d6bf; font-size: .94rem; margin: 10px 0 15px; }
.match { display:flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; margin-top: 7px; padding: 9px 13px; background: #fff6e8; color: var(--ink); border-radius: 3px; }
.match span { font-weight: 650; }
.match .text-button { font-size: .9rem; }
.guide :focus-visible { outline-color: #f0bf90; }

.glossary { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-block: clamp(39px,6vw,84px); }
.glossary > div { display: flex; align-items:start; gap: 14px; border-top: 1px solid var(--line); padding-top: 17px; }
.glossary span { border-radius: 50%; background: #efe2d1; min-width: 39px; height:39px; display:grid; place-items:center; color:#713b22; font-weight:700; }
.glossary h3 { margin: 0 0 5px; font: 400 1.8rem/1 var(--serif); }
.glossary p { margin: 0; color: var(--muted); }
.site-footer { background: #efe3d6; border-top: 1px solid #e4d2c0; }
.footer-inner { display: flex; flex-wrap:wrap; justify-content: space-between; align-items:center; gap: 10px 24px; padding-block: 23px; }
.footer-inner p { margin: 0; color: var(--muted); }
.footer-inner > a:last-child { font-weight: 650; }

dialog { color: var(--ink); background: var(--paper); width: min(100% - 30px, 630px); max-height: min(90dvh, 750px); border: 1px solid #b3906c; padding: 0; }
dialog::backdrop { background: #281810aa; }
.detail-shell { padding: clamp(22px,5vw,42px); position:relative; }
.close { position:absolute; z-index:1; top:10px; right:10px; background:transparent; border:0; color:var(--ink); font-size:1.8rem; min-width:40px; min-height:40px; line-height:1; }
.detail-shell h2 { font-size: clamp(2.8rem,6vw,4.7rem); padding-right: 15px; }
.detail-shell .brand { margin-right: 25px; }
.detail-specs { margin: 22px 0 0; border-top: 1px solid var(--line); }
.detail-specs > div { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.detail-specs dt { font-weight: 700; }
.detail-specs dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { background-position: 57% 50%; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { display: flex; flex-wrap:wrap; justify-content: space-between; padding-block: 13px 11px; gap: 13px; }
  .site-header nav { order: 3; width: 100%; gap: 16px; font-size: .9rem; }
  .wordmark { font-size: 2rem; }
  .header-action { padding: 5px 11px; }
  .hero { background-position: 84% 48%; min-height: 515px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg,#fff5e8 3%,#fff3e3d4 36%,#fff1df45 67%,transparent 89%); }
  .hero-content { padding-block: 50px 30px; }
  h1 { font-size: clamp(4.35rem,17vw,6.8rem); }
  .hero p { margin: 16px 0 19px; max-width: 31ch; }
  .section-heading { flex-direction: column; align-items: start; gap: 17px; }
  .products { gap: 12px; }
  .product-art { aspect-ratio: 1.18; }
  .product-tag { top: 8px; left:8px; font-size: .82rem; padding-inline: 7px; }
  .product-copy { padding: 12px; }
  .product-desc { font-size: .91rem; }
  .guide-inner, .glossary { grid-template-columns: 1fr; }
  .guide-inner { padding: 23px; }
}
@media (max-width: 365px) {
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
