/* ==========================================================================
   THE RED FLAG LIBRARY — soft / feminine, sidebar layout
   Blush paper, rose accents, Playfair Display headings. Short home page,
   everything else behind the side nav.
   ========================================================================== */

:root {
  --bg:        #fdf8f9;   /* soft blush white */
  --bg-2:      #f9eef1;   /* blush tint */
  --surface:   #ffffff;
  --ink:       #2a2027;   /* deep plum-charcoal for headings */
  --ink-2:     #4f414b;   /* body text — darkened for contrast/legibility */
  --muted:     #8a7883;   /* secondary only */
  --line:      #f1e3e8;
  --line-2:    #e6cfd8;

  --rose:      #b8365f;   /* primary accent */
  --rose-dk:   #94264a;
  --rose-soft: #fdeef3;
  --gold:      #c9a45c;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --side-w: 264px;
  --r:    18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px -4px rgba(51,38,47,0.10);
  --shadow: 0 18px 40px -24px rgba(51,38,47,0.28);
  --shadow-rose: 0 14px 34px -16px rgba(184,54,95,0.40);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 1.05rem; line-height: 1.72;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 300; background: var(--rose); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 0.2s var(--ease); font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); }
.lead { font-size: 1.04rem; color: var(--ink-2); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; padding: 0.8em 1.6em; border-radius: 999px;
  transition: transform 0.22s var(--ease), background 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn--solid { background: var(--rose); color: #fff; box-shadow: var(--shadow-rose); }
.btn--solid:hover { background: var(--rose-dk); transform: translateY(-2px); }
.btn--soft { background: var(--rose-soft); color: var(--rose-dk); }
.btn--soft:hover { background: #fbe0ea; transform: translateY(-2px); }
.btn--sm { padding: 0.6em 1.15em; font-size: 0.84rem; }
.btn--full { width: 100%; }

.noscript-note { text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 120;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1.6rem 1.15rem 1.15rem;
  overflow-y: auto;
}
.side__brand { display: block; text-align: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.side__brand img { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 0.7rem; box-shadow: 0 0 0 1px var(--line-2); }
.side__name { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.side__name em { font-style: italic; color: var(--rose); }
.side__tag { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

.side__nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.1rem 0; }
.side__nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.side__nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.side__nav a:hover { background: var(--bg-2); color: var(--ink); }
.side__nav a.is-active { background: var(--rose-soft); color: var(--rose-dk); font-weight: 600; }
.side__nav a.is-active svg { opacity: 1; }

.side__foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.side__cart {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.68rem 0.85rem; border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink); font-size: 0.9rem; font-weight: 500;
  position: relative; transition: background 0.2s;
}
.side__cart:hover { background: var(--rose-soft); }
.side__social { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--rose); font-weight: 500; padding-left: 0.2rem; }
.side__social svg { width: 16px; height: 16px; flex: none; }
.side__social:hover { color: var(--rose-dk); }
.side__legal { font-size: 0.72rem; color: var(--muted); padding-left: 0.2rem; margin: 0; }
.side__credit { font-size: 0.6rem; letter-spacing: 0.02em; color: var(--muted); opacity: 0.7; padding-left: 0.2rem; }
.side__credit:hover { color: var(--rose); opacity: 1; }

.cart-btn__count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 0.68rem; font-weight: 700;
  display: grid; place-items: center; margin-left: auto;
  transition: opacity 0.2s, transform 0.2s;
}
.cart-btn__count[data-count="0"] { opacity: 0; transform: scale(0.6); }

/* ---- mobile bar --------------------------------------------------------- */
.mobilebar { display: none; }
.side-scrim { position: fixed; inset: 0; background: rgba(51,38,47,0.4); z-index: 110; opacity: 0; transition: opacity 0.3s; }
.side-scrim.is-open { opacity: 1; }

/* ==========================================================================
   MAIN / VIEWS
   ========================================================================== */
.main { margin-left: var(--side-w); min-height: 100vh; padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 5vw, 4rem) 4rem; }
.view { max-width: 940px; margin: 0 auto; animation: rise 0.45s var(--ease) both; }
.view[hidden] { display: none; }
/* #view-home sets display:flex (ID specificity), which would beat the plain
   [hidden] rule — this keeps it hidden when you navigate to another view */
#view-home[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

.view__head { text-align: center; max-width: 44ch; margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }
.view__head .eyebrow { display: block; margin-bottom: 0.7rem; }
.view__head h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
.view__head .lead { margin-top: 0.85rem; }

/* ---- home: centered hero, sized to fit one screen ----------------------- */
#view-home {
  /* exactly fill viewport minus main's top + bottom padding, then centre */
  min-height: calc(100dvh - clamp(1.2rem, 3vw, 2.2rem) - 4rem);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(0.6rem, 1.4vw, 0.95rem);
}
.hero {
  text-align: center;
  background: radial-gradient(130% 120% at 50% 0%, #fce4ec 0%, var(--bg-2) 48%, var(--bg) 100%);
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.5rem, 4vw, 3.2rem);
}
.hero__mark { width: clamp(112px, 12vw, 150px); border-radius: 50%; margin: 0 auto 0.7rem; box-shadow: 0 0 0 1px var(--line-2); }
.hero .eyebrow { display: block; margin-bottom: 0.55rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.1rem); letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero__lead { max-width: 46ch; margin: 0.6rem auto 0; font-size: 1.02rem; color: var(--ink-2); }
.hero__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.05rem; }

.tropes {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 1rem;
  margin-top: 1.05rem; padding-top: 0.85rem; border-top: 1px solid var(--line-2);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.tropes li { display: inline-flex; align-items: center; gap: 1rem; }
.tropes li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); opacity: 0.55; }
.tropes li:last-child::after { display: none; }

/* ---- home: quick-link cards --------------------------------------------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.6vw, 1rem); }
.quick__card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.85rem; row-gap: 0.1rem;
  text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.85rem 1.05rem; transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.quick__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.quick__icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); }
.quick__icon svg { width: 20px; height: 20px; }
.quick__title { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.quick__desc { font-size: 0.84rem; color: var(--ink-2); line-height: 1.4; }
.quick__go { grid-column: 2; font-size: 0.82rem; font-weight: 600; color: var(--rose); margin-top: 0.25rem; }
@media (max-width: 700px) { .quick { grid-template-columns: 1fr; } }

/* ---- covers ------------------------------------------------------------- */
.cover {
  position: relative; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-sm), 0 12px 26px -18px rgba(51,38,47,0.5);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__ribbon {
  position: absolute; top: 0.55rem; left: 0.55rem; z-index: 2;
  background: var(--rose); color: #fff; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 0.28em 0.6em; border-radius: 6px;
}
.cover__ribbon--dark { background: var(--ink); }

/* ---- shop --------------------------------------------------------------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.shop-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.shop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shop-card__cover { margin-bottom: 0.85rem; }
.shop-card__nocover { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.72rem; color: var(--muted); }
.shop-card__sold { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(253,248,249,0.8); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); border-radius: var(--r-sm); }
.shop-card__sold span { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); border: 1px solid var(--rose); border-radius: 999px; padding: 0.35em 1em; background: #fff; }
.shop-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shop-card__title { font-size: 0.98rem; font-weight: 600; line-height: 1.28; }
.shop-card__author { font-size: 0.8rem; color: var(--muted); margin-top: 0.12rem; }
.shop-card__note { font-size: 0.76rem; color: var(--rose-dk); margin-top: 0.3rem; line-height: 1.35; }
.shop-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.85rem; }
.shop-card__price { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.shop-card__price small { font-family: var(--sans); font-weight: 400; font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }
.shop-card__foot .btn { flex: none; }
.shop-empty a { color: var(--rose); }

/* ---- pre-orders --------------------------------------------------------- */
.po-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.po-card { display: grid; grid-template-columns: 92px 1fr; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.po-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.po-body { display: flex; flex-direction: column; min-width: 0; }
.po-badge { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.po-title { font-size: 1.06rem; font-weight: 600; line-height: 1.25; margin-top: 0.3rem; }
.po-author { font-size: 0.83rem; color: var(--muted); }
.countdown { display: flex; gap: 0.8rem; margin: 0.7rem 0; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.countdown__num { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.countdown__lbl { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.28rem; }
.countdown__live { font-size: 0.88rem; font-weight: 600; color: var(--rose); }
.po-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; margin-top: auto; }
.po-price { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); display: flex; flex-direction: column; }
.po-price small { font-family: var(--sans); font-weight: 400; font-size: 0.71rem; color: var(--muted); margin-top: 0.15rem; }

/* ---- events ------------------------------------------------------------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.ev-card { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.ev-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ev-date { text-align: center; border-right: 1px solid var(--line); padding-right: 0.9rem; }
.ev-date__day { font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--rose); line-height: 1; display: block; }
.ev-date__mo { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.3; display: block; margin-top: 0.3rem; }
.ev-title { font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.ev-when { font-size: 0.79rem; color: var(--rose); font-weight: 600; margin-top: 0.2rem; }
.ev-desc { font-size: 0.9rem; margin-top: 0.5rem; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.95rem; }
.ev-price { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.ev-seats { display: block; font-size: 0.71rem; color: var(--muted); margin-top: 0.1rem; }
.ev-seats.is-low { color: var(--rose); font-weight: 500; }
.ev-soldout { position: absolute; inset: 0; background: rgba(253,248,249,0.8); backdrop-filter: blur(1px); display: grid; place-items: center; border-radius: var(--r); z-index: 2; }
.ev-soldout span { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); border: 1px solid var(--rose); border-radius: 999px; padding: 0.4em 1.2em; background: #fff; }
.ev-card__img { grid-column: 1 / -1; margin: -1.3rem -1.3rem 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--bg-2); }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-img { margin: 0 0 1.1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); }
.mb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.ev-card { color: inherit; text-decoration: none; cursor: pointer; }
.ev-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--rose); white-space: nowrap; }
.ev-cta.is-soldout { color: var(--muted); }

/* ---- event detail page -------------------------------------------------- */
.evp-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--rose); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; text-decoration: none; }
.evp-back:hover { text-decoration: underline; }
.evp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.evp__img { background: var(--bg-2); }
.evp__img img { width: 100%; height: auto; display: block; }
.evp__opts { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.3rem; }
.evp__opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); }
.evp__opt-label { font-weight: 600; color: var(--ink); }
.evp__opt-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.evp__opt-price { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--rose); white-space: nowrap; }

/* reserve modal ticket options */
.mb-optlabel { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.6rem 0 0.4rem; }
.mb-opts { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.mb-opt { display: flex; align-items: flex-start; gap: 0.65rem; border: 1px solid var(--line-2); border-radius: 12px; padding: 0.7rem 0.85rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.mb-opt.is-sel { border-color: var(--rose); background: var(--rose-soft); }
.mb-opt input { margin-top: 0.15rem; accent-color: var(--rose); flex: none; }
.mb-opt__main { flex: 1; min-width: 0; }
.mb-opt__label { font-weight: 600; color: var(--ink); display: block; }
.mb-opt__note { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; display: block; }
.mb-opt__price { font-weight: 700; color: var(--rose); white-space: nowrap; }
.evp__body { padding: clamp(1.4rem, 4vw, 2.6rem); }
.evp__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.14; margin: 0.35rem 0 1.2rem; color: var(--ink); }
.evp__meta { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.2rem; background: var(--bg-2); border-radius: var(--r-sm); }
.evp__meta-row { display: flex; align-items: center; gap: 0.65rem; font-size: 0.98rem; color: var(--ink-2); }
.evp__meta-row svg { width: 19px; height: 19px; color: var(--rose); flex: none; }
.evp__meta-row a { color: var(--rose); text-decoration: none; }
.evp__meta-row a:hover { text-decoration: underline; }
.evp__desc { margin: 1.3rem 0 0; font-size: 1.03rem; line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
.evp__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.evp__cta .btn { min-width: 150px; }

/* ---- coming soon (placeholder slots) ------------------------------------ */
.soon-note { grid-column: 1 / -1; text-align: center; margin-bottom: 0.4rem; }
.soon-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); background: var(--rose-soft); padding: 0.4em 0.9em; border-radius: 999px; }
.soon-note p { margin-top: 0.7rem; color: var(--ink-2); font-size: 1rem; }
.po-card.is-soon, .ev-card.is-soon { pointer-events: none; }
.cover.is-ghost { background: var(--bg-2); }
.g-line, .g-pill, .cover.is-ghost {
  position: relative; overflow: hidden;
  background: var(--bg-2);
}
.g-line { display: block; height: 12px; border-radius: 6px; margin: 0.5rem 0; }
.g-line--title { height: 17px; width: 78%; margin-top: 0.3rem; }
.g-line--sm { height: 11px; width: 55%; }
.g-line--price { height: 20px; width: 46px; margin: 0; }
.g-pill { display: inline-block; width: 74px; height: 32px; border-radius: 999px; }
.ev-card.is-soon .g-line--title { margin-top: 0; }
.is-soon .po-foot, .is-soon .ev-foot { margin-top: 0.9rem; }
/* soft shimmer sweep */
.g-line::after, .g-pill::after, .cover.is-ghost::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.65) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.6s var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .g-line::after, .g-pill::after, .cover.is-ghost::after { animation: none; } }

/* ---- book club ---------------------------------------------------------- */
.bc__hero { display: grid; grid-template-columns: 290px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.bc__graphic { width: 100%; border-radius: var(--r); box-shadow: 0 24px 50px -26px rgba(51,38,47,0.6); }
.bc__intro .eyebrow { display: block; margin-bottom: 0.7rem; }
.bc__intro h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
.bc__intro .lead { margin-top: 0.9rem; }
.bc__meeting { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0.65rem 1.1rem; }
.bc__meeting svg { width: 22px; height: 22px; color: var(--rose); flex: none; }
.bc__meeting-lbl { display: block; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bc__meeting-when { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
@media (max-width: 720px) { .bc__hero { grid-template-columns: 1fr; text-align: center; } .bc__graphic { max-width: 280px; margin: 0 auto; } .bc__meeting { text-align: left; } }

.bc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 1.8rem); align-items: start; }
@media (max-width: 760px) { .bc__grid { grid-template-columns: 1fr; } }
.bc__pick .eyebrow { display: block; margin-bottom: 1rem; }
.bc__book { display: grid; grid-template-columns: 116px 1fr; gap: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.bc__book:hover, .bc__book:focus-visible { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.bc__book .cover { box-shadow: var(--shadow-sm), 0 12px 26px -18px rgba(51,38,47,0.5); }
.bc__book-meta h3 { font-size: 1.3rem; }
.bc__author { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.bc__blurb { font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.55; }
.bc__book-more { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--rose); }
@media (max-width: 420px) { .bc__book { grid-template-columns: 92px 1fr; } }

/* book info panel (in the shared modal) */
.bi__top { display: flex; gap: 1rem; align-items: flex-start; margin: 0.4rem 0 1.1rem; }
.bi__cover { width: 92px; flex: none; }
.bi__title { font-family: var(--display); font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.bi__author { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.bi__meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--rose); margin-top: 0.55rem; }
.bi__synopsis { color: var(--ink-2); font-size: 0.95rem; line-height: 1.62; }
.bi__notes { margin: 1.1rem 0; padding: 0.9rem 1.1rem; background: var(--rose-soft); border-radius: var(--r-sm); }
.bi__notes-t { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-dk); margin-bottom: 0.35rem; }
.bi__notes p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; }
.bi__spoiler { font-size: 0.88rem; color: var(--muted); font-style: italic; text-align: center; margin: 0.6rem 0 1.2rem; }

.bc__signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.8rem); }
.bc__signup-title { font-size: 1.3rem; margin-bottom: 1rem; }
.bc__field { margin-bottom: 0.8rem; }
.bc__field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink); margin-bottom: 0.32rem; }
.bc__field input { width: 100%; padding: 0.72em 0.85em; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.bc__field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.bc__options { display: grid; gap: 0.6rem; margin: 1rem 0; border: 0; padding: 0; }
.bc__opt { display: flex; align-items: center; gap: 0.85rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 0.85rem 1rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.bc__opt:hover { border-color: var(--rose); }
.bc__opt input { accent-color: var(--rose); width: 18px; height: 18px; flex: none; }
.bc__opt:has(input:checked) { border-color: var(--rose); background: var(--rose-soft); }
.bc__opt-body { flex: 1; min-width: 0; }
.bc__opt-title { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.bc__opt-desc { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.bc__opt-price { font-family: var(--display); font-weight: 600; color: var(--rose); font-size: 1.05rem; white-space: nowrap; }
.bc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bc__fine { font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }
.bc__success { text-align: center; padding: 1rem 0; }
.bc__success[hidden] { display: none; }
.bc__success-mark { width: 54px; height: 54px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.bc__success h3 { font-size: 1.3rem; }
.bc__success p { color: var(--ink-2); margin-top: 0.5rem; }

/* ---- authors ------------------------------------------------------------ */
.authors { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.authors__flyer { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(51,38,47,0.5), 0 2px 8px -4px rgba(51,38,47,0.12); background: var(--bg-2); }
.authors__flyer img { display: block; width: 100%; height: auto; }
.authors__side { display: flex; flex-direction: column; gap: clamp(1.2rem, 3vw, 1.8rem); }
.authors__perks { display: grid; gap: 0.85rem; }
.authors__perks li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; color: var(--ink-2); line-height: 1.45; }
.authors__perks svg { width: 22px; height: 22px; flex: none; color: var(--rose); margin-top: 0.1rem; }
.authors__form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.8rem); }
.authors__form-title { font-size: 1.3rem; }
.authors__form-sub { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 1.1rem; line-height: 1.5; }
.authors__form-sub a { color: var(--rose); }
.authors__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.authors__field { margin-bottom: 0.8rem; }
.authors__field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink); margin-bottom: 0.32rem; }
.authors__opt { color: var(--muted); font-weight: 400; }
.authors__field input, .authors__field textarea { width: 100%; padding: 0.72em 0.85em; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; }
.authors__field textarea { resize: vertical; min-height: 6.5em; line-height: 1.5; }
.authors__field input:focus, .authors__field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.authors__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.authors__err { margin-top: 0.8rem; font-size: 0.88rem; color: var(--rose-dk); text-align: center; }
.authors__err[hidden] { display: none; }
.authors__err a { color: var(--rose-dk); font-weight: 600; }
.authors__success { text-align: center; padding: 1.4rem 0; }
.authors__success[hidden] { display: none; }
.authors__success-mark { width: 54px; height: 54px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.authors__success h3 { font-size: 1.3rem; }
.authors__success p { color: var(--ink-2); margin-top: 0.5rem; line-height: 1.55; }
@media (max-width: 860px) {
  .authors { grid-template-columns: 1fr; }
  .authors__flyer { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 480px) { .authors__row { grid-template-columns: 1fr; gap: 0; } }

/* ---- story -------------------------------------------------------------- */
.story {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: linear-gradient(160deg, #fff 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  box-shadow: 0 30px 60px -30px rgba(51,38,47,0.35), 0 2px 8px -4px rgba(51,38,47,0.1);
}
.story__photo { border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 34px -20px rgba(51,38,47,0.55); }
.story__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__body p + p { margin-top: 0.9rem; }
.story__sign { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--rose); margin-top: 1.2rem !important; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story__photo { max-width: 320px; margin-inline: auto; } }

/* ---- visit -------------------------------------------------------------- */
.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; max-width: 780px; margin: 0 auto; }
.visit__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); }
.visit__label { display: block; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.3rem; }
.visit__label ~ .visit__label { margin-top: 1.3rem; }
.visit__value { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; color: var(--ink); display: block; line-height: 1.5; }
a.visit__value:hover { color: var(--rose); }
.visit__card .btn { margin-top: 1.5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.hours li:last-child { border-bottom: none; }
.hours li span:last-child { font-weight: 600; color: var(--ink); }
.hours li.closed span:last-child { color: var(--muted); font-weight: 400; font-style: italic; }
.visit__map { grid-column: 1 / -1; position: relative; display: block; height: clamp(220px, 34vw, 300px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.visit__map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }   /* preview only — the wrapper link opens Maps */
.visit__map-tap { position: absolute; right: 0.7rem; bottom: 0.7rem; background: var(--surface); color: var(--rose); font-size: 0.76rem; font-weight: 600; padding: 0.42em 0.85em; border-radius: 999px; box-shadow: var(--shadow-sm); transition: background 0.2s, color 0.2s; }
.visit__map:hover .visit__map-tap { background: var(--rose); color: #fff; }
@media (max-width: 700px) { .visit { grid-template-columns: 1fr; } }

/* ==========================================================================
   CART / MODAL / TOAST
   ========================================================================== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(51,38,47,0.42); opacity: 0; transition: opacity 0.35s var(--ease); z-index: 190; }
.drawer-overlay.is-open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 92vw); z-index: 200;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  box-shadow: -30px 0 60px -40px rgba(51,38,47,0.5);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart__title { font-size: 1.2rem; }
.cart__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background 0.2s; }
.cart__close:hover { background: var(--bg-2); }
.cart__items { flex: 1; overflow-y: auto; padding: 0.4rem 1.4rem; }
.cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); text-align: center; padding: 2rem; }
.cart__empty[hidden] { display: none; }
.ci { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci__cover { aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.ci__cover img { width: 100%; height: 100%; object-fit: cover; }
.ci__title { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.ci__meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.ci__price { font-weight: 600; color: var(--rose); margin-top: 0.3rem; font-size: 0.9rem; }
.ci__qty { display: inline-flex; align-items: center; gap: 0.65rem; margin-top: 0.5rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.1rem 0.55rem; }
.ci__qty button { width: 20px; height: 20px; font-size: 1rem; color: var(--ink); line-height: 1; }
.ci__qty span { font-size: 0.88rem; min-width: 1ch; text-align: center; }
.ci__remove { font-size: 0.71rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ci__remove:hover { color: var(--rose); }
.cart__foot { padding: 1.25rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; }
.cart__total { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.cart__fine { font-size: 0.74rem; color: var(--muted); margin: 0.45rem 0 0.95rem; }

.modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(51,38,47,0.5); backdrop-filter: blur(3px); }
.modal__panel { position: relative; z-index: 1; width: min(460px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--bg); border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.3rem); box-shadow: 0 40px 80px -40px rgba(51,38,47,0.6); transform: translateY(14px) scale(0.98); transition: transform 0.35s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 0.85rem; right: 0.85rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: var(--bg-2); color: var(--ink); }
.mb-eyebrow { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); }
.mb-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 0.35rem 0 0.3rem; }
.mb-sub { font-size: 0.89rem; color: var(--muted); }
.mb-summary { display: flex; align-items: center; justify-content: space-between; margin: 1.2rem 0; padding: 0.85rem 1.05rem; background: var(--rose-soft); border-radius: var(--r-sm); }
.mb-summary span { font-size: 0.89rem; color: var(--rose-dk); }
.mb-summary strong { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.mb-row { display: grid; grid-template-columns: 1fr auto; gap: 0.85rem; }
.mb-field { margin-bottom: 0.85rem; }
.mb-field label { display: block; font-size: 0.77rem; font-weight: 600; color: var(--ink); margin-bottom: 0.32rem; }
.mb-field input, .mb-field select { width: 100%; padding: 0.7em 0.85em; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.mb-field input:focus, .mb-field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.mb-note { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.77rem; color: var(--muted); margin: 0.35rem 0 1.05rem; }
.mb-note svg { flex: none; margin-top: 0.15rem; color: var(--rose); }
.mb-success { text-align: center; padding: 0.5rem 0; }
.mb-success__mark { width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; font-size: 1.3rem; }
.mb-success .btn { margin-top: 1.35rem; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 130%); z-index: 240; background: var(--ink); color: #fff; padding: 0.8rem 1.3rem; border-radius: 999px; font-size: 0.87rem; box-shadow: 0 20px 40px -22px rgba(51,38,47,0.8); transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.3s; max-width: 90vw; opacity: 0; visibility: hidden; pointer-events: none; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast strong { color: #ffb3c8; font-weight: 600; }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .mobilebar {
    display: flex; align-items: center; gap: 0.8rem; position: sticky; top: 0; z-index: 100;
    background: rgba(253,248,249,0.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 0.6rem 0.9rem;
  }
  .mobilebar__brand { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; }
  .mobilebar__brand img { width: 32px; height: 32px; border-radius: 50%; }
  .mobilebar__brand span { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
  .menu-btn { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border-radius: 10px; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobilebar .cart-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); }
  .mobilebar .cart-btn__count { position: absolute; top: 0; right: 0; margin: 0; }

  .side { transform: translateX(-100%); transition: transform 0.35s var(--ease); box-shadow: 20px 0 50px -30px rgba(51,38,47,0.5); }
  .side.is-open { transform: none; }
  .side-scrim[hidden] { display: none; }
  .main { margin-left: 0; padding-top: 1.5rem; }
}
@media (min-width: 901px) { .side-scrim { display: none !important; } }
