/* ═══════════════════════════════════════════════════════════
   style.css — Sweet Memory Blog
   A soft, feminine, Hello-Kitty-inspired (original art only)
   personal photo diary. Sections:
     1. base & utilities        6. category nav
     2. loading screen          7. photo sections & cards
     3. page layout             8. lightbox
     4. sidebar                 9. footer / back-to-top / particles
     5. hero + visitor card    10. responsive + reduced motion
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. Base & utilities
   ───────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

html.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  /* soft wash of pink/lilac so big screens never feel empty */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 231, 0.55) 0%, transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(217, 194, 255, 0.35) 0%, transparent 30%),
    radial-gradient(circle at 70% 90%, rgba(255, 214, 231, 0.4) 0%, transparent 36%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--pink-strong);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink-strong);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--pink-light);
  color: var(--text-primary);
}

/* Thin, on-theme scrollbars (Chromium only, harmless elsewhere) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--pink-soft) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--pink-soft);
  border-radius: var(--r-pill);
  border: 2px solid var(--bg-primary);
}
*::-webkit-scrollbar-track { background: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* SVG icon sprite sizing; monochrome symbols inherit currentColor */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.14em;
}
.icon--inline {
  width: 0.9em;
  height: 0.9em;
  color: var(--pink-strong);
}

/* ─────────────────────────────────────────────
   2. Loading screen
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   3. Page layout (two-column, sticky sidebar)
   ───────────────────────────────────────────── */

.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--page-pad);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: var(--page-pad);
  max-height: calc(100vh - 2 * var(--page-pad));
  overflow-y: auto;
}

.content {
  min-width: 0; /* let grids/long words shrink inside the column */
  scroll-margin-top: calc(var(--page-pad) + 8px);
}

/* ─────────────────────────────────────────────
   4. Sidebar — cute stationery card
   ───────────────────────────────────────────── */

.sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 231, 0.65) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(217, 194, 255, 0.28) 0%, transparent 40%),
    var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: 30px 24px 22px;
}

.sidebar-deco {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
}
.sidebar-deco .icon { width: 17px; height: 17px; }
.sidebar-deco--paw   { top: 14px; right: 20px; transform: rotate(14deg); color: #f2a9c4; }
.sidebar-deco--star  { top: 46%; left: 12px; color: #cbb1f2; }
.sidebar-deco--star .icon { width: 14px; height: 14px; }
.sidebar-deco--heart { bottom: 96px; right: 16px; color: #ff9fbe; }
.sidebar-deco--heart .icon { width: 15px; height: 15px; }

.profile-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--border-soft);
}

.avatar-frame {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
}

/* stitched scallop ring around the avatar */
.avatar-frame::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 3px dotted var(--pink-soft);
}

.avatar-img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(255, 111, 159, 0.28);
  background: var(--pink-light);
}

.avatar-bow {
  position: absolute;
  top: -18px;
  right: -8px;
  transform: rotate(18deg);
  filter: drop-shadow(0 4px 6px rgba(255, 111, 159, 0.35));
}
.avatar-bow .icon { width: 36px; height: 36px; }

.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile-subtitle {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--pink-strong);
}

.profile-location {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.profile-bio {
  margin: 12px auto 0;
  max-width: 30ch;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.sidebar-block {
  margin-top: 20px;
}

.sidebar-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sidebar-block-title .icon {
  width: 17px;
  height: 17px;
  color: var(--pink-strong);
}

.interests-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interests-list li {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--text-secondary);
}
.interests-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--pink-main);
  vertical-align: 1px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--text-primary);
  cursor: default;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.tag-chip:nth-child(3n + 1) { background: var(--pink-light); }
.tag-chip:nth-child(3n + 2) { background: var(--lilac-soft); }
.tag-chip:nth-child(3n)     { background: #ffe9d9; }
.tag-chip:hover {
  transform: scale(1.07);
  box-shadow: var(--shadow-chip);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--pink-soft), var(--lilac));
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 24px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pink-main);
  box-shadow: 0 0 0 3px rgba(255, 143, 177, 0.18);
}

.timeline-date {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pink-strong);
  background: var(--pink-light);
  border-radius: var(--r-pill);
  padding: 2px 9px;
}

.timeline-title {
  margin: 6px 0 2px;
  font-size: var(--fs-small);
  font-weight: 800;
}

.timeline-desc {
  margin: 0;
  font-size: var(--fs-tiny);
  color: var(--text-secondary);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--pink-strong);
  font-size: var(--fs-tiny);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-chip);
}
.social-btn .social-icon {
  display: inline-flex;
}
.social-btn .social-icon .icon {
  width: 15px;
  height: 15px;
}
.social-btn:hover .social-icon {
  animation: icon-bounce 0.5s var(--ease-soft);
}

@keyframes icon-bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-6px) scale(1.15); }
  70%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

.sidebar-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px dashed var(--border-soft);
  text-align: center;
  font-size: var(--fs-tiny);
  color: var(--text-faint);
}
.sidebar-footer p { margin: 2px 0; }

.kitty-mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 2px 0 22px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 143, 177, 0.34);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,232,241,.92));
  box-shadow: 0 12px 28px rgba(201, 82, 125, .10);
}

.kitty-mini-card img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  object-position: center 48%;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(112, 61, 80, .12);
}

.kitty-mini-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 800;
  line-height: 1.65;
}

.kitty-mini-card span { color: var(--pink-strong); }

/* ─────────────────────────────────────────────
   5. Hero + visitor card
   ───────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(30px, 4.5vw, 52px);
}

/* dotted ribbon strip along the top of the hero card */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--pink-main) 0 22px,
    var(--lilac) 22px 44px
  );
  opacity: 0.65;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kitty-hero-art {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 22px;
  width: clamp(165px, 19vw, 238px);
  height: min(360px, calc(100% - 42px));
  object-fit: cover;
  object-position: center 48%;
  border: 6px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  box-shadow: 0 18px 42px rgba(177, 72, 112, .18);
  transform: rotate(1.6deg);
}

.floaty {
  position: absolute;
  left: var(--x);
  top: var(--y);
  opacity: 0.5;
  animation: floaty 6s ease-in-out infinite alternate;
}
.floaty .icon { width: 26px; height: 26px; }
.floaty--bow    { color: var(--pink-main); }
.floaty--bow .icon { width: 30px; height: 30px; }
.floaty--heart  { animation-delay: 0.8s; color: var(--pink-main); }
.floaty--heart .icon { width: 22px; height: 22px; }
.floaty--star   { animation-delay: 1.6s; color: #cbb1f2; }
.floaty--star .icon { width: 22px; height: 22px; }
.floaty--flower { animation-delay: 2.2s; }
.floaty--berry  { animation-delay: 3s; }
.floaty--berry .icon { width: 24px; height: 24px; }
.floaty--paw    { animation-delay: 3.6s; opacity: 0.4; color: #f2a9c4; }
.floaty--paw .icon { width: 18px; height: 18px; }

@keyframes floaty {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-16px) rotate(6deg); }
}

.hero-kicker {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 250px);
  margin: 0;
  font-size: var(--fs-kicker);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-strong);
}

.hero-title {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 250px);
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.grad-text {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  max-width: min(62ch, calc(100% - 250px));
  color: var(--text-secondary);
}

.visitor-card {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 250px);
  margin-top: 26px;
  display: inline-flex;
  align-items: stretch;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-chip);
  padding: 16px 26px 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 0 14px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pink-strong);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

.visitor-note {
  flex-basis: 100%;
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─────────────────────────────────────────────
   6. Category navigation
   ───────────────────────────────────────────── */

.cat-nav-wrap {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin-top: 22px;
}

.cat-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 253, 253, 0.92);
  border: 1px solid var(--border-softer);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-soft);
}
.cat-chip .cat-icon {
  display: inline-flex;
  color: var(--pink-strong);
}
.cat-chip .cat-icon .icon { width: 15px; height: 15px; }
.cat-chip:hover {
  background: var(--pink-light);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-chip);
}
.cat-chip.is-active {
  background: var(--grad-btn);
  border-color: transparent;
  color: var(--text-on-pink);
  box-shadow: var(--shadow-chip);
}
/* keep the pastel motifs legible on the pink gradient */
.cat-chip.is-active .cat-icon {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  padding: 3px;
}

/* ─────────────────────────────────────────────
   7. Photo sections & cards
   ───────────────────────────────────────────── */

.photo-section {
  margin-top: clamp(42px, 5vw, 60px);
  scroll-margin-top: 96px; /* clears the sticky category nav */
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--surface-pink);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-chip);
  transform: rotate(-4deg);
  color: var(--pink-strong);
}
.section-icon .icon { width: 26px; height: 26px; }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.25;
}

/* scalloped pink underline */
.section-title::after {
  content: "";
  display: block;
  width: 132px;
  height: 6px;
  margin-top: 7px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 6px -3px, transparent 7px, var(--pink-main) 7.5px) 0 0 / 14px 6px repeat-x;
  opacity: 0.75;
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border-softer);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(187, 101, 137, 0.1);
  transition: transform var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft);
}

.photo-card:hover,
.photo-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.photo-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pink-light);
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-soft);
}

.photo-card:hover .photo-media img {
  transform: scale(1.06);
}

.photo-cat-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  font-size: var(--fs-tiny);
  font-weight: 800;
  color: var(--pink-strong);
  backdrop-filter: blur(4px);
}
.photo-cat-chip .icon { width: 12px; height: 12px; }

.photo-open-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 111, 159, 0.92);
  color: #fff;
  font-size: var(--fs-tiny);
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--dur-med) var(--ease-soft);
  pointer-events: none;
}

.photo-card:hover .photo-open-hint,
.photo-card:focus-within .photo-open-hint {
  opacity: 1;
  transform: translateY(0);
}

.photo-body {
  padding: 16px 18px 18px;
}

.photo-title {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.4;
}

.photo-meta {
  margin: 5px 0 0;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--text-faint);
}

.photo-desc {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-location {
  margin: 9px 0 0;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--pink-strong);
}
.photo-location .icon { width: 12px; height: 12px; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
}

/* ─────────────────────────────────────────────
   8. Lightbox
   ───────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-soft);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(85, 54, 70, 0.6);
  backdrop-filter: blur(7px);
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(1020px, 100%);
  max-height: 100%;
  margin: 0;
  transform: translateY(14px) scale(0.985);
  transition: transform var(--dur-med) var(--ease-soft);
}
.lightbox.is-open .lightbox-figure { transform: none; }

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  flex: 1 1 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 253, 253, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.lightbox-img {
  max-width: 100%;
  max-height: min(70vh, 720px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-md);
  border: 6px solid #fff;
  box-shadow: 0 24px 70px rgba(60, 30, 45, 0.45);
  background: var(--surface-pink);
}

.lightbox.is-loading .lightbox-img { opacity: 0; }

.lightbox-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--pink-light);
  border-top-color: var(--pink-strong);
  opacity: 0;
  animation: spin 0.9s linear infinite;
  pointer-events: none;
}
.lightbox.is-loading .lightbox-spinner { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-caption {
  width: min(720px, 100%);
  background: rgba(255, 253, 253, 0.96);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 22px 14px;
  text-align: center;
  max-height: 34vh;
  overflow-y: auto;
}

.lightbox-caption-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.lightbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--pink-light);
  color: var(--pink-strong);
  font-size: var(--fs-tiny);
  font-weight: 800;
}
.lightbox-badge .icon { width: 12px; height: 12px; }

.lightbox-meta {
  margin: 6px 0 0;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--text-faint);
}
.lightbox-meta .icon { width: 12px; height: 12px; }
.lightbox-meta .meta-pin { color: var(--pink-strong); }

.lightbox-desc {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.lightbox-hint {
  margin: 10px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.lightbox-btn {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: rgba(255, 253, 253, 0.94);
  color: var(--pink-strong);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-chip);
  transition: transform var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}
.lightbox-btn:hover {
  background: var(--pink-light);
  transform: scale(1.08);
}

.lightbox-close { top: clamp(12px, 2.5vw, 26px); right: clamp(12px, 2.5vw, 26px); font-size: 1.15rem; }
.lightbox-prev  { left: clamp(10px, 2.5vw, 30px);  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ─────────────────────────────────────────────
   9. Footer, back-to-top, click particles
   ───────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 30px 20px;
  text-align: center;
  background: var(--surface-pink);
  border: 1px solid var(--border-softer);
  border-radius: var(--r-xl);
}
.site-footer p { margin: 4px 0; font-weight: 700; }
.site-footer-sub {
  font-size: var(--fs-tiny);
  color: var(--text-faint);
  font-weight: 600 !important;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--pink-light);
  background: #fff;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--dur-med) var(--ease-soft);
}
.back-to-top .icon { width: 26px; height: 26px; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

.click-particle {
  position: fixed;
  z-index: 1300;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: particle-float 1.15s ease-out forwards;
  will-change: transform, opacity;
}
.click-particle .icon {
  width: 15px;
  height: 15px;
}

@keyframes particle-float {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, -70px))) scale(1.2) rotate(var(--pr, 20deg));
  }
}

/* ─────────────────────────────────────────────
   10. Responsive + reduced motion
   ───────────────────────────────────────────── */

/* Tablet: narrower sidebar, two-ish column cards */
@media (max-width: 1099px) {
  .page-shell {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px;
  }
  .floaty .icon { width: 20px; height: 20px; }
  .floaty--bow .icon { width: 24px; height: 24px; }
  .kitty-hero-art {
    right: 18px;
    width: 175px;
  }
  .hero-kicker,
  .hero-title { max-width: calc(100% - 185px); }
  .hero-lead,
  .visitor-card { max-width: calc(100% - 185px); }
}

/* Mobile: sidebar becomes a top section, single column */
@media (max-width: 767px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
    gap: 16px;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .cat-nav-wrap { top: 6px; }

  .cat-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }

  .hero { padding: 26px 20px; }
  .kitty-hero-art {
    right: -18px;
    bottom: -34px;
    width: 168px;
    height: 245px;
    border-width: 4px;
    opacity: .22;
    transform: rotate(5deg);
  }
  .hero-kicker,
  .hero-title,
  .hero-lead,
  .visitor-card { max-width: 100%; }
  .floaty { opacity: 0.35; }
  .floaty .icon { width: 16px; height: 16px; }
  .floaty--bow .icon { width: 20px; height: 20px; }

  .visitor-card {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px 10px;
  }
  .stat { min-width: 0; padding: 0 8px; }
  .stat-value { font-size: 1.35rem; }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .photo-body { padding: 12px 14px 14px; }

  .section-icon { width: 44px; height: 44px; }
  .section-icon .icon { width: 22px; height: 22px; }

  /* lightbox: buttons along the bottom, nothing overlaps content */
  .lightbox { padding: 12px; }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: auto; right: 70px; }
  .lightbox-prev:hover,
  .lightbox-next:hover { transform: scale(1.06); }
  .lightbox-img { max-height: 52vh; border-width: 4px; }
  .lightbox-caption { max-height: 26vh; padding: 12px 16px 10px; }
  .lightbox-hint { display: none; }

  .back-to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

/* Small mobile */
@media (max-width: 479px) {
  .hero-title { font-size: 1.85rem; }
  .stat-divider { display: none; }
  .visitor-card { gap: 4px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Reduced motion: keep everything calm */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .floaty {
    animation: none !important;
  }
}
