/* ===== Whispers Page — scoped overrides (visual-only) =============== */
/* Load this AFTER your main /Guardians/css/style.css on whispers.html */

/* A/C. Micro layout polish */
.jumpbar.local{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
  margin:.5rem 0 .75rem;
}
.jumpbar.local a{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .75rem;
  border:1px dashed rgba(255,255,255,.25);
  border-radius:.65rem;
  text-decoration:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
}
.jumpbar.local a:hover,
.jumpbar.local a:focus{
  box-shadow:0 0 0 1px rgba(255,255,255,.22) inset, 0 0 16px rgba(224,208,143,.18);
  transform: translateY(-1px);
}

.draw-row{
  justify-content:center;   /* center Draw/Another/Copy */
  gap:.6rem;
  margin-top:.6rem;
}

/* B. Reveal animation for newly drawn whispers */
#whisper-card.reveal{
  animation: whisper-reveal .24s ease both;
}
@keyframes whisper-reveal{
  from{ opacity:0; transform: translateY(.35rem); }
  to  { opacity:1; transform: none; }
}

/* Consistent feedback on click/focus for CTA buttons */
.cta-button{
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.cta-button:active{
  transform: translateY(1px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.6);
}
.cta-button:focus-visible{
  outline: 2px solid #00d4d4;
  outline-offset: 2px;
}

/* ===== Poems section (cards work with 1:1 or 3:2 images) =========== */
#poems{ margin: 1rem 0 1.25rem; }
#poems h2{ margin: 0 0 .6rem; }

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

.poem-card{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,28,36,.7), rgba(14,18,24,.6));
  padding: .85rem .95rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.poem-art{
  --radius: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 .6rem;
  background: rgba(0,0,0,.25);
}
/* Image sizing with aspect-ratio; switch class to ratio-1-1 or ratio-3-2 */
.poem-art.ratio-1-1{ aspect-ratio: 1 / 1; }
.poem-art.ratio-3-2{ aspect-ratio: 3 / 2; }
.poem-art img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.poem-art figcaption{
  font-size: .8rem;
  opacity: .8;
  padding: .35rem .5rem 0;
}

.poem-title{
  margin: 0 0 .35rem;
  letter-spacing: .02em;
  color: #EDE3C8;                /* warm, readable on dark bg */
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 0 18px rgba(224,208,143,.18);
}

.poem-text{
  white-space: pre-line;          /* preserves your manual line breaks */
  line-height: 1.35;
  color: #E9EEF7;                 /* avoid pure white on dark */
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* small italic meta line */
.poem-meta{
  margin: .45rem 0 0;
  font-size: .92rem;
  opacity: .9;
  font-style: italic;
}

/* === Websites card → glowing link tiles ============================ */
.web-links-card{
  border:1px solid rgba(255,255,255,.15);
  border-radius:16px;
  padding:1rem;
  background:linear-gradient(180deg, rgba(22,28,36,.66), rgba(14,18,24,.6));
  box-shadow:0 10px 26px rgba(0,0,0,.25);
}
.web-links-card > h3{
  margin:.1rem 0 .7rem;
  letter-spacing:.02em;
  color:#EDE3C8;
  text-shadow:0 1px 0 rgba(0,0,0,.55), 0 0 18px rgba(224,208,143,.18);
}

.link-grid{
  display:grid;
  gap:.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* each tile is a full-width button-like link */
.link-tile{
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.7rem .85rem;
  border-radius:12px;
  text-decoration:none;
  color:#E9EEF7;                 /* light on dark, not pure white */
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(120% 100% at 15% 20%, rgba(224,208,143,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.link-tile .icon{ font-size:1.25rem; filter: drop-shadow(0 2px 6px rgba(224,208,143,.25)); }
.link-tile .text{ display:flex; flex-direction:column; line-height:1.12; }
.link-tile .text strong{ font-weight:700; }
.link-tile .text em{ opacity:.9; font-style:normal; font-size:.92rem; }

.link-tile .ext{ margin-left:auto; opacity:.85; }

.link-tile:hover,
.link-tile:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 0 22px rgba(224,208,143,.22);
  outline:none;
}
/* keyboard ring */
.link-tile:focus-visible{
  outline:2px solid #00d4d4; outline-offset:2px;
}

/* optional: compress the card on small columns so it matches your right rail */
@media (min-width: 1024px){
  .web-links-card{ padding:1rem .9rem; }
}
