/* ===========================================================================
   Purr-anormal Cafe — Midnight Lavender Design System
   =========================================================================== */

/* Google Fonts import moved to HTML head for performance */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette */
  --bg-void:        #06031a;                /* bottomless fog */
  --bg-deep:        #10082b;                /* velvet night  */
  --bg-mid:         #1c0f49;                /* amethyst      */
  --bg-soft:        #2a1773;                /* lit by candles */

  --lavender:       #8b7ed8;
  --lavender-deep:  #6b4fb8;
  --lavender-bright:#c7b2ff;

  --ghost-glow:     #6ee7d8;                /* spectral cat eyes */
  --ghost-mist:     #c7f3ec;                /* pale moonlight   */

  --amber:          #f4a261;
  --amber-warm:     #ffd699;
  --candle-core:    #ffe9b0;

  --blood-rose:     #c084fc;                /* accent / hover   */
  --rose-deep:      #7e22ce;

  --ink:            #ede4ff;
  --ink-soft:       #c4b5e8;
  --ink-muted:      #8a7eb0;
  --ink-dim:        #5b4f7d;

  /* Surfaces */
  --card-bg:        rgba(28, 15, 73, 0.55);
  --card-border:    rgba(199, 178, 255, 0.18);
  --card-glow:      rgba(110, 231, 216, 0.10);

  /* Layout */
  --shell-max:      1200px;
  --shell-pad:      clamp(1rem, 4vw, 2.5rem);
  --radius:         18px;
  --radius-lg:      28px;

  /* Animation */
  --ease-mystic:    cubic-bezier(.22, .61, .36, 1);
  --ease-spooky:    cubic-bezier(.7, 0, .3, 1);

  /* Type */
  --font-display:   "Cinzel Decorative", "Cinzel", Georgia, serif;
  --font-heading:   "Cinzel", Georgia, serif;
  --font-body:      "Lora", Georgia, serif;
  --font-type:      "Special Elite", "Courier New", monospace;
  --font-script:    "Caveat", "Bradley Hand", cursive;
}

/* ---------- 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-void);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Multi-layer haunted backdrop ---------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,   rgba(124, 58, 237, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(46, 16, 102, 0.65)    0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%,  rgba(110, 231, 216, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%, var(--bg-deep) 0%, var(--bg-void) 100%);
  z-index: -3;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.7   0 0 0 0 0.65   0 0 0 0 1   0 0 0 0.13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -2;
}

/* ---------- 3. Typography ---------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 .5em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-family: var(--font-display); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--lavender-bright); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a {
  color: var(--lavender-bright);
  text-decoration: none;
  transition: color .25s var(--ease-mystic), text-shadow .25s var(--ease-mystic);
}
a:hover { color: var(--amber-warm); text-shadow: 0 0 14px rgba(255, 214, 153, .5); }

::selection { background: rgba(110, 231, 216, .35); color: var(--ink); }

/* ---------- focus-visible for keyboard nav ----------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.day-pill:focus-visible {
  outline: 2px solid var(--amber-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Atmospheric layers ------------------------------------- */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 80%, rgba(199, 178, 255, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(110, 231, 216, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.10) 0%, transparent 50%);
  filter: blur(40px);
  animation: fog-drift 28s ease-in-out infinite alternate;
}
.fog-layer--fast { animation-duration: 14s; opacity: .6; }

@keyframes fog-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d( 3%,  2%, 0) scale(1.1); }
}

.dust-motes {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.dust-mote {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--amber-warm);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 214, 153, .8);
  opacity: 0;
  animation: mote-float linear infinite;
}
@keyframes mote-float {
  0%   { opacity: 0; transform: translate3d(0, 100vh, 0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift, 40px), -10vh, 0); }
}

/* ---------- 5. Nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(6, 3, 26, .85), rgba(6, 3, 26, .55));
  border-bottom: 1px solid rgba(199, 178, 255, .08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: .9rem var(--shell-pad);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink) !important;
  text-shadow: 0 0 18px rgba(199, 178, 255, .5);
}
.brand:hover { color: var(--amber-warm) !important; text-shadow: 0 0 18px rgba(255, 214, 153, .7); }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 8px var(--lavender-bright)); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--ink);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.nav-toggle:hover { background: rgba(199, 178, 255, .08); border-color: var(--lavender-bright); }

.primary-nav {
  display: flex; align-items: center; gap: .25rem;
}
.primary-nav a {
  font-family: var(--font-heading);
  font-size: .92rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  padding: .55rem .9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  position: relative;
}
.primary-nav a:hover {
  color: var(--amber-warm);
  background: rgba(255, 214, 153, .06);
}
.primary-nav a.is-active {
  color: var(--amber-warm);
  background: rgba(244, 162, 97, .12);
  box-shadow: inset 0 0 0 1px rgba(244, 162, 97, .35);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 3, 26, .97);
    backdrop-filter: blur(20px);
    padding: 1rem var(--shell-pad);
    gap: .35rem;
    border-bottom: 1px solid rgba(199, 178, 255, .12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease-mystic), opacity .3s var(--ease-mystic);
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a { width: 100%; text-align: center; }
}

/* ---------- 6. Shell + section ----------------------------------------- */
.shell { max-width: var(--shell-max); margin: 0 auto; padding-inline: var(--shell-pad); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-type);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ghost-glow);
  padding: .35rem .9rem;
  border: 1px dashed rgba(110, 231, 216, .35);
  border-radius: 999px;
  margin-bottom: 1.2rem;
  opacity: .9;
}

.section-title {
  margin-bottom: .4em;
}

.section-kicker {
  font-family: var(--font-script);
  color: var(--amber-warm);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transform: rotate(-1.5deg);
}

/* ---------- 7. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 880px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(5rem, 10vh, 8rem) var(--shell-pad) clamp(4rem, 8vh, 6rem);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__inner { max-width: 880px; }

.hero__pre {
  font-family: var(--font-script);
  color: var(--amber-warm);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: .6rem;
  letter-spacing: .04em;
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-family: var(--font-display);
  font-weight: 900;
  background: linear-gradient(180deg, var(--ink) 0%, var(--lavender-bright) 55%, var(--ghost-mist) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(199, 178, 255, .35));
  margin-bottom: .35em;
  line-height: 1;
}

.hero__sub {
  font-family: var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  color: var(--lavender);
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
}

.hero__cta { display: inline-flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.hero__doors {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  pointer-events: none;
  z-index: -1;
}
.hero__door {
  width: 28%;
  background: linear-gradient(90deg, rgba(6, 3, 26, .85), rgba(16, 8, 43, .65) 70%, transparent);
  border-right: 1px solid rgba(199, 178, 255, .08);
  transform-origin: left center;
  animation: door-swing 24s var(--ease-mystic) infinite alternate;
}
.hero__door--right {
  background: linear-gradient(270deg, rgba(6, 3, 26, .85), rgba(16, 8, 43, .65) 70%, transparent);
  border-right: none;
  border-left: 1px solid rgba(199, 178, 255, .08);
  transform-origin: right center;
  animation: door-swing-right 24s var(--ease-mystic) infinite alternate;
}
@keyframes door-swing        { 0%, 60% { transform: rotateY(0); } 100% { transform: rotateY(-18deg); } }
@keyframes door-swing-right  { 0%, 60% { transform: rotateY(0); } 100% { transform: rotateY( 18deg); } }

.hero__light-spill {
  position: absolute;
  top: 0; left: 28%; right: 28%;
  height: 100%;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(244, 162, 97, .35), transparent 70%);
  filter: blur(28px);
  animation: candle-pulse 4s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
@keyframes candle-pulse {
  0% { opacity: .8; }
  100% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.02); }
}

/* floating ghost cat */
.hero__cat {
  position: absolute;
  width: clamp(110px, 18vw, 220px);
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(110, 231, 216, .4));
  animation: ghost-float 9s var(--ease-mystic) infinite alternate;
  pointer-events: none;
}
.hero__cat--left  { left: 4%;  top: 22%; animation-delay: -2s; }
.hero__cat--right { right: 4%; top: 28%; animation-delay: -5s; transform-origin: center; }

@keyframes ghost-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-2deg); opacity: .9; }
  50%  { opacity: 1; }
  100% { transform: translate3d(0, -22px, 0) rotate(2deg); opacity: .8; }
}

/* ---------- 8. Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-mystic), box-shadow .25s var(--ease-mystic), background .25s var(--ease-mystic);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--rose-deep), var(--lavender-deep));
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(124, 58, 237, .45), inset 0 0 0 1px rgba(255,255,255,.08);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(192, 132, 252, .55), inset 0 0 0 1px rgba(255,255,255,.18);
  color: var(--ink);
}
.btn--ghost {
  background: rgba(199, 178, 255, .06);
  border-color: rgba(199, 178, 255, .35);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(199, 178, 255, .14); border-color: var(--lavender-bright); color: var(--ink); }

/* live pulse */
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .2em;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(244, 162, 97, .12);
  color: var(--amber-warm);
  border: 1px solid rgba(244, 162, 97, .35);
}
.live-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-warm);
  box-shadow: 0 0 10px var(--amber-warm);
  animation: pulse-blink 1.6s ease-in-out infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* ---------- 9. Card / glass ------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 30px 80px -40px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(110, 231, 216, .15), transparent 40%, rgba(244, 162, 97, .1));
  mix-blend-mode: screen;
  opacity: .5;
}
.card > * { position: relative; }

/* ---------- 10. Mystic cats row --------------------------------------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  display: flex; flex-direction: column; gap: .35rem;
  text-align: center;
  transition: transform .4s var(--ease-mystic);
}
.cat-card:hover { transform: translateY(-6px) rotate(.5deg); }
.cat-card__art {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(110, 231, 216, .12), transparent 70%);
  border-radius: var(--radius);
  margin-bottom: .35rem;
  transition: background .3s, box-shadow .3s;
}
.cat-card:hover .cat-card__art {
  background: radial-gradient(circle at 50% 40%, rgba(110, 231, 216, .25), transparent 70%);
  box-shadow: 0 0 30px rgba(110, 231, 216, .25);
}
.cat-card__art svg,
.cat-card__art img { width: 78%; height: auto; display: block; margin: 0 auto; }
.cat-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: .1em;
  color: var(--lavender-bright);
  margin: 0;
}
.cat-card__secret {
  font-family: var(--font-script);
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

/* ---------- 11. Napkin notes ------------------------------------------ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.napkin {
  position: relative;
  padding: 1.6rem 1.4rem 2.2rem;
  background: linear-gradient(180deg, #f3ecdc, #ebe0c9);
  color: #3a2c1c;
  font-family: var(--font-type);
  border-radius: 6px;
  border: 1px solid rgba(58, 44, 28, .15);
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .35);
  transform: rotate(var(--rot, 0deg));
  transition: transform .4s var(--ease-mystic);
}
.napkin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.4   0 0 0 0 0.32   0 0 0 0 0.2   0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  border-radius: inherit;
  pointer-events: none;
}
.napkin::after {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 70%; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(244, 162, 97, .7), transparent);
  filter: blur(4px);
  border-radius: 14px;
  opacity: .9;
  pointer-events: none;
}
.napkin:hover { transform: rotate(0deg) translateY(-4px); }
.napkin__quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.35;
  color: #4a3526;
  margin: 0 0 .75rem;
  transform: rotate(-1deg);
}
.napkin__sig {
  font-family: var(--font-type);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a5a3a;
  opacity: .8;
}

/* ---------- 12. Live status card -------------------------------------- */
.live-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}
.live-card__row {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.live-card__title {
  margin: 0;
  font-size: 1.2rem;
}
.countdown {
  display: flex; gap: .75rem; flex-wrap: wrap;
  font-family: var(--font-type);
}
.countdown__cell {
  background: rgba(199, 178, 255, .08);
  border: 1px solid rgba(199, 178, 255, .18);
  border-radius: 10px;
  padding: .55rem .9rem;
  text-align: center;
  min-width: 64px;
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--amber-warm);
  line-height: 1;
}
.countdown__lbl {
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: .25rem;
}

.twitch-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow:
    0 30px 80px -30px rgba(192, 132, 252, .35),
    0 0 0 6px rgba(199, 178, 255, .05);
}
.twitch-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- 13. Schedule ---------------------------------------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.day-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: transform .35s var(--ease-mystic), border-color .3s, box-shadow .3s;
}
.day-pill:hover { transform: translateY(-4px); border-color: var(--lavender-bright); box-shadow: 0 14px 30px -16px rgba(192, 132, 252, .55); }
.day-pill__day {
  font-family: var(--font-heading);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--ghost-glow);
  margin-bottom: .35rem;
}
.day-pill__time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--amber-warm);
}
.day-pill__note {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-top: .25rem;
}
.day-pill.is-closed { opacity: .55; }
.day-pill.is-closed .day-pill__time::after {
  content: "—";
  font-family: var(--font-display);
  display: block;
  color: var(--ink-muted);
}

/* ---------- 14. Footer ------------------------------------------------ */
.site-footer {
  margin-top: 4rem;
  padding: 3rem var(--shell-pad) 4rem;
  background: linear-gradient(180deg, transparent, rgba(6, 3, 26, .9));
  border-top: 1px solid rgba(199, 178, 255, .08);
  text-align: center;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--lavender), var(--amber), var(--lavender), transparent);
  opacity: .5;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: .6rem;
}
.site-footer__tag {
  font-family: var(--font-script);
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.site-footer__row {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 1rem;
}
.site-footer__copy {
  font-size: .82rem;
  color: var(--ink-dim);
  letter-spacing: .05em;
}

/* ---------- 15. Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__doors, .hero__door, .hero__light-spill, .dust-mote, .ghost-float { animation: none !important; }
}

/* ---------- 16. Reveal-on-scroll -------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-mystic), transform .9s var(--ease-mystic); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. About-page portrait ---------------------------------- */
.portrait-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.8rem;
  align-items: center;
}
@media (max-width: 720px) {
  .portrait-card { grid-template-columns: 1fr; }
}
.portrait-art {
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 30%, rgba(244, 162, 97, .25), transparent 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-art svg { width: 80%; height: auto; }

/* ---------- 18. Candle accent ---------------------------------------- */
.candle-accent {
  display: inline-block;
  vertical-align: middle;
  width: 12px; height: 26px;
  margin: 0 .25em;
}

/* ---------- 19. Custom cat-paw cursor -------------------------------- */
/* Lightweight SVG cursor with a sane fallback. Touch devices and
   reduced-motion users get the OS cursor to avoid a useless pictogram. */
:root {
  --cursor-paw: url("images/paw-cursor.svg") 16 8, pointer;
  --cursor-paw-text: url("images/paw-cursor.svg") 16 8, text;
}

html, body { cursor: var(--cursor-paw); }

a, button, .btn, .nav-toggle,
.primary-nav a, .day-pill, .cat-card,
.day-pill *, .cat-card *,
.brand, [role="button"] { cursor: var(--cursor-paw); }

input, textarea, select, [contenteditable="true"] { cursor: var(--cursor-paw-text); }

/* Tiny click-press flourish on paw print using :active scale */
button:active, .btn:active, .cat-card:active, .day-pill:active {
  transform: scale(.97);
}

/* Touch + reduced-motion: drop the paw so OS cursor takes over */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  html, body, a, button, .btn, .nav-toggle,
  .primary-nav a, .day-pill, .cat-card { cursor: auto; }
  input, textarea, select { cursor: auto; }
  button:active, .btn:active, .cat-card:active, .day-pill:active { transform: none; }
}

/* ---------- 20. Misc page accent ------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 178, 255, .35), transparent);
  margin: 2.5rem auto;
  max-width: 300px;
}

.tag-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.tag {
  font-family: var(--font-type);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border: 1px solid rgba(199, 178, 255, .25);
  border-radius: 999px;
  color: var(--ink-muted);
}

/* quiet utility */
.center { text-align: center; }
/* section 19a intentionally re-ordered above: keep numerics tidy */
.muted  { color: var(--ink-muted); }
.script { font-family: var(--font-script); color: var(--amber-warm); }
