/* Echo & Chrome: styles shared by the shop and product pages.
   (The home page, index.html, carries its own copy of these tokens.) */
:root {
  color-scheme: dark;
  --ink: #262626;
  --ink-deep: #1c1c1c;
  --yellow: #dad62c;       /* mustard chartreuse: every headline and link */
  --line: rgba(218, 214, 44, 0.22);
  --soft: rgba(218, 214, 44, 0.62);
  /* empty photo holder: a soft lamplight glow instead of flat grey */
  --slot: radial-gradient(ellipse 58% 40% at 50% 47%, rgba(255, 186, 92, 0.28), rgba(255, 186, 92, 0.09) 55%, rgba(255, 186, 92, 0) 78%), linear-gradient(#2c2a26, #242321);
  --slot-edge: rgba(218, 214, 44, 0.16);

  --display: "Oranienbaum", "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 60px;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--ink-deep);
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.text-link {
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1600px; margin: 0 auto;
}
.brandmark {
  font-family: var(--display); font-size: 26px; line-height: 1;
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.brandmark span { font-family: var(--serif); font-size: 0.62em; font-style: italic; margin: 0 0.2em; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 16px; text-decoration: none; padding-block: 6px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--yellow); }
.nav a[aria-current] { font-style: italic; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--yellow);
  font: italic 16px/1 var(--serif); padding: 9px 14px; cursor: pointer;
}

/* ---------- Photo holder (empty until a product photo is added) ---------- */
.slot {
  aspect-ratio: 467 / 610;            /* same portrait shape as the lamp cards */
  background: var(--slot);
  border: 1px solid var(--slot-edge);
  display: grid; place-items: center;
  overflow: hidden;
  transition: border-color 0.2s;
}
.slot span { position: relative; z-index: 1; margin-top: 46%; font-style: italic; font-size: 15px; opacity: 0.75; }
/* a hanging cord and a little brass socket with its bulb glowing, until the real photo arrives */
.slot::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 36%;
  background: linear-gradient(rgba(218, 214, 44, 0), rgba(218, 214, 44, 0.32));
}
.slot::after {
  content: ""; position: absolute; left: 50%; top: 36%; width: 12px; height: 15px; margin-left: -6px;
  border-radius: 2px 2px 7px 7px; background: linear-gradient(#d9b45c, #9c7a2e);
  box-shadow: 0 9px 18px 6px rgba(255, 186, 92, 0.38), 0 0 60px 26px rgba(255, 186, 92, 0.12);
}
.slot.has-photo::before, .slot.has-photo::after { display: none; }
@media (hover: hover) {
  .slot:not(.has-photo)::after { transition: box-shadow 0.4s ease; }
  a.slot:not(.has-photo):hover::after { box-shadow: 0 9px 22px 9px rgba(255, 186, 92, 0.5), 0 0 80px 34px rgba(255, 186, 92, 0.18); }
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.has-photo { border-style: solid; border-color: transparent; }
.slot { position: relative; }
.sold-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 10px;   /* above the photos on multi-photo shop tiles */
  background: rgba(28, 28, 28, 0.82); color: #dad62c; font-size: 14px; font-style: italic;
  border: 1px solid rgba(218, 214, 44, 0.4);
}
@media (max-width: 600px) { .sold-tag { top: 6px; left: 6px; padding: 3px 7px; font-size: 12px; } }   /* smaller on the phone shop grid */

/* ---------- "Logo moment" cover used when pressing Shop (see transition.js) ---------- */
.veil {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink-deep);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.veil.is-on, html.arriving .veil { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.veil__mark {
  margin: 0; display: grid; justify-items: center; text-align: center;
  font-family: var(--display); color: var(--yellow);
  font-size: clamp(72px, 9vw, 128px); line-height: 0.8;
  transform: scale(0.97); transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.veil__mark i { font-family: var(--serif); font-size: 0.26em; line-height: 1.5; }
.veil.is-on .veil__mark, html.arriving .veil__mark { transform: none; }
/* Filament glow: a warm light flickers on behind the logo, like a bulb warming up */
.veil__glow {
  position: absolute; left: 50%; top: 50%;
  width: min(92vmin, 780px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 196, 92, 0.32), rgba(255, 196, 92, 0.1) 38%, rgba(255, 196, 92, 0) 64%);
}
.veil.is-on .veil__glow { animation: filament-glow 1s linear forwards; }
.veil.is-on .veil__mark { animation: filament-mark 1s linear forwards; }
html.arriving .veil__glow { opacity: 1; }
.veil.is-on .veil__mark, html.arriving .veil__mark { text-shadow: 0 0 28px rgba(255, 196, 92, 0.35); }
@keyframes filament-glow {
  0% { opacity: 0; } 12% { opacity: 0.9; } 20% { opacity: 0.15; }
  34% { opacity: 1; } 44% { opacity: 0.45; } 56%, 100% { opacity: 1; }
}
@keyframes filament-mark {
  0% { opacity: 0; filter: brightness(0.5); } 12% { opacity: 1; filter: brightness(1.4); }
  20% { opacity: 0.35; } 34% { opacity: 1; } 44% { opacity: 0.6; }
  56% { opacity: 1; filter: brightness(1.15); } 100% { opacity: 1; filter: brightness(1); }
}

/* ---------- "Slide over": shop photo → product page (see transition.js) ---------- */
.slide-cover {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: calc(var(--header-h) + 1px + env(safe-area-inset-top, 0px));
  z-index: 15; background: var(--ink);
  box-shadow: -28px 0 56px rgba(0, 0, 0, 0.5);
  transform: translateX(102%); pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.15, 1);
}
html.sliding-out .slide-cover { transform: translateX(0); }
html.sliding-out main {
  transform: translateX(-22%); opacity: 0.55;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.15, 1), opacity 0.6s ease;
}
html.slide-in main { animation: slide-settle 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes slide-settle {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1600px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px;
}
.site-footer .brandmark { font-size: 40px; }
.site-footer p { margin: 10px 0 0; font-style: italic; font-size: 16px; }
.site-footer .nav { flex-wrap: wrap; }
.site-footer small { flex-basis: 100%; font-size: 13px; color: var(--soft); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .site-header .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink-deep); border-bottom: 1px solid var(--line);
    padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 6px 14px;
  }
  .site-header.is-open .nav { display: flex; }
  .site-header .nav a { display: block; font-size: 20px; padding-block: 12px; border-bottom: 1px solid rgba(218,214,44,0.1); }
}
@media (prefers-reduced-motion: reduce) {
  .slot, .nav a { transition: none; }
}
