/* =========================================================================
   reading.css — page-specific styles for the Reading page
   Reuses palette, fonts, and shared components from styles.css.
   Signature: illustrated bookshelf hero + five themed sections of
   curated items (books, stays, films, voices, cafés).
   ========================================================================= */


/* ── BOOKSHELF HERO ─────────────────────────────────────────────── */
.reading-hero {
  max-width: 1180px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

.reading-hero__kicker {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--brass);
  margin: 0 0 0.2rem;
  transform: rotate(-1deg);
  display: inline-block;
}

.reading-hero__title {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(3.4rem, 8.5vw, 5.8rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 1.4rem;
  transform: rotate(-1deg);
}

.bookshelf {
  margin: 0 auto;
  max-width: 920px;
  filter: drop-shadow(0 22px 36px rgba(43, 38, 32, 0.18));
  position: relative;
}
.bookshelf svg {
  width: 100%;
  height: auto;
  display: block;
}

.reading-hero__lede {
  max-width: 720px;
  margin: 2rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--driftwood);
  opacity: 0.92;
}


/* ── SECTION SHELL ──────────────────────────────────────────────── */
.reading-section {
  max-width: 1180px;
  margin: 5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.reading-section__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(178, 93, 67, 0.3);
}

.reading-section__num {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--sec-deep, var(--brass));
  opacity: 0.85;
}

.reading-section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--ink);
  margin: 0 0 0.2rem;
  letter-spacing: 0.005em;
}

.reading-section__sub {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--brass);
  margin: 0;
  opacity: 0.9;
}

.reading-section__icon {
  width: 56px;
  height: 56px;
  background: var(--sec-tint, #FDFBF6);
  padding: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, 0.18);
}


/* ── READ ITEM (base card) ─────────────────────────────────────── */
.reading-grid {
  display: grid;
  gap: 1.8rem 1.6rem;
}

.read-item {
  position: relative;
  background: #FDFBF6;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(120, 90, 50, 0.04) 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(120, 90, 50, 0.035) 1px, transparent 2px);
  background-size: 22px 22px, 28px 28px;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 3px;
  box-shadow:
    0 18px 30px -18px rgba(43, 38, 32, 0.28),
    0 1px 2px rgba(43, 38, 32, 0.06);
  border: 1px solid rgba(107, 98, 86, 0.1);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.35s ease;
}
.read-item:nth-child(odd)  { transform: rotate(-0.6deg); }
.read-item:nth-child(even) { transform: rotate(0.7deg); }
.read-item:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 28px 44px -20px rgba(43, 38, 32, 0.36),
    0 1px 2px rgba(43, 38, 32, 0.08);
  z-index: 10;
}

.read-item__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.read-item__title em {
  font-style: italic;
}
.read-item__by {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--sec-deep, var(--brass));
  margin: 0 0 0.7rem;
  opacity: 0.9;
}
.read-item__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--driftwood);
  margin: 0;
  opacity: 0.95;
}


/* ── SECTION 1 — BOOKS: book-spine left edge ─────────────────────── */
.reading-grid--books {
  grid-template-columns: repeat(2, 1fr);
}
.reading-grid--books .read-item {
  padding-left: 2.2rem;
}
.reading-grid--books .read-item__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--sec-deep);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.25),
              inset -2px 0 4px rgba(0,0,0,0.18);
}


/* ── SECTION 2 — STAYS: polaroid-style with photo ────────────────── */
.reading-grid--stays {
  grid-template-columns: repeat(2, 1fr);
}
.read-item--polaroid {
  padding: 1.6rem 1.4rem 1.5rem;
}
.read-item__photo {
  margin: -0.2rem -0.4rem 1rem;
  overflow: hidden;
  border-radius: 2px;
}
.read-item__photo svg,
.read-item__photo img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.read-item__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 20px;
  background-color: var(--sec-tint);
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.3) 0 4px, transparent 4px 10px);
  opacity: 0.85;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(43,38,32,0.12);
}


/* ── SECTION 3 — FILMS: film-reel strip on the left ─────────────── */
.reading-grid--films {
  grid-template-columns: repeat(3, 1fr);
}
.read-item--ticket {
  position: relative;
  padding-left: 2.8rem;
  overflow: hidden;       /* clip the film strip to the rounded corners */
}
.read-item__perf {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  /* Warm cartoony brown film stock, with slight gradient for paper feel */
  background:
    linear-gradient(to right, #6B4226 0%, #7A4F30 50%, #6B4226 100%);
  border-right: 1.5px solid rgba(75, 45, 25, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Sprocket holes — cream rounded rectangles down the centre */
.read-item__perf::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 8px,
    #F1E5D8 8px 16px,
    transparent 16px 24px
  );
  border-radius: 2px;
}
/* Subtle frame divider hatching between sprocket pairs */
.read-item__perf::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 23px,
    rgba(60, 30, 10, 0.4) 23px 24px
  );
  pointer-events: none;
}


/* ── SECTION 4 — VOICES: quote-mark accent ───────────────────────── */
.reading-grid--voices {
  grid-template-columns: repeat(3, 1fr);
}
.read-item--voice {
  position: relative;
  padding-top: 2.2rem;
}
.read-item--voice::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: var(--serif);
  font-size: 4.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sec-deep);
  opacity: 0.4;
}


/* ── SECTION 5 — CAFÉS: little mug icon top-right ────────────────── */
.reading-grid--cafes {
  grid-template-columns: repeat(3, 1fr);
}
.read-item--cafe {
  padding-right: 3rem;
}
.read-item__mug {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: block;
}


/* ── CLOSING ────────────────────────────────────────────────────── */
.reading-close {
  max-width: 720px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}
.reading-close p {
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--brass);
  margin: 0;
  opacity: 0.92;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .reading-grid--films,
  .reading-grid--voices,
  .reading-grid--cafes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .reading-hero { padding: 0 1rem; margin: 1rem auto 2rem; }
  .reading-section { padding: 0 1rem; margin: 3.5rem auto; }
  .reading-section__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.8rem;
  }
  .reading-section__icon {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    justify-self: end;
    align-self: start;
    width: 44px; height: 44px;
  }
  .reading-section__num { font-size: 2.6rem; }
  .reading-grid--books,
  .reading-grid--stays,
  .reading-grid--films,
  .read