@property --glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

:root {
  --cream: #fbf6ee;
  --paper: #f4e9da;
  --sand: #ead7bf;
  --line: #e6d5c0;
  --text: #2e2118;
  --muted: #7b6452;
  --accent: #c4622d;
  --accent-dark: #a64f22;
  --glow-color: #ffc983;
  --night: #1f1610;
  --night-2: #2c1f15;
  --night-text: #f7e9d6;
  --night-muted: #cbb39a;
  --radius: 18px;
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
section[id] { scroll-margin-top: 68px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: 1.1rem; max-width: 33em; margin: 22px 0 0; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-ghost-light { background: transparent; color: var(--night-text); border-color: rgb(255 255 255 / 0.22); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.06); border-color: var(--night-text); }
.btn-small { padding: 8px 18px; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--night); color: var(--night-text);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em;
}
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; opacity: 0.75; transition: opacity 0.2s; }
.nav a:not(.btn):hover { opacity: 1; }

/* Hero */
.hero {
  --glow: 1;
  position: relative; overflow: hidden;
  color: var(--night-text);
  background:
    radial-gradient(50% 70% at 74% 46%, rgb(255 178 94 / calc(var(--glow) * 0.34)), transparent 72%),
    linear-gradient(180deg, var(--night), var(--night-2));
  transition: --glow 0.7s ease;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0 80px; min-height: min(700px, calc(100vh - 68px));
}
.hero .eyebrow { color: var(--glow-color); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); font-weight: 400; }
.hero h1 em { color: var(--glow-color); }
.hero .lead { color: var(--night-muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-stage { display: flex; flex-direction: column; align-items: center; }
.lamp-button {
  width: min(400px, 100%); padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lamp-button svg { display: block; width: 100%; height: auto; }
.hero .halo, .hero .cone, .hero .shade-glow { opacity: var(--glow); }
.hero .shade-dim { opacity: calc((1 - var(--glow)) * 0.62); }
.dimmer {
  display: flex; gap: 4px; padding: 5px; margin-top: 4px;
  border-radius: 999px; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1);
}
.dimmer button {
  font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer;
  padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: var(--night-muted);
  transition: background 0.25s, color 0.25s;
}
.dimmer button[aria-pressed="true"] { background: var(--glow-color); color: var(--night); }
.dimmer-hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--night-muted); opacity: 0.8; }

/* Features */
.features { background: var(--paper); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.feature { background: var(--paper); padding: 30px 22px; }
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.feature p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

/* Sections */
.section { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head > p { max-width: 30em; margin: 0; color: var(--muted); }

/* Collections */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.collection-card {
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper);
  transition: transform 0.25s, box-shadow 0.25s;
}
.collection-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgb(94 56 26 / 0.12); }
.collection-img { aspect-ratio: 4 / 5; overflow: hidden; }
.collection-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.collection-card:hover .collection-img img { transform: scale(1.04); }
.collection-body { padding: 16px 18px 20px; }
.collection-body h3 { font-size: 1.35rem; }
.collection-body p { margin: 6px 0 10px; font-size: 0.9rem; color: var(--muted); }
.collection-count { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* Lamps */
.lamps { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.room-select { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.room-select select {
  font: inherit; color: var(--text); padding: 9px 36px 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card, .collection-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.card {
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgb(94 56 26 / 0.1); }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.92);
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
}
.card-body { padding: 18px 20px 22px; }
.card-cat { margin: 0 0 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.3rem; }
.card-summary {
  margin: 8px 0 0; font-size: 0.92rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--paper); font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.story-text p { margin: 20px 0 0; font-size: 1.05rem; color: var(--muted); }
.values { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.values li { position: relative; padding-left: 26px; font-weight: 500; }
.values li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--glow-color); box-shadow: 0 0 0 4px rgb(255 201 131 / 0.3);
}

/* FAQ */
.faq { background: var(--paper); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 64px; border-radius: 32px; color: var(--night-text);
  background:
    radial-gradient(60% 90% at 90% 10%, rgb(255 178 94 / 0.25), transparent 70%),
    linear-gradient(160deg, var(--night-2), var(--night));
}
.contact-panel .eyebrow, .contact-panel h2 em { color: var(--glow-color); }
.contact-panel .lead { color: var(--night-muted); }
.contact-grid { display: grid; gap: 12px; }
.contact-card { padding: 18px 22px; border-radius: 16px; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); }
.contact-card p, .contact-card a { margin: 0; overflow-wrap: anywhere; }
.contact-card a { font-size: 1.05rem; font-weight: 600; color: var(--glow-color); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-label { margin-bottom: 2px !important; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }

/* Footer */
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--text); }

/* Dialog */
.dialog {
  width: min(960px, 100% - 32px); max-height: 90vh; padding: 0;
  border: 0; border-radius: 24px; background: #fff; color: var(--text);
}
.dialog::backdrop { background: rgb(31 22 16 / 0.6); backdrop-filter: blur(3px); }
.dialog-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.dialog-media { display: flex; flex-direction: column; background: var(--paper); }
.dialog-media > img { flex: 1; width: 100%; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; }
.thumbs:empty { display: none; }
.thumb { width: 58px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { aspect-ratio: 1; object-fit: cover; }
.dialog-body { padding: 44px 40px; }
.dialog-body h3 { font-size: 2rem; }
.dlg-summary { color: var(--muted); }
.dlg-features { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-features li {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--paper); font-size: 0.84rem; font-weight: 500;
}
.dlg-features svg { width: 18px; height: 18px; color: var(--accent); }
.dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.specs { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .hero { transition: none !important; }
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .story-grid, .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-media { max-width: 460px; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 56px; }
  .lamp-button { width: min(300px, 80%); }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media > img { aspect-ratio: 1; }
  .dialog-body { padding: 26px 24px 30px; }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .section { padding: 68px 0; }
  .collections-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .collection-body p { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px 12px 16px; }
  .card h3 { font-size: 1.05rem; }
  .card-summary, .tags { display: none; }
  .values { grid-template-columns: 1fr; }
}
