:root {
  --night: #2a1a15;     /* room after dark */
  --ember: #36221b;     /* raised surface */
  --line: #4d342a;
  --paper: #f2e9df;     /* text */
  --muted: #c4b1a1;
  --glow: #f0b46a;      /* lamplight */
  --clay: #b55934;      /* brand clay */
  --oxblood: #814037;   /* brand logo */
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--glow); color: var(--night); padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--glow); color: var(--night);
  border: 1px solid var(--glow); border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { box-shadow: 0 0 0 6px rgba(240, 180, 106, .18); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(242, 233, 223, .45); }
.btn-ghost:hover { border-color: var(--paper); box-shadow: none; background: rgba(242, 233, 223, .06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(42, 26, 21, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 52, 42, .6);
}
.wordmark {
  font-family: var(--serif); font-size: 1.75rem; line-height: 1;
  text-decoration: none; color: var(--paper); letter-spacing: .01em;
}
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
.top nav a:hover { color: var(--paper); }
@media (max-width: 760px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
}

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 104px);
}
.hero-photo { margin: 0; position: relative; }
.hero-photo::after {
  /* lamplight spilling out of the photo */
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(closest-side at 42% 38%, rgba(240, 180, 106, .28), transparent 70%);
  z-index: -1; pointer-events: none;
  animation: glow-in 1.8s ease-out .2s both;
}
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px 6px 6px;   /* lampshade arch */
  animation: switch-on 1.8s ease-out .2s both;
}
@keyframes switch-on {
  from { filter: brightness(.25) saturate(.6); }
  to   { filter: brightness(1) saturate(1); }
}
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }

.hero-sw { font-family: var(--serif); color: var(--glow); font-size: 1.25rem; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.02; letter-spacing: -.012em;
  max-width: 11ch;
}
.lede { margin-top: 24px; max-width: 34em; font-size: 1.1875rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-photo img { aspect-ratio: 4 / 4.4; border-radius: 160px 160px 6px 6px; }
}

/* Sections */
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.lamps, .made, .order {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.lamps { border-top: 1px solid var(--line); }
.lamps > .section-title { margin-bottom: clamp(32px, 5vw, 64px); }

/* Lamp rows */
.lamp {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.lamp + .lamp { margin-top: clamp(72px, 10vw, 128px); }
.lamp-flip .lamp-gallery { order: 2; }
.lamp-main {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  background: var(--ember);
}
.lamp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.lamp-thumbs button {
  flex: 1 1 0; padding: 0; border: 1px solid transparent; border-radius: 4px;
  background: var(--ember); cursor: pointer; overflow: hidden; opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.lamp-thumbs button img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lamp-thumbs button:hover { opacity: .9; }
.lamp-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--glow); }

.lamp-info { position: sticky; top: 96px; }
.lamp-info h3 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; }
.price { font-size: 1.25rem; margin: 12px 0 20px; color: var(--glow); font-weight: 500; }
.lamp-info > p:not(.price):not(.stock) { color: var(--muted); max-width: 32em; }

.specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs dt { width: 5.5em; flex: none; color: var(--muted); }
.specs dd { margin: 0; }

.variant { border: 0; padding: 0; margin: 24px 0 0; }
.variant legend { font-size: .9375rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.variant label { display: inline-block; margin: 0 6px 6px 0; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(242, 233, 223, .3); border-radius: 999px; font-size: .9375rem;
}
.variant input:checked + span { border-color: var(--glow); color: var(--glow); }
.variant input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 3px; }

.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stock { margin-top: 14px; font-size: .9375rem; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.stock.in::before { background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.stock.out { color: var(--muted); }
.stock.out::before { background: var(--muted); opacity: .5; }

@media (max-width: 860px) {
  .lamp { grid-template-columns: 1fr; }
  .lamp-flip .lamp-gallery { order: 0; }
  .lamp-info { position: static; }
}

/* Made */
.made { border-top: 1px solid var(--line); }
.made-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.made-head p { color: var(--muted); max-width: 36em; }
.materials {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
}
.materials li { border-top: 1px solid var(--glow); padding-top: 20px; }
.materials h3 { font-size: 1.625rem; margin-bottom: 10px; }
.materials p { color: var(--muted); }
@media (max-width: 860px) {
  .made-head, .materials { grid-template-columns: 1fr; }
}

/* Order — a real sequence, so it's numbered */
.order {
  background: var(--ember); border-radius: 6px;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto clamp(56px, 8vw, 104px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.steps {
  list-style: none; padding: 0; margin: 40px 0 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--glow); margin-bottom: 12px;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) {
  .order { max-width: none; margin-left: var(--gutter); margin-right: var(--gutter); }
  .steps { grid-template-columns: 1fr; }
}

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem;
}
.foot .wordmark { margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot .social { display: flex; flex-direction: column; gap: 6px; }
.foot .copy { grid-column: 1 / -1; font-size: .875rem; opacity: .7; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

/* Floating WhatsApp on phones */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 15;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--glow); color: var(--night);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
@media (max-width: 760px) { .wa-float { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img, .hero-photo::after { animation: none; }
}
