/*
 * theme.css — Ember & Oak Coffee.
 *
 * Direction: a neighbourhood roastery's own printed matter — the lot card
 * tied to a bag, a chalk-free menu board with dotted leaders. Pale stone
 * ground like a glazed cup, espresso-brown ink, and one colour borrowed from
 * the coffee cherry itself. Dark mode is the roast room: deep brown, the
 * cherry lifted to a soft rose so it still reads.
 *
 * Type: Bricolage Grotesque for display (big, tight, a little odd), Instrument
 * Sans for reading, DM Mono for the numbers baristas care about — grams,
 * seconds, degrees, masl.
 */

:root {
  --canvas: #edeee8;
  --surface: #f8f8f4;
  --surface-2: #e2e4dc;
  --border: #cdd0c5;
  --border-strong: #9ea295;
  --ink: #231c18;
  --muted: #5d5650;
  --accent: #8e1f2f;
  --accent-hover: #761827;
  --accent-ink: #fff7f2;
  --accent-text: #8e1f2f;
  --accent-strong: #6e1522;
  --accent-soft: #f1dadb;
  --accent-border: #d9a9ae;
  --success: #2f6b3a;
  --success-ink: #ffffff;
  --success-soft: #dce8da;
  --success-strong: #24562e;
  --warning: #9a5b0a;
  --warning-ink: #ffffff;
  --warning-soft: #f3e5d0;
  --warning-strong: #7a4708;
  --danger: #a3262a;
  --danger-ink: #ffffff;
  --danger-soft: #f4dcdb;
  --danger-strong: #8a1f23;
  --chart-1: #8e1f2f;
  --chart-2: #3f6b4e;
  --chart-3: #b7741c;
  --chart-4: #4a5d85;
  --chart-5: #7a5c45;
  --chart-6: #9a8f3a;

  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --eyebrow-tracking: 0.12em;

  --radius-btn: 999px;
  --radius-card: 1.25rem;
  --radius-input: 0.75rem;
  --border-w: 1px;
  --shadow-card: none;
  --shadow-btn: none;
  --card-pad: 1.75rem;
  --btn-weight: 600;
  --measure: 64ch;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #17130f;
  --surface: #211b16;
  --surface-2: #2b241e;
  --border: #3a312a;
  --border-strong: #5e5248;
  --ink: #ede6dd;
  --muted: #b0a498;
  --accent: #e58a8f;
  --accent-hover: #ec9da1;
  --accent-ink: #2a0d12;
  --accent-text: #ee9aa0;
  --accent-strong: #f4b7bb;
  --accent-soft: #3a1a1f;
  --accent-border: #6b2e36;
  --success: #3e8e4f;
  --success-ink: #ffffff;
  --success-soft: #1c2b1e;
  --success-strong: #8fcb98;
  --warning: #b7741c;
  --warning-ink: #ffffff;
  --warning-soft: #33251a;
  --warning-strong: #e2b072;
  --danger: #c2423f;
  --danger-ink: #ffffff;
  --danger-soft: #3a1c1b;
  --danger-strong: #f0a19d;
  --chart-1: #e58a8f;
  --chart-2: #7db592;
  --chart-3: #e2b072;
  --chart-4: #8fa3cf;
  --chart-5: #c4a285;
  --chart-6: #cfc27a;
}

/*
 * app.css — this app's own pieces, for two sites that share one theme:
 *
 *   1. Ember & Oak Coffee (/): the wordmark, the hero type, the lot card tied
 *      to a bag, the roast week, the menu board's dotted leaders, the roast
 *      meter, opening hours and the street map.
 *   2. Still Hour Candle Co. (/candles): a quieter, gallery-like shop. Ink
 *      buttons instead of the coffee red, a Bodoni display face, and each
 *      scent family tinted from the chart tokens.
 *
 * Tokens only.
 */

body { font-family: var(--font-body); }

/* ---- Wordmark and bar ------------------------------------------------- */
.wordmark { color: var(--ink); text-decoration: none; }
.wordmark-mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.wordmark-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem;
  letter-spacing: -0.02em; line-height: 1;
}
.wordmark-sub {
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1;
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--muted);
}
.nav-link {
  color: var(--muted); font-weight: 500; font-size: 0.9375rem;
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mobile-nav {
  display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none;
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.mobile-nav::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .mobile-nav { display: none; } }

/* ---- Hero ------------------------------------------------------------- */
.status-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; flex-shrink: 0;
  background: var(--border-strong);
}
.status-dot.is-open {
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
}
.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(2.75rem, 7.4vw, 6rem); line-height: 0.94;
  font-variation-settings: "opsz" 96;
}
.hero-title-second { color: var(--accent-text); }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 34rem; }

/* ---- The lot card: a paper tag tied to the bag ------------------------ */
.lot-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, var(--ink) 3%, transparent) 0 1px,
    transparent 1px 7px
  );
}
.lot-card::before {
  /* the punched hole the string goes through */
  content: ""; position: absolute; top: 1rem; left: 50%;
  width: 0.875rem; height: 0.875rem; transform: translateX(-50%);
  border-radius: 999px; background: var(--canvas); border: 1px solid var(--border-strong);
}
@media (min-width: 64rem) { .lot-card { transform: rotate(1.5deg); } }
.lot-head {
  /* both labels sit left, so the stamp in the top-right corner covers neither */
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: 0.25rem;
  padding-top: 1.5rem; padding-right: 5rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--muted);
}
.lot-name {
  margin-top: 1.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem;
  letter-spacing: -0.03em; line-height: 1;
}
.lot-origin { margin-top: 0.5rem; color: var(--muted); }
.lot-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--border-strong);
}
.lot-specs dt, .coffee-specs dt, .lot-recipe .k {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--muted);
}
.lot-specs dd { margin-top: 0.125rem; font-weight: 500; }
.lot-notes {
  margin-top: 1.25rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3;
}
.lot-recipe {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem; border: 1px solid var(--border-strong); border-radius: 0.75rem; overflow: hidden;
}
.lot-recipe > div { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; min-width: 0; }
.lot-recipe > div + div { border-left: 1px solid var(--border-strong); }
.lot-recipe .v {
  font-family: var(--font-mono); font-weight: 500; font-size: 1.0625rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lot-stamp {
  position: absolute; top: -1.5rem; right: -0.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 6rem; height: 6rem; border-radius: 999px; transform: rotate(-12deg);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0.3rem var(--canvas);
  font-family: var(--font-mono); font-size: 0.625rem; line-height: 1.25;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}
.lot-stamp b {
  font-family: var(--font-display); font-weight: 800; font-size: 2.25rem;
  letter-spacing: -0.03em; line-height: 1;
}
@media (max-width: 30rem) {
  .lot-card { padding: 1.25rem; }
  .lot-head { padding-right: 4rem; }
  .lot-name { font-size: 2rem; padding-right: 4.5rem; }
  .lot-stamp { width: 5rem; height: 5rem; top: -1rem; right: -0.25rem; }
  .lot-stamp b { font-size: 1.75rem; }
  .lot-recipe > div { padding: 0.625rem 0.5rem; }
  .lot-recipe .v { font-size: 0.9375rem; }
}

/* ---- Section heads ---------------------------------------------------- */
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; line-height: 1;
}
.section-lede { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 38rem; }
.next-roast {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent-text);
}

/* ---- Roast week ------------------------------------------------------- */
.week { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.week-day {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem;
  padding: 1rem 0.75rem; border-bottom: 1px solid var(--border);
}
.week-day .d {
  grid-row: span 2; padding-top: 0.25rem;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted);
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase;
}
.week-day .t { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.week-day .x { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.week-day.is-today { background: var(--accent-soft); border-radius: 0.75rem; border-bottom-color: transparent; }
.week-day.is-today .d, .week-day.is-today .t, .week-day.is-today .x { color: var(--accent-strong); }
@media (min-width: 64rem) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 0; }
  .week-day {
    grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; align-content: start;
    padding: 1.25rem 1rem 1.5rem; border-bottom: 0; border-top: 3px solid var(--border);
  }
  .week-day .d { grid-row: auto; padding-top: 0; }
  .week-day.is-today { border-radius: 0 0 0.75rem 0.75rem; border-top-color: var(--accent); }
}

/* ---- Menu board ------------------------------------------------------- */
.menu-col-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.625rem;
  letter-spacing: -0.02em; line-height: 1.1;
}
.menu-row { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-row .n { font-weight: 600; font-size: 1.0625rem; }
.menu-row .fill {
  flex: 1 1 auto; min-width: 1rem;
  border-bottom: 2px dotted var(--border-strong); transform: translateY(-0.3rem);
}
.menu-row .p { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.menu-spec { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); }

/* ---- Coffee cards ----------------------------------------------------- */
.coffee-card { display: flex; flex-direction: column; gap: 1.25rem; }
.coffee-card > * + * { margin-top: 0; }
.coffee-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.875rem;
  letter-spacing: -0.025em; line-height: 1.05;
}
.coffee-notes { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.coffee-specs { display: flex; flex-direction: column; border-top: 1px dashed var(--border-strong); }
.coffee-specs > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px dashed var(--border-strong);
}
.coffee-specs dd { font-size: 0.9375rem; font-weight: 500; text-align: right; }
.roast-meter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.roast-meter span {
  height: 0.5rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.roast-meter span.on { background: var(--accent); border-color: var(--accent); }
.coffee-price { margin-top: auto; padding-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }
.coffee-price span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.hold-alert { margin-top: 1.5rem; }
#hold-result:empty { display: none; }

/* ---- Visit ------------------------------------------------------------ */
.hours { border-top: 1px solid var(--border-strong); max-width: 30rem; }
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.625rem 0; border-bottom: 1px solid var(--border-strong);
  font-variant-numeric: tabular-nums;
}
.hours-row dd { font-family: var(--font-mono); font-size: 0.9375rem; }
.hours-row.is-today { color: var(--accent-text); font-weight: 600; }

.map-frame {
  overflow: hidden; border: 1px solid var(--border-strong);
  border-radius: var(--radius-card); max-width: 100%;
}
.map { display: block; width: 100%; height: auto; }
.map-ground { fill: var(--surface); }
.map-park { fill: color-mix(in srgb, var(--success) 16%, var(--surface)); }
.map-street { fill: none; stroke: var(--surface-2); stroke-width: 20; }
.map-street-minor { stroke-width: 9; }
.map-label {
  fill: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
}
.map-label-park { fill: var(--success-strong); }
.map-pin-ring { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.map-pin-core { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.map-pin-label { fill: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 15px; }


/* ======================================================================
   STILL HOUR CANDLE CO. (/candles)
   ====================================================================== */

.candle-site { font-family: "Hanken Grotesk", var(--font-body); }
.c-display {
  font-family: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  font-weight: 400; letter-spacing: -0.015em; font-optical-sizing: auto;
}
.c-title { font-size: clamp(2.75rem, 6.5vw, 5.25rem); line-height: 1.02; }
.c-title-product { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; }
.c-h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.08; }
.c-lede { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 32rem; }
.c-meta {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.c-subhead {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
}
.c-link {
  width: fit-content; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.c-link:hover { text-decoration-thickness: 2px; }
.c-back { width: fit-content; color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.c-back:hover { color: var(--ink); text-decoration: none; }

/* Ink buttons and focus, so the shop doesn't wear the coffee red. */
.candle-site .btn:not(.btn-secondary):not(.btn-outline):not(.btn-ghost):not(.btn-destructive):not(.btn-danger):not(.btn-link) {
  background: var(--ink); border-color: var(--ink); color: var(--canvas);
}
.candle-site .btn:not(.btn-secondary):not(.btn-outline):not(.btn-ghost):not(.btn-destructive):not(.btn-danger):not(.btn-link):hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--canvas));
  border-color: color-mix(in srgb, var(--ink) 82%, var(--canvas));
}
.candle-site .input:focus { border-color: var(--ink); }
.candle-site a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* ---- Bar and footer --------------------------------------------------- */
.c-header { border-bottom: 1px solid var(--border); }
.c-footer { border-top: 1px solid var(--border); }
.c-wordmark {
  display: inline-flex; align-items: baseline; gap: 0.625rem; width: fit-content;
  color: var(--ink); text-decoration: none;
}
.c-wordmark:hover { text-decoration: none; }
.c-wordmark-name {
  font-family: "Bodoni Moda", Didot, Georgia, serif; font-style: italic;
  font-size: 1.625rem; line-height: 1; letter-spacing: -0.01em;
}
.c-wordmark-sub {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.c-nav { color: var(--muted); font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.c-nav:hover { color: var(--ink); text-decoration: none; }
.c-mobile-nav {
  display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none;
  padding-block: 0.75rem; border-top: 1px solid var(--border);
}
.c-mobile-nav::-webkit-scrollbar { display: none; }
@media (min-width: 40rem) { .c-mobile-nav { display: none; } }

/* ---- Catalogue intro -------------------------------------------------- */
.c-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.c-facts > div { display: flex; flex-direction: column; gap: 0.375rem; padding-right: 1rem; min-width: 0; }
.c-facts dt {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.c-facts dd { font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 1.375rem; line-height: 1.2; }
@media (min-width: 48rem) { .c-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Family filter ---------------------------------------------------- */
.c-chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.c-chips::-webkit-scrollbar { display: none; }
@media (min-width: 40rem) { .c-chips { flex-wrap: wrap; overflow: visible; } }
.c-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  height: 2.375rem; padding-inline: 1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.c-chip:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.c-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.c-chip .count { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.75; }
.c-family-note { max-width: 40rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---- Product grid and cards ------------------------------------------ */
.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
@media (min-width: 64rem) { .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2rem; } }

/* the scent family's colour, drawn from the chart tokens */
.tint-floral { --tint: var(--chart-1); }
.tint-woody { --tint: var(--chart-5); }
.tint-citrus { --tint: var(--chart-3); }
.tint-fresh { --tint: var(--chart-4); }
.tint-gourmand { --tint: var(--chart-6); }
.tint-herbal { --tint: var(--chart-2); }

.cc { display: flex; flex-direction: column; gap: 1rem; min-width: 0; color: var(--ink); text-decoration: none; }
.cc:hover { text-decoration: none; }
.cc-media, .cd-media, .c-admin-thumb, .c-admin-mini {
  position: relative; display: block; overflow: hidden; max-width: 100%;
  background: color-mix(in srgb, var(--tint, var(--muted)) 13%, var(--surface));
  container-type: inline-size;
}
.cc-media { aspect-ratio: 4 / 5; border-radius: 0.375rem; }
.cc-media > img, .cd-media > img, .c-admin-thumb > img, .c-admin-mini > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out, ease);
}
.cc:hover .cc-media > img, .cc:hover .cv { transform: scale(1.035); }
.cc-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.3rem 0.625rem; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.cc-badge.is-out { background: var(--ink); color: var(--canvas); }
.cc-name {
  min-width: 0; font-family: "Bodoni Moda", Didot, Georgia, serif;
  font-size: clamp(1.125rem, 2vw, 1.4375rem); line-height: 1.2;
}
.cc-price { font-family: var(--font-mono); font-size: 0.9375rem; white-space: nowrap; }
.cc-notes { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* ---- The drawn candle (shown when a product has no photo) ------------- */
.cv {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 15%;
  transition: transform 600ms var(--ease-out, ease);
}
.cv::before {
  /* the glow around the flame */
  content: ""; position: absolute; left: 50%; top: 18%;
  width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--chart-3) 26%, transparent) 0%, transparent 62%);
}
.cv-flame {
  position: relative; width: 7%; aspect-ratio: 1 / 1.9;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, var(--surface) 0 16%, color-mix(in srgb, var(--chart-3) 70%, var(--surface)) 42%, var(--chart-3) 100%);
  transform-origin: 50% 90%;
  animation: candle-flicker 3.4s ease-in-out infinite;
}
html[data-theme="dark"] .cv-flame {
  background: radial-gradient(ellipse at 50% 72%, var(--ink) 0 16%, color-mix(in srgb, var(--chart-3) 70%, var(--ink)) 42%, var(--chart-3) 100%);
}
.cv-wick { position: relative; width: 0.8%; min-width: 2px; height: 3%; background: var(--ink); }
.cv-vessel {
  position: relative; width: 46%; aspect-ratio: 1 / 1.08;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 0.5rem 0.5rem 0.875rem 0.875rem;
  background: color-mix(in srgb, var(--tint, var(--muted)) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint, var(--muted)) 40%, var(--border));
}
.cv-wax {
  position: absolute; top: 0; left: 0; right: 0; height: 12%;
  background: color-mix(in srgb, var(--tint, var(--muted)) 8%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--tint, var(--muted)) 30%, var(--border));
}
.cv-label {
  max-width: 80%; padding: 0.4em 0.7em; border-radius: 2px;
  background: var(--surface); color: var(--ink);
  font-family: "Bodoni Moda", Didot, Georgia, serif; font-style: italic;
  font-size: clamp(0.6875rem, 5.2cqi, 1.5rem); line-height: 1.15; text-align: center;
}
.cv.is-amber .cv-vessel {
  background: color-mix(in srgb, var(--chart-5) 55%, var(--surface));
  border-color: color-mix(in srgb, var(--chart-5) 70%, var(--border));
}
.cv.is-ceramic .cv-vessel {
  aspect-ratio: 1.15 / 1; width: 50%;
  border-radius: 1.25rem 1.25rem 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--tint, var(--muted)) 42%, var(--surface));
}
.cv.is-tin .cv-vessel {
  aspect-ratio: 1.7 / 1; width: 54%; border-radius: 0.375rem;
  background: color-mix(in srgb, var(--muted) 30%, var(--surface));
}
@keyframes candle-flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  35% { transform: scale(1.05, 0.96) rotate(1.5deg); }
  65% { transform: scale(0.97, 1.04) rotate(-0.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cv-flame { animation: none; }
  .cc-media > img, .cv { transition: none; }
}

/* ---- Product page ----------------------------------------------------- */
.cd-media { aspect-ratio: 4 / 5; border-radius: 0.5rem; }
@media (min-width: 64rem) { .cd-media { position: sticky; top: 2rem; } }
.cd-price { font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 2rem; line-height: 1; }
.cd-description { max-width: 36rem; font-size: 1.0625rem; line-height: 1.7; }
.cd-notes { border-bottom: 1px solid var(--border); }
.cd-notes > div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem;
  padding-block: 0.875rem; border-top: 1px solid var(--border);
}
.cd-notes dt { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.cd-notes dd { font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 1.1875rem; line-height: 1.35; }
.cd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 1px solid var(--border); }
.cd-specs > div {
  display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
  padding-block: 0.875rem; border-bottom: 1px solid var(--border);
}
.cd-specs dt {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.cd-specs dd { font-weight: 500; }

/* ---- Scent guide and care -------------------------------------------- */
.c-band { background: var(--surface); border-block: 1px solid var(--border); }
.c-layers { border-bottom: 1px solid var(--border); }
.c-layers > div {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem;
  padding-block: 0.875rem; border-top: 1px solid var(--border);
}
.c-layers dt { font-family: "Bodoni Moda", Didot, Georgia, serif; font-style: italic; font-size: 1.25rem; line-height: 1.3; }
.c-layers dd { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.c-families { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2rem; border-top: 1px solid var(--border); }
@media (min-width: 40rem) { .c-families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.c-families li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-block: 1.25rem; border-bottom: 1px solid var(--border);
}
.c-swatch {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 32%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint) 50%, var(--border));
}
.c-family-name {
  width: fit-content; color: var(--ink); text-decoration: none;
  font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 1.375rem; line-height: 1.2;
}
.c-family-name:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.c-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 2rem; }
@media (min-width: 48rem) { .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .c-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.c-steps li { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.c-step-n { font-family: "Bodoni Moda", Didot, Georgia, serif; font-style: italic; font-size: 2.5rem; line-height: 1; }
.c-steps h3 { font-size: 1.0625rem; font-weight: 600; }
.c-steps p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---- Studio (admin) --------------------------------------------------- */
.c-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.c-fieldset > legend {
  margin-bottom: 1.25rem; padding: 0;
  font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 1.5rem; line-height: 1.2;
}
.c-fieldset > .hint { margin-bottom: 1rem; }
.c-file { height: auto; padding-block: 0.5rem; }
.c-admin-thumb { aspect-ratio: 4 / 5; width: 100%; max-width: 12rem; border-radius: 0.5rem; }
.c-admin-mini { flex-shrink: 0; width: 2.75rem; height: 3.25rem; border-radius: 0.375rem; }
.c-admin-mini .cv-label, .c-admin-mini .cv::before { display: none; }
.c-admin-mini .cv { padding-bottom: 10%; }
.c-admin-mini .cv-vessel { width: 60%; }
.c-admin-mini .cv-flame { width: 10%; }
.c-delete:hover { color: var(--danger-strong); background: var(--danger-soft); }
