/* Jewelry Box — light by default, dark via [data-theme="dark"] */
:root {
  --bg: #fffcf7;
  --bg-alt: #fdf4e6;            /* logo cream */
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6e665c;
  --line: #efe3d1;
  --logo: #fccf95;              /* logo peach */
  --logo-hover: #f6bd72;
  --logo-ink: #1c1b19;          /* text on peach */
  --accent: #a8743a;            /* readable bronze for small accents */
  --accent-ink: #1c1b19;
  --wordmark: #1c1b19;
  --shadow: 0 10px 30px rgba(120, 82, 34, 0.10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1c1916;
  --surface: #221e1a;
  --ink: #fdf4e6;
  --muted: #b3a796;
  --line: #322c25;
  --accent: #fccf95;
  --wordmark: #fdf4e6;          /* logo cream, as in the original artwork */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* logo: exact shapes from the brand file, colored per theme */
.logo-mark, .logo-word {
  display: block; flex-shrink: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.logo-mark { -webkit-mask-image: url(/img/brand/mark-mask.png); mask-image: url(/img/brand/mark-mask.png); background: var(--logo); aspect-ratio: 792 / 821; }
.logo-word { -webkit-mask-image: url(/img/brand/wordmark-mask.png); mask-image: url(/img/brand/wordmark-mask.png); background: var(--wordmark); aspect-ratio: 2326 / 260; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--ink);
  font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--logo); border-color: var(--logo); color: var(--logo-ink); }
.btn-solid:hover { background: var(--logo-hover); border-color: var(--logo-hover); color: var(--logo-ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: .6rem 1rem; font-size: .72rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.actions.center { justify-content: center; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 20px; height: 20px; }

/* announcement + header */
.announce {
  background: var(--ink); color: var(--bg); text-align: center;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .55rem 1rem;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .logo-mark { height: 34px; }
.brand .logo-word { height: 15px; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: .25rem; }
.menu-btn { display: none; }
[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }

/* language menu */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .7rem;
  background: none; border: 0; border-radius: 20px; color: var(--ink); font: 500 .8rem var(--sans); cursor: pointer;
}
.lang-btn:hover { background: var(--bg-alt); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .4rem; z-index: 30;
}
.lang-list button {
  width: 100%; text-align: left; background: none; border: 0; border-radius: 3px; padding: .55rem .7rem;
  color: var(--ink); font: 400 .9rem var(--sans); cursor: pointer;
}
.lang-list button:hover { background: var(--bg-alt); }
.lang-list button[aria-checked="true"] { font-weight: 600; color: var(--accent); }
.lang-sep {
  border-top: 1px solid var(--line); margin: .35rem .3rem 0; padding: .6rem .4rem .3rem;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.hero { padding: clamp(4.5rem, 12vw, 9rem) 0; border-bottom: 1px solid var(--line); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .actions { justify-content: center; }

/* categories (text only) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
  min-height: 150px; padding: 1.8rem 1.8rem 1.6rem; background: var(--bg); text-decoration: none;
  transition: background-color .2s ease;
}
.cat-card::after {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: 0; height: 2px;
  background: var(--logo); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.cat-card:hover { background: var(--surface); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-name { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.1; }
.cat-view { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-view span { display: inline-block; transition: transform .2s ease; }
.cat-card:hover .cat-view { color: var(--ink); }
.cat-card:hover .cat-view span { transform: translateX(4px); }

/* hero logo */
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: 1.6rem; }
.hero-logo .logo-mark { height: clamp(110px, 16vw, 170px); }
.hero-logo .logo-word { width: min(520px, 78vw); }

/* call box + email note */
.call-box { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.call-box .btn { font-size: .85rem; padding: 1rem 1.6rem; }
.note-warn {
  margin-top: .5rem; padding-left: .7rem; border-left: 2px solid var(--accent); color: var(--muted); line-height: 1.45;
}

/* features / policies */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.feature { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.feature p { color: var(--muted); }

.custom-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.custom-band h2 { margin-bottom: .6rem; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.visit-info h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .4rem; font-weight: 600; }
.visit-info .btn { margin-top: 1.6rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.5rem; }
.hours dd { font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; color: var(--muted); margin-top: -.8rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9483a; }
.status.is-open::before { background: #3f8f5a; }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s;
}
.contact-card:hover { border-color: var(--ink); }
.contact-card strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; word-break: break-word; font-variant-numeric: lining-nums; }

/* shop */
.shop-head { padding-bottom: 2rem; }
.shop-head h1 { margin-bottom: 1.8rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab {
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  font-size: .8rem; color: var(--muted); transition: all .15s;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab.active { background: var(--logo); color: var(--logo-ink); border-color: var(--logo); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem 1.5rem; }
.product-img { aspect-ratio: 1; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; margin-bottom: 1rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product-img img { transform: scale(1.04); }
.product-img svg { width: 30%; height: 30%; color: var(--accent); stroke-width: 1.1; }
.product-body .eyebrow { margin-bottom: .3rem; }
.product h3 { font-size: 1.3rem; }
.price { font-weight: 500; margin: .5rem 0 .9rem; }
.empty { text-align: center; padding: 3rem 0; }
.empty h1, .empty h2 { margin-bottom: .8rem; }
.empty p { max-width: 32rem; margin-inline: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 6rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-end; }
.footer-word { height: 16px; margin-bottom: .6rem; }

/* chat */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-bubble {
  order: 2; display: flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem;
  background: var(--logo); color: var(--logo-ink); border: 0; border-radius: 999px;
  font: 500 .85rem var(--sans); cursor: pointer; box-shadow: var(--shadow);
}
.chat-bubble:hover { background: var(--logo-hover); }
.chat-bubble svg { width: 18px; height: 18px; }
.chat.is-open .chat-bubble span { display: none; }
.chat-panel {
  order: 1; width: min(370px, calc(100vw - 40px)); height: min(540px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg a { color: inherit; font-weight: 500; }
.msg-bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-user { background: var(--logo); color: var(--logo-ink); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.typing { color: var(--muted); letter-spacing: .2em; }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: 400 16px var(--sans); /* 16px+ stops iPhone auto-zoom */
}
.chat-form input:focus { outline: none; border-color: var(--ink); }
.chat-note { font-size: .7rem; text-align: center; padding: 0 .8rem .7rem; }

/* chat: hide button + side tab */
.chat-tuck {
  order: 3; position: absolute; right: -6px; bottom: 38px; width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer;
  box-shadow: var(--shadow);
}
.chat-tuck svg { width: 12px; height: 12px; }
.chat-tuck:hover { color: var(--ink); }
.chat.is-open .chat-tuck { display: none; }
.chat-tab {
  display: none; position: fixed; right: 0; bottom: 96px; width: 34px; height: 48px; place-items: center;
  border: 0; border-radius: 10px 0 0 10px; background: var(--logo); color: var(--logo-ink); cursor: pointer; box-shadow: var(--shadow);
}
.chat-tab svg { width: 18px; height: 18px; }
.chat.is-tucked .chat-bubble, .chat.is-tucked .chat-tuck, .chat.is-tucked .chat-panel { display: none; }
.chat.is-tucked .chat-tab { display: grid; }

/* phones: full-screen chat, icon-only button */
@media (max-width: 640px) {
  .chat { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chat-bubble { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-bubble span { display: none; }
  .chat-bubble svg { width: 22px; height: 22px; }
  .chat-tuck { bottom: 42px; right: -4px; }
  .chat.is-open .chat-bubble { display: none; }
  .chat-panel {
    position: fixed; inset: 0 0 auto 0; width: 100%; height: 100dvh; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; z-index: 60;
  }
  .chat-head { padding: calc(.8rem + env(safe-area-inset-top)) 1rem .8rem; }
  .chat-head .icon-btn { width: 44px; height: 44px; background: var(--bg-alt); }
  .msg { max-width: 88%; font-size: 1rem; }
  .chat-form { padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); }
  .chat-note { padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); }
}
html.chat-lock, html.chat-lock body { overflow: hidden; overscroll-behavior: none; }

/* responsive */
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .header-tools { margin-left: auto; }
  .lang-btn span { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 1.8rem; }
  .visit { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
