/*
 * Poetry platform — Auriventa — dark gold theme
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --bg:        #0a0805;
  --bg-2:      #14100a;
  --bg-3:      #1d160e;
  --gold:      #c9a96e;
  --gold-dim:  #a07d45;
  --gold-glow: rgba(201,169,110,.15);
  --text:      #e8e0d0;
  --text-dim:  #9a8f7e;
  --text-faint:#4a4438;
  --border:    rgba(201,169,110,.12);
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
/* Poem page scroll lock — via class (safer than inline styles with Turbo Drive) */
html.poem-page, body.poem-page { overflow: hidden !important; height: 100% !important; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


a { color: var(--gold); text-decoration: none; }
a:hover { color: #e8c98e; }

/* ════════════════════════════════════════════════
   HERO — mobile-first
════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, rgba(201,169,110,.07) 0%, transparent 70%),
    linear-gradient(180deg, #0a0805 0%, #14100a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Substantial side margins so content breathes on wide viewports.
     5vw clamp puts text 5%/silhouette 5% from each viewport edge. */
  padding: clamp(3.5rem, 6vh, 5.5rem) clamp(1.5rem, 5vw, 5rem) clamp(2.5rem, 5vh, 4rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,169,110,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,169,110,.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Mobile: stacked column; Desktop: side-by-side row */
.hero-inner {
  /* Mobile: stacked */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 1480px;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-inner {
    /* Desktop: grid — text gets a fat left column, silhouette a fixed-cap right column.
       This explicitly distributes the horizontal space so neither side gets crammed
       and there's no overlap regardless of "Auriventa" width. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(38vw, 560px);
    column-gap: clamp(2.5rem, 5vw, 6rem);
    align-items: center;
    text-align: left;
    padding: 0;
  }
}

/* Author image */
.author-image-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: clamp(220px, 48vw, 460px);
  height: clamp(200px, 54vw, 380px);
  order: 2; /* show below text on mobile */
}

@media (min-width: 768px) {
  .author-image-wrapper {
    order: 0;
    /* Now fills its grid column (min(38vw, 560px) parent) — height follows 3:4 ratio */
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 78vh;
    flex-shrink: 1;
  }
  .author-photo {
    mix-blend-mode: multiply;
    object-fit: contain;
    object-position: center center;
  }
  /* Soft white light pulse — only the light breathes, image stays still */
  .author-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: radial-gradient(ellipse 55% 65% at 50% 52%,
                                rgba(255, 248, 230, 0.55) 0%,
                                rgba(255, 244, 215, 0.22) 35%,
                                transparent 72%);
    animation: lightPulse 5.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    filter: blur(14px);
  }
}

@keyframes lightPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .author-image-wrapper::after { animation: none !important; }
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.9))
          drop-shadow(0 0 20px rgba(201, 169, 110, 0.6))
          drop-shadow(0 0 40px rgba(201, 169, 110, 0.3));
  /* goldPulse removed — нервова анімація порушує поетичний спокій */
}

@keyframes goldPulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.8))
            drop-shadow(0 0 15px rgba(201, 169, 110, 0.5))
            drop-shadow(0 0 30px rgba(201, 169, 110, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(220, 185, 130, 1.0))
            drop-shadow(0 0 30px rgba(201, 169, 110, 0.8))
            drop-shadow(0 0 60px rgba(180, 140, 80, 0.5));
  }
}

/* Hero text block — fills its grid column, vertical breathing room */
.hero-text {
  min-width: 0;     /* allow grid track to shrink correctly */
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-text .hero-label    { margin-bottom: 2rem; align-self: flex-start; }
.hero-text .hero-title    { margin-bottom: 2.2rem !important; align-self: flex-start; }
/* Responsive gap: tight on mobile (~3rem), generous on desktop (up to 12rem) */
.hero-text .hero-tagline  { margin-bottom: clamp(2.5rem, 12vw, 12rem) !important; align-self: flex-start; }
/* Buttons grouped side-by-side in a row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  align-self: flex-start;
}
.hero-actions .cta-btn,
.hero-actions .hero-blog-btn {
  margin: 0;
  align-self: auto;
}
@media (max-width: 520px) {
  .hero-actions { gap: 1rem; }
}

/* Secondary blog button — clearly a button, sits under the primary CTA.
   Smaller weight than .cta-btn but unmistakably an action affordance. */
.hero-blog-btn {
  display: inline-flex;
  align-items: center;
  /* Match .cta-btn gap so the icons sit at identical relative positions */
  gap: 0.85rem;
  margin-top: 0;
  /* Same padding as .cta-btn so both buttons feel structurally identical */
  padding: 1.25rem 2.6rem;
  border: 1px solid rgba(201,169,110,0.42);
  border-radius: 999px;
  background: rgba(201,169,110,0.04);
  color: rgba(232,224,208,0.92);
  font-family: var(--sans);
  text-decoration: none;
  letter-spacing: 0.12em;
  align-self: flex-start;
  transition: background .35s ease, border-color .35s ease, transform .25s ease, box-shadow .35s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-blog-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;          /* match .cta-btn-icon size — buttons feel like a pair */
  height: 32px;
  border-radius: 50%;
  background: rgba(201,169,110,0.16);
  border: 1px solid rgba(201,169,110,0.35);
  color: var(--gold);
  flex-shrink: 0;
}
.hero-blog-btn-label {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  line-height: 1.15;
}
.hero-blog-btn-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(201,169,110,0.7);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  line-height: 1.15;
  margin-top: 2px;
}
/* Stack label + sub vertically */
.hero-blog-btn-label,
.hero-blog-btn-sub {
  display: inline-block;
  width: auto;
}
.hero-blog-btn-label { padding-right: 0; }
.hero-blog-btn > span:nth-child(2),
.hero-blog-btn > span:nth-child(3) {
  display: block;
}
.hero-blog-btn-arrow {
  margin-left: 0.5rem;
  color: rgba(201,169,110,0.7);
  font-size: 1.1rem;
  transition: transform .35s cubic-bezier(.16,1,.3,1), color .3s;
}
.hero-blog-btn:hover {
  background: rgba(201,169,110,0.12);
  border-color: rgba(255,228,170,0.55);
  color: #ffe8b8;
  box-shadow: 0 12px 28px rgba(0,0,0,.25), 0 0 24px rgba(201,169,110,0.18);
  transform: translateY(-2px);
}
.hero-blog-btn:hover .hero-blog-btn-arrow {
  transform: translateX(6px);
  color: #ffe8b8;
}
.hero-blog-btn:hover .hero-blog-btn-icon {
  background: rgba(201,169,110,0.22);
  border-color: rgba(255,228,170,0.55);
  color: #ffe8b8;
}
.hero-blog-btn:hover .hero-blog-btn-sub { color: rgba(255,228,170,0.85); }

body.light-theme .hero-blog-btn {
  background: rgba(139,94,16,0.06);
  border-color: rgba(139,94,16,0.42);
  color: #4a3210;
}
body.light-theme .hero-blog-btn-icon {
  background: rgba(139,94,16,0.10);
  border-color: rgba(139,94,16,0.32);
  color: #8b5e10;
}
body.light-theme .hero-blog-btn-sub { color: rgba(139,94,16,0.75); }
body.light-theme .hero-blog-btn-arrow { color: rgba(139,94,16,0.7); }
body.light-theme .hero-blog-btn:hover {
  background: rgba(139,94,16,0.14);
  border-color: rgba(139,94,16,0.7);
  color: #2a1d08;
}
body.light-theme .hero-blog-btn:hover .hero-blog-btn-icon {
  background: rgba(139,94,16,0.2);
  border-color: rgba(139,94,16,0.6);
}

@media (max-width: 767px) {
  .hero-text { max-width: 100%; }
}

.hero-label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: #f0e8d8;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}

.hero-book-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: .85;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(1rem, 4vw, 1.15rem);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: .03em;
  margin-bottom: 2.4rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.25rem 2.6rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease, transform .25s ease;
  /* Subtle inner gold gradient gives the button presence even before hover */
  background:
    linear-gradient(135deg, rgba(201,169,110,0.06) 0%, rgba(201,169,110,0.12) 50%, rgba(201,169,110,0.06) 100%);
  box-shadow:
    0 0 0 1px rgba(201,169,110,0.12) inset,
    0 4px 18px rgba(0,0,0,0.30);
}
.cta-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201,169,110,0.16);
  border: 1px solid rgba(201,169,110,0.35);
  flex-shrink: 0;
  transition: background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.cta-btn-label { display: inline-block; }

/* Ambient gold-shimmer sheen — passes across the CTA every ~6 seconds.
   Most of the cycle is rest; the actual sweep is brief (~1.4s). */
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 38%,
    rgba(255,232,180,0.0) 46%,
    rgba(255,232,180,0.42) 50%,
    rgba(255,232,180,0.0) 54%,
    transparent 62%,
    transparent 100%);
  background-size: 240% 100%;
  background-position: -50% 0;
  animation: cta-btn-ambient-sheen 6.4s ease-in-out infinite;
}

/* The text/label needs to sit above the sheen */
.cta-btn { position: relative; }
.cta-btn > * { position: relative; z-index: 2; }

@keyframes cta-btn-ambient-sheen {
  0%,  78% { background-position: -50% 0; }   /* long rest period */
  100%     { background-position: 160% 0; }   /* sweep finishes the cycle */
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn::after { animation: none; opacity: 0; }
}

.cta-btn:hover {
  background: var(--gold);
  color: #0a0a0f;
  box-shadow: 0 0 32px rgba(201,169,110,.3);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: .3; }
}

/* ════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════ */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient gold drift behind content */
.about::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(201,169,110,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 80% 70%, rgba(201,169,110,0.05) 0%, transparent 60%);
  pointer-events: none;
  animation: aboutAmbientDrift 18s ease-in-out infinite alternate;
}
@keyframes aboutAmbientDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.04); }
}

.about-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-label {
  /* Elegant italic serif headline with multi-stop gold shimmer + decorative rules */
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 0.005em;
  text-transform: none;
  margin-bottom: 2.4rem;
  /* Rich gold gradient: bronze → champagne → cream-white → champagne → bronze */
  background: linear-gradient(110deg,
    #a07d45 0%,
    #c9a96e 18%,
    #f2e0b0 35%,
    #fff4d2 46%,
    #f2e0b0 54%,
    #d8c89a 70%,
    #b8a070 82%,
    #a07d45 100%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: aboutLabelShimmer 11s ease-in-out infinite;
  /* Subtle gold drop-shadow gives the text a soft glow on dark bg */
  filter: drop-shadow(0 0 14px rgba(201,169,110,0.18));
  /* Inline-flex with decorative rules on both sides */
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 0.1em;
}
.about-label::before,
.about-label::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: clamp(36px, 5vw, 72px);
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.55), transparent);
  -webkit-text-fill-color: initial;
  flex-shrink: 0;
}
@keyframes aboutLabelShimmer {
  0%, 100% { background-position:   0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .about-label { animation: none; background-position: 30% 50%; }
}
body.light-theme .about-label {
  background: linear-gradient(110deg,
    #6b4f28 0%, #8b6f3a 18%, #a8884c 35%, #b89858 46%, #a8884c 54%,
    #8b6f3a 70%, #7a5a30 82%, #6b4f28 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(139,94,16,0.18));
}
body.light-theme .about-label::before,
body.light-theme .about-label::after {
  background: linear-gradient(90deg, transparent, rgba(107,79,40,0.45), transparent);
}

.about-bio {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);  /* bigger but container width same */
  line-height: 1.85;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 3.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: aboutBioReveal 1.4s cubic-bezier(0.22, 0.85, 0.32, 1) 0.25s forwards;
}
@keyframes aboutBioReveal {
  to { opacity: 1; transform: translateY(0); }
}

.about-youtube {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: -1.6rem auto 2.6rem;
  padding: .65rem 1.4rem;
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.32);
  color: var(--gold);
  font-family: var(--sans);
  font-size: .86rem;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
  /* Soft breathing scale — barely perceptible, signals "alive" */
  animation: aboutYoutubeBreathe 5.4s ease-in-out infinite;
}

/* Ambient sonar — gold ring radiates outward from the pill every ~6 seconds.
   Most of the cycle is rest (~80%), the pulse itself is brief (~1.2s). */
.about-youtube::before,
.about-youtube::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,228,170,0.55);
  opacity: 0;
  animation: aboutYoutubeSonar 6.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.about-youtube::after {
  animation-delay: 0.5s;       /* second ring offset for richer pulse */
  border-color: rgba(255,228,170,0.32);
}

@keyframes aboutYoutubeBreathe {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.018); }
}

@keyframes aboutYoutubeSonar {
  0%   { transform: scale(1.0);  opacity: 0;   }
  6%   { opacity: 0.65; }
  18%  { opacity: 0.20; }
  30%, 100% { transform: scale(1.45); opacity: 0; }
}

.about-youtube:hover {
  background: rgba(201,169,110,0.16);
  border-color: rgba(255,228,180,0.65);
  color: #ffe8b8;
  transform: translateY(-2px);
  animation: none;             /* pause breathing on hover so interaction reads cleanly */
}
.about-youtube:hover::before,
.about-youtube:hover::after { animation: none; opacity: 0; }
.about-youtube svg { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .about-youtube,
  .about-youtube::before,
  .about-youtube::after { animation: none !important; opacity: 0; }
  .about-youtube { transform: none; }
}

body.light-theme .about-youtube {
  background: rgba(139,94,16,0.08);
  border-color: rgba(139,94,16,0.35);
  color: #8b5e10;
}
body.light-theme .about-youtube::before,
body.light-theme .about-youtube::after {
  border-color: rgba(139,94,16,0.55);
}
body.light-theme .about-youtube:hover {
  background: rgba(139,94,16,0.16);
  border-color: rgba(139,94,16,0.7);
  color: #5a3a08;
}

.about-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.stat {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: aboutStatReveal 1s cubic-bezier(0.22, 0.85, 0.32, 1) forwards;
}
.stat:nth-of-type(1) { animation-delay: 0.7s; }
.stat:nth-of-type(2) { animation-delay: 0.9s; }
.stat:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes aboutStatReveal {
  to { opacity: 1; transform: translateY(0); }
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 0.85, 0.32, 1), color 0.3s ease;
}
.stat:hover .stat-num {
  transform: translateY(-3px) scale(1.05);
  color: #ffe0a0;
}

.stat-label {
  display: block;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: .5rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201,169,110,0.45) 50%,
    transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .about::before,
  .about-label,
  .about-bio,
  .stat {
    animation: none !important;
  }
  .about-bio, .stat { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════
   POEMS GRID
════════════════════════════════════════════════ */
.poems-section {
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 7vw, 6rem);
  background: var(--bg);
}

.poems-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
  opacity: .5;
}

.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.poem-card {
  display: block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.poem-card:hover {
  border-color: rgba(201,169,110,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 20px var(--gold-glow);
}

.poem-card:hover::before {
  opacity: 1;
}

.poem-card-page {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .55;
  display: block;
  margin-bottom: .6rem;
}

.poem-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: #f0e8d8;
  margin-bottom: .75rem;
  line-height: 1.3;
}

.poem-card-preview {
  font-family: var(--serif);
  font-size: .88rem;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poem-card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}

.poem-card:hover .poem-card-arrow {
  opacity: .7;
  transform: translateX(0);
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  opacity: .7;
  margin-bottom: .3rem;
}

.footer-copy {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--text-faint);
  letter-spacing: .05em;
}

.footer-youtube {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  color: rgba(201,169,110,0.7);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease;
}
.footer-youtube:hover { color: #ffe0a0; }
.footer-youtube svg { opacity: .8; }

/* ── Copyright + voice-clone protection notice ─────────────────── */
.footer-rights {
  max-width: 640px;
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201,169,110,0.10);
  text-align: center;
}
.footer-rights-line {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.55);
  margin-bottom: .6rem;
}
.footer-rights-detail {
  font-family: var(--serif);
  font-style: italic;
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(232,224,208,0.45);
  letter-spacing: .005em;
  max-width: 56ch;
  margin: 0 auto;
}
.footer-rights-name {
  color: rgba(201,169,110,0.75);
  font-style: normal;
  letter-spacing: .02em;
}
body.light-theme .footer-rights {
  border-top-color: rgba(139,94,16,0.18);
}
body.light-theme .footer-rights-line { color: rgba(107,79,40,0.65); }
body.light-theme .footer-rights-detail { color: rgba(60,40,15,0.55); }
body.light-theme .footer-rights-name { color: rgba(107,79,40,0.85); }

/* ════════════════════════════════════════════════
   POEM SHOW PAGE — mobile-first card layout
════════════════════════════════════════════════ */
.poem-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
}

/* ── Top nav ────────────────────────────────── */
.poem-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  gap: 12px;
}

.back-link {
  font-family: var(--sans);
  font-size: clamp(12px, 3.5vw, 14px);
  color: rgba(201,169,110,0.7);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }

.poem-nav-title {
  font-family: var(--serif);
  font-size: clamp(12px, 3.5vw, 14px);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.share-btn {
  background: none;
  border: 1px solid rgba(201,169,110,0.3);
  color: rgba(201,169,110,0.7);
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: clamp(12px, 3vw, 13px);
  font-family: var(--sans);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Poem display area ──────────────────────── */
.poem-display {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 24px 24px;
}

.poem-card-single {
  max-width: 600px;
  width: 100%;
}

.poem-page-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(201,169,110,0.5);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.poem-main-title {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 42px);
  color: var(--gold);
  margin: 0 0 32px 0;
  font-weight: 400;
  line-height: 1.2;
}

.poem-main-text {
  font-family: var(--serif);
  font-size: clamp(17px, 4.5vw, 20px);
  line-height: 2.0;
  color: #d4c8b8;
  white-space: pre-line;
}

/* ── Bottom navigation ──────────────────────── */
.poem-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 36px;
  border-top: 1px solid rgba(201,169,110,0.10);
  gap: 12px;
}

.nav-btn {
  font-family: var(--sans);
  color: rgba(201,169,110,0.8);
  text-decoration: none;
  font-size: clamp(12px, 3vw, 14px);
  padding: 10px 16px;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 24px;
  transition: background .2s, border-color .2s;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.nav-btn:hover {
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.5);
  color: var(--gold);
}

.page-counter {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  font-family: var(--sans);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

/* ════════════════════════════════════════════════
   ADMIN (supplemental)
════════════════════════════════════════════════ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Stats */
  .about-stats { gap: 1.5rem; }

  /* Poems grid: single column on small screens */
  .poems-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .about { padding: 3rem 1rem; }
  .poems-section { padding: 2.5rem 1rem 3.5rem; }
  .poem-display { padding: 28px 16px 16px; }
  .poem-nav-bottom { padding: 16px 16px 28px; }
}

/* ════════════════════════════════════════════════
   BOOKSHELF
════════════════════════════════════════════════ */
.bookshelf-section {
  padding: 4rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.shelf-wrapper {
  position: relative;
  padding: 24px 32px 0;
  background: linear-gradient(180deg, #1a1208 0%, #0f0b05 100%);
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(201,169,110,0.15);
  perspective: 1000px;
}

.shelf {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  padding-bottom: 12px;
}

.shelf-plank {
  height: 18px;
  background: linear-gradient(180deg, #c9a96e 0%, #8b6914 40%, #5c420d 100%);
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 2px 4px rgba(201,169,110,0.3);
  position: relative;
}

.shelf-plank::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,220,120,0.4);
  border-radius: 2px 2px 0 0;
}

.shelf-shadow {
  height: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  margin: 0 8px;
}

/* ── Individual book ───────────────────────────────────────────────────── */
.book-slot {
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.book-slot:not(.book-slot--empty):hover {
  transform: translateY(-28px) translateZ(20px);
}

.book-slot:not(.book-slot--empty):hover .book-spine {
  box-shadow: -6px 4px 20px rgba(0,0,0,0.7), 2px 0 12px rgba(201,169,110,0.25);
}

.book {
  width: 64px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Spine (visible face) */
.book-spine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    #2a1e0a 0%,
    #4a3214 15%,
    #6b4820 30%,
    #3d2810 50%,
    #2a1e0a 100%
  );
  border-radius: 2px 0 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  gap: 6px;
  box-shadow: -4px 2px 14px rgba(0,0,0,0.6);
  border-left: 2px solid rgba(201,169,110,0.35);
  border-top: 1px solid rgba(201,169,110,0.2);
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.book-spine-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  color: rgba(201,169,110,0.9);
  letter-spacing: 1px;
  text-align: center;
  max-height: 120px;
  overflow: hidden;
  line-height: 1.3;
}

.book-spine-author {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(201,169,110,0.45);
  letter-spacing: 0.5px;
}

/* Pages side */
.book-pages {
  position: absolute;
  top: 2px; right: -6px; bottom: 2px;
  width: 6px;
  background: repeating-linear-gradient(
    to bottom,
    #e8dcc8 0px, #e8dcc8 1px,
    #c8b898 1px, #c8b898 2px
  );
  border-radius: 0 1px 1px 0;
  opacity: 0.7;
}

/* Empty book */
.book--empty {
  cursor: default;
}
.book--empty .book-spine {
  background: linear-gradient(105deg, #151008 0%, #201508 50%, #151008 100%);
  border-left: 1px dashed rgba(201,169,110,0.18);
  border-top: 1px dashed rgba(201,169,110,0.12);
  border-bottom: 1px dashed rgba(201,169,110,0.12);
  box-shadow: none;
  opacity: 0.8;
}
.book--empty .book-spine-title {
  color: rgba(201,169,110,0.35);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.book-slot--empty .book-pages {
  opacity: 0;
}

/* Click animation */
.book-slot.book--pulling {
  animation: pullBook 0.5s ease forwards;
}

@keyframes pullBook {
  0%   { transform: translateY(-28px) translateZ(20px); }
  40%  { transform: translateY(-80px) translateZ(80px) rotate3d(0,1,0,-15deg); }
  70%  { transform: translateY(-60px) translateZ(120px) rotate3d(0,1,0,-30deg) scale(1.1); }
  100% { transform: translateY(-100px) translateZ(200px) scale(1.2); opacity: 0; }
}

/* ════════════════════════════════════════════════
   ATMOSPHERIC HERO PARTICLES
════════════════════════════════════════════════ */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201,169,110,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(201,169,110,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(201,169,110,0.25) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes twinkle {
  0%  { opacity: 0.4; }
  100%{ opacity: 1.0; }
}

/* ════════════════════════════════════════════════
   SECTION TITLE DECORATION (override existing)
════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 4vw, 24px);
  color: rgba(201,169,110,0.75);
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  left: 50%; transform: translateX(-50%);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.5), transparent);
  display: block;
  width: auto;
  margin: 0;
  opacity: 1;
}

/* ════════════════════════════════════════════════
   BETTER POEM CARD HOVER
════════════════════════════════════════════════ */
.poem-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,169,110,0.18);
  border-color: rgba(201,169,110,0.30);
}

/* ════════════════════════════════════════════════
   POLL
════════════════════════════════════════════════ */
.poll-section {
  padding: 3rem 1.5rem 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.poll-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--bg-3);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 12px;
}

.poll-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.poll-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}

.poll-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(201,169,110,0.04) 0%,
    rgba(201,169,110,0.10) 50%,
    rgba(201,169,110,0.04) 100%);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.95rem 2.6rem;
  border-radius: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.18s ease, border-color 0.4s ease;
  box-shadow:
    0 0 0 1px rgba(201,169,110,0.10) inset,
    0 4px 14px rgba(0,0,0,0.25);
}

.poll-btn-label {
  position: relative;
  z-index: 2;
}

.poll-btn-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 35%,
    rgba(255,232,180,0.0) 45%,
    rgba(255,232,180,0.45) 50%,
    rgba(255,232,180,0.0) 55%,
    transparent 65%,
    transparent 100%);
  background-size: 220% 100%;
  background-position: -50% 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.poll-btn:hover {
  background: linear-gradient(135deg,
    rgba(201,169,110,0.95) 0%,
    rgba(229,200,135,0.95) 50%,
    rgba(201,169,110,0.95) 100%);
  color: #0a0a0f;
  border-color: rgba(255,232,180,0.85);
  box-shadow:
    0 0 0 1px rgba(255,232,180,0.55) inset,
    0 0 28px rgba(201,169,110,0.45),
    0 8px 24px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

.poll-btn:hover .poll-btn-shine {
  opacity: 1;
  animation: poll-btn-sheen 1.6s ease-in-out;
}

.poll-btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}

.poll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@keyframes poll-btn-sheen {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

/* ── Golden water-wave (single sweep across the entire viewport) ─── */
.gold-wave-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
  contain: layout paint;
}

.gold-wave-ripple {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  /* Water-ripple: hollow ring with gold crest at the edge, transparent core */
  background: radial-gradient(circle,
    transparent 0%,
    transparent 62%,
    rgba(201,169,110,0.20) 72%,
    rgba(255,228,170,0.62) 80%,
    rgba(255,244,210,0.92) 84%,
    rgba(255,228,170,0.62) 88%,
    rgba(201,169,110,0.20) 94%,
    transparent 100%);
  /* Mask so backdrop-filter only refracts the visible ring band,
     not the hollow centre or the empty outer area */
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 74%, #000 96%, transparent 100%);
  mask: radial-gradient(circle, transparent 60%, #000 74%, #000 96%, transparent 100%);
  /* Refraction: blur + warm + saturate the page beneath the ring */
  backdrop-filter: blur(3.5px) saturate(1.22) brightness(1.05) hue-rotate(6deg);
  -webkit-backdrop-filter: blur(3.5px) saturate(1.22) brightness(1.05) hue-rotate(6deg);
  /* SVG turbulence displaces the ring edge — water-like ripple */
  filter: url(#goldWaveRefract);
  opacity: 0;
  will-change: transform, opacity;
}

.gold-wave-ripple.is-active {
  animation: gold-wave-ripple 2600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes gold-wave-ripple {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0;    }
  6%   { opacity: 0.9; }
  60%  { opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(180); opacity: 0;    }
}

@media (prefers-reduced-motion: reduce) {
  .gold-wave-ripple,
  .poll-btn:hover .poll-btn-shine { animation: none; }
}

.poll-result {
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
  line-height: 2;
}

.poll-thanks {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  /* Subtle gold → silver → bronze → champagne shimmer (dark theme) */
  background: linear-gradient(110deg,
    #c9a96e 0%,
    #d8c89a 18%,
    #f2e0b0 34%,
    #b9b0a0 50%,
    #a07d45 66%,
    #d8c89a 82%,
    #c9a96e 100%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: poll-thanks-shimmer 14s ease-in-out infinite;
  /* Fallback for browsers without background-clip:text */
  text-shadow: 0 0 1px rgba(201,169,110,0.001);
}

@keyframes poll-thanks-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .poll-thanks { animation: none; background-position: 30% 50%; }
}

.poll-count {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════
   HERO SHELF (bookshelf moved inside hero)
════════════════════════════════════════════════ */
.hero-shelf {
  width: 100%;
  max-width: 620px;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-shelf .shelf-wrapper {
  padding: 16px 20px 0;
  border-radius: 8px 8px 0 0;
}

.hero-shelf .shelf {
  gap: 20px;
  min-height: 200px;
  justify-content: center;
}

.hero-shelf .book {
  width: 70px;
  height: 195px;
}

.hero-shelf .book-spine-title {
  font-size: 11px;
  max-height: 120px;
}

.hero-shelf .book-spine-author {
  font-size: 9px;
}

/* ════════════════════════════════════════════════
   HERO GRADIENT DRIFT ANIMATION
════════════════════════════════════════════════ */
@keyframes bgDrift {
  0%   { transform: translate(0%,    0%)    scale(1.00); }
  25%  { transform: translate(-2.5%, 1.5%)  scale(1.02); }
  55%  { transform: translate(1.8%, -2.2%)  scale(0.98); }
  80%  { transform: translate(-1.2%, 2.4%)  scale(1.015); }
  100% { transform: translate(2.2%,  0.8%)  scale(1.01); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  background-image:
    radial-gradient(ellipse 45% 45% at 28% 32%, rgba(201,169,110,.12) 0%, transparent 65%),
    radial-gradient(ellipse 38% 42% at 76% 65%, rgba(201,169,110,.09) 0%, transparent 62%),
    radial-gradient(ellipse 30% 32% at 58% 18%, rgba(180,120,60,.08) 0%, transparent 55%);
  animation: bgDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ════════════════════════════════════════════════
   STRONGER AUTHOR GLOW
════════════════════════════════════════════════ */
@keyframes goldPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.95))
            drop-shadow(0 0 24px rgba(201, 169, 110, 0.70))
            drop-shadow(0 0 50px rgba(201, 169, 110, 0.40))
            drop-shadow(0 0 90px rgba(201, 169, 110, 0.18));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(230, 195, 140, 1.0))
            drop-shadow(0 0 40px rgba(201, 169, 110, 0.92))
            drop-shadow(0 0 80px rgba(180, 140, 80, 0.65))
            drop-shadow(0 0 140px rgba(180, 140, 80, 0.30));
  }
}

/* ════════════════════════════════════════════════
   HERO LABEL — bigger, shimmering, dramatic
════════════════════════════════════════════════ */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 500 !important;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem) !important;     /* 2× the prior .75rem */
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  /* Rich multi-stop gold shimmer */
  background: linear-gradient(110deg,
    #a07d45 0%,
    #c9a96e 16%,
    #f2e0b0 32%,
    #fff4d2 44%,
    #f2e0b0 56%,
    #d8c89a 72%,
    #b8a070 84%,
    #a07d45 100%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: heroLabelShimmer 11s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(201,169,110,0.22));
  padding: 0 0.1em;
}
.hero-label::before,
.hero-label::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: clamp(28px, 4vw, 56px);
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.55), transparent);
  -webkit-text-fill-color: initial;
  flex-shrink: 0;
}
@keyframes heroLabelShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-label { animation: none; background-position: 30% 50%; }
}
body.light-theme .hero-label {
  background: linear-gradient(110deg,
    #6b4f28 0%, #8b6f3a 16%, #a8884c 32%, #b89858 44%, #a8884c 56%,
    #8b6f3a 72%, #7a5a30 84%, #6b4f28 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(139,94,16,0.22));
}
body.light-theme .hero-label::before,
body.light-theme .hero-label::after {
  background: linear-gradient(90deg, transparent, rgba(107,79,40,0.5), transparent);
}

/* ════════════════════════════════════════════════
   SECTION TITLE — DIAMOND ORNAMENT
════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 4vw, 24px);
  color: rgba(201,169,110,0.75);
  margin-bottom: 52px;
  font-weight: 400;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  left: 50%; transform: translateX(-50%);
  font-style: italic;
}

.section-title::before {
  content: '◆';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-style: normal;
  color: rgba(201,169,110,0.75);
  z-index: 2;
  line-height: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: -48px;
  right: -48px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,0.45) 25%, rgba(201,169,110,0.45) 75%, transparent 100%);
  display: block;
  width: auto;
  margin: 0;
  opacity: 1;
  z-index: 1;
}

/* ════════════════════════════════════════════════
   POEM CARDS — FEATURED + WATERMARK + HOVER EXPAND
════════════════════════════════════════════════ */
.poem-card--featured {
  background: linear-gradient(135deg, var(--bg-3) 0%, #2a1c0c 100%);
  border-color: rgba(201,169,110,0.22);
  padding: 2rem 2rem 1.75rem;
}

@media (min-width: 768px) {
  .poem-card--featured {
    grid-column: span 2;
  }
  .poem-card--featured .poem-card-title {
    font-size: 1.5rem;
  }
}

/* Page number watermark */
.poem-card::before {
  content: attr(data-page);
  position: absolute;
  right: 8px;
  bottom: -12px;
  font-size: 120px;
  font-family: 'Playfair Display', serif;
  color: rgba(201,169,110,0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  font-weight: 600;
  user-select: none;
}

.poem-card--featured::before {
  font-size: 160px;
  color: rgba(201,169,110,0.05);
}

/* Hover expansion — more lines visible */
.poem-card-preview {
  display: block;
  max-height: 3.1em;
  overflow: hidden;
  transition: max-height 0.45s ease;
  font-family: var(--serif);
  font-size: .88rem;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.55;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}

.poem-card--featured .poem-card-preview {
  max-height: 9em;
  font-size: .93rem;
  color: var(--text-dim);
}

.poem-card:hover .poem-card-preview {
  max-height: 9em;
}

/* ════════════════════════════════════════════════
   BOOKSHELF HOVER — 3D TILT + SHADOW
════════════════════════════════════════════════ */
.book-slot:not(.book-slot--empty):hover {
  transform: translateY(-26px) translateZ(20px) rotateY(10deg) rotateZ(-1.5deg);
  filter: drop-shadow(0 28px 14px rgba(0,0,0,0.55));
}

.hero-shelf .book-slot:not(.book-slot--empty):hover {
  transform: translateY(-22px) translateZ(18px) rotateY(10deg) rotateZ(-1.5deg);
}

/* Top light highlight on spine hover */
.book-slot:not(.book-slot--empty):hover .book-spine::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,230,160,0.12) 0%, transparent 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════
   DAY / NIGHT TOGGLE
════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed; bottom: 24px; left: 24px;
  /* Above the cursor-smoke canvas (z-index 9990) so the button is clickable + visible */
  z-index: 9999;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,8,5,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,169,110,0.45);
  color: var(--gold); font-size: 18px; cursor: pointer;
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.theme-toggle:hover { background: rgba(201,169,110,0.25); }

/* Light theme: paint <html> first so initial page-load shows the right bg
   before body class is applied (anti-FOUC). */
html.light-theme { background: #f5f0e8; }
html.light-theme body { background: #f5f0e8; color: #2a1e0a; }

/* Light theme overrides */
body.light-theme {
  --bg: #f5f0e8; --bg-2: #ede5d8; --bg-3: #e2d6c0; --text: #2a1e0a; --text-dim: #6b4820;
  --text-faint: #6b4820; --gold: #8b5e10; --border: rgba(139,94,16,0.2);
  background: #f5f0e8; color: #2a1e0a;
}
body.light-theme .hero { background: #f5f0e8; }
body.light-theme .hero-title { color: #2a1e0a !important; }
/* Hero shimmer — darker bronze/champagne palette for readability on cream */
body.light-theme .hero-title-shimmer {
  background: linear-gradient(110deg,
    #8b6f3a 0%,
    #a89a7e 16%,
    #c2a868 30%,
    #d4b87a 38%,
    #c2a868 46%,
    #998a72 56%,
    #6b4f28 70%,
    #a89a7e 85%,
    #8b6f3a 100%);
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(139,94,16,0.10));
}
body.light-theme .hero-tagline { color: #6b4820; }
body.light-theme .cta-btn { border-color: #8b5e10; color: #8b5e10; }
body.light-theme .cta-btn:hover { background: #8b5e10; color: #f5f0e8; }
body.light-theme .poem-page, body.light-theme .poem-mobile { background: #f5f0e8; }
body.light-theme .poem-mobile-text, body.light-theme .poem-main-text { color: #2a1e0a; }
body.light-theme .poem-mobile-title, body.light-theme .page-poem-title { color: #8b5e10; }
body.light-theme .poem-nav-top { background: rgba(245,240,232,0.93); border-bottom-color: rgba(139,94,16,0.2); }
body.light-theme .shelf-wrapper { background: linear-gradient(180deg, #e8dcc8 0%, #d4c4a0 100%); }
body.light-theme .poem-card { background: #e2d6c0; border-color: rgba(139,94,16,0.2); }
/* N-2: Ornaments visible in light theme */
body.light-theme .poem-card-watermark,
body.light-theme .poem-card::after { color: rgba(100,60,10,0.18) !important; }
body.light-theme .section-ornament { color: rgba(100,60,10,0.5); }
body.light-theme .press-shelf-rule { opacity: 0.6; background: linear-gradient(90deg,transparent,#8b5e10,transparent); }
body.light-theme .press-shelf-eyebrow { color: rgba(80,45,10,0.7); }
body.light-theme .divider-line { background: linear-gradient(90deg,transparent,rgba(100,60,10,0.4) 50%,transparent); }
body.light-theme .divider-diamond { color: rgba(100,60,10,0.5); }
body.light-theme .poll-card { background: #e2d6c0; }
body.light-theme .poll-btn {
  background: linear-gradient(135deg, rgba(139,94,16,0.04) 0%, rgba(139,94,16,0.10) 50%, rgba(139,94,16,0.04) 100%);
  border-color: #8b5e10;
  color: #6b4f28;
  box-shadow: 0 0 0 1px rgba(139,94,16,0.10) inset, 0 4px 14px rgba(80,45,10,0.18);
}
body.light-theme .poll-btn:hover {
  background: linear-gradient(135deg, #b08850 0%, #d8b574 50%, #b08850 100%);
  color: #1a1208;
  border-color: rgba(255,232,180,0.9);
  box-shadow: 0 0 0 1px rgba(255,232,180,0.55) inset, 0 0 28px rgba(176,136,80,0.40), 0 8px 24px rgba(80,45,10,0.30);
}
/* Light-theme shimmer: darker bronze/champagne tones for readability on cream */
body.light-theme .poll-thanks {
  background: linear-gradient(110deg,
    #8b6f3a 0%,
    #a89a7e 18%,
    #c2a868 34%,
    #998a72 50%,
    #6b4f28 66%,
    #a89a7e 82%,
    #8b6f3a 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ════════════════════════════════════════════════
   HERO TITLE — single-line "Auriventa" with gold shimmer
════════════════════════════════════════════════ */
.hero-title {
  /* Bigger but capped so it always fits the left grid column without overlapping silhouette */
  font-size: clamp(3.2rem, 9.5vw, 9.5rem) !important;
  line-height: 1;
  letter-spacing: 0;
  font-style: italic;
  margin-bottom: 1.2rem;
  color: #f0e8d8;
  white-space: nowrap;
  overflow: visible;
  padding-left: 0.08em;
}

/* Gold shimmer applied to the inner span so the wrapping <h1>
   keeps SEO/semantic clarity. */
.hero-title-shimmer {
  display: inline-block;
  /* Give italic A and t-end of "venta" extra breathing room */
  padding: 0 0.05em 0.04em 0.04em;
  background: linear-gradient(110deg,
    #c9a96e 0%,
    #d8c89a 16%,
    #f2e0b0 30%,
    #fff4d2 38%,
    #f2e0b0 46%,
    #b9b0a0 56%,
    #a07d45 70%,
    #d8c89a 85%,
    #c9a96e 100%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-title-shimmer 18s ease-in-out infinite;
  /* Subtle golden glow underneath the text */
  filter: drop-shadow(0 0 22px rgba(201,169,110,0.10));
}

@keyframes hero-title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-shimmer { animation: none; background-position: 28% 50%; }
}

/* Hero tagline — italic serif gold per spec */
.hero-tagline {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: clamp(1.3rem, 2.5vw, 2rem) !important;
  color: var(--gold) !important;
  opacity: 0.78;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 2.4rem;
}

/* Book title under hero name */
.hero-book-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: rgba(240,232,216,0.7);
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ════════════════════════════════════════════════
   HERO VISUAL — author + shelf column
════════════════════════════════════════════════ */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* Legacy 900px overrides removed — handled by the grid layout in the 768px rule above. */

/* ════════════════════════════════════════════════
   BOOKSHELF IN HERO — 3D perspective
════════════════════════════════════════════════ */
.shelf-wrapper--hero {
  transform: perspective(600px) rotate3d(1, 0, 0, 8deg);
  transform-origin: center bottom;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.75),
    0 0 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.22);
}

.hero-shelf .book-slot:not(.book-slot--empty):hover {
  transform: translateY(-52px) rotateY(-18deg) scale(1.06);
  filter:
    drop-shadow(0 32px 16px rgba(0,0,0,0.65))
    drop-shadow(0 0 28px rgba(201,169,110,0.55));
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), filter 0.38s ease;
}

/* ════════════════════════════════════════════════
   INK PARTICLES
════════════════════════════════════════════════ */
.ink-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ink-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.55) 0%, rgba(201,169,110,0) 70%);
  animation: inkFloat linear infinite;
}

@keyframes inkFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: inherit;
  }
  30% {
    transform: translateY(-30vh) rotate(120deg) scale(1.2);
  }
  60% {
    transform: translateY(-60vh) rotate(240deg) scale(0.9);
  }
  100% {
    transform: translateY(-105vh) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════
   DECORATIVE DIAMOND RULE (between sections)
════════════════════════════════════════════════ */
.decorative-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.5rem 3rem;
  background: var(--bg);
}

.rule-line {
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.28));
}

.decorative-rule .rule-line:last-child {
  background: linear-gradient(270deg, transparent, rgba(201,169,110,0.28));
}

.rule-diamond {
  font-size: 7px;
  color: rgba(201,169,110,0.45);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   FOOTER ORNAMENT SVG
════════════════════════════════════════════════ */
.footer-ornament {
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  line-height: 0;
}

/* ════════════════════════════════════════════════
   POEM CARD WATERMARK — Roman numeral span
════════════════════════════════════════════════ */
.poem-watermark {
  position: absolute;
  right: -4px;
  bottom: -24px;
  font-size: 8rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-style: italic;
  color: rgba(201,169,110,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.poem-card--featured .poem-watermark {
  font-size: 11rem;
  color: rgba(201,169,110,0.055);
}

/* Reset ::before back to top-border effect only */
.poem-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important;
  height: 2px !important;
  font-size: initial !important;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
  opacity: 0 !important;
  transition: opacity .3s !important;
}
.poem-card:hover::before { opacity: 1 !important; }

/* Poems grid — 3 col on desktop, first card spans 2 */
@media (min-width: 900px) {
  .poems-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .poem-card--featured {
    grid-column: span 2;
  }
}

/* ════════════════════════════════════════════════
   THEME TOGGLE cursor fix
════════════════════════════════════════════════ */
.theme-toggle { cursor: pointer; }

/* ════════════════════════════════════════════════
   STRIPE PRESS-STYLE SHELF
════════════════════════════════════════════════ */
.press-shelf {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,110,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0805 0%, #14100a 100%);
  overflow: hidden;
  isolation: isolate;
}

.press-shelf::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(201,169,110,0.18), transparent 60%),
    radial-gradient(1px 1px at 78% 64%, rgba(201,169,110,0.14), transparent 60%),
    radial-gradient(1px 1px at 36% 80%, rgba(201,169,110,0.12), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.press-shelf-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.press-shelf-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.press-shelf-eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.95rem;
}

.press-shelf-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  color: #f0e8d8;
  letter-spacing: -0.005em;
  margin: 0 auto 1.2rem;
  line-height: 1.15;
}

.press-shelf-rule {
  width: 64px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.press-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .press-shelf-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 520px) {
  .press-shelf-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 2.5rem 1.25rem;
  }
}

/* ── Book card ─────────────────────────────────────────────── */
.book-card {
  display: block;
  width: 100%;
  max-width: 285px;
  text-decoration: none;
  color: inherit;
  position: relative;
  /* perspective on parent so child preserves-3d works correctly */
  perspective: 900px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}

/* JS opts cards into hidden state with `.js-reveal-init`, then `.is-visible` reveals them */
.book-card.js-reveal-init {
  opacity: 0;
  transform: translateY(28px);
}
.book-card.js-reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.book-card-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 440px;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateZ(0) scale(1);
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.book-card-cover {
  position: absolute;
  inset: 0;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(135deg, #1d160e 0%, #14100a 50%, #0a0805 100%);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.55),
    0 4px 10px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(201,169,110,0.18),
    inset 0 1px 0 rgba(255,232,180,0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.book-card:hover .book-card-cover {
  box-shadow:
    0 36px 70px rgba(0,0,0,0.7),
    0 8px 20px rgba(0,0,0,0.55),
    0 0 36px rgba(201,169,110,0.22),
    inset 0 0 0 1px rgba(201,169,110,0.42),
    inset 0 1px 0 rgba(255,232,180,0.12);
}

.book-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder cover — elegant typography */
.book-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16% 14%;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(201,169,110,0.10) 0%, transparent 70%),
    linear-gradient(160deg, #1d1a18 0%, #121012 55%, #0a090b 100%);
}

.book-card-ornament {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 1.3rem;
  line-height: 1;
}

.book-card-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.25;
  color: #f0e8d8;
  margin-bottom: 0.95rem;
  letter-spacing: 0.01em;
}

.book-card-divider {
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.95rem;
}

.book-card-author {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 0.55rem;
}

.book-card-count {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.45);
}

.book-card-placeholder--empty .book-card-ornament {
  opacity: 0.35;
  margin-bottom: 0.8rem;
}
.book-card-placeholder--empty .book-card-title {
  color: rgba(240,232,216,0.4);
  font-size: 0.95rem;
}

/* Spine — thin gold edge on the left */
.book-card-spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: linear-gradient(180deg,
    rgba(201,169,110,0.05) 0%,
    rgba(201,169,110,0.32) 20%,
    rgba(120,76,30,0.55) 50%,
    rgba(201,169,110,0.32) 80%,
    rgba(201,169,110,0.05) 100%);
  border-radius: 3px 0 0 3px;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 4;
}

/* Cursor-following shine layer */
.book-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  transition: background 0.18s ease-out;
}

/* Soft cast shadow below — independent of 3D rotation */
.book-card-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -22px;
  height: 28px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0,0,0,0.55) 0%, transparent 70%);
  opacity: 0.55;
  filter: blur(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: -1;
}

.book-card:hover .book-card-shadow {
  opacity: 0.85;
  transform: translateY(6px) scale(1.05);
}

/* Meta below cover */
.book-card-meta {
  margin-top: 1.6rem;
  text-align: center;
  padding: 0 0.3rem;
}

.book-card-meta-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #ede4d0;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.book-card-meta-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.55);
}

.book-card:hover .book-card-meta-title {
  color: var(--gold);
}

/* Light theme — book cards */
body.light-theme .press-shelf {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,94,16,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #f5f0e8 0%, #ede5d8 100%);
}
body.light-theme .press-shelf-title { color: #2a1e0a; }
body.light-theme .book-card-cover {
  background: linear-gradient(135deg, #e8dcc4 0%, #d4c4a0 50%, #c4b288 100%);
  box-shadow:
    0 14px 32px rgba(80,50,15,0.20),
    0 4px 10px rgba(80,50,15,0.16),
    inset 0 0 0 1px rgba(139,94,16,0.25);
}
body.light-theme .book-card-placeholder {
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(139,94,16,0.10) 0%, transparent 70%),
    linear-gradient(160deg, #f1e6d0 0%, #e6d8b8 55%, #d8c69a 100%);
}
body.light-theme .book-card-title { color: #2a1e0a; }
body.light-theme .book-card-author { color: #8b5e10; }
body.light-theme .book-card-meta-title { color: #2a1e0a; }
body.light-theme .book-card-meta-sub { color: rgba(80,50,15,0.55); }

/* Hide legacy wooden shelf if it still exists anywhere */
.hero-shelf, .shelf-wrapper--hero, .shelf-wrapper, .shelf-plank, .shelf-shadow { display: none !important; }

/* ════════════════════════════════════════════════
   HERO PARALLAX (cursor-driven)
════════════════════════════════════════════════ */
.author-photo {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1);
  will-change: transform;
}
.hero-text {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
  will-change: transform;
}

/* ════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════ */
[data-reveal] {
  /* defaults set per-element via .book-card; this rule is a fallback */
}

/* ════════════════════════════════════════════════
   CTA BUTTON — gold glow on hover
════════════════════════════════════════════════ */
.cta-btn {
  position: relative;
  transition: background 0.25s, color 0.25s, box-shadow 0.3s, transform 0.25s;
}
.cta-btn:hover {
  background:
    linear-gradient(135deg, rgba(229,200,135,0.95) 0%, rgba(255,232,180,0.98) 50%, rgba(201,169,110,0.95) 100%);
  color: #0a0805;
  border-color: rgba(255,232,180,0.85);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,232,180,0.55) inset,
    0 0 28px rgba(201,169,110,0.50),
    0 12px 30px rgba(0,0,0,0.40);
}
.cta-btn:hover .cta-btn-icon {
  background: rgba(10,8,5,0.18);
  border-color: rgba(10,8,5,0.45);
  transform: scale(1.05);
}
body.light-theme .cta-btn-icon {
  background: rgba(139,94,16,0.16);
  border-color: rgba(139,94,16,0.35);
}
body.light-theme .cta-btn:hover .cta-btn-icon {
  background: rgba(245,240,232,0.35);
  border-color: rgba(60,40,15,0.45);
}

/* Underline animation for inline links */
a:not(.cta-btn):not(.book-card):not(.poem-card):not(.nav-btn):not(.back-link):not(.share-btn):not(.book-slot)::after { content: none; }

/* ════════════════════════════════════════════════
   HERO HEIGHT TWEAK after shelf moved out
════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  /* Modern mobile: use dynamic viewport height so the hero fully fills the screen
     and the next section ("БІБЛІОТЕКА" / press-shelf) doesn't peek at the bottom. */
  min-height: 100dvh;
  padding-bottom: 6rem;
}
@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 4rem;
    /* On mobile, center the hero content horizontally so the text doesn't sit
       awkwardly hard-left while everything else is centered. */
    justify-content: center;
  }
  .hero-inner   { text-align: center !important; align-items: center !important; }
  .hero-text    { align-items: center !important; }
  .hero-text > * { align-self: center !important; }
  .hero-actions { justify-content: center !important; align-self: center !important; }
  /* Eyebrow lines stay decorative around centered text */
  .hero-label   { align-self: center !important; }
}

/* ════════════════════════════════════════════════
   POEMS — MAGAZINE LAYOUT (overrides earlier .poems-section)
════════════════════════════════════════════════ */
.poems-magazine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 5.5rem) clamp(5.5rem, 9vw, 8.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,169,110,0.07) 0%, transparent 65%),
    linear-gradient(180deg, #0a0805 0%, #100b07 60%, #14100a 100%);
}

.poems-magazine .poems-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.poems-magazine .poems-parchment {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.66 0 0 0 0 0.43 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  background-size: 480px 480px;
}

.poems-magazine .poems-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, transparent 55%, rgba(0,0,0,0.45) 100%),
    radial-gradient(ellipse 110% 20% at 50% 100%, rgba(0,0,0,0.45) 0%, transparent 70%);
}

.poems-magazine .poem-particles {
  position: absolute;
  inset: 0;
}

.poems-magazine .poem-particle {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2a0 0%, rgba(201,169,110,0.55) 45%, rgba(201,169,110,0) 75%);
  opacity: 0;
  transform: translate3d(0,0,0) scale(var(--scale, 1));
  animation: poemParticleDrift var(--dur, 16s) ease-in-out var(--delay, 0s) infinite;
  filter: blur(0.4px);
  will-change: transform, opacity;
}

@keyframes poemParticleDrift {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(var(--scale, 1)); }
  15%      { opacity: var(--opa, 0.45); }
  50%      { opacity: var(--opa, 0.45); transform: translate3d(-12px, -38px, 0) scale(var(--scale, 1)); }
  85%      { opacity: var(--opa, 0.45); }
}

.poems-magazine .poem-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}
.poems-magazine .poem-thread {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: threadDraw 6s ease-out 0.4s forwards;
}
.poems-magazine .poem-thread:nth-child(2) { animation-delay: 1.0s; }
.poems-magazine .poem-thread:nth-child(3) { animation-delay: 1.6s; }

@keyframes threadDraw {
  to { stroke-dashoffset: 0; }
}

.poems-magazine .poems-inner {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 0 auto;
}

.poems-magazine .poems-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5.5rem);
  padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.poems-magazine .poems-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.62);
  margin-bottom: 1.1rem;
}

.poems-magazine .poems-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  color: #f5ead2;
  margin: 0 auto 1.1rem;
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #f5ead2 0%, #e8c98e 60%, #c9a96e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(201,169,110,0.18);
}

.poems-magazine .poems-deck {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.7;
  color: rgba(232,224,208,0.72);
  max-width: 640px;
  margin: 0 auto 1.6rem;
}

.poems-magazine .poems-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 460px;
  margin: 0 auto;
}
.poems-magazine .poems-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.42), transparent);
}
.poems-magazine .poems-rule em {
  font-style: normal;
  color: rgba(201,169,110,0.78);
  font-size: 1.05rem;
  line-height: 1;
}

/* Grid system — 12 columns at desktop ----------------------------------- */
.poems-magazine .poems-magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: clamp(1rem, 1.4vw, 1.5rem);
}

/* Desktop layout (>= 1100px): hero + 2 asymmetric + 7 masonry */
@media (min-width: 1100px) {
  .poems-magazine .poems-magazine-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 260px;
  }
  .poem-slot--hero {
    grid-column: span 8;
    grid-row: span 3;
  }
  .poem-slot--feature-tall {
    grid-column: span 4;
    grid-row: span 2;
  }
  .poem-slot--feature-short {
    grid-column: span 4;
    grid-row: span 1;
  }
  /* 7 regular cards arranged in 3-column masonry rows below */
  .poem-slot--regular {
    grid-column: span 4;
    grid-row: span 1;
  }
  /* Vary heights subtly so masonry feels organic */
  .poem-slot--regular:nth-of-type(5n + 4) { grid-row: span 2; }
  .poem-slot--regular:nth-of-type(7n + 5) { grid-row: span 1; }
}

/* Tablet (768–1099px) */
@media (min-width: 768px) and (max-width: 1099px) {
  .poems-magazine .poems-magazine-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
  }
  .poem-slot--hero {
    grid-column: span 12;
    grid-row: span 2;
  }
  .poem-slot--feature-tall,
  .poem-slot--feature-short {
    grid-column: span 6;
    grid-row: span 1;
  }
  .poem-slot--regular {
    grid-column: span 6;
    grid-row: span 1;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .poems-magazine {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .poems-magazine .poems-magazine-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }
  .poem-slot { min-height: 230px; }
  .poem-slot--hero { min-height: 380px; }
}

/* ── Card foundation ─────────────────────────────── */
.poem-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* tight stack from top — poem near badge */
  padding: clamp(1.4rem, 2vw, 2.2rem);
  border-radius: 6px;
  background:
    linear-gradient(155deg, rgba(45,32,18,0.6) 0%, rgba(20,14,8,0.85) 60%, rgba(10,8,5,0.95) 100%),
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201,169,110,0.10) 0%, transparent 60%);
  border: 1px solid rgba(201,169,110,0.14);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
  isolation: isolate;
}

.poem-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,232,180,0) 0%, rgba(255,232,180,0) 80%, rgba(201,169,110,0.08) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.poem-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(201,169,110,0.55), rgba(201,169,110,0) 35%, rgba(201,169,110,0) 65%, rgba(201,169,110,0.4));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.poem-slot:hover {
  transform: translateY(-5px);
  border-color: rgba(201,169,110,0.36);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.55),
    0 0 0 1px rgba(201,169,110,0.10),
    0 0 30px rgba(201,169,110,0.18);
}
.poem-slot:hover::before { opacity: 1; }
.poem-slot:hover::after { opacity: 1; }

.poem-slot:focus-visible {
  outline: none;
  border-color: rgba(201,169,110,0.65);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.35), 0 18px 50px rgba(0,0,0,0.55);
}

/* Big watermark numeral — engraved monogram, ink-stroke style */
.poem-slot-numeral {
  position: absolute;
  right: clamp(-14px, -1.6vw, -8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(8rem, 16vw, 16rem);
  line-height: 0.82;
  /* Engraved letterpress effect: dark fill + faint gold inner glow + soft outline */
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,0.16);
  text-shadow:
    0 1px 0 rgba(255,232,180,0.06),
    0 -1px 0 rgba(0,0,0,0.55);
  background: linear-gradient(165deg,
    rgba(201,169,110,0.11) 0%,
    rgba(201,169,110,0.04) 45%,
    rgba(168,128,60,0.08) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
  transition:
    background 0.6s ease,
    -webkit-text-stroke-color 0.6s ease,
    transform 0.6s cubic-bezier(0.2,0.7,0.2,1),
    filter 0.6s ease;
}
.poem-slot:hover .poem-slot-numeral {
  background: linear-gradient(165deg,
    rgba(232,201,142,0.30) 0%,
    rgba(201,169,110,0.16) 50%,
    rgba(168,128,60,0.20) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-stroke-color: rgba(232,201,142,0.34);
  transform: translateY(-50%) translateX(-6px) rotate(-1deg);
  filter: drop-shadow(0 8px 28px rgba(201,169,110,0.30));
}

.poem-slot--hero .poem-slot-numeral {
  font-size: clamp(10rem, 21vw, 21rem);
  right: clamp(-18px, -2vw, -12px);
}

/* Meta row (roman + tag) — tightened so excerpt sits right under the badge */
.poem-slot-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-bottom: clamp(0.9rem, 1.2vw, 1.3rem);
  z-index: 1;
}

.poem-slot-roman {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.15em;
  color: rgba(201,169,110,0.78);
  padding-right: 0.85rem;
  border-right: 1px solid rgba(201,169,110,0.28);
}

.poem-slot-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #14100a;
  background: linear-gradient(135deg, #e8c98e 0%, #c9a96e 100%);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(201,169,110,0.25);
}
.poem-slot-tag--soft {
  color: rgba(232,201,142,0.92);
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.32);
  box-shadow: none;
}
.poem-slot-tag--ghost {
  color: rgba(232,224,208,0.55);
  background: transparent;
  border: 1px dashed rgba(201,169,110,0.22);
  box-shadow: none;
}

/* Titles */
.poem-slot-title {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.18;
  color: #f4ead4;
  margin: 0 0 0.85rem 0;
  letter-spacing: 0.005em;
  transition: color 0.4s ease, letter-spacing 0.6s ease;
  display: inline-block;
}
/* Gold underline that ink-fills on hover */
.poem-slot-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(232,201,142,0.85) 0%,
    rgba(201,169,110,0.55) 50%,
    rgba(201,169,110,0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
.poem-slot:hover .poem-slot-title {
  color: #ffe9bc;
  letter-spacing: 0.012em;
}
.poem-slot:hover .poem-slot-title::after { transform: scaleX(1); }

.poem-slot--hero .poem-slot-title {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.poem-slot--feature-tall .poem-slot-title,
.poem-slot--feature-short .poem-slot-title {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
}

/* Excerpt */
.poem-slot-excerpt {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.72;
  color: rgba(232,224,208,0.74);
  margin: 0;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.5s ease;
}
.poem-slot:hover .poem-slot-excerpt { color: rgba(244,234,212,0.96); }

.poem-slot--hero .poem-slot-excerpt {
  font-size: clamp(1.1rem, 1.35vw, 1.32rem);
  line-height: 1.85;
  color: rgba(232,224,208,0.86);
  -webkit-line-clamp: 7;
}
.poem-slot--feature-tall .poem-slot-excerpt { -webkit-line-clamp: 4; font-size: clamp(1rem, 1.15vw, 1.15rem); }
.poem-slot--feature-short .poem-slot-excerpt { -webkit-line-clamp: 2; }

@media (max-width: 767px) {
  .poem-slot-excerpt { -webkit-line-clamp: 3; font-size: 0.98rem; line-height: 1.65; }
  .poem-slot--hero .poem-slot-excerpt { -webkit-line-clamp: 5; font-size: 1.05rem; line-height: 1.7; }
}

/* CTA */
.poem-slot-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  min-height: 48px;
  padding: 0.85rem 0 0;
  transition: opacity 0.4s ease, transform 0.4s ease, gap 0.4s ease;
}
.poem-slot-cta svg { transition: transform 0.4s ease; }
.poem-slot:hover .poem-slot-cta { opacity: 1; gap: 0.85rem; }
.poem-slot:hover .poem-slot-cta svg { transform: translateX(4px); }

/* Hero CTA size bump */
.poem-slot--hero .poem-slot-cta { font-size: 0.85rem; letter-spacing: 0.28em; }

/* Decorative gold corner */
.poem-slot-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  background:
    linear-gradient(225deg, rgba(201,169,110,0.22) 0%, rgba(201,169,110,0) 60%);
  border-top-right-radius: 6px;
  opacity: 0.7;
}
.poem-slot-corner::before,
.poem-slot-corner::after {
  content: '';
  position: absolute;
  background: rgba(201,169,110,0.5);
}
.poem-slot-corner::before {
  top: 9px; right: 9px;
  width: 14px;
  height: 1px;
}
.poem-slot-corner::after {
  top: 9px; right: 9px;
  width: 1px;
  height: 14px;
}

.poem-slot--hero .poem-slot-corner { width: 56px; height: 56px; }

/* Placeholder */
.poem-slot--placeholder {
  cursor: default;
  background:
    repeating-linear-gradient(135deg,
      rgba(201,169,110,0.025) 0,
      rgba(201,169,110,0.025) 8px,
      rgba(201,169,110,0.05) 8px,
      rgba(201,169,110,0.05) 16px),
    linear-gradient(180deg, rgba(20,14,8,0.7), rgba(10,8,5,0.85));
  border-color: rgba(201,169,110,0.10);
}
.poem-slot--placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(201,169,110,0.10);
}
.poem-slot--placeholder::after { display: none; }
.poem-slot-title--ghost { color: rgba(244,234,212,0.45); font-style: italic; }
.poem-slot-excerpt--ghost { color: rgba(232,224,208,0.40); }

/* ── Scroll reveal -----------------------------------------------------*/
.poem-slot[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1),
              transform 0.9s cubic-bezier(0.2,0.7,0.2,1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
}
.poem-slot[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Print/light theme tweaks */
body.light-theme .poems-magazine {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,169,110,0.18) 0%, transparent 65%),
    linear-gradient(180deg, #f4ecd8 0%, #ece1c4 100%);
}
body.light-theme .poems-magazine .poems-title { color: #5a3d10; -webkit-text-fill-color: initial; background: none; }
body.light-theme .poems-magazine .poems-deck { color: rgba(70,46,12,0.78); }
body.light-theme .poems-magazine .poems-vignette { display: none; }
body.light-theme .poem-slot {
  background:
    linear-gradient(155deg, rgba(255,243,217,0.95) 0%, rgba(232,213,170,0.92) 100%);
  border-color: rgba(139,94,16,0.22);
}
body.light-theme .poem-slot-title { color: #2a1e0a; }
body.light-theme .poem-slot-excerpt { color: rgba(60,40,10,0.78); }
body.light-theme .poem-slot-roman { color: rgba(139,94,16,0.85); }

/* ── Accessibility: prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .poem-slot[data-reveal] { opacity: 1; transform: none; }
  .poems-magazine .poem-particle { display: none; }
  .poems-magazine .poem-thread { stroke-dashoffset: 0; }
}
