/* Illustrated reading routes. Scoped to collection pages and compatible with
   the existing light/dark palette; no new JavaScript is required. */
.collection-page {
  max-width: 1180px;
  width: min(1180px, 92vw);
}

.collection-heading { max-width: 850px; margin-bottom: 2.1rem; }
.collection-heading h1 { font-size: clamp(2rem, 4.6vw, 3.65rem); line-height: 1.12; margin: .7rem 0 1.2rem; }
.collection-heading > p:not(.eyebrow) { max-width: 730px; font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.collection-page h1, .collection-page h2, .collection-page h3 { letter-spacing: normal; word-spacing: normal; text-wrap: pretty; }
.collection-page a:focus-visible, .collection-page summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

.collection-tone--berry { --collection-accent: #853d57; }
.collection-tone--blue { --collection-accent: #255b69; }
.collection-tone--amber { --collection-accent: #7e4b20; }
.collection-tone--violet { --collection-accent: #65406e; }
.collection-tone--sage { --collection-accent: #356250; }
.collection-tone--ink { --collection-accent: #45475f; }

.collection-jump-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.6rem; }
.collection-jump-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--collection-accent, var(--rose)); border-radius: 8px; color: var(--text); background: var(--surface); font-size: .9rem; line-height: 1.4; }
.collection-jump-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.collection-card { min-width: 0; border: 1px solid var(--border); border-top: 5px solid var(--collection-accent); border-radius: 18px; overflow: hidden; background: var(--surface); scroll-margin-top: calc(var(--header-h, 70px) + 1.4rem); }
.collection-card-body { padding: 1.6rem; }
.collection-label { display: inline-block; background: var(--collection-accent, #65406e); color: #fff; padding: .35rem .65rem; border-radius: 5px; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .035em; }
.collection-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.22; margin: .8rem 0 1rem; }
.collection-intro { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.collection-route-label { margin-top: 1.5rem; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.collection-visual { margin: 0; background: var(--surface2); }
.collection-visual > a { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.collection-visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.collection-visual--cover img { object-fit: contain; padding: 1rem; }
.collection-visual figcaption { padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }

.collection-reading-list { list-style: none; margin: .4rem 0 1.3rem; padding: 0; }
.collection-reading-list > li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.collection-step { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: .78rem; font-weight: 700; }
.collection-reading-list h3 { font-size: 1.03rem; line-height: 1.5; margin: 0; font-weight: 600; }
.collection-reading-list h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--border); text-underline-offset: 4px; }
.collection-reading-list h3 a:hover { text-decoration-color: var(--rose); }
.collection-reading-list li p { margin-top: .35rem; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.collection-destination { margin: 1.3rem 0; }
.collection-destination .btn { white-space: normal; }
.collection-archive { padding-top: .35rem; border-top: 1px solid var(--border); }
.collection-archive summary { padding: .85rem 0; min-height: 44px; cursor: pointer; font-size: .9rem; font-weight: 600; line-height: 1.55; }
.collection-archive ul { padding-left: 1.15rem; margin: .3rem 0 .8rem; list-style: disc; }
.collection-archive li { padding: .4rem 0; font-size: .9rem; line-height: 1.65; }
.collection-archive a, .collection-archive-link a { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }
.collection-archive-link { font-size: .9rem; line-height: 1.6; }
.collection-follow { margin: 2.6rem 0 0; padding: 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface2); }
.collection-follow p { line-height: 1.75; margin-bottom: .65rem; }
.collection-follow a { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }
.collection-other { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem; scroll-margin-top: 100px; }
.collection-other h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.collection-other > p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

.collection-issue { --collection-accent: #65406e; }
.collection-issue .collection-heading { max-width: 900px; }
.collection-issue .collection-issue-meta { font-size: .85rem; margin-top: 1.2rem; }
.collection-issue-cover { max-width: 900px; margin: 0 auto 2rem; border-radius: 16px; overflow: hidden; }
.collection-issue-cover > a { aspect-ratio: 16 / 9; }
.collection-issue-intro { max-width: 760px; margin: 0 auto 2.5rem; font-size: 1.04rem; line-height: 1.8; }
.collection-issue-intro ol { list-style: decimal; padding-left: 1.4rem; margin: 1.3rem 0; }
.collection-issue-intro li { padding: .45rem 0; }
.collection-issue-intro a { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }
.collection-issue-readings { display: grid; gap: 2rem; }
.collection-issue-reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.collection-issue-reading > .collection-visual { display: flex; flex-direction: column; }
.collection-issue-reading .collection-visual > a { flex: 1; min-height: 240px; }
.collection-issue-reading-body { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 2rem; }
.collection-issue-reading h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3; margin: .85rem 0; }
.collection-issue-reading h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.collection-issue-note { color: var(--muted); line-height: 1.8; margin-bottom: 1.3rem; }
.collection-complement { max-width: 800px; margin: 3rem auto 0; }
.collection-complement h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.collection-complement > p { color: var(--muted); line-height: 1.8; }
.collection-back { margin-top: 2rem; font-size: .95rem; }
.collection-back a { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 800px) {
  .collection-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .collection-card-body { padding: 1.4rem; }
  .collection-heading h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .collection-issue-reading { grid-template-columns: 1fr; }
  .collection-issue-reading .collection-visual > a { min-height: 0; aspect-ratio: 16 / 9; }
  .collection-issue-reading-body { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .collection-heading > p:not(.eyebrow) { font-size: 1rem; }
  .collection-jump-nav { gap: .5rem; }
  .collection-jump-nav a { font-size: .85rem; }
  .collection-card-body { padding: 1.2rem; }
  .collection-reading-list > li { grid-template-columns: 1.8rem minmax(0, 1fr); gap: .55rem; }
  .collection-step { width: 1.8rem; height: 1.8rem; }
  .collection-visual figcaption { padding-inline: 1rem; }
  .collection-follow { padding: 1.2rem; }
}
