/* ==========================================================================
   THE RED FLAG LIBRARY — v3  ·  Modern / Professional
   Crisp white surfaces, neutral gray structure, one confident crimson accent
   drawn from the logo. Modern sans typography. Real book covers.
   ========================================================================== */

:root {
  --bg:       #ffffff;
  --bg-2:     #f7f7f8;   /* neutral tint band */
  --surface:  #ffffff;   /* cards */
  --ink:      #0d0e11;   /* near-black */
  --ink-2:    #52575f;   /* body text */
  --muted:    #868c95;   /* secondary */
  --line:     #e6e7ea;
  --line-2:   #d4d6db;

  --red:      #b0122a;   /* logo crimson, modernized */
  --red-dk:   #8b0d20;
  --red-tint: #fdf2f4;

  --dark:     #0d0e11;   /* dark bands */
  --on-dark:  #f4f5f6;
  --on-dark-muted: #9aa0a8;

  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --r: 12px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(13,14,17,0.05);
  --shadow: 0 10px 30px -18px rgba(13,14,17,0.35);
  --shadow-lg: 0 24px 50px -26px rgba(13,14,17,0.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1rem; line-height: 1.65; font-weight: 400;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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); color: var(--ink);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.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: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top 0.2s var(--ease); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---- shared bits -------------------------------------------------------- */
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.lead { font-size: 1.06rem; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.005em;
  padding: 0.78em 1.4em; border-radius: var(--r-sm);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--solid { background: var(--red); color: #fff; box-shadow: 0 8px 20px -12px rgba(176,18,42,0.8); }
.btn--solid:hover { background: var(--red-dk); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e9eaec; transform: translateY(-1px); }
.btn--sm { padding: 0.58em 1.05em; 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; margin-top: 1.2rem; }
.noscript-note a { color: var(--red); }

/* ---- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.top.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -22px rgba(13,14,17,0.6); }
.top__inner { max-width: var(--wrap); margin: 0 auto; padding: 0.7rem var(--gutter); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.brand__name b { color: var(--red); font-weight: 800; }
.top__nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); flex-wrap: wrap; }
.top__nav a { font-size: 0.9rem; color: var(--ink-2); font-weight: 500; transition: color 0.2s; }
.top__nav a:hover { color: var(--red); }

.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--ink); transition: background 0.2s; }
.cart-btn:hover { background: #f0f1f3; }
.cart-btn__count { position: absolute; top: -1px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; transition: opacity 0.2s, transform 0.2s; }
.cart-btn__count[data-count="0"] { opacity: 0; transform: scale(0.6); }

@media (max-width: 640px) {
  .top__inner { flex-wrap: wrap; justify-content: center; }
  .brand { margin-right: 0; }
  .cart-btn { position: fixed; bottom: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(176,18,42,0.9); z-index: 60; }
  .cart-btn:hover { background: var(--red-dk); }
  .top__nav { order: 3; width: 100%; justify-content: center; }
  .hide-sm { display: none; }
}

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.2rem, 7vw, 5rem);
  background:
    radial-gradient(75% 85% at 74% 42%, rgba(176,18,42,0.30), transparent 60%),
    radial-gradient(60% 70% at 12% 8%, rgba(120,26,42,0.20), transparent 62%),
    linear-gradient(170deg, #17181d 0%, var(--dark) 48%, #08090b 100%);
}
.hero::before {   /* faint dot texture so the black isn't a flat slab */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 78%);
}

/* --- hero type + controls on dark --- */
.hero .eyebrow { color: #cfa45f; }              /* gold, straight off the logo */
.hero h1 { color: #f7f8f9; }
.hero h1 em { color: #ff4d63; }
.hero__sub { color: rgba(244,245,246,0.74); }
.hero .btn--solid { background: #c4152f; box-shadow: 0 12px 30px -12px rgba(196,21,47,0.85); }
.hero .btn--solid:hover { background: #d91b38; }
.hero .btn--ghost { background: transparent; border-color: rgba(255,255,255,0.28); color: #f4f5f6; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.07); }
.hero__trust { border-top-color: rgba(255,255,255,0.12); }
.hero__trust li { color: rgba(244,245,246,0.62); }
.hero__trust li::before {
  background: rgba(255,77,99,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6377' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* --- nav: dark at rest so it reads as one piece with the hero,
       flips to white/blurred once you scroll --- */
.top { background: #17181d; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top .brand__name { color: #fff; }
.top .brand__name b { color: #ff4d63; }
.top__nav a { color: rgba(255,255,255,0.76); }
.top__nav a:hover { color: #fff; }
.top .cart-btn { color: #fff; }
.top .cart-btn:hover { background: rgba(255,255,255,0.14); }
.top.is-stuck {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.top.is-stuck .brand__name { color: var(--ink); }
.top.is-stuck .brand__name b { color: var(--red); }
.top.is-stuck .top__nav a { color: var(--ink-2); }
.top.is-stuck .top__nav a:hover { color: var(--red); }
.top.is-stuck .cart-btn { color: var(--ink); }
.top.is-stuck .cart-btn:hover { background: #f0f1f3; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero__copy .eyebrow { display: block; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 1.1rem + 4.4vw, 4.05rem); max-width: 13ch; letter-spacing: -0.038em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__sub { max-width: 44ch; margin-top: 1.2rem; font-size: 1.06rem; }
.hero__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.hero__trust li::before {
  content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%;
  background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0122a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* fanned arrangement of real covers */
.hero__art { position: relative; min-height: clamp(330px, 36vw, 440px); display: grid; place-items: center; }
.hero__glow {
  position: absolute; width: clamp(300px, 38vw, 470px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,86,110,0.38), rgba(176,18,42,0.16) 48%, transparent 70%);
  filter: blur(34px);
}

/* keep the mobile floating cart button branded in both nav states */
@media (max-width: 640px) {
  .top .cart-btn, .top.is-stuck .cart-btn { background: var(--red); color: #fff; }
  .top .cart-btn:hover, .top.is-stuck .cart-btn:hover { background: var(--red-dk); }
}
.hero__fan { position: relative; width: 100%; height: 100%; }
.fan {
  position: absolute; top: 50%; left: 50%;
  width: clamp(104px, 12vw, 138px); aspect-ratio: 2/3; object-fit: cover;
  border-radius: 10px; background: #1b1c21;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 26px 50px -18px rgba(0,0,0,0.85);
  transition: transform 0.45s var(--ease);
}
.fan--3 { width: clamp(134px, 15.5vw, 178px); z-index: 5; transform: translate(-50%, -50%) translateY(-12px); }
.fan--2 { z-index: 4; transform: translate(-50%, -50%) translate(-122px, 22px) rotate(-10deg); }
.fan--4 { z-index: 4; transform: translate(-50%, -50%) translate(122px, 22px) rotate(10deg); }
.fan--1 { z-index: 3; transform: translate(-50%, -50%) translate(-224px, 66px) rotate(-18deg); }
.fan--5 { z-index: 3; transform: translate(-50%, -50%) translate(224px, 66px) rotate(18deg); }
/* gentle spread on hover */
.hero__fan:hover .fan--2 { transform: translate(-50%, -50%) translate(-134px, 16px) rotate(-12deg); }
.hero__fan:hover .fan--4 { transform: translate(-50%, -50%) translate(134px, 16px) rotate(12deg); }
.hero__fan:hover .fan--1 { transform: translate(-50%, -50%) translate(-244px, 58px) rotate(-21deg); }
.hero__fan:hover .fan--5 { transform: translate(-50%, -50%) translate(244px, 58px) rotate(21deg); }
.hero__fan:hover .fan--3 { transform: translate(-50%, -50%) translateY(-20px); }

@media (max-width: 1240px) { .hero__fan { transform: scale(0.92); } }
@media (max-width: 1080px) { .hero__fan { transform: scale(0.82); } }
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  /* block layout (not flex) so children stretch and wrap instead of
     sizing to fit-content and overflowing the viewport */
  .hero h1 { max-width: min(20ch, 100%); margin-inline: auto; }
  .hero__sub { max-width: min(46ch, 100%); margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__art { order: -1; min-height: 300px; }
  .hero__fan { transform: scale(0.78); }
}
@media (max-width: 560px) { .hero__art { min-height: 240px; } .hero__fan { transform: scale(0.56); } }
@media (prefers-reduced-motion: reduce) { .fan, .hero__fan:hover .fan { transition: none; } }

/* ---- trope strip -------------------------------------------------------- */
.tropes { border-block: 1px solid var(--line); background: var(--bg-2); }
.tropes ul {
  max-width: var(--wrap); margin: 0 auto; padding: 0.9rem var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 1.2rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.tropes li { display: inline-flex; align-items: center; gap: 1.2rem; }
.tropes li::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--red); opacity: 0.6; }
.tropes li:last-child::after { display: none; }

/* ---- generic section ---------------------------------------------------- */
.block { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.block--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { text-align: center; max-width: 44ch; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.head .eyebrow { display: block; margin-bottom: 0.75rem; }
.head h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.8rem); }
.head p { margin-top: 0.85rem; }

/* ---- book covers (used by the pre-order cards) --------------------------- */
.cover {
  position: relative; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden;
  background: #eceef0; box-shadow: var(--shadow-sm), 0 10px 24px -16px rgba(13,14,17,0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__ribbon {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 0.3em 0.62em; border-radius: 5px;
  box-shadow: 0 4px 10px -5px rgba(13,14,17,0.6);
}
.cover__ribbon--dark { background: var(--ink); }

/* ---- pre-orders --------------------------------------------------------- */
.po-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.2rem, 3vw, 1.6rem); }
.po-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem; transition: box-shadow 0.25s, border-color 0.25s; }
.po-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.po-body { display: flex; flex-direction: column; min-width: 0; }
.po-badge { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.po-title { font-size: 1.02rem; font-weight: 700; line-height: 1.25; margin-top: 0.3rem; letter-spacing: -0.015em; }
.po-author { font-size: 0.83rem; color: var(--muted); }
.countdown { display: flex; gap: 0.8rem; margin: 0.75rem 0; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.countdown__num { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; }
.countdown__lbl { font-size: 0.56rem; 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(--red); }
.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: 800; font-size: 1.08rem; color: var(--ink); display: flex; flex-direction: column; letter-spacing: -0.02em; }
.po-price small { font-family: var(--sans); font-weight: 400; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; letter-spacing: 0; }

/* ---- events ------------------------------------------------------------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.2rem, 3vw, 1.6rem); }
.ev-card { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; transition: box-shadow 0.25s, border-color 0.25s; }
.ev-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.ev-date { text-align: center; border-right: 1px solid var(--line); padding-right: 0.95rem; }
.ev-date__day { font-family: var(--display); font-weight: 800; font-size: 1.75rem; color: var(--red); line-height: 1; display: block; letter-spacing: -0.03em; }
.ev-date__mo { font-size: 0.62rem; 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.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.ev-when { font-size: 0.8rem; color: var(--red); font-weight: 600; margin-top: 0.2rem; }
.ev-desc { font-size: 0.9rem; margin-top: 0.55rem; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1rem; }
.ev-price { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.02em; }
.ev-seats { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.ev-seats.is-low { color: var(--red); font-weight: 500; }
.ev-soldout { position: absolute; inset: 0; background: rgba(255,255,255,0.78); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); display: grid; place-items: center; border-radius: var(--r); z-index: 2; }
.ev-soldout span { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); border-radius: 999px; padding: 0.4em 1.2em; background: #fff; }

/* ---- about -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.about__photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about .eyebrow { display: block; }
.about h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.7rem); margin: 0.6rem 0 1rem; }
.about p + p { margin-top: 0.9rem; }
.about .sig { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--red); margin-top: 1.2rem; letter-spacing: -0.01em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 330px; margin-inline: auto; } }

/* ---- visit -------------------------------------------------------------- */
.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 900px; margin: 0 auto; }
.visit__panel { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.2rem); }
.visit__label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red); margin-bottom: 0.35rem; }
.visit__value { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: block; letter-spacing: -0.015em; line-height: 1.4; }
a.visit__value:hover { color: var(--red); }
.visit__row + .visit__row { margin-top: 1.3rem; }
.visit__panel .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.95rem; }
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { color: var(--ink-2); }
.hours li span:last-child { font-weight: 600; color: var(--ink); }
.hours li.closed span:last-child { color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { .visit { grid-template-columns: 1fr; } }

/* ---- follow band -------------------------------------------------------- */
.follow { text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0; background: var(--dark); color: var(--on-dark); }
.follow h2 { color: var(--on-dark); font-size: clamp(1.8rem, 1.2rem + 2.1vw, 2.6rem); }
.follow h2 em { font-style: normal; color: #ff5c72; }
.follow p { color: var(--on-dark-muted); max-width: 46ch; margin: 1rem auto 1.8rem; }

/* ---- footer ------------------------------------------------------------- */
.foot { padding: 2.4rem 0; background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid rgba(255,255,255,0.09); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem; }
.foot__brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--on-dark); }
.foot__brand img { width: 28px; height: 28px; border-radius: 50%; }
.foot__brand span { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.015em; }
.foot__links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.foot__links a { font-size: 0.87rem; transition: color 0.2s; }
.foot__links a:hover { color: #fff; }
.foot__admin { opacity: 0.55; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 0.15em 0.55em; }
.foot__admin:hover { opacity: 1; border-color: rgba(255,255,255,0.4); }
.foot__legal { font-size: 0.79rem; width: 100%; text-align: center; padding-top: 0.3rem; }

/* ---- cart drawer -------------------------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(13,14,17,0.45); opacity: 0; transition: opacity 0.35s var(--ease); z-index: 90; }
.drawer-overlay.is-open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(410px, 92vw); z-index: 100;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -30px 0 60px -40px rgba(13,14,17,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.15rem; font-weight: 800; }
.cart__close { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink); transition: background 0.2s; }
.cart__close:hover { background: #f0f1f3; }
.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; }
/* author `display` beats the UA [hidden] rule — restore it explicitly */
.cart__empty[hidden] { display: none; }
.ci { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.9rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci__cover { aspect-ratio: 2/3; border-radius: 5px; overflow: hidden; background: #eceef0; }
.ci__cover img { width: 100%; height: 100%; object-fit: cover; }
.ci__info { min-width: 0; }
.ci__title { font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--ink); line-height: 1.3; letter-spacing: -0.015em; }
.ci__meta { font-size: 0.73rem; color: var(--muted); margin-top: 0.1rem; }
.ci__price { font-weight: 600; color: var(--ink); 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.72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; align-self: start; }
.ci__remove:hover { color: var(--red); }
.cart__foot { padding: 1.25rem 1.4rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; }
.cart__total { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.025em; }
.cart__fine { font-size: 0.75rem; color: var(--muted); margin: 0.45rem 0 0.95rem; }

/* ---- modal -------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 120; 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(13,14,17,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__panel { position: relative; z-index: 1; width: min(470px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--bg); border-radius: 16px; padding: clamp(1.6rem, 4vw, 2.3rem); box-shadow: 0 40px 80px -40px rgba(13,14,17,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: var(--r-sm); display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: #f0f1f3; color: var(--ink); }
.mb-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.mb-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.8rem); margin: 0.35rem 0 0.3rem; letter-spacing: -0.03em; }
.mb-sub { font-size: 0.9rem; color: var(--muted); }
.mb-summary { display: flex; align-items: center; justify-content: space-between; margin: 1.25rem 0; padding: 0.85rem 1.05rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.mb-summary span { font-size: 0.9rem; }
.mb-summary strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.025em; }
.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.78rem; font-weight: 600; color: var(--ink); margin-bottom: 0.32rem; }
.mb-field input, .mb-field select { width: 100%; padding: 0.68em 0.8em; 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(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.mb-note { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.78rem; color: var(--muted); margin: 0.35rem 0 1.05rem; }
.mb-note svg { flex: none; margin-top: 0.15rem; color: var(--red); }
.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(--red); color: #fff; font-size: 1.3rem; }
.mb-success .btn { margin-top: 1.35rem; }

/* ---- toast -------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 130%); z-index: 140; background: var(--dark); color: #fff; padding: 0.8rem 1.25rem; border-radius: var(--r-sm); font-size: 0.88rem; box-shadow: 0 20px 40px -22px rgba(13,14,17,0.8); transition: transform 0.4s var(--ease); max-width: 90vw; }
.toast.is-show { transform: translate(-50%, 0); }
.toast strong { color: #ff8b9c; font-weight: 600; }

/* ---- reveal ------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
