/* css/style.css */
:root {
  --bg: #f8eacf;
  /* fff6e5 original */
  --bg-transparent: rgba(248, 234, 207, 0.98);
  /* 255 246 229 .85 original */
  --bg-analogous: #ffe9e5;
  --bg-analogous-2: #ff6969;
  /* ffe9e5 original */
  --bg-complementary: #cfddf8;
  --bg-complementary-light: #f1f4fa;
  --ink: #3a1b22;
  /* original: 1c1b22 */
  --ink-dark: #111016;        /* darker ink for hover states */
  --ink-legacy: #1c1b22;      /* legacy ink color (still used in some places) */
  --ink-complementary: #1c1b44;
  --offwhite: #fdfdfd;
  --darkblue: #464686;
  --peach: #fcf1bc;
  --light-peach: #fdf8df;
  --ziggy: #ffc80f;
  --elliot: #4d81f6;
  --elliot-light: #d6e2ff;
  --elliot-dark: #2a5bb3;     /* darker blue for active state */
  --blue-tint: #e9f3ff;       /* light blue tint for backgrounds */
  --accent: #f83459;
  --accent-light: #fda2b8;
  --pink-tint: #ffe9f2;       /* light pink tint for backgrounds */
  --accent-2: #3a7bd5;
  --panel: #ffffff;
  --ring1: #f44336;
  --ring2: #ff9800;
  --ring3: #ffc107;
  --ring4: #ffeb3b;
  --ring5: #ffcc80;
  --year-color: #ffc107;
  --year-light: #ffefc0;
  --nsfw-tint: rgb(250, 206, 206);
  --shadow: 0 12px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.25);
  --radius: 22px;
  --maxw: 1200px;
  --ui-font: "Fredoka", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  
  /* Transition variables for consistency */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.18s ease;
  --transition-slow: 0.25s ease;
  
  /* Border radius system */
  --radius-xs: 2px;      /* tiny corners (scrollbars, fine details) */
  --radius-sm: 8px;      /* small elements */
  --radius-md: 10px;     /* medium elements (most common) */
  --radius-lg: 12px;     /* large elements */
  --radius-xl: 16px;     /* extra large */
  --radius-pill: 999px;  /* pill-shaped buttons */
  --radius-circle: 50%;  /* circular avatars/icons */
  
  /* Legacy variables (kept for compatibility) */
  --radius-small: 8px;
  --radius-medium: 12px;
  
  /* Gallery-specific variables (moved from gallery.css) */
  --vthumb: 64px;        /* thumbnail size for variant strips */
  --vgap: 10px;          /* gap between variant thumbnails */
  --header-h: 4.5rem;    /* header height for lightbox calculations */
  --overlay-gap: 24px;   /* lightbox overlay padding */
  --vstrip-pad-y: 10px;  /* vertical padding for variant strip */
  --label-h: 16px;       /* label height in variant strip */
  --vstrip-h: calc(var(--vthumb) + var(--label-h) + (var(--vstrip-pad-y) * 2));
}

* {
  box-sizing: border-box;
}

/* Ensure the actual content sits above the overlay */
header,
main,
footer,
section,
.site-header,
.detail-wrap,
.gallery {
  position: relative;
  z-index: 1;
}

html,
body {
  height: auto;
  /* allow growth with content */
  min-height: 100%;
  /* at least full viewport */
  position: relative;
  /* needed for absolute child */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fredoka", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

/* Content-anchored tiled background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* stretch relative to body’s total height */

  background: url("https://cdn.wolfbard.art/cdn-cgi/image/width=1080,quality=50,format=auto/layout/background.jpg")
    repeat;
  background-size: 1080px auto;

  opacity: 0.2;
  /* make partially transparent */
  background-blend-mode: multiply;

  pointer-events: none;
  z-index: -1;
  /* keep behind content */
}

/* Buttons (shared) */
.btn {
  padding: 0.5rem 0.8rem;
  border: 3px solid var(--ink, #1c1b22);
  background: var(--offwhite);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 1rem;
  /* keep identical size in both contexts */
  line-height: 1;
  /* avoid vertical jump/shift */
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn:hover {
  background-color: var(--accent);
  box-shadow: 0 8px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  color: var(--offwhite);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn:focus-visible {
  outline: 3px dashed var(--accent);
  outline-offset: 3px;
  background-color: var(--accent);
}

/* ===== Sections / Footer ===== */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}

.updates {
  background: var(--offwhite);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}

.updates h2 {
  font-family: "Grandstander";
  margin: 0.2rem 0 0.6rem;
}

.updates p {
  margin: 0.4rem 0;
}

.recent-title {
  text-align: center;
}

.credits-block {
  font-size: 0.95rem;
  opacity: 0.9;
}

footer {
  text-align: center;
  margin-top: 3.5rem;
  padding: 0rem 1rem 2rem;
}

footer a:hover {
  display: inline-block; /* needed so transform works properly */
  animation: wiggle 0.6s ease-in-out;
}

.tiny {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== ABOUT PAGE ===== */
.wrap {
  max-width: var(--maxw);
  width: min(100%, var(--maxw));
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
  display: grid;
  gap: 18px;
}

/* About page card styling */
.card {
  position: relative;
  background: var(--offwhite);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  display: grid;
  grid-template-columns: clamp(84px, 24vw, 120px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  align-items: flex-start;
}

/* Long text / buttons can wrap instead of forcing the grid wider */
.blurb,
.btns .btn,
.links .btn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portrait {
  width: clamp(84px, 24vw, 120px);
  height: clamp(84px, 24vw, 120px);
  border-radius: var(--radius-xl);
  border: 3px solid var(--ink);
  object-fit: cover;
  background: var(--offwhite);
  box-shadow: 0 6px 0 var(--ink);
}

.portrait:hover {
  animation: wiggle 0.8s ease-in-out;
}

.card h2 {
  margin: 0.2rem 0 0.4rem;
  font-family: "Grandstander";
}

/* Narrow viewports: stack cards comfortably */
@media (max-width: 560px) {
  .card-body,
  .author {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 96px;
    height: 96px;
    margin-bottom: 0.5rem;
  }

  /* Keep social grid single column and avoid side scrolling */
  .social-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
}

.blurb {
  margin: 0.25rem 0 0.6rem;
}

.btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Author panel */
.author {
  display: grid;
  grid-template-columns: clamp(96px, 28vw, 140px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  align-items: flex-start;
}

.author .portrait {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-circle);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.section-title {
  margin: 0.4rem 0 0.2rem;
  padding: 0.6rem 1rem;
  font-family: "Grandstander";
  border-left: 6px solid var(--accent);
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Social Showcase ===== */
.social-showcase {
  max-width: var(--maxw);
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}

.social-title {
  font-family: "Grandstander";
  margin: 0.2rem 0 0.8rem;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  /* space between panels */
  max-width: var(--maxw, 1100px);
  margin: 0 auto;
  padding: 1rem;
}

.sm-card {
  background: var(--offwhite);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem 1rem;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium),
    background-color var(--transition-medium), border-color var(--transition-medium);
}

.sm-card:hover {
  transform: translateY(-3px);
  background-color: var(--offwhite);
  border-color: var(--ink-dark);
  box-shadow: 0 14px 0 var(--ink), 0 16px 28px rgba(0, 0, 0, 0.28);
}

.sm-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.sm-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--offwhite);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--ink);
}

.sm-meta .sm-name {
  font-weight: 800;
}

.sm-meta .sm-handle {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.sm-desc {
  margin: 0.25rem 0 0.6rem;
}

.sm-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.2rem 0 0.7rem;
}

.sm-thumbs a {
  display: block;
}

.sm-thumbs img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 3px solid var(--ink, #1c1b22);
  border-radius: var(--radius-md);
  background: var(--offwhite);
}

/* Call-to-action button */
.sm-cta {
  display: flex;
  justify-content: flex-end;
}

.sm-cta .btn {
  white-space: nowrap;
  background: var(--elliot);
  color: var(--offwhite);
}

.sm-cta .btn:hover {
  background: var(--accent-2);
  color: var(--offwhite);
}

.sm-cta .btn:active {
  background: var(--elliot-dark);
  color: var(--offwhite);
}

/* Accent hints per platform (optional) */
.sm-bsky .sm-icon {
  background: var(--blue-tint);
}

.sm-ig .sm-icon {
  background: var(--pink-tint);
}

/* Mobile tweak */
@media (max-width: 520px) {
  .sm-cta {
    justify-content: stretch;
  }

  .sm-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Force Instagram embeds to be fully responsive */
.sm-card.sm-ig {
  overflow: hidden;
  /* hide any overflow */
}

.sm-card.sm-ig blockquote.instagram-media {
  min-width: 0 !important;
  /* remove the 326px Instagram min-width */
  width: 100% !important;
  /* always fit the parent */
  max-width: 100% !important;
  box-sizing: border-box;
}

.sm-card.sm-ig iframe,
.sm-card.sm-ig blockquote.instagram-media > div {
  max-width: 100% !important;
  width: 100% !important;
}

/* Make panels eligible for peg holes */
.updates.has-pegbar,
.character.has-pegbar {
  position: relative;
  overflow: visible;
  /* show the holes if they peek near the edges */
}

/* Peg holes band inside the card, near the top */
.updates.has-pegbar .pegbar-holes,
.character.has-pegbar .pegbar-holes {
  position: absolute;
  top: 0.5rem;
  /* move holes inside the window */
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(56px, 9vw, 160px);
  pointer-events: none;
  /* decoration only */
  z-index: 2;
}

/* Each hole – drawn to look punched into the paper */
.pegbar-holes .hole {
  position: relative;
  background: var(--bg);
  /* body bg color to imply cut-through */
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18),
    /* inner shadow for depth */ inset 0 -1px 0 rgba(255, 255, 255, 0.9),
    /* bottom highlight */ 0 0.5px 0 rgba(0, 0, 0, 0.08);
  /* thin outer touch */
}

/* Shapes */
.pegbar-holes .hole.slot {
  width: clamp(48px, 5vw, 72px);
  height: clamp(12px, 1.3vw, 16px);
  border-radius: var(--radius-pill);
}

.pegbar-holes .hole.dot {
  width: clamp(16px, 1.6vw, 22px);
  height: clamp(16px, 1.6vw, 22px);
  border-radius: 50%;
}

/* Make the Characters container position context */
.has-pin {
  position: relative;
}

/* --- PIN TACK --- */
.has-pin > .pin-tack {
  position: absolute;
  top: -18px;
  /* overlap the top edge */
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  z-index: 5;
  pointer-events: none;

  /* Cartoony glossy fill */
  background: radial-gradient(
      circle at 35% 28%,
      rgba(255, 255, 255, 0.95) 0 16%,
      transparent 17%
    ),
    var(--accent);
  border: 3px solid var(--ink-legacy);
  box-shadow: 0 6px 0 var(--ink-legacy), 0 14px 18px rgba(0, 0, 0, 0.15);
}

/* tack stem */
.has-pin > .pin-tack::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) rotate(10deg);
  width: 6px;
  height: 22px;
  background: var(--ink-legacy);
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 var(--ink-legacy);
}

/* soft shadow under pin */
.has-pin > .pin-tack::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(0, 0, 0, 0.21) 0 35%,
    rgba(0, 0, 0, 0.15) 36% 60%,
    transparent 61%
  );
  filter: blur(0.3px);
  opacity: 0.7;
}

/* ===== MISC PAGE ===== */
.misc-card {
  padding: 1rem 1.25rem;
}

.misc-card a:hover {
  display: inline-block; /* needed so transform works properly */
  animation: wiggle 0.6s ease-in-out;
}

.misc-card h2 {
  margin: 0.2rem 0 0.6rem;
  font-family: "Grandstander";
}

.misc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.misc-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.misc-card li img.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--ink);
  object-fit: cover;
  flex-shrink: 0;
}

.misc-card a {
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  color: inherit;
}

/* General safety: media never exceed their boxes */
img,
video {
  max-width: 100%;
  height: auto;
}

blockquote {
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem;
  border-left: 6px solid var(--accent);
  background: var(--offwhite);
  border-radius: var(--radius-md);
}

blockquote .by {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

blockquote {
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem 0.4rem 1rem;
  border-left: 6px solid var(--accent);
  background: var(--offwhite);
  border-radius: var(--radius-md);
}

blockquote .by {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== Misc page 2-col layout (people full width; media left, quotes right) ===== */
.misc-grid {
  display: grid;
  /* .wrap is already grid, but be explicit for clarity */
  grid-template-columns: 1fr;
  /* stack on mobile */
  gap: 18px;
  /* matches .wrap gap */
}

/* Desktop/tablet: two columns */
@media (min-width: 820px) {
  .misc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
    /* Force columns to ignore content width and align flush with container */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    grid-auto-rows: auto;
    gap: 18px;
  }

  /* 1) Favorite People spans both columns */
  .misc-grid .misc-card:nth-of-type(1) {
    grid-column: 1 / -1;
    height: auto;
  }

  /* 2) Favorite Quotes (2nd card) goes RIGHT column */
  .misc-grid .misc-card:nth-of-type(2) {
    order: 2;
    grid-column: 1;
  }

  /* 3) Favorite Media (3rd card) goes LEFT column */
  .misc-grid .misc-card:nth-of-type(3) {
    order: 1;
    grid-column: 2;
  }

  /* Bottom row — force equal height */
  .misc-grid .misc-card:nth-of-type(2),
  .misc-grid .misc-card:nth-of-type(3) {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Ensure cards fill their grid tracks perfectly */
  .misc-grid .misc-card {
    width: 100%;
    height: 100%;
    display: flex;
    /* so the panel background/border fills */
    flex-direction: column;
  }

  /* Fix inner margins so they don’t add extra gap */
  .misc-grid .misc-card:nth-of-type(2) > :last-child,
  .misc-grid .misc-card:nth-of-type(3) > :last-child {
    margin-bottom: 0;
  }
}

/* Stop drag ghost + accidental text selection on UI controls */
button,
.btn {
  -webkit-user-drag: none;
  /* Safari/Chrome */
  user-select: none;
  /* don’t highlight text while dragging */
  -webkit-tap-highlight-color: transparent;
}

/* Reserve space for header/hero mounts if they inject asynchronously */
#site-header[data-hydrate] {
  display: block;
  min-height: 4.5rem;
}

/* match your header */
#site-hero[data-hydrate] {
  display: block;
  min-height: clamp(260px, 44vh, 520px);
}

/* match your hero */

/* Gate all content after the hero with one wrapper */
#below-fold {
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
}

.hydrated #below-fold {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* ========================================
   UTILITY CLASSES - Common Patterns
   ======================================== */

/* Common card styling pattern used throughout the site */
.card-base {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--offwhite);
  overflow: hidden;
}

/* ========================================
   HERO SECTION STYLES (merged from hero.css)
   ======================================== */

:root {
  /* --- Make hero bleed up under the sticky header --- */
  /* Fallback if JS hasn't measured the header yet */
  --header-h: 4.5rem;
  --hero-fixed: 914px; /* 914 px original */
  /* ← pick the pixel height you liked on Home */
}

.hero,
.hero.hero--bleed {
  height: var(--hero-fixed);
}

/* On smaller screens, use a relative height */
@media (max-width: 768px) {
  .hero,
  .hero.hero--bleed {
    height: 84vh;
  }
}

/* Full-bleed hero that still keeps inner content nicely aligned */
.hero.hero--bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  /* pull the whole hero up so its rings sit behind the header */
  margin-top: calc(-1 * var(--header-h));
  /* give that space back inside so text doesn't collide with the header */
  padding-top: calc(4rem + var(--header-h));
}

.hero.hero--bleed > :not(.sparkles) {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Base hero visuals (you already had these; keeping here for clarity) */
.hero {
  background: var(--light-peach);
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64vh;
  padding: 4rem 0 2rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  /* adjust thickness & color */
  margin-bottom: 2rem;
  /* breathing room before next section */
  grid-template-columns: 1fr;
  /* rows: brand | title | spacer | subtitle | CTA */
  grid-template-rows: auto auto 1fr auto auto;
  place-items: start center;
  /* vertical start, horizontal center */
  grid-row: 4;
  /* min, preferred, max */
  /* min-height: clamp(420px, 64vh, var(--hero-max-h, 900px)); */
  min-height: clamp(var(--hero-fixed), 64vh, var(--hero-fixed));
  background-color: var(--accent);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25vmax;

  background: radial-gradient(
      circle at 50% 50%,
      var(--ring1) 0 16%,
      transparent 16% 17%
    ),
    radial-gradient(circle at 50% 50%, var(--ring2) 0 24%, transparent 24% 25%),
    radial-gradient(circle at 50% 50%, var(--ring3) 0 33%, transparent 33% 34%),
    radial-gradient(circle at 50% 50%, var(--ring4) 0 43%, transparent 43% 44%),
    radial-gradient(circle at 50% 50%, var(--ring5) 0 54%, transparent 54% 55%);
  filter: saturate(110%);
  z-index: -2;
  animation: slow-pan 30s linear infinite;
  opacity: 0.95;
}

@keyframes slow-pan {
  to {
    transform: rotate(360deg);
  }
}

/* Breathing wave effect: subtle in/out scale */
@keyframes waves {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.02);
    /* soft expansion */
    opacity: 1;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.12) 70%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: 1.25rem;
  }
}

/* Ensure text/cta float above center images */
.hero .hero-stack-top {
  position: relative;
  z-index: 2;
}

/* Base center images (bottom aligned by default) */
.hero-center-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(var(--scale, 0.6));
  transform-origin: center bottom;
  z-index: 1;
  /* below text, above rings */
  pointer-events: none;
  max-width: none;
}

/* First layer stays bottom aligned */
.hero-center-img.layer1 {
  bottom: 0;
  padding-bottom: 7.5rem;
}

/* Second layer aligns to top */
.hero-center-img.layer2 {
  top: 0;
  transform-origin: center top;
}

/* hover/bob animation (optional) */
.hero-center-img.is-hovering {
  animation: heroBob 6s ease-in-out infinite;
}

@keyframes heroBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(var(--scale, 0.6));
  }

  50% {
    transform: translateX(-50%) translateY(calc(-1 * var(--hover-amp, 10px)))
      scale(var(--scale, 0.6));
  }
}

.brand {
  display: inline-block;
  background: var(--light-peach);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  box-shadow: 0 8px 0 var(--ink);
  border: 3px solid var(--ink);
  transform: rotate(-2deg);

  position: relative;
  top: -1.5rem;
  /* raise ~8px; adjust up/down to taste */
  margin-top: 0;
  /* neutralize normal margin so it doesn't stack */
  overflow: hidden;
  /* clip the shine inside the pill */
}

.hero .brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
}

.hero .brand:hover::after {
  animation: shine 2s ease forwards;
  opacity: 1;
}

@keyframes shine {
  0% {
    left: -75%;
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    left: 125%;
    opacity: 0;
  }
}

.brand b {
  font-family: "Grandstander";
  letter-spacing: 0.5px;
}

h1.title {
  font-family: "Grandstander";
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  margin: 1rem 0 0.5rem;
  /* 0 0.1875rem 0 var(--peach), 0 0.5rem 0 var(--ink); */
  text-shadow: 0 3px 0 var(--peach), 0 8px 0 var(--ink);
}

/* Hero text highlight styling (replaces inline styles) */
.hero-highlight {
  color: var(--peach);
  text-shadow: 0 0 1px var(--offwhite);
}

@media (max-width: 768px) {
  /* Lessen the shadow when on smaller screens */
  h1.title {
    text-shadow: 0 2px 0 var(--peach), 0 5px 0 var(--ink);
  }
}

/* Reset any previous forced placement */
.hero .brand,
.hero h1.title {
  grid-row: auto !important;
  /* don't pin them to the same row */
  justify-self: center;
}

.subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  max-width: 42ch;
  margin: 0 0 0.75rem !important;
  opacity: 0.9;
}

.hero .cta {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  background: linear-gradient(
    180deg,
    var(--light-peach) 0%,
    var(--bg-analogous) 100%
  );
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 1rem 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: var(--ink);
  transform: translateY(0);
  transition: transform var(--transition-fast);
  background: var(--light-peach);
  user-select: none !important;
  -webkit-user-drag: none !important;
  /* optional: lets you select the text without grabbing the img */
  grid-row: 5;
  margin: 0 !important;
}

.hero .cta:hover {
  background-color: var(--accent);
  color: var(--offwhite);
  box-shadow: 0 10px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.hero .cta:active {
  transform: translateY(6px);
  box-shadow: 0 6px 0 var(--ink);
}

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

.sparkles span {
  position: absolute;
  width: 2rem;
  height: 2rem;
  transform: rotate(10deg) scale(1);
  border-radius: var(--radius-xs);
  animation: twinkle 3s ease-in-out infinite;
  opacity: 0.9;
}

.sparkles span::before,
.sparkles span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10deg);
  border-radius: var(--radius-xs);
}

/* vertical arm */
.sparkles span::before {
  width: 4px;
  height: 20px;
}

/* horizontal arm */
.sparkles span::after {
  width: 20px;
  height: 4px;
}

/* --- Non-selectable / non-draggable decorative layers --- */
.sparkles,
.sparkles *,
.hero-center-img {
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Twinkle animation */
@keyframes twinkle {
  0%,
  100% {
    transform: rotate(10deg) scale(0.8);
    opacity: 0.6;
  }

  50% {
    transform: rotate(10deg) scale(1.3);
    opacity: 1;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-16px) rotate(8deg);
  }
}

/* Simple color themes via CSS variables; override ring colors */
.hero--sunset {
  --ring1: #f44336;
  --ring2: #ff9800;
  --ring3: #ffc107;
  --ring4: #ffeb3b;
  --ring5: #ffcc80;
}

.hero--mint {
  --ring1: #3ad5a2;
  --ring2: #a6f0ce;
  --ring3: #c1fde0;
  --ring4: #e6fff5;
  --ring5: #f8fffb;
}

.hero--blue {
  --ring1: #3a7bd5;
  --ring2: #68a3f1;
  --ring3: #9cc3fb;
  --ring4: #cfe2ff;
  --ring5: #eaf2ff;
}

.hero-textbox {
  z-index: 2;
  color: var(--light-peach);
  text-shadow: 1px 1px 4.5px var(--ink);
  grid-row: 4;
}

/* Hide or reserve space until the hero is ready */
[data-mount-hero].hero-loading {
  visibility: hidden;
  /* prevents flash */
  min-height: 60vh;
  /* reserve vertical space */
}

[data-mount-hero].hero-ready {
  visibility: visible;
  transition: opacity 0.03s ease;
  opacity: 1;
}

/* ========================================
   RECENT ADDITIONS SECTION (merged from recent.css)
   ======================================== */

.recent-wrap {
  max-width: var(--maxw);
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.recent-title {
  font-family: "Grandstander", system-ui;
  margin: 0 0 0.75rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Recent card uses card-base utility but with custom hover */
.recent-card {
  position: relative;
  overflow: hidden;
}

.recent-card:hover {
  transform: translateY(-3px);
  background-color: var(--bg-analogous);
  border-color: var(--ink);
  box-shadow: 0 14px 0 var(--ink), 0 16px 28px rgba(0, 0, 0, 0.28);
}

/* square thumb area */
.recent-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* video fallback square */
.recent-fallback {
  width: 100%;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--offwhite);
  font-weight: 800;
  font-size: 2rem;
}

/* meta rows (match your gallery vibe) */
.recent-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
  align-items: center;
}

.recent-meta .tag {
  font-size: 0.82rem;
  background: var(--bg-analogous);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
}

.recent-credits {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 0.75rem 0.7rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.recent-credits a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.recent-credits .date {
  font-size: 0.85rem;
  opacity: 0.75;
  justify-self: end;
}

/* little play badge on video posters */
.play-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--offwhite);
  border: 3px solid var(--ink, #1c1b22);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink, #1c1b22);
}

/* Hide tags on cards when in lightbox (they appear in caption) */
.recent-meta .tag {
  display: none !important;
}

/* ========================================
   CURSOR SYSTEM (merged from cursor.css)
   ======================================== */

/* === Cursor variables === */
:root {
  --cursor-default: url("https://cdn.wolfbard.art/cursors/arrow.cur"), default;
  --cursor-text: url("https://cdn.wolfbard.art/cursors/text.cur"), text;
  --cursor-pointer: url("https://cdn.wolfbard.art/cursors/link_select.cur"),
    pointer;

  --cursor-busy: url("https://cdn.wolfbard.art/cursors/busy.ani"), wait;
  --cursor-starting: url("https://cdn.wolfbard.art/cursors/starting.ani"),
    progress;

  --cursor-help: url("https://cdn.wolfbard.art/cursors/help_select.cur"), help;
  --cursor-alternate: url("https://cdn.wolfbard.art/cursors/alternate_select.cur"),
    alias;

  --cursor-move: url("https://cdn.wolfbard.art/cursors/move.cur"), move;
  --cursor-precision: url("https://cdn.wolfbard.art/cursors/precision_select.cur"),
    crosshair;

  /* Intentionally mapped as you had it */
  --cursor-handwriting: url("https://cdn.wolfbard.art/cursors/handwriting.cur"),
    text;
  --cursor-unavailable: url("https://cdn.wolfbard.art/cursors/handwriting.cur"),
    not-allowed;

  --cursor-resize-h: url("https://cdn.wolfbard.art/cursors/horizontal.cur"),
    ew-resize;
  --cursor-resize-v: url("https://cdn.wolfbard.art/cursors/vertical.cur"),
    ns-resize;
  --cursor-resize-nwse: url("https://cdn.wolfbard.art/cursors/diagonal_resize_1.cur"),
    nwse-resize;
  --cursor-resize-nesw: url("https://cdn.wolfbard.art/cursors/diagonal_resize_2.cur"),
    nesw-resize;

  --cursor-grab: grab;
  --cursor-grabbing: grabbing;
}

/* === Normal (default arrow) === */
html,
body {
  cursor: var(--cursor-default);
}

/* === Text entry (I-beam) === */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
textarea,
[contenteditable],
[contenteditable="true"] {
  cursor: var(--cursor-text);
}

/* === Links / clickable (pointer hand) === */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
label,
.pointer {
  cursor: var(--cursor-pointer);
}

/* === Disabled states === */
button:disabled,
[aria-disabled="true"],
.btn[disabled],
a[aria-disabled="true"] {
  cursor: var(--cursor-unavailable);
}

/* === Busy / loading === */
.wait,
[aria-busy="true"] {
  cursor: var(--cursor-busy);
}
.starting {
  cursor: var(--cursor-starting);
}

/* === Help / alternate select === */
.help,
[aria-haspopup="dialog"],
[aria-haspopup="menu"] {
  cursor: var(--cursor-help);
}
.alternate {
  cursor: var(--cursor-alternate);
}

/* === Move / precision === */
.move,
[draggable="true"] {
  cursor: var(--cursor-move);
}
.precision {
  cursor: var(--cursor-precision);
}

/* === Handwriting / unavailable === */
.handwriting {
  cursor: var(--cursor-handwriting);
}
.unavailable,
[aria-invalid="true"],
[aria-disabled="true"] {
  cursor: var(--cursor-unavailable);
}

/* === Resize cursors === */
.horizontal,
.ew-resize {
  cursor: var(--cursor-resize-h);
}
.vertical,
.ns-resize {
  cursor: var(--cursor-resize-v);
}
.diagonal1,
.nwse-resize {
  cursor: var(--cursor-resize-nwse);
}
.diagonal2,
.nesw-resize {
  cursor: var(--cursor-resize-nesw);
}

/* === Drag helpers === */
.grab {
  cursor: var(--cursor-grab);
}
.grabbing {
  cursor: var(--cursor-grabbing);
}

/* =========================================================
   Paragraphs / Headings / Lists: arrow box + I-beam text
   ========================================================= */

/* Keep layout containers neutral */
article,
section,
main,
header,
footer,
.card,
.card-body,
.wrap,
.updates,
.sm-card,
.misc-card,
.blurb {
  cursor: var(--cursor-default);
  user-select: auto;
}

/* Paragraph, heading, list boxes stay arrow */
p,
h2,
ul,
ol,
li,
blockquote {
  cursor: var(--cursor-default) !important;
}

/* Wrapped text runs (via JS) show I-beam */
p > .text-run,
h2 > .text-run,
li > .text-run,
blockquote > .text-run {
  cursor: var(--cursor-text);
  user-select: text !important;
}

/* Inline formatting tags also show I-beam */
p
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ),
h2
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ),
li
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ),
blockquote
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ) {
  cursor: var(--cursor-text);
  user-select: text !important;
}

/* Links remain pointer, even inside paragraphs/headings/lists */
p a,
h2 a,
li a,
a[href] {
  cursor: var(--cursor-pointer);
}

/* ===== Lightbox & Detail pages: arrow box + I-beam text ===== */

/* Keep containers neutral (arrow) so only real text flips to I-beam */
#lightbox,
#lightbox .frame,
#lb-caption,
.variant-strip,
.variant-item,
.variant-thumb,
.cameo-panel,
.detail-wrap,
.detail-hero,
.detail-meta,
.detail-nav {
  cursor: var(--cursor-default);
}

/* Any explicit text-run gets I-beam + selection */
#lb-caption .text-run,
.variant-strip .thumb-label.text-run,
.cameo-panel .text-run,
.detail-wrap .text-run,
.detail-meta .text-run,
.detail-nav .text-run {
  cursor: var(--cursor-text);
  user-select: text !important;
}

/* Inline formatting inside those regions also gets I-beam */
#lb-caption
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ),
.detail-wrap
  :where(
    span,
    strong,
    b,
    em,
    i,
    u,
    s,
    mark,
    small,
    code,
    kbd,
    samp,
    var,
    sub,
    sup,
    time
  ) {
  cursor: var(--cursor-text);
  user-select: text !important;
}

/* Links stay clickable (hand) */
#lb-caption a,
.detail-wrap a,
a[href] {
  cursor: var(--cursor-pointer);
}

/* ===== Cameo chips: no I-beam on names ===== */
.cameo-panel .cameo-chip .cameo-name {
  cursor: var(--cursor-default);
  user-select: none;
}

/* clickable chips => hand; non-links stay arrow */
.cameo-panel a.cameo-chip {
  cursor: var(--cursor-pointer);
}
.cameo-panel .cameo-chip:not(a) {
  cursor: var(--cursor-default);
}

/* ===== Detail/slug views: ensure links always show hand ===== */
.detail-wrap a,
.detail-meta a,
.detail-nav a,
#lb-caption a {
  cursor: var(--cursor-pointer) !important;
}

/* Scope fixes to the full-page slug meta area only */
.detail-meta :is(h1, h2, h3, h4, h5, h6, p, li) {
  /* keep containers neutral; let children decide */
  cursor: var(--cursor-default) !important;
  pointer-events: auto !important;
}

/* Artist URL (and any link) must always be a hand */
.detail-meta a,
.detail-meta a * {
  cursor: var(--cursor-pointer) !important;
  pointer-events: auto !important;
}

/* (Optional) keep plain cameo labels arrow, if they appear in meta */
.detail-meta .cameo-name {
  cursor: var(--cursor-default) !important;
  user-select: none;
}

/* ========================================
   HEADER / NAVIGATION (merged from header.css)
   ======================================== */

/* ===== Header / Nav ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  will-change: transform;
  background: var(--bg-transparent);
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

/* Content-anchored tiled background */
header.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* stretch relative to body's total height */
  background: url("https://cdn.wolfbard.art/cdn-cgi/image/width=360,quality=50,format=auto/layout/header_background.jpg")
    repeat;
  background-size: 360px auto;
  opacity: 0.2; /* make partially transparent */
  background-blend-mode: multiply;
  pointer-events: none;
  z-index: -1; /* keep behind content */
}

.inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 480px) {
  .inner {
    font-size: 0.9rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-medium);
}

/* Wiggle animation */
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-7deg);
  }

  30% {
    transform: rotate(7deg);
  }

  45% {
    transform: rotate(-5deg);
  }

  60% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.logo:hover {
  animation: wiggle 0.6s ease-in-out;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  object-fit: cover;
}

.logo b {
  font-family: "Grandstander";
}

nav {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--light-peach);
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(0);
  transition: transform var(--transition-fast);
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Tint nav buttons on hover */
nav a:hover {
  background: var(--accent);
  /* or another color, e.g. #ffe7ef */
  color: var(--offwhite);
  /* make text contrast */
  transform: translateY(-2px);
  /* slight lift */
  box-shadow: 0 8px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25);
}

nav a:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

/* Header base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Toggle button */
.nav-toggle {
  display: none;
  /* hidden on desktop */
  margin-left: auto;
  border: 3px solid var(--ink);
  background: var(--light-peach);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem;
  box-shadow: 0 4px 0 var(--ink);
}

.nav-toggle .nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

.nav-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

/* Desktop nav */
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Keep header height stable */
.site-header .inner {
  display: flex;
  align-items: center;
  height: 4.5rem;
  /* fixed height row (match your logo height + padding) 64px */
}

/* Ensure the hamburger button area doesn't introduce a different bg */
.site-header .nav-toggle,
.site-header .nav-toggle:focus-visible {
  background: var(--light-peach);
}

.site-header .nav-toggle:hover {
  background: var(--accent);
  color: var(--offwhite);
}

/* Show toggle & style bars on small screens */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    border: 3px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--light-peach);
    cursor: var(--cursor-pointer);
    box-shadow: 0 4px 0 var(--ink);
    z-index: 1002;
    /* above dropdown */
  }

  /* Navigation background menu */
  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 1rem;
    display: none;
    /* hidden until opened */
    flex-direction: column;
    background: var(--bg);
    border: 3px solid var(--ink);
    box-shadow: 0 12px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 0.5rem 0.5rem 1rem;
    min-width: 220px;
    z-index: 1001;
    gap: 0.75rem;
    will-change: transform;
    background-color: var(--bg);
  }

  .nav-links.is-open {
    display: flex !important;
  }

  /* force open even if other rules exist */

  .nav-links.open {
    display: flex !important;
  }

  /* The bars */
  .nav-toggle span {
    display: block !important;
    /* defeat any resets */
    width: 6rem !important;
    /* visible length */
    height: 3px !important;
    /* visible thickness */
    background-color: var(--ink) !important;
    /* visible color */
    border-radius: var(--radius-xs);
  }
}

/* Hide or reserve space until the header is ready */
.header-loading body > .updates {
  opacity: 0;
  transform: translateY(-20px);
}
.header-ready body > .updates {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* ✅ Placeholder images for special hosts */
body.placeholder-images::before {
  background: url("https://cdn.wolfbard.art/cdn-cgi/image/width=1080,quality=50,format=auto/layout/background.jpg") repeat !important;
}

body.placeholder-images header.site-header::before {
  background: url("https://cdn.wolfbard.art/cdn-cgi/image/width=360,quality=50,format=auto/layout/header_background.jpg") repeat !important;
}