@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noticia+Text:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #136091;
  --navy-dark: #0e4a70;
  --cream: #f1e5d4;
  --cream-light: #f8f1e7;
  --accent: #f1f989;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --white: #fdfdfd;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Noticia Text', Georgia, serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 30px 0 0;
  box-shadow: 0 6px 20px rgba(14,74,112,0.35);
  position: relative;
  z-index: 30;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  text-align: center;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-title a { color: var(--white); }

.site-tagline {
  font-family: var(--font-body);
  font-style: italic;
  text-align: center;
  font-size: 1.05rem;
  margin: 10px 0 0;
  color: var(--cream-light);
}

.site-tagline::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
  margin: 18px auto 0;
}

.site-nav {
  margin-top: 12px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 16px 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: var(--white);
  position: relative;
  padding: 4px 2px 8px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav li.active > a {
  color: var(--accent);
}

.site-nav a:hover::after,
.site-nav li.active > a::after {
  transform: scaleX(1);
}

.site-nav li { position: relative; }

.site-nav .has-dropdown > a {
  padding-right: 14px;
}

.site-nav .has-dropdown > a::before {
  content: '\25BE';
  position: absolute;
  right: -2px;
  top: 4px;
  font-size: 0.7em;
  color: inherit;
  opacity: 0.75;
}

.site-nav .has-dropdown:hover .dropdown,
.site-nav .has-dropdown:focus-within .dropdown {
  display: flex;
}

.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 20;
  gap: 0;
}

.dropdown a {
  padding: 8px 20px;
  font-size: 1rem;
  white-space: nowrap;
}

.dropdown a::after { content: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0 auto 6px;
  width: 34px;
  height: 26px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  width: 18px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0 20px;
  }

  .site-nav ul.open { display: flex; }

  .site-nav .dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 2px 0 0;
  }

  .site-nav .has-dropdown .dropdown a {
    font-size: 0.95rem;
    opacity: 0.85;
    padding: 5px 0;
  }

  .site-nav .has-dropdown > a::before { display: none; }
}

/* ---------- Hero carousel ---------- */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-carousel .hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-carousel .hc-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel .hc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .hc-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(14,74,112,0.75), rgba(14,74,112,0));
  pointer-events: none;
}

.hero-carousel .hc-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 48px 26px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19,96,145,0.55);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.hc-arrow:hover { background: rgba(19,96,145,0.85); }
.hc-prev { left: 20px; }
.hc-next { right: 20px; }

.hc-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hc-dot.active { background: var(--accent); }

@media (max-width: 560px) {
  .hero-carousel { height: 48vh; min-height: 320px; }
  .hero-carousel .hc-scrim { height: 150px; }
  .hero-carousel .hc-caption { font-size: 1.05rem; padding: 20px 24px; }
}

/* ---------- Hero / Home ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0 40px;
}

.book-card {
  text-align: center;
}

.book-card img {
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.book-card .byline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

.find-out-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- Bio section ---------- */

.bio-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 60px;
}

.bio-section img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.bio-section p { margin: 0 0 18px; }

.bio-section.flip {
  grid-template-columns: 1.1fr 0.9fr;
}

.bio-section.flip img {
  order: 2;
}

/* ---------- Generic content section ---------- */

.content-section {
  padding: 56px 0;
}

.content-section h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 8px;
  text-align: center;
}

.content-section .section-lede {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 40px;
}

/* ---------- Book detail pages ---------- */

.book-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  padding: 56px 0;
  align-items: start;
}

.book-detail img.cover { box-shadow: 0 14px 34px rgba(0,0,0,0.2); }

.book-detail h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 6px;
}

.book-detail .byline {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.buy-now {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  padding: 12px 30px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.buy-now:hover { background: var(--navy-dark); }

.buy-now.secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 10px 28px;
}

.buy-now.secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.book-extra-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

blockquote.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  border-left: 4px solid var(--navy);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--navy-dark);
}

/* ---------- Reviews ---------- */

.review-group h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 48px 0 20px;
  color: var(--navy-dark);
}

.review-group:first-of-type h2 { margin-top: 0; }

.review {
  background: var(--cream-light);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.review p { margin: 0 0 12px; }
.review .attribution {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Power Pearls ---------- */

.pp-month {
  margin-bottom: 48px;
}

.pp-month h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-dark);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 22px;
}

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

.pp-item {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.pp-item img { width: 100%; height: auto; }

.pp-item .download-btn {
  display: block;
  padding: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--white);
}

.pp-item .download-btn:hover { background: var(--navy-dark); }

/* ---------- Share-ables ---------- */

.sharables-block {
  margin-bottom: 48px;
}

.sharables-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

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

.song-card {
  background: var(--cream-light);
  border-radius: 8px;
  padding: 22px;
}

.song-card h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.song-card p { white-space: pre-line; margin: 0 0 14px; font-size: 0.95rem; }

.listen-link {
  display: inline-block;
  color: var(--navy-dark);
  font-weight: bold;
  border-bottom: 2px solid var(--navy-dark);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.video-card {
  display: block;
  background: var(--cream-light);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.video-thumb {
  position: relative;
  margin-bottom: 12px;
}

.video-thumb img { margin-bottom: 0; }

.video-thumb::after {
  content: '\25B6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(19,96,145,0.85);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding-left: 3px;
  pointer-events: none;
}

/* ---------- Reader's Gallery ---------- */

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: scale(1.03);
}

.gallery-grid img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Forms ---------- */

.subscribe-box, .contact-box {
  text-align: center;
}

.subscribe-box h2, .contact-box h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 20px;
}

form.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

form.stack input, form.stack textarea {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

form.stack textarea { flex-basis: 100%; min-height: 120px; resize: vertical; }

form.stack button {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--navy-dark);
  border: none;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

form.stack button:hover { opacity: 0.9; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.form-note.form-error {
  color: #a3352b;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 30px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  text-align: center;
}

.site-footer .subscribe-box input::placeholder { color: #555; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.footer-contact h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 4px 0;
}

.footer-contact a { border-bottom: 1px solid var(--accent); }

.social-bar {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-bar img { width: 32px; height: 32px; }

.copyright {
  font-size: 0.85rem;
  color: #cfe0ec;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .bio-section { grid-template-columns: 1fr; }
  .bio-section.flip img { order: 0; }
  .book-detail { grid-template-columns: 1fr; }
  .book-extra-images { grid-template-columns: 1fr; }
  .site-nav ul { gap: 16px 22px; }
}

@media (max-width: 560px) {
  .site-title { font-size: 1.9rem; }
  .wrap { padding: 0 20px; }
}

/* ---------- Link in bio (links.html) ---------- */

body.lb-page {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-dark) 52%, #0a3550 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--white);
}

.lb-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 46px 20px 56px;
}

.lb-profile {
  text-align: center;
}

.lb-avatar {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.lb-profile h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lb-tagline {
  font-style: italic;
  color: var(--cream-light);
  font-size: 1rem;
  margin: 10px auto 0;
  max-width: 21em;
}

.lb-social {
  justify-content: center;
  margin-top: 20px;
}

.lb-social img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.lb-social a:hover img { transform: translateY(-2px); }

.lb-links {
  display: grid;
  gap: 13px;
  margin-top: 32px;
}

.lb-card {
  background: var(--cream-light);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.lb-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lb-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

.lb-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lb-featured {
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

.lb-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-thumb-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.lb-thumb-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-text {
  flex: 1 1 auto;
  min-width: 0;
}

.lb-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy-dark);
}

.lb-flag {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  background: var(--accent);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.lb-note {
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 3px;
}

.lb-chev {
  flex: 0 0 auto;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  opacity: 0.35;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.lb-link:hover .lb-chev {
  opacity: 0.8;
  transform: translateX(3px);
}

.lb-newsletter {
  padding: 22px 18px;
  text-align: center;
}

.lb-newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin: 0 0 6px;
}

.lb-newsletter p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.lb-newsletter form.stack input {
  flex-basis: 100%;
  border: 1px solid #d8ccb8;
  background: var(--white);
}

.lb-newsletter form.stack button { flex: 1 1 100%; }

.lb-newsletter .form-note { margin-top: 4px; }

.lb-foot {
  text-align: center;
  margin-top: 34px;
}

.lb-site-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.lb-site-link:hover { color: var(--accent); }

.lb-copy {
  font-size: 0.8rem;
  color: #cfe0ec;
  margin-top: 18px;
}

@media (max-width: 420px) {
  .lb-shell { padding: 34px 16px 46px; }
  .lb-profile h1 { font-size: 1.7rem; }
  .lb-label { font-size: 1rem; }
  .lb-link { padding: 12px 13px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-link, .lb-chev, .lb-social img { transition: none; }
  .lb-link:hover { transform: none; }
}

/* ---------- Link in bio: Instagram-style grid ---------- */

.lb-handle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--accent);
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

.lb-feed {
  margin-top: 30px;
}

.lb-feed-head {
  text-align: center;
  margin-bottom: 14px;
}

.lb-feed-head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.lb-feed-head p {
  font-size: 0.88rem;
  color: var(--cream-light);
  margin: 5px 0 0;
}

.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

.lb-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--navy-dark);
  overflow: hidden;
}

.lb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lb-tile-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 9px;
  background: linear-gradient(to top, rgba(10,45,70,0.88) 0%, rgba(10,45,70,0.25) 45%, rgba(10,45,70,0) 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lb-tile-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-tile:hover img,
.lb-tile:focus-visible img { transform: scale(1.06); }

.lb-tile:hover .lb-tile-veil,
.lb-tile:focus-visible .lb-tile-veil { opacity: 1; }

.lb-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Touch screens can't hover, so the label stays visible there. */
@media (hover: none) {
  .lb-tile-veil { opacity: 1; }
}

.lb-follow {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  border: 1px solid rgba(241,249,137,0.55);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lb-follow:hover {
  background: rgba(241,249,137,0.12);
  border-color: var(--accent);
}

.lb-links-head {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 8px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .lb-tile img, .lb-tile-veil { transition: none; }
  .lb-tile:hover img { transform: none; }
}

/* The class rules above set display, which would otherwise beat [hidden]
   and leave out-of-season cards on the page. */
.lb-card[hidden], .lb-tile[hidden] { display: none; }
