
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0908;
  --ink-soft: #14110f;
  --surface: #1a1614;
  --surface-2: #211c19;
  --bone: #e8e2d4;
  --bone-dim: #a89f8f;
  --blood: #7a1f1f;
  --blood-bright: #9c2c2c;
  --candle: #c9a04e;
  --candle-soft: #e0c180;
  --violet: #4a4456;
  --line: rgba(232,226,212,0.1);
  --display: 'Cormorant Garamond', serif;
  --display-sc: 'Cormorant SC', serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Images read as images, not selectable text: no caret, no highlight, no drag ghost. */
img {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
/* An image inside a link or interactive control keeps the pointer affordance.
   Descendant selector (0,0,2) outranks the base img rule (0,0,1), so this wins by
   specificity regardless of source order. */
a img,
button img,
label img,
[role="button"] img {
  cursor: pointer;
}

/* ── TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(122,31,31,0.04) 0%, transparent 50%),
                     radial-gradient(circle at 80% 70%, rgba(74,68,86,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(to bottom, rgba(10,9,8,0.95), transparent);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10,9,8,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-logo {
  font-family: var(--display-sc);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bone);
}
.nav-logo span { color: var(--blood-bright); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--candle-soft); }
.nav-cta {
  border: 1px solid var(--blood);
  padding: 0.55rem 1.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--blood); border-color: var(--blood); }
.nav-toggle { display: none; }
/* Order Online: hidden on the desktop bar; the show-rule lives in the <=860px block below */
.nav-order-online { display: none; }

@media (max-width: 860px) {
  /* gap is the structural guard: the lockup slot (flex:1 1 auto) otherwise runs flush to
     the CTA's left edge, so the only thing keeping them apart is incidental slack from
     centring. A nowrap lockup wider than its slot overflows SYMMETRICALLY and lands on the
     button - which is what real-device metrics / Chrome text-scaling can produce even where
     headless measures clear. gap reserves that separation unconditionally, and also feeds
     the CTA->toggle spacing that .nav-toggle used to set with its own margin-left. */
  .nav { padding: 1.1rem 1.25rem; gap: 0.55rem; }
  .nav-links { display: none; }
  /* keep logo + CTA each on ONE line at narrow widths (was wrapping to 2 lines → ballooned bar) */
  /* Lockup sizing is px on BOTH clamp bounds, not rem. Android's font-scaling setting
     inflates the root em, so a rem bound scales with it and eats the slot - which is what
     left the lockup flush to the CTA on device at ~412px where headless measured clear.
     The MIN has to be px too: clamp() lets a min larger than the max win outright, so an
     inflated 0.85rem floor would have overridden a px ceiling and defeated the cap.
     15px + 0.02em tracking leaves 16px of visible slack on each side of "BLACK HOUSE"
     inside the 135px slot at 360px (see the commit message for the arithmetic). */
  .nav-logo { white-space: nowrap; font-size: clamp(13.6px, calc(8vw - 11.2px), 15px); letter-spacing: 0.02em;
    min-width: 0; line-height: 1.05; flex: 1 1 auto; text-align: center; } /* two-line lockup; E-revision: fill the slot (flex-grow resolves before the CTA's auto-margin) and center both lines in it */
  .nav-logo span { display: block; } /* CAFÉ stacks to line 2 on mobile (keeps its red from the base rule); desktop stays one line */
  .nav-cta { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: 0.68rem;
    padding: 0.85rem 0.65rem; }                    /* protected item (flex-shrink:0); shorter side padding, taller vert padding keeps tap height ≥44px */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; line-height: 1;
    font-size: 1.4rem; color: var(--bone); cursor: pointer; background: none; border: none;
    padding: 0 0.3rem; position: relative; z-index: 600; } /* protected item (flex-shrink:0), 44px tap target; rides right of the CTA, above the drawer so it stays tappable. Its old margin-left is gone — .nav's gap now owns that spacing */
  /* Drawer: the SAME .nav-links (#nav-links), re-displayed as a full-screen overlay when
     chat-widget.js sets .nav-open on #nav. z-index 500 sits between the nav (100) and the chat
     widget (999); the toggle (600) stays tappable above it. Mobile-only — desktop is untouched. */
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.25rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh; height: 100dvh;   /* viewport-pinned height, NOT bottom:0 — immune to the scrolled-nav backdrop-filter containing-block trap */
    z-index: 500;
    padding: 5.5rem 2rem 2rem;       /* top padding clears the fixed bar so links start below the toggle */
    overflow-y: auto;
    background: rgba(10,9,8,0.97);
    backdrop-filter: blur(10px);
  }
  .nav-open .nav-links a { font-size: 1.15rem; }  /* larger drawer tap targets */
  /* Order Online reappears only while the hamburger overlay is actually <=860px */
  .nav-open .nav-order-online { display: list-item; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-home.webp');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.38) saturate(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.25) 35%, rgba(10,9,8,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-family: var(--display-sc);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--candle-soft);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--blood-bright); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--bone-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-grid .btn-secondary { width: 100%; }
.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  background: var(--blood);
  color: var(--bone);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 1px solid var(--blood);
}
.btn-primary:hover { background: var(--blood-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(122,31,31,0.4); }
.btn-secondary {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  background: transparent;
  color: var(--bone);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(232,226,212,0.3);
  transition: all 0.25s;
}
.btn-secondary:hover { border-color: var(--candle-soft); color: var(--candle-soft); }
.btn-lg { padding: 1.2rem 3rem; font-size: 0.95rem; }
.cta-center { text-align: center; margin-top: 1rem; }
.cta-center--band { margin-top: 0; margin-bottom: 7rem; }  /* stands alone in its own band: mirrors .section padding-top above and below */

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone-dim);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: floaty 2.4s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--candle-soft), transparent);
}
@keyframes floaty { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── SECTION SHARED ── */
.section {
  position: relative;
  z-index: 2;
  padding: 7rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--display-sc);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--blood-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.section-eyebrow::before { content: '✦'; font-size: 0.7rem; }
.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--bone);
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1.02rem;
  color: var(--bone-dim);
  max-width: 620px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .section { padding: 5rem 1.5rem; }
  .cta-center--band { margin-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1fr; max-width: 360px; }
  .hero { box-sizing: border-box; align-items: flex-start; padding-top: 6rem; padding-bottom: 5rem; }
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.about-images {
  position: relative;
  height: 480px;
}
.about-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 78%;
  height: 380px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-img-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 55%;
  height: 240px;
  object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-images { height: 340px; margin-top: 1rem; }
  .about-img-main { left: auto; right: 0; width: 88%; height: 300px; }
  .about-img-accent { right: auto; left: 0; width: 42%; height: 160px; }
}

/* ── PRESS ── */
.press-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.press-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid var(--line);
  filter: saturate(0.95);
}
.press-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.press-list li { border-bottom: 1px solid var(--line); }
.press-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.15rem 0.25rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.01em;
  transition: color 0.25s, padding-left 0.25s;
}
.press-list a:hover { color: var(--candle-soft); padding-left: 0.9rem; }
.press-arrow {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--bone-dim);
  transition: color 0.25s, transform 0.25s;
}
.press-list a:hover .press-arrow { color: var(--candle-soft); transform: translate(3px, -3px); }
@media (max-width: 860px) {
  .press-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .press-media img { height: 320px; }
  .press-list a { font-size: 1.45rem; }
}

/* ── FEATURE TILES (signature drinks now; shared by the merch grid in a later step) ──
   Placeholder and photo tiles share one fixed aspect-ratio box, so wiring a photo in later
   swaps the fill with zero reflow. Captions are bottom-anchored in every tile. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-tile {
  position: relative;
  aspect-ratio: var(--tile-ar, 4 / 5);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: border-color 0.3s, background 0.3s;
}
/* Merch product tiles hold a portrait 4/5 box at EVERY width. The base resolves to 4/5 via
   --tile-ar, but the max-width:860px rule sets a FLAT aspect-ratio:3/2 on bare .feature-tile
   that outranks the custom property and flips merch tiles to landscape on mobile, cropping
   portrait product photos hard under object-fit:cover. This two-class selector (0,2,0) beats
   that bare rule (0,1,0) inside the media query, keeping merch geometry portrait. Same scoped
   pattern as cafe.html's `.feature-card .feature-tile`. Homepage teasers (.merch-tile) are
   untouched. */
.feature-tile.merch-media { aspect-ratio: 4 / 5; }
.feature-tile:hover { border-color: rgba(232,226,212,0.28); background: var(--surface-2); }
.feature-tile-cap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.feature-tile-name {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--bone);
}
.feature-tile-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--bone-dim);
}
/* photo tiles: image fills the shared box; a bottom scrim keeps the caption legible.
   Same box + same caption position as a placeholder tile, so the fill swaps with no reflow. */
.feature-tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature-tile.has-photo .feature-tile-cap {
  padding-top: 3rem;
  background: linear-gradient(to top, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.5) 55%, transparent 100%);
}
.feature-tile-credit {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--bone-dim);
  margin-top: 0.4rem;
  opacity: 0.85;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-tile { aspect-ratio: 3 / 2; }
}

/* ── STAY BAND (homepage full-bleed CTA into the Airbnb) ── */
.stay-band {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stay-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.32) saturate(0.85);
}
.stay-band-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.82) 0%, rgba(10,9,8,0.55) 45%, rgba(10,9,8,0.92) 100%);
}
.stay-band-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 5rem 2rem;
}
.stay-band-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--bone);
  margin: 0 0 1.25rem;
}
.stay-band-sub {
  font-size: 1.02rem;
  color: var(--bone-dim);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 2rem;
}
/* Revealed by rates.js only on a clean 200; ships hidden via the [hidden] attribute. */
.stay-band-rate {
  font-family: var(--display-sc);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--candle-soft);
  margin: -0.5rem 0 1.5rem;
}
@media (max-width: 860px) {
  .stay-band { min-height: 460px; }
  .stay-band-content { padding: 3.5rem 1.5rem; }
}

/* ── MERCH (homepage shop teaser; reuses the .feature-tile placeholder treatment) ──
   Dark, contentless square slots pending Mari's merch lineup + photos and the
   /api/bhc/merch wiring at go-live. A product tile swaps into each box with no reflow. */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* F: minmax(0,·) — tracks shrink to fit; repeat(N,1fr)=minmax(auto,1fr) pinned tracks to card min-content and overflowed */
  gap: 1rem;
  margin-top: 2.5rem;
}
.merch-tile { align-items: center; justify-content: center; }
.merch-tile::before {
  content: '\2726';
  color: var(--bone-dim);
  opacity: 0.2;
  font-size: 1.5rem;
}
@media (max-width: 860px) {
  .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* F: see base rule */
}

/* ── GALLERY STRIP ── */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 4rem;
}
.gallery-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: filter 0.3s, transform 0.4s;
}
.gallery-strip img:hover { filter: saturate(1.05) brightness(1); transform: scale(1.02); }
@media (max-width: 860px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip img { height: 160px; }
}

/* ── CAFE SECTION ── */
.cafe-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cafe-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  margin-bottom: 3rem;
  filter: saturate(0.9);
}
.cafe-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: italic;
  color: var(--bone);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.cafe-quote .flicker { color: var(--candle-soft); }

/* ── COWORKING ── */
.coworking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.coworking-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.4s, filter 0.3s;
}
.coworking-grid img:hover { transform: scale(1.015); filter: saturate(1.05); }
@media (max-width: 860px) {
  .coworking-grid { grid-template-columns: 1fr; }
  .coworking-grid img { height: 220px; }
}

/* ── STAY SECTION ── */
.stay-section {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  position: relative;
}
.stay-hero {
  position: relative;
  height: 460px;
  margin-bottom: 3rem;
  overflow: hidden;
}
.stay-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.9); }
.stay-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,9,8,0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}
.stay-hero-text { font-family: var(--display-sc); font-size: 1rem; letter-spacing: 0.15em; color: var(--candle-soft); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.amenity {
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  background: var(--surface);
}
.amenity-icon { color: var(--blood-bright); font-size: 1.1rem; margin-bottom: 0.75rem; display: block; }
.amenity-label { font-size: 0.9rem; color: var(--bone); font-weight: 500; }
@media (max-width: 860px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
}

.stay-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.stay-gallery img { width: 100%; height: 260px; object-fit: cover; }
@media (max-width: 860px) {
  .stay-gallery { grid-template-columns: 1fr; }
}

.testimonial-block {
  border-left: 2px solid var(--blood);
  padding-left: 2rem;
  margin: 4rem 0;
  max-width: 640px;
}
.testimonial-block p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bone);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.testimonial-attr { font-size: 0.78rem; color: var(--bone-dim); letter-spacing: 0.05em; text-transform: uppercase; }

.stay-cta {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 3rem;
}
.stay-cta h3 {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--bone);
  margin-bottom: 1.25rem;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 4rem 3rem 2.5rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto 3rem;
}
.footer-logo {
  font-family: var(--display-sc);
  font-size: 1.3rem;
  color: var(--bone);
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--blood-bright); }
.footer-tagline { font-size: 0.88rem; color: var(--bone-dim); max-width: 280px; line-height: 1.7; }
.footer-heading { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--candle-soft); margin-bottom: 1rem; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-list a { font-size: 0.88rem; color: var(--bone-dim); transition: color 0.2s; }
.footer-list a:hover { color: var(--bone); }
.footer-bottom {
  text-align: center;
  font-size: 0.74rem;
  color: var(--bone-dim);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 3rem 1.5rem 2rem; }
}

/* ════════════ CHAT WIDGET ════════════ */
#chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blood);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(122,31,31,0.5);
  transition: transform 0.2s;
  border: 1px solid rgba(232,226,212,0.15);
}
#chat-bubble:hover { transform: scale(1.06); }
#chat-bubble svg { width: 26px; height: 26px; fill: var(--bone); }

#chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  font-family: var(--sans);
}
#chat-window.hidden { display: none; }

.chat-header {
  background: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blood);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display-sc);
  font-size: 0.85rem;
  color: var(--bone);
  flex-shrink: 0;
}
.chat-header-name { font-size: 0.9rem; font-weight: 600; color: var(--bone); font-family: var(--display); }
.chat-header-status { font-size: 0.72rem; color: var(--bone-dim); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6fbf85; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.msg {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.msg-bot { background: var(--surface-2); color: var(--bone); align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg-user { background: var(--blood); color: var(--bone); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg-typing { align-self: flex-start; }
.typing-dots { display: flex; gap: 4px; padding: 0.65rem 0.9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; border-bottom-left-radius: 3px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--bone-dim); animation: blink 1.3s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-input-area {
  border-top: 1px solid var(--line);
  padding: 0.85rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--bone);
  resize: none;
  outline: none;
  max-height: 90px;
}
.chat-input-area textarea:focus { border-color: var(--blood); }
.chat-input-area textarea::placeholder { color: var(--bone-dim); }
#chat-send {
  background: var(--blood);
  border: none;
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
#chat-send:hover { background: var(--blood-bright); }
#chat-send svg { width: 16px; height: 16px; fill: var(--bone); }

.chat-disclaimer {
  font-size: 0.65rem;
  color: var(--bone-dim);
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  #chat-window { right: 16px; bottom: 86px; width: calc(100vw - 32px); }
  #chat-bubble { right: 16px; bottom: 16px; }
}

/* Mural homage v3: red Creepster letters on the dark bg, thin stripes above/below,
   red drips off the letters, line-art sneakers hung off the lower stripe's right end.
   Shared: the Events hero (coworking.html) and the homepage mural treatments load this. */
.mural-unit {
  --mural-red: var(--blood-bright); /* alias -> the system's brightest red; retint here, not per-element */
  position: relative;
  display: inline-block;
  transform: rotate(1.2deg);
  margin: 0.5rem 0 1.5rem;
  padding-bottom: 170px; /* drop zone for the hanging sneakers image */
}
.mural-band {
  position: relative;
  display: inline-block;
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--mural-red); /* red letters, directly on the dark hero bg (no filled band) */
  padding: 0.34em 0.5em; /* extra vertical room = air between the stripes and the caps/baseline */
  margin: 0;
}
.mural-stripes { /* two thin tapered brushstroke stripes, above and below the text */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  color: var(--mural-red);
}
.mural-text { position: relative; z-index: 1; }
/* drips: tapered red paint runs off the letter baselines, crossing the lower stripe.
   Per-drip SVGs (fixed aspect, no stretch) so the taper survives; length varies via each viewBox height. */
.mural-drips { position: absolute; left: 0.5em; right: 0.5em; top: calc(100% - 0.34em); z-index: 2; pointer-events: none; color: var(--mural-red); }
.mural-drips svg { position: absolute; top: 0; width: 0.28em; height: auto; overflow: visible; }
.mural-sneakers { /* recolored crop of the mural photo, hung off the lower stripe's right end */
  position: absolute;
  right: 0;
  bottom: 0;
  width: 128px;
  height: auto;
}
@media (max-width: 640px) {
  .mural-unit { padding-bottom: 120px; }
  .mural-band { font-size: clamp(1.05rem, calc(6.7vw - 4.5px), 1.5rem); } /* F: scale the nowrap band down below ~420px so hero-content can't exceed the viewport; unchanged where it already fit */
  .mural-sneakers { width: 90px; }
}

/* ── SHOP / MERCH PAGE (merch.html) — live product tiles rendered by merch.js ──
   Additive only. The media box reuses the shared .feature-tile / .merch-tile boxes and
   the .merch-grid layout defined above; these rules add the product-card body (name,
   price, size selector), the sold-out treatment, the "photo coming soon" placeholder
   caption, and the page-level empty-state. Site tokens only (Cormorant / Cormorant SC /
   Inter, --candle, --bone, darks). The 860px 2-col merch breakpoint above is inherited
   via .merch-grid — cards reflow with it, no restatement needed. */
.merch-card {
  display: flex;
  flex-direction: column;
  min-width: 0; /* F: grid item can shrink below its content min-content (the size <select>), so the track — now minmax(0,1fr) — fits the container */
}
/* placeholder tiles stack the reused ✦ glyph (.merch-tile::before) over its caption */
.merch-media.merch-tile {
  flex-direction: column;
  gap: 0.55rem;
}
.merch-media-cap {
  font-family: var(--display-sc);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0.55;
}
/* The body absorbs the whole leftover height of a stretched grid item, which is what lets
   the add control bottom-align across a row. Cards with a size selector are taller than
   cards without one, so before this the controls sat at whatever height their own content
   ended at and the row read as a ragged edge. */
.merch-card-body {
  padding: 0.95rem 0.15rem 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
}
.merch-card-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bone);
  /* Same guard as .feature-name in cafe.html: the name is Square-supplied, so a single
     unbreakable ~60ch token escapes the card and pushes the document wide — measured at
     +131 to +183px of horizontal page scroll at 360-412px in both engines. Inert for
     normal and multi-word names, which still wrap on spaces unchanged. */
  overflow-wrap: anywhere;
}
.merch-card-price {
  font-family: var(--display-sc);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--candle-soft);
}
/* size selector: present only on multi-variation items */
.merch-size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.merch-size-label {
  font-family: var(--display-sc);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.merch-size-select {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--bone);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.merch-size-select:focus-visible {
  outline: 1px solid var(--candle);
  outline-offset: 1px;
}
/* add-to-cart control: the site's own .btn-primary, re-scaled for the narrow card body — the
   hero-CTA padding (0.95rem/2.2rem at 0.82rem) overwhelms a card whose name is 1.15rem.
   Colour, border, letter-spacing, uppercase and hover all inherit from .btn-primary, so
   this hook only sets scale + spacing. It is a <button>, which unlike the <a> it replaced
   does NOT inherit the page font, hence the explicit font-family. merch.js appends it ONLY
   for a selection that has an id and a price and is not sold out, so there is no hidden
   state and no .is-soldout rule belongs here. Full-width via the .merch-card-body flex
   column's default stretch. */
.merch-card-buy {
  /* auto, not a fixed gap: it eats the body's leftover height so the control sits on the
     card's bottom edge whether or not a size selector is present. On the tallest card in a
     row there is nothing left to eat and it resolves to 0, leaving the body's own 0.35rem
     row-gap above the control. */
  margin-top: auto;
  padding: 0.62rem 1rem;
  font-family: inherit;
  font-size: 0.7rem;
  text-align: center;
  cursor: pointer;
}
/* sold-out: a badge over the media box + a dimmed tile (per item OR selected variation) */
.merch-soldout-badge {
  display: none;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-family: var(--display-sc);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--blood);
  border: 1px solid var(--blood-bright);
  padding: 0.28rem 0.55rem;
}
.merch-card.is-soldout .merch-soldout-badge { display: block; }
.merch-card.is-soldout .merch-media { opacity: 0.5; }
.merch-card.is-soldout .merch-card-name { color: var(--bone-dim); }
/* page empty-state: revealed by merch.js on a 503 / null body / empty catalog / error */
.merch-empty {
  margin-top: 2.5rem;
  padding: 4rem 1.5rem;
  border: 1px solid var(--line);
  text-align: center;
}
.merch-empty-text {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--bone-dim);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 460px;
}
/* note variant: the same block annotating a POPULATED grid, so it reads as a
   footnote under the cards rather than a panel that failed to load */
.merch-empty--note {
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: none;
  border-top: 1px solid var(--line);
}
.merch-empty--note .merch-empty-text {
  font-size: 1.05rem;
}
@media (max-width: 860px) {
  .merch-card-name { font-size: 1.05rem; }
}

/* ── the cart (merch.html) ─────────────────────────────────────────────────────────────
   Display-only cart rendered by merch.js: a count in the nav plus a right-hand drawer.
   Site tokens only (Cormorant / Cormorant SC / Inter, --candle, --bone, darks). A line is
   a flex row that reflows to a stack under the same 860px breakpoint the merch grid uses.
   Every piece carries `hidden` in the markup and merch.js decides when to drop it, so
   nothing here is styled for a no-script state.

   ⚠ FIXED-POSITION RULE, same trap the nav drawer already documents: backdrop-filter on an
   ancestor makes it the containing block for fixed descendants, so a panel sized with
   `inset: 0` silently stops being viewport-sized. Backdrop and panel are pinned with
   top/left/right plus an explicit height instead, and they are SIBLINGS at body level so
   the backdrop's own blur can never contain the panel. */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.35rem;
  color: var(--bone);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}
.nav-cart-icon { width: 22px; height: 22px; display: block; }
/* The cart icon is a fourth protected item in a nav whose logo clamp was tuned for three —
   it spent the ~16px/side slack the logo slot used to have, which left the logo text visually
   jammed against the CTA. The tightened gap + CTA padding in the ≤860px nav block, plus the
   smaller icon here, hand that slack back so the logo floats centered again. Desktop keeps the
   22px icon.
   ⚠ This override lives HERE, not in the ≤860px nav block up at the top of the file, because a
   media query adds no specificity: `.nav-cart` is (0,1,0) in both places, so the winner is
   whichever comes LAST in source order. The base rules above are ~900 lines below that nav
   block, so an override written up there would lose outright and silently no-op. Same
   cascade trap as the .feature-tile.merch-media and .nav-cart[hidden] notes elsewhere. */
@media (max-width: 860px) {
  .nav-cart { padding: 0.25rem; }
  .nav-cart-icon { width: 20px; height: 20px; }
}
/* The button carries the native `hidden` attribute until the cart holds something (merch.js
   sets control.hidden). An author-origin display:inline-flex above beats UA [hidden]{display:none},
   so without this guard the empty cart button renders and eats width in the width-critical nav —
   the same author-display-vs-[hidden] trap documented in cafe.html and coworking.html. Restores
   the intended zero-width empty state. */
.nav-cart[hidden] { display: none; }
.nav-cart:hover { color: var(--candle); }
.nav-cart:focus-visible {
  outline: 1px solid var(--candle);
  outline-offset: 2px;
}
.nav-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--blood);
  border: 1px solid var(--blood-bright);
  font-family: var(--sans);
  font-size: 0.6rem;
  line-height: 13px;
  letter-spacing: 0;
  text-align: center;
  color: var(--bone);
}
/* the count bump: the persistent half of the add confirmation */
.nav-cart-count.is-bump { animation: cart-bump 0.4s ease; }
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); background: var(--blood-bright); }
  100% { transform: scale(1); }
}

.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;   /* explicit height, NOT inset: 0 — see the fixed-position rule above */
  z-index: 1000;
  background: rgba(10,9,8,0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;   /* explicit height, NOT inset: 0 — see the fixed-position rule above */
  width: min(420px, 100vw);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  /* visibility, not the `hidden` attribute: it still transitions, and a closed drawer
     leaves nothing in the tab order. */
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.28s ease, visibility 0s;
}
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bone);
}
.cart-close {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--bone-dim);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cart-close:hover { color: var(--bone); border-color: var(--candle); }
.cart-close:focus-visible {
  outline: 1px solid var(--candle);
  outline-offset: 2px;
}
/* the only scroll container in the drawer: a long cart scrolls here, never the locked page */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}
.cart-drawer-foot {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
}
/* page behind the drawer is pinned; the drawer body owns scrolling while open */
body.cart-locked { overflow: hidden; }

.cart-toast {
  position: fixed;
  top: 5.5rem;               /* clears the fixed nav bar */
  right: 1.5rem;
  z-index: 1002;
  padding: 0.7rem 1.1rem;
  font-family: var(--display-sc);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--surface-2);
  border: 1px solid var(--candle);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s;
}

.cart-lines {
  display: flex;
  flex-direction: column;
}
/* The drawer is narrow at every width, so a line always stacks: name on its own row, then
   quantity / amount / remove beneath it. The old side-by-side layout only fitted a
   full-width section and would crush the name inside a 420px panel. */
.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-text {
  flex-basis: 100%;
  min-width: 0; /* same guard as .merch-card: a long Square name must not widen the page */
}
.cart-line-name {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--bone);
  overflow-wrap: anywhere;
}
.cart-line-variant {
  font-family: var(--display-sc);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.15rem;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1;
  color: var(--bone);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.cart-qty-btn:hover { border-color: var(--candle); }
.cart-qty-btn:focus-visible {
  outline: 1px solid var(--candle);
  outline-offset: 1px;
}
.cart-qty-count {
  min-width: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--bone);
  text-align: center;
}
.cart-line-amount {
  flex: 1;
  min-width: 4.5rem;
  font-family: var(--display-sc);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--candle-soft);
}
.cart-line-remove {
  padding: 0.3rem;
  font-family: var(--display-sc);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: none;
  border: none;
  cursor: pointer;
}
.cart-line-remove:hover { color: var(--blood-bright); }
.cart-line-remove:focus-visible {
  outline: 1px solid var(--candle);
  outline-offset: 1px;
}
.cart-empty {
  padding: 1.5rem 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--bone-dim);
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.cart-summary-label {
  font-family: var(--display-sc);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.cart-summary-amount {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--bone);
}
/* the indicative-subtotal disclaimer: quiet, but it ships with the number, not near it */
.cart-note {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--bone-dim);
  text-align: right;
}

/* Tax sits quieter than the subtotal it follows; the total is the line that matters and
   is the only one given the display face at full size. */
.cart-summary--minor { margin-top: 0.3rem; }
.cart-summary--minor .cart-summary-amount { font-size: 1rem; }
.cart-summary--total {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.cart-summary--total .cart-summary-label { color: var(--bone); }

/* ── checkout, inside the drawer foot ─────────────────────────────────────────────── */
/* Square owns everything inside this box: it injects an iframe and styles the fields from
   its own stylesheet. The height reservation stops the Pay button jumping down the drawer
   when the iframe finishes mounting. */
.checkout-card {
  min-height: 90px;
  margin-bottom: 0.7rem;
}
.checkout {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.checkout-field {
  display: block;
  margin-bottom: 0.7rem;
}
.checkout-label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--display-sc);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.checkout-input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: var(--sans);
  font-size: 1rem;          /* 16px floor: anything smaller makes iOS Safari zoom on focus */
  color: var(--bone);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0;         /* iOS rounds text inputs by default; the rest of the site does not */
  -webkit-appearance: none;
}
.checkout-input:focus-visible {
  outline: none;
  border-color: var(--candle);
}
/* Errors are announced, so they must not also be the only signal: the copy carries the
   whole message and the colour is confirmation, not information. */
.checkout-error {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--blood-bright);
}
.checkout-submit {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--display-sc);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--blood);
  border: 1px solid var(--blood);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.checkout-submit:hover { background: var(--blood-bright); border-color: var(--blood-bright); }
.checkout-submit:focus-visible { outline: none; border-color: var(--candle); }
.checkout-submit[disabled] {
  opacity: 0.55;
  cursor: default;
  background: var(--surface-2);
  border-color: var(--line);
}
.checkout-fineprint {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--bone-dim);
}
.checkout-done {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.checkout-done-title {
  margin: 0 0 0.35rem;
  font-family: var(--display-sc);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}
/* The charged line reads like the total it confirms, so it borrows the summary's display
   face at the same size rather than inventing a third money treatment in one drawer. */
.checkout-done-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.checkout-done-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--bone-dim);
}
.checkout-done-amount {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--bone);
}
/* The reference is STACKED rather than paired with its label: a Square order id is 29
   characters, and sharing a line would push the label off the drawer at 360px. */
.checkout-done-ref-row {
  margin-bottom: 0.6rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.checkout-done-ref {
  display: block;
  margin-top: 0.15rem;
  /* System stack only: a monospace id is easier to read back at a counter, and no webfont
     is worth a network request on a page that has already taken the payment. */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--bone);
  /* The id carries no spaces, so it must be allowed to break mid-token or it runs off the
     side of the drawer. user-select: all makes one click take the whole thing, which is
     what someone reading it into a phone actually wants. */
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
.checkout-done-note {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bone-dim);
}
/* Motion is decoration here: the drawer still opens, it just arrives without the slide. */
@media (prefers-reduced-motion: reduce) {
  .cart-drawer,
  .cart-drawer.is-open,
  .cart-backdrop,
  .cart-backdrop.is-open { transition-duration: 0s; }
  .nav-cart-count.is-bump { animation: none; }
  .cart-toast { transition-duration: 0s; }
}
