/* ============================================================
   reading-room.css — The Reading Room

   Readability is the point of this page, so the type is larger
   than the rest of the site and scales fluidly with clamp()
   rather than jumping at breakpoints.

   clamp(min, preferred, max) means: never smaller than min,
   never larger than max, and in between it scales with the
   viewport. One declaration replaces three media queries and
   there is no awkward size at any width.
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.rr-hero {
  position: relative;
  background: var(--vanilla);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  overflow: hidden;
  text-align: center;
}
.rr-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.rr-blob { position: absolute; border-radius: 50%; }
.rr-blob--1 { width: 420px; height: 420px; top: -180px; right: -120px; background: var(--grapefruit); opacity: .12; }
.rr-blob--2 { width: 280px; height: 280px; bottom: -140px; left: -90px;  background: var(--lime);       opacity: .14; }
.rr-hero .container { position: relative; z-index: 1; }
.rr-hero .breadcrumb { margin-bottom: var(--space-6); }
.rr-hero .breadcrumb ol { justify-content: center; }

.rr-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--forest);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.rr-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--raspberry);
  margin-bottom: var(--space-8);
  text-wrap: balance;
}

/* ── LEAD PARAGRAPHS ───────────────────────────────────── */
.rr-lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink);
  max-width: 54ch;
  margin: 0 auto var(--space-5);
  text-wrap: pretty;
}

/* ── META PILLS ────────────────────────────────────────── */
.rr-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-8) 0;
}
.rr-meta__item {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--forest);
  background: rgba(255,255,255,.75);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: .5rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-bounce), box-shadow var(--transition), border-color var(--transition);
}
.rr-meta__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--grapefruit);
}

/* ── SECTIONS ──────────────────────────────────────────── */
.rr-section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.rr-section--tinted { background: var(--vanilla); }

.rr-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--forest);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.rr-heading--centred { text-align: center; margin-bottom: var(--space-10); }

/* Decorative rule under section headings */
.rr-block .rr-heading::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: var(--lemon);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.rr-body {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.85;
  color: var(--ink);
  max-width: 62ch;        /* the comfortable reading measure */
  margin-bottom: var(--space-5);
  text-wrap: pretty;
}
.rr-body:last-child { margin-bottom: 0; }
.rr-body strong { color: var(--forest); }

/* ── EVENT CARDS ───────────────────────────────────────── */
.rr-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
}
.rr-event {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease), border-color var(--transition);
}
.rr-event:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: var(--grapefruit);
}
.rr-event__when {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--raspberry);
  background: var(--raspberry-soft);
  border-radius: var(--radius-full);
  padding: .3rem .9rem;
  margin-bottom: var(--space-4);
}
.rr-event__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: var(--space-3);
}
.rr-event__body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── BOUNDARY NOTE ─────────────────────────────────────── */
.rr-note {
  background: var(--white);
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-7);
  margin-top: var(--space-8);
  max-width: 62ch;
  box-shadow: var(--shadow-sm);
}
.rr-note p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.rr-note__link {
  position: relative;
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--raspberry);
  text-decoration: none;
  transition: transform var(--transition);
}
.rr-note__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.rr-note__link:hover { transform: translateX(3px); }
.rr-note__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── CLOSING ───────────────────────────────────────────── */
.rr-close {
  background: var(--forest);
  padding-block: clamp(3.5rem, 9vw, 6rem);
  text-align: center;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}
.rr-close__mascot { width: clamp(130px, 20vw, 180px); height: auto; margin: 0 auto var(--space-6); }
.rr-close__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.rr-close__body {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  max-width: 48ch;
  margin: 0 auto var(--space-8);
  text-wrap: pretty;
}
.rr-close__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); }
.rr-close__ask {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
}
.rr-close__ask a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.rr-close__ask a:hover { color: var(--grapefruit); }

/* ── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rr-meta__item, .rr-event, .rr-note__link {
    transition: none !important;
    transform: none !important;
  }
}
