:root {
  /* Dark, worn-paper look taken from the CaliKlutch logo */
  --bg: #262521;
  --card: rgba(20, 19, 17, .55);
  --field: rgba(14, 13, 12, .6);
  --ink: #ece6da;
  --muted: #a39d92;
  --accent: #f3ecdf;
  --line: rgba(236, 230, 218, .14);
  --sale: #c8102e;
  --sale-ink: #ff5a6a;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* The Home Screen app on an iPhone can report a screen that stops short of the bottom; this
   stretches the page to the real bottom edge. */
html { min-height: calc(100% + env(safe-area-inset-top)); }
body {
  margin: 0;
  padding-top: env(safe-area-inset-top);  /* in the Home Screen app: start below the clock */
  background: var(--bg) url("texture.jpg") repeat;
  background-size: 512px 512px;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.site-header { text-align: center; padding: 48px 20px 28px; }
.site-header:has(.logo) { padding: 16px 20px 12px; }
.brand { font: 600 clamp(28px, 5vw, 42px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
/* The logo's own background fades out at the edges into the page texture */
.logo {
  display: block; margin: 0 auto; width: min(420px, 82vw); height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.compact .logo { width: min(240px, 56vw); }
.tagline { margin: 8px 0 0; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.contact { margin: 14px 0 0; color: var(--accent); font-weight: 600; }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); border-color: rgba(236, 230, 218, .3); }
.thumb { position: relative; aspect-ratio: 1; background: #1a1917; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.sale-badge, .sale-tag {
  background: var(--sale); color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 99px; line-height: 1;
}
.sale-badge { position: absolute; top: 10px; left: 10px; font-size: 12px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.sale-tag { display: inline-block; vertical-align: middle; font-size: 13px; padding: 6px 10px; margin-right: 6px; }
.price .was { color: var(--muted); font-weight: 500; margin-right: 4px; text-decoration-thickness: 2px; }
.price .now { color: var(--sale-ink); }
.info { padding: 14px 16px 18px; }
.info h2 { margin: 0; font: 600 18px/1.3 Georgia, serif; }
.type { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.price { margin: 8px 0 0; color: var(--accent); font-weight: 700; font-size: 18px; }
.posted { margin: 3px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.details .posted { font-size: 14px; margin-top: 6px; }
.stock { color: var(--accent); font-weight: 600; }
.stock.low { color: var(--sale-ink); }
.card { position: relative; }
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tags .sale-badge { position: static; }
.new-badge { display: inline-block; background: var(--accent); color: #1b1a17; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1; padding: 6px 10px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 1; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.fav[aria-pressed="true"] { color: var(--sale-ink); }
.fav-inline { position: static; float: right; margin: 0 0 6px 10px; background: var(--field); border: 1px solid var(--line); }
.item-id { margin: 3px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .03em; }
/* A note from the post ("Ship Tuesday"), and the badges for an item that's back or selling quickly. */
.note { display: inline-block; margin: 6px 0 0; padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.details .note { font-size: 14px; margin-top: 10px; }
.early-badge { background: #ffd27a; }
html:not(.vip) li.card.early { display: none; }  /* early access: VIP codes only, until its time */
.vip-strip { margin: 12px 0 0; padding: 10px 14px; border: 1px solid #ffd27a; border-radius: 10px; color: #ffd27a; font-size: 14px; font-weight: 600; background: rgba(255, 193, 7, .08); }
.vip-strip[hidden] { display: none; }
.fast-badge { background: #ffb347; }
.details .item-id { font-size: 14px; margin-top: 6px; }
.details .stock { margin: 8px 0 0; font-size: 15px; }
.day-head { grid-column: 1 / -1; margin: 14px 0 -8px; }
.day-head:first-child { margin-top: 0; }
.day-head h2 {
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font: 600 14px/1.3 Georgia, "Times New Roman", serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.maintenance { text-align: center; padding: 48px 12px 72px; }
.maintenance h1 { margin: 0 0 10px; font: 600 clamp(22px, 4vw, 30px)/1.25 Georgia, "Times New Roman", serif; letter-spacing: .03em; }
.maintenance p { margin: 0; color: var(--muted); font-size: 16px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

.back { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; margin-bottom: 18px; padding: 0 18px 0 10px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--field); color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.back svg { width: 18px; height: 18px; flex: none; }
.back:hover { border-color: rgba(236, 230, 218, .45); }
/* An item's page: a slim bar, back on the left and the logo small on the right, so the video is in view at once. */
.site-header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; text-align: left; }
.site-header.bar .back { margin: 0; }
.site-header.bar .logo { width: auto; height: 50px; margin: 0; }
.site-header.bar .brand { font-size: 20px; }
.item {
  display: grid; gap: 22px 36px; align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  grid-template-areas: "hero details" "photos details";
}
.item.no-video { grid-template-areas: "photos details"; }
.hero { grid-area: hero; position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero video { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #000; }
.sound {
  position: absolute; top: 12px; right: 12px;
  border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer;
  font: 600 14px/1 inherit; color: #fff; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
}
.details { grid-area: details; position: sticky; top: 20px; }
.photos { grid-area: photos; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo { display: block; border-radius: var(--radius); overflow: hidden; background: #1a1917; cursor: zoom-in; }
.photo img { width: 100%; height: auto; display: block; }
.photos .photo:only-child { grid-column: 1 / -1; }

.lightbox { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0,0,0,.94); }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; border-radius: 99px; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
html.standalone .lb-close { top: max(56px, calc(14px + env(safe-area-inset-top))); }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.details h1 { margin: 0; font: 600 clamp(26px, 4vw, 36px)/1.15 Georgia, serif; }
.details .type { font-size: 16px; margin-top: 8px; }
.details .price { font-size: 28px; margin-top: 16px; }
p.order { margin-top: 28px; padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }  /* the "how to order" line on an item's page (not the list's pop-up, which has this class too) */

.sheet { width: min(420px, calc(100vw - 32px)); margin: auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #1c1b18; color: var(--ink); }
.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet h2 { margin: 0 0 6px; font: 600 20px/1.25 Georgia, "Times New Roman", serif; }
.sheet h3 { margin: 16px 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet p { margin: 0; color: var(--muted); }
.sheet ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sheet .go, .sheet .ghost { width: 100%; height: 52px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 700;
  color: #1b1a17; background: var(--accent); touch-action: manipulation; }
.sheet .ghost { font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line); }
/* The "Add to Home Screen" guide: one step at a time. The slide (#1c1b18) is the picture's own background. */
.guide { width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 18px 18px 16px; }
.guide h2 { padding: 0 34px; text-align: center; font-size: 18px; }
.guide-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted);
  font: 400 28px/1 Arial, sans-serif; cursor: pointer; }
.guide-sub { text-align: center; font-size: 14px; }
.guide [data-for="android"] .go { margin-top: 18px; }
.slide { text-align: center; }
.slide[hidden] { display: none; }
.sheet .slide-count { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffd27a; }
.sheet .slide-say { display: grid; place-items: center; min-height: 2.6em; margin: 4px 0 8px; font-size: clamp(16px, 5.2vw, 20px); line-height: 1.3; color: var(--ink); }
.slide-say strong { color: #fff; }
.slide img { display: block; width: min(100%, max(170px, calc(100vh - 372px))); width: min(100%, max(170px, calc(100dvh - 372px))); height: auto; margin: 0 auto; cursor: pointer; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 12px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(236, 230, 218, .22); }
.dots i.on { background: #ffd27a; }
.slide-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.guide-more { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.guide-more summary { cursor: pointer; text-decoration: underline; list-style: none; }
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more p { margin-top: 10px; text-align: left; }
/* Contact (Signal, Telegram): buttons at the top (and on each item), round icons in the corner once those have scrolled away */
.contact-line { margin: 16px 0 0; display: inline-grid; gap: 10px; max-width: 100%; }  /* stacked, both as wide as the wider one */
.contact-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 20px 6px 8px; border-radius: 99px;
  color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: left; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.signal-btn { background: #3a76f0; }
.signal-btn:hover { background: #2f66d8; }
.telegram-btn { background: #229ed9; }
.telegram-btn:hover { background: #1b8bc2; }
.contact-icon { flex: none; display: block; width: 34px; height: 34px; }
.contact-btn .contact-icon circle:first-child { fill: none; }
.details .contact-line { margin-top: 22px; }
.contact-fabs { position: fixed; z-index: 50; right: calc(16px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .2s, transform .2s, visibility .2s; }
.contact-fabs.on { opacity: 1; visibility: visible; transform: none; }
.contact-fab { display: block; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .14); }
.contact-fab .contact-icon { width: 100%; height: 100%; }
/* The order list (site.order_list): + on the items, a button in the corner, the list itself.
   Only with <html class="listing">: live for everyone, or in admin mode while it's a preview. */
.add, .add-row, .list-fab, .toast { display: none; }
html.listing .fav { display: none; }
.card-add { display: none; }
html.listing .card-add { display: inline-flex; align-items: center; position: absolute; top: 8px; right: 8px; border-radius: 99px;
  background: rgba(0, 0, 0, .6); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
html.listing .card-add.in { background: var(--accent); color: #1b1a17; }
html.listing .card-add button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: none; color: inherit; font: 700 22px/1 Arial, sans-serif; touch-action: manipulation; }
.card-add button[hidden], .card-add output[hidden] { display: none !important; }
.card-add output { min-width: 18px; text-align: center; font-weight: 800; font-size: 16px; }
html.listing .add-row:not([hidden]) { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--field); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; color: var(--ink); font: 700 20px/1 Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.add-item { flex: 1; height: 46px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; color: #1b1a17; background: var(--accent); }
.add-row.in .add-item { background: none; color: var(--ink); border: 1px solid var(--line); }
html.listing .list-fab:not([hidden]) { display: grid; place-items: center; position: fixed; z-index: 50; right: calc(16px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer; background: var(--accent); color: #1b1a17; box-shadow: 0 6px 20px rgba(0, 0, 0, .55); }
.list-count { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--sale-ink); color: #fff;
  font: 700 13px/24px Arial, sans-serif; text-align: center; }
html.has-list .contact-fabs { bottom: calc(88px + env(safe-area-inset-bottom)); right: calc(18px + env(safe-area-inset-right)); }
html.listing .toast:not([hidden]) { display: block; position: fixed; z-index: 60; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 110px); padding: 10px 16px; border-radius: 99px; background: rgba(20, 19, 17, .95); border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.order { padding: 20px 18px 16px; }
.order h2 { padding-right: 40px; }
.order-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.order-row { padding: 12px 0; border-top: 1px solid var(--line); }
.order-line { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; }
.order-what { overflow-wrap: anywhere; }
.order-price { flex: none; }
.order-tools { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.order-tools .stepper button { width: 38px; height: 36px; }
.order-each { flex: 1; color: var(--muted); font-size: 14px; }
.order-row.gone .order-what { text-decoration: line-through; color: var(--muted); }
.sheet .order-empty { margin-top: 14px; }
.order-sum { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.order-sum div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.order-sum dd { margin: 0; }
.order-sum .order-total { margin-top: 4px; color: var(--ink); font-weight: 800; font-size: 19px; }
.order-sum .order-off { color: var(--accent); font-weight: 700; }
.order-sum div[hidden] { display: none; }
.sheet .order-hint { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.order-hint[hidden] { display: none; }
.sheet .order-hint p { margin: 0; color: var(--accent); font-size: 14px; text-align: center; }
.order-picks { list-style: none; margin: 0; padding: 0; }
.order-pick { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.order-pick img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; }
.order-pick-what { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.order-pick-what strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-pick-what span { color: var(--muted); font-size: 13px; }
.order-pick button { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--field); }
.order-send { display: grid; gap: 10px; margin-top: 16px; }
.order-send[hidden], .order-sum[hidden] { display: none; }
.order-send .contact-btn { justify-content: center; }
.order-send .ghost { height: 46px; font-size: 16px; }
.sheet .order-note { min-height: 1.4em; margin-top: 10px; color: var(--accent); font-size: 14px; text-align: center; }
.order > .link { display: block; margin: 6px auto 0; color: var(--muted); font-size: 14px; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 150px; }  /* room to scroll the last lines clear of the corner buttons */
.site-footer p { margin: 0 auto 12px; max-width: 640px; }
.legal-links a { color: var(--accent); text-decoration: underline; font-weight: 600; font-size: 14px; }
.legal-note { font-size: 12.5px; line-height: 1.55; }
.legal-note strong { color: var(--ink); }
/* Terms & Conditions and Lab Results pages */
.legal { max-width: 680px; margin: 0 auto; line-height: 1.6; }
.legal h1 { margin: 0 0 12px; font: 600 28px/1.2 Georgia, "Times New Roman", serif; }
.legal h2 { margin: 26px 0 6px; font: 600 19px/1.3 Georgia, "Times New Roman", serif; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 10px; }
.legal strong { color: var(--ink); }
.legal ul { margin: 0; padding-left: 22px; }
.legal hr { margin: 28px 0 16px; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .item, .item.no-video { grid-template-columns: 1fr; gap: 18px; grid-template-areas: "hero" "details" "photos"; }
  .item.no-video { grid-template-areas: "details" "photos"; }
  .details { position: static; }
  .hero { margin: 0 -20px; border-radius: 0; }
  .hero video { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px - env(safe-area-inset-top)); }  /* the whole video under the bar, nothing to scroll */
  .photos { grid-template-columns: 1fr; margin: 0 -20px; gap: 6px; }
  .photo { border-radius: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .info { padding: 10px 12px 14px; }
  .info h2 { font-size: 15px; }
  .price { font-size: 16px; }
}

/* Search, filter and sort bar */
.controls {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: grid; gap: 10px;
  grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(140px, 1fr));
  padding: 12px; margin: 0 -12px 6px;
  background: rgba(30, 29, 26, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.controls.three { grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)); }  /* with the Price menu */
/* In the app, once the bar has stuck under the clock, it reaches up behind it (so the list doesn't show through there). */
.controls.stuck::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: env(safe-area-inset-top, 0px); background: rgba(30, 29, 26, .96); }
.controls input, .controls select {
  width: 100%; height: 44px; padding: 0 12px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
.controls select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a39d92' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.controls input::placeholder { color: var(--muted); }
.controls input:focus, .controls select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
/* The event sale (Black Friday...): black and gold. */
:root { --gold: #e9c46a; --gold-hi: #fff1c2; --gold-lo: #b8862b; }
.event-banner { position: relative; overflow: hidden; margin: 4px 0 16px; padding: 22px 18px 20px; text-align: center; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #2b2414 0%, #0b0a08 62%) #0b0a08; border: 1px solid rgba(233, 196, 106, .55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 241, 194, .06); }
.event-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 241, 194, .16) 50%, transparent 60%); transform: translateX(-100%); animation: event-shine 5s ease-in-out infinite; }
@keyframes event-shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .event-banner::before { animation: none; } }
.event-banner p { position: relative; margin: 0; }
.event-kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.event-name { margin-top: 6px !important; font: 700 clamp(34px, 11vw, 54px)/1 Georgia, serif; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.event-deal { margin-top: 12px !important; color: #fff; font-size: 19px; }
.event-deal strong { color: var(--gold-hi); font-weight: 800; }
.event-more { margin-top: 4px !important; color: #b9b2a3; font-size: 13px; }
.event-clock { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 14px !important; padding: 8px 14px; border-radius: 99px;
  background: rgba(233, 196, 106, .1); border: 1px solid rgba(233, 196, 106, .3); color: #b9b2a3; font-size: 12px; }
.event-clock[hidden] { display: none; }
.event-clock span { margin-right: 4px; letter-spacing: .12em; text-transform: uppercase; }
.event-clock b { color: var(--gold-hi); font-size: 17px; font-variant-numeric: tabular-nums; }
.event-clock i { font-style: normal; margin-right: 5px; }
.event-badge { display: inline-block; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #17130a; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1; padding: 6px 10px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.event-tags .sale-tag { margin: 0; }
.event-tags .event-badge { font-size: 13px; }
.event-tags + .price { margin-top: 8px; }
/* On a card: a gold band under the photo, the event's name on the left and what comes off on the right. */
.event-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 0; padding: 7px 10px; line-height: 1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #17130a; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.event-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-bar b { flex: none; font-weight: 800; }
.swipe-info .event-bar { display: inline-flex; gap: 10px; padding: 6px 10px; border-radius: 99px; }
.event-price .now { color: var(--gold); }
.event-line { margin: 6px 0 0; color: var(--gold); font-size: 14px; font-weight: 600; }
.sheet .order-event { margin: 10px 0 0; color: var(--gold); font-size: 13px; text-align: center; }
.flash-strip { margin: 14px 0 0; }
.flash-strip[hidden] { display: none; }
.flash-strip button { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 15px; text-align: left;
  color: #fff; background: var(--sale); border: 0; }
.flash-strip strong { letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 16px; color: var(--muted); font-size: 14px; }
.result-bar #count { flex: 1; }
/* Swipe mode: a feed, one item per screen and filling it; swipe up for the next, sideways for its photos. */
.swipe-open { position: fixed; z-index: 45; left: calc(16px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .02em; color: #1b1a17; background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 0 0 2px rgba(0, 0, 0, .25); touch-action: manipulation; }
.swipe-open span { font-size: 13px; }
html.swiping .swipe-open { display: none; }
/* (the height is set to the real screen when it opens; these are for until then) */
.swipe { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 40; background: #000; color: #fff; overflow: hidden; }
.swipe[hidden] { display: none; }
/* While it's open nothing of the page underneath can show, whatever the phone says its screen is: the page is black and empty. */
html.swiping, html.swiping body { background: #000; overflow: hidden; }
html.swiping body > :not(.swipe):not(.list-fab):not(.toast):not(dialog) { visibility: hidden; }
html.swiping .contact-fabs { display: none; }
html.locked .swipe, html.age .swipe { display: none; }
.swipe-track { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.swipe-track::-webkit-scrollbar, .swipe-media::-webkit-scrollbar { display: none; }
.swipe-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.swipe-media { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.swipe-pane { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.swipe-pane video, .swipe-pane img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; background: #000; }
.swipe-pane .whole { object-fit: contain; }  /* a wide picture or video is shown whole */
.swipe-dots { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.swipe-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .42); transition: transform .15s, background .15s; }
.swipe-dots i.on { background: #fff; transform: scale(1.25); }
.swipe-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 88px calc(36px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, 0) 100%); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.swipe-info .tags { position: static; margin-bottom: 8px; text-shadow: none; }
.swipe-info h2 { margin: 0; font: 600 22px/1.2 Georgia, "Times New Roman", serif; }
.swipe-info .type, .swipe-info .posted { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .86); }
.swipe-info .note { text-shadow: none; color: #fff; border-color: rgba(255, 255, 255, .5); }
.swipe-info .price { margin: 8px 0 0; font-size: 24px; font-weight: 800; }
.swipe-info .stock { color: #fff; }
/* Our buttons, down the right-hand side (the list button sits under them). */
.swipe-rail { position: absolute; right: calc(10px + env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 14px; justify-items: center; }
.rail-btn { position: relative; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; text-decoration: none; touch-action: manipulation; }
.rail-btn[hidden] { display: none; }
.rail-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .28);
  font: 700 24px/1 Arial, sans-serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rail-more .rail-icon { font: italic 700 22px/1 Georgia, "Times New Roman", serif; }
.rail-sound .rail-icon { font-size: 20px; }
.rail-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.rail-add.on .rail-icon { background: var(--accent); color: #1b1a17; border-color: var(--accent); }
.rail-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--sale-ink); color: #fff; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center; }
.rail-n[hidden] { display: none; }
.swipe-x, .swipe-count { position: absolute; top: calc(12px + env(safe-area-inset-top)); margin: 0; color: #fff; }
html.standalone .swipe-x, html.standalone .swipe-count { top: max(56px, calc(12px + env(safe-area-inset-top))); }  /* in the app: clear of the clock */
.swipe-x { right: calc(12px + env(safe-area-inset-right)); width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; font-size: 28px; line-height: 1; background: rgba(0, 0, 0, .45); color: #fff; }
.swipe-count { left: calc(14px + env(safe-area-inset-left)); padding: 9px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .4); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

@media (max-width: 760px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .controls input[type="search"] { grid-column: 1 / -1; }
  .controls.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .controls.three select { padding-left: 10px; padding-right: 26px; font-size: 15px; background-position: right 9px center; }
}

/* Access code screen (site.pin in config.yaml) */
html.locked body > :not(.gate) { display: none !important; }
html.locked body, html.age body { overflow: hidden; }
/* Age check (site.age_gate): comes first, before the access code screen */
html.age body > :not(.age-gate) { display: none !important; }
html:not(.age) .age-gate { display: none; }
.age-gate .logo { width: min(240px, 56vw); }
.age-gate h1 { margin-top: 2px; }
.age-say { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.age-say strong { color: var(--ink); }
.age-buttons { display: grid; gap: 12px; margin-top: 24px; }
.age-buttons[hidden] { display: none; }
.age-buttons button { min-height: 54px; padding: 8px 14px; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; touch-action: manipulation; }
.age-yes { border: 0; color: #1b1a17; background: var(--accent); }
.age-no { color: var(--muted); background: none; border: 1px solid var(--line); }
.age-small { margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.age-small a { color: var(--accent); text-decoration: underline; }
.gate {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg) url("texture.jpg") repeat; background-size: 512px 512px;
  transition: opacity .35s ease;
}
.gate.opening { opacity: 0; }
.gate-box { width: min(380px, 100%); text-align: center; }
.gate .logo { width: min(300px, 70vw); margin-bottom: 8px; }
.gate .brand { margin: 0 0 12px; }
.gate h1 { margin: 6px 0 4px; font: 600 26px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.gate-sub { margin: 0 0 22px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.pin { position: relative; display: block; width: max-content; margin: 0 auto; cursor: text; }
.pin-boxes { display: flex; gap: 12px; }
.pin-boxes span {
  width: 58px; height: 68px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color .15s, transform .15s;
}
.pin-boxes span.filled::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.pin:focus-within .pin-boxes span.active { border-color: var(--accent); }
.pin:focus-within .pin-boxes span.active { transform: translateY(-2px); }
/* The real input sits invisibly on top of the boxes, so the phone keypad opens on tap */
.pin input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent;
}
.gate.blocked .pin { opacity: .35; cursor: not-allowed; }
.gate-ask { margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.gate .contact-line { margin-top: 10px; }
.gate-error { white-space: pre-line; min-height: 1.5em; margin: 16px 0 0; color: var(--sale-ink); font-weight: 600; }
.shake { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
@media (max-width: 400px) { .pin-boxes span { width: 52px; height: 62px; } .pin-boxes { gap: 10px; } }

/* Lexi Bud: black knit, white script, a red outline (the look of its logo). Added after
   static/style.css, so anything here counts over it. */
:root {
  --bg: #0b0b0b;
  --card: rgba(18, 18, 18, .78);
  --field: rgba(0, 0, 0, .62);
  --ink: #f6f6f6;
  --muted: #a6a6a6;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, .14);
  --sale: #d81e2c;
  --sale-ink: #ff5d68;
  --red: #d81e2c;
}
.card { border-color: rgba(216, 30, 44, .34); }
.card:hover { border-color: var(--red); box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(216, 30, 44, .5); }
.thumb { background: #101010; }
.site-header:has(.logo) { border-bottom: 2px solid var(--red); margin-bottom: 18px; }
.site-header.bar { border-bottom: 2px solid var(--red); }
.gate-box, .panel { border-color: rgba(216, 30, 44, .34); }
.price .now, .tile strong { color: #fff; }
