/* =========================================================
   Zygmunt Marek Miszczak — poeta
   Atrament (granat) · papier (krem) · złoto (ochra)
   ========================================================= */

:root {
  --ink: #15223b;
  --ink-2: #1f3052;
  --ink-3: #2c406a;
  --paper: #f4f6fa;
  --paper-2: #ebeef5;
  --white: #ffffff;
  --gold: #b3884a;
  --gold-2: #c9a46a;
  --gold-soft: #e8d6b3;
  --text: #24262c;
  --muted: #5d6170;
  --line: #e1e6ef;
  --line-ink: rgba(255, 255, 255, .14);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --wrap: 100%;
  --gutter: 120px;
  --radius: 5px;
  --shadow: 0 1px 2px rgba(15, 26, 46, .08), 0 6px 16px -4px rgba(15, 26, 46, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--gold); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font: 400 1.3rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 60px; height: 2px; background: currentColor; flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 60px; height: 2px; background: currentColor; flex: none; }
@media (max-width: 640px) {
  .eyebrow { font-size: 1.05rem; gap: 12px; }
  .eyebrow::before, .eyebrow--center::after { width: 40px; }
}

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead { margin-top: 18px; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: var(--radius); background: transparent;
  font: 500 .92rem/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #9c743b; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .9rem/1 var(--sans); letter-spacing: .04em; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 6px;
}
.link-arrow svg { width: 15px; height: 15px; color: var(--gold); transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 600 1.32rem/1.05 var(--serif); letter-spacing: .01em; }
.brand-tag { font: 500 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; text-decoration: none; font: 500 .95rem/1 var(--sans); color: var(--ink); padding: 8px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 84px); height: calc(100dvh - 84px); background: var(--white); border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; font: 600 1.7rem/1.2 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav .btn { margin-top: 28px; justify-content: center; }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 1300px) { :root { --gutter: 80px; } }
@media (max-width: 1100px) { :root { --gutter: 48px; } }
@media (max-width: 700px) { :root { --gutter: 20px; } }
@media (max-width: 420px) {
  .brand-name { font-size: 1.12rem; }
  .brand-mark { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.86); background: #0f1a2e;
  min-height: calc(100vh - 84px); min-height: calc(100svh - 84px);
  display: flex; align-items: center; padding: 80px 0 110px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/tlo-biblioteka.webp") center 40% / cover no-repeat;
  animation: heroZoom 16s var(--ease) both;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(201,164,106,.20), transparent 60%),
    linear-gradient(90deg, rgba(12,21,38,.96) 0%, rgba(17,28,49,.88) 38%, rgba(21,34,59,.55) 70%, rgba(21,34,59,.45) 100%),
    linear-gradient(180deg, rgba(12,21,38,.2) 0%, rgba(12,21,38,.75) 100%);
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }

.hero-word {
  position: absolute; z-index: 1; right: -3vw; top: 2%; pointer-events: none;
  font: italic 600 clamp(9rem, 24vw, 26rem)/1 var(--serif); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(201,164,106,.16);
  animation: fadeIn 2s .6s var(--ease) both;
}
.hero .wrap { position: relative; z-index: 3; }
.hero-grid { display: block; }
.hero-copy { max-width: 56%; }
.hero h1 { margin-bottom: 30px; color: #fff; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: 1.04; }
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; animation: lineUp 1.1s var(--d, 0s) var(--ease) both; }
.hero h1 em { color: var(--gold-2); }
.hero .eyebrow { color: var(--gold-2); }
.hero .lead { margin-bottom: 38px; color: rgba(255,255,255,.78); max-width: 34em; font-size: 1.18rem; }
.hero-in { animation: fadeUp 1s var(--d, 0s) var(--ease) both; }
.hero-meta { display: flex; gap: 12px 30px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); max-width: 46rem; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.hero-meta b { font: 600 1.9rem/1 var(--serif); color: #fff; letter-spacing: 0; margin-right: 6px; text-transform: none; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-figure {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 2vw); bottom: 0;
  height: min(calc(100% - 40px), 940px); aspect-ratio: 884 / 1478;
  animation: figureUp 1.4s .35s var(--ease) both;
}
.hero-figure img { position: relative; z-index: 1; height: 100%; width: auto; filter: drop-shadow(0 6px 16px rgba(15, 26, 46, .3)); }
.hero-ring {
  position: absolute; z-index: 0; left: 50%; top: 2%; width: 118%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(201,164,106,.45);
  background: radial-gradient(closest-side, rgba(201,164,106,.22), rgba(201,164,106,.06) 70%, transparent);
}
.hero-ring::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px solid rgba(201,164,106,.18); }
@keyframes figureUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

.hero-quote {
  position: absolute; z-index: 4; margin: 0; right: calc(var(--gutter) + 2vw + min(calc(100vh - 124px), 940px) * .45); bottom: 16%;
  max-width: 280px; background: rgba(255,255,255,.97); padding: 22px 24px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 3px solid var(--gold);
}
.hero-quote p { font: italic 500 1.4rem/1.25 var(--serif); color: var(--ink); margin: 0 0 10px; }
.hero-quote figcaption { font: 500 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1200px) {
  .hero-copy { max-width: 56%; }
  .hero-quote { display: none; }
}
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; padding: 56px 0 0; min-height: 0; }
  .hero-copy { max-width: none; }
  .hero h1 .line { white-space: normal; }
  .hero-meta { margin-top: 36px; }
  .hero-figure { position: relative; right: auto; height: 460px; margin: 30px auto 0; }
  .hero-word { display: none; }
  .hero-meta { display: none; }
  .scroll-cue { display: none; }
}

/* ---------- Stats band ---------- */
.band { position: relative; background: var(--white); color: var(--ink); overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24'%3E%3Cpath d='M0 24 14 0l14 24z' fill='%23f3f5f9'/%3E%3C/svg%3E") 0 0 / 28px 24px;
  -webkit-mask-image: linear-gradient(170deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 75%);
  mask-image: linear-gradient(170deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 75%);
}
.band .wrap { position: relative; }
.band .stats { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 600 clamp(2.6rem, 4.2vw, 3.6rem)/1 var(--serif); color: var(--ink); margin-bottom: 12px; }
.stat span { font-size: .92rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.82); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: rgba(255,255,255,.72); }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-img { aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--paper-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.05); }
.cat-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cat-count { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.cat h3 { margin-bottom: 10px; }
.cat p { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.cat .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 1040px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

/* Featured poem */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.poem-card {
  position: relative; background: var(--white); padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.poem-card::before {
  content: "\201D"; position: absolute; top: -18px; left: 30px;
  font: 600 6rem/1 var(--serif); color: var(--gold);
}
.poem-card h3 { font-size: 2rem; margin-bottom: 6px; }
.poem-card .poem-meta { font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.poem-card .poem-text { font-size: 1.32rem; }
.poem-card .poem-actions { margin-top: 28px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.btn-plain { background: none; border: 0; padding: 0; font: 500 .88rem/1 var(--sans); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.btn-plain:hover { color: var(--ink); }
.btn-plain svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* Poem typesetting */
.poem-text { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.55; }
.poem-text .stanza { margin: 0 0 1.15em; }
.poem-text .stanza:last-child { margin-bottom: 0; }
.poem-text .stanza span { display: block; padding-left: 1.2em; text-indent: -1.2em; }

/* About teaser */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; width: 100%; }
.about-photo::after {
  content: ""; position: absolute; inset: -20px 20px 20px -20px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-photo { z-index: 0; }
.about blockquote {
  margin: 30px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold);
  font: italic 500 1.5rem/1.35 var(--serif); color: var(--ink);
}
.about blockquote cite { display: block; margin-top: 10px; font: normal 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.facts li { display: flex; gap: 12px; font-size: .96rem; line-height: 1.5; }
.facts li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55em; background: var(--gold); border-radius: 50%; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 20px; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Books */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 28px; }
.book { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.book-cover {
  position: relative; aspect-ratio: 3 / 3.6; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, transparent 55%, rgba(21,34,59,.06)); border-radius: var(--radius);
  padding: 18px 18px 0; margin-bottom: 18px;
}
.book-cover img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.book:hover .book-cover img { transform: translateY(-6px) rotate(-1deg); }
.book-cover--blank .blank {
  width: 74%; aspect-ratio: 3 / 4.2; background: var(--ink); color: #fff; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--ink); outline: 1px solid var(--gold); outline-offset: -8px;
}
.blank small { font: 500 .55rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.blank strong { font: italic 600 1.15rem/1.15 var(--serif); }
.book-year { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.book h3, .book h2 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 6px; }
.book p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.tag { display: inline-block; font: 500 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; background: var(--ink); color: var(--gold-2); margin-bottom: 10px; align-self: flex-start; }

.shelf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; scroll-behavior: smooth; }
.shelf-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.shelf-scroll { -ms-overflow-style: none; }
.shelf-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; }
.shelf-nav .link-arrow { margin-left: 18px; }
.shelf-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.shelf-btn svg { width: 18px; height: 18px; }
.shelf-btn[data-shelf="-1"] svg { transform: rotate(180deg); }
.shelf-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.shelf-scroll .book { scroll-snap-align: start; }
@media (max-width: 640px) { .shelf-scroll { grid-auto-columns: 62%; } }

/* Dziedzictwo */
.saga { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.saga-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.saga-covers figure { margin: 0; text-align: center; }
.saga-covers img { box-shadow: var(--shadow); }
.saga-covers figcaption { margin-top: 14px; font: 500 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.saga-covers .soon {
  aspect-ratio: 1; border: 1px dashed rgba(255,255,255,.35); display: grid; place-items: center;
  font: italic 500 1.1rem/1.2 var(--serif); color: rgba(255,255,255,.7); padding: 12px;
}
.saga-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; }
.saga-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line-ink); }
.saga-steps li::before { counter-increment: s; content: "0" counter(s); font: 600 1.4rem/1 var(--serif); color: var(--gold-2); }
.saga-steps b { color: #fff; font-weight: 500; }
@media (max-width: 900px) { .saga { grid-template-columns: 1fr; } }

/* Reach / schools */
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reach-item {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 34px 34px; transition: border-color .3s, box-shadow .3s;
}
.reach-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.reach-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 26px; }
.reach-ico svg { width: 26px; height: 26px; }
.reach-item h3 { font-size: 1.7rem; margin-bottom: 12px; }
.reach-item p { font-size: .98rem; color: var(--muted); margin: 0; }
.reach-tags { margin-top: auto !important; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 22px !important; font-size: .85rem !important; color: var(--ink) !important; line-height: 1.7; }
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; } }

/* Invite banner */
.invite {
  position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(40px, 6vw, 70px); border-radius: var(--radius); overflow: hidden;
}
.invite::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 1px solid rgba(201,164,106,.35); border-radius: 50%;
}
.invite h2 { color: #fff; margin-bottom: 16px; }
.invite-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; } }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.date-pill { align-self: flex-start; font: 500 .78rem/1 var(--sans); letter-spacing: .04em; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }
.news-kind { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.news-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.news-card p { font-size: .94rem; color: var(--muted); }
.news-place { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; gap: 8px; }
.news-place svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: 3px; }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news { grid-template-columns: 1fr; } }

/* Illustration ribbon */
.ribbon { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; gap: 18px; width: max-content; animation: ribbon 80s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon a { flex: none; width: 190px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; display: block; background: var(--paper-2); }
.ribbon img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ribbon a:hover img { transform: scale(1.06); }
@keyframes ribbon { to { transform: translateX(-50%); } }
.credit-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 22px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; color: var(--gold); }

/* ---------- Bio page ---------- */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 6vw, 90px); }
.bio-aside { position: sticky; top: 110px; align-self: start; }
.bio-aside img { border-radius: var(--radius); aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 15%; margin-bottom: 24px; }
.bio-aside dl { margin: 0; font-size: .92rem; }
.bio-aside dt { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.bio-aside dd { margin: 6px 0 0; color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 64px 0 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.05rem; }
.prose .drop::first-letter { float: left; font: 600 4.4rem/.8 var(--serif); color: var(--gold); margin: 8px 12px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 28px 30px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--gold); border-radius: 50%; }
.timeline b { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.timeline span { font-size: .98rem; color: var(--muted); }
.honours { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honour { background: var(--white); border: 1px solid var(--line); padding: 20px 22px; border-radius: var(--radius); }
.honour b { display: block; font: 600 1.15rem/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }
.honour small { font: 500 .72rem/1 var(--sans); letter-spacing: .16em; color: var(--gold); }
@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio-aside { position: static; max-width: 360px; }
}
@media (max-width: 560px) { .honours { grid-template-columns: 1fr; } }

/* ---------- Poems library ---------- */
.lib-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search input {
  width: 100%; padding: 16px 18px 16px 50px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font: 400 1rem/1.2 var(--sans); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,136,74,.15); }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 10px 16px; font: 500 .86rem/1 var(--sans); transition: all .2s;
}
.chip small { color: var(--muted); margin-left: 4px; font-size: .78rem; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: var(--gold-2); }
.lib-sub { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--gold); width: 16px; height: 16px; }

.poem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.poem-row a {
  display: grid; grid-template-columns: 1fr auto 64px; gap: 24px; align-items: center;
  padding: 18px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: background .2s, padding .25s var(--ease);
}
.poem-row a:hover { background: var(--white); padding-left: 16px; }
.poem-row h3 { font-size: 1.42rem; font-weight: 600; margin-bottom: 2px; }
.poem-row p { margin: 0; font: italic 400 1.05rem/1.4 var(--serif); color: var(--muted); }
.poem-row .cat-tag { font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.poem-row .thumb { width: 64px; height: 64px; border-radius: 2px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.poem-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.poem-row .thumb svg { width: 22px; height: 22px; color: var(--gold-soft); }
.empty { padding: 50px 0; text-align: center; color: var(--muted); font: italic 500 1.3rem/1.4 var(--serif); }
.more-wrap { text-align: center; margin-top: 36px; }
@media (max-width: 640px) {
  .poem-row a { grid-template-columns: 1fr 52px; gap: 14px; }
  .poem-row .cat-tag { display: none; }
  .poem-row .thumb { width: 52px; height: 52px; }
}

/* ---------- Single poem ---------- */
.poem-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.poem-page--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.poem-head { margin-bottom: 40px; }
.poem-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.poem-head .sub { font: italic 500 1.3rem/1.4 var(--serif); color: var(--muted); margin-top: 12px; }
.poem-body .poem-text { font-size: clamp(1.25rem, 2vw, 1.45rem); }
.poem-occasion { margin-top: 36px; font: italic 500 1.1rem/1.5 var(--serif); color: var(--muted); }
.poem-note {
  margin-top: 40px; padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); font-size: .95rem; color: var(--muted);
}
.poem-note h2 { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.poem-note p:last-child { margin: 0; }
.poem-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.poem-art { position: sticky; top: 110px; }
.poem-art figure { margin: 0; }
.poem-art img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.poem-art figcaption { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 70px; }
.pager a {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--white); transition: border-color .2s, box-shadow .3s;
}
.pager a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.pager small { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pager b { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 960px) {
  .poem-page { grid-template-columns: 1fr; }
  .poem-art { position: static; max-width: 460px; order: -1; }
}
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 20px; align-items: center; padding: 26px 28px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .3s;
}
.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.contact-card .ico { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-card b { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); word-break: break-word; }
.form { display: grid; gap: 16px; background: var(--white); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); }
.form label { display: grid; gap: 8px; font: 500 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,136,74,.15); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- News page ---------- */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.news-item time { font: 600 1.6rem/1.1 var(--serif); color: var(--ink); }
.news-item time small { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.news-item h2 { font-size: 1.9rem; margin-bottom: 12px; }
.news-item p { color: var(--muted); max-width: 720px; }
.news-item .news-place { border: 0; padding: 0; margin-top: 4px; }
@media (max-width: 720px) { .news-item { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(60px, 8vw, 100px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18em; margin: 0 auto 18px; }
.cta-band .lead { color: rgba(255,255,255,.7); margin: 0 auto 34px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .orn { width: 120px; margin: 0 auto 28px; color: var(--gold-2); }

.site-footer { background: #0f1a2e; color: rgba(255,255,255,.62); padding: 70px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer h4 { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-grid > div:first-child { grid-column: 1 / -1; } .footer-grid > div:last-child { grid-column: 1 / -1; } .site-footer { padding-top: 50px; } .footer-bottom { margin-top: 36px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ribbon-track { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Print (poems for recitation) ---------- */
@media print {
  .site-header, .site-footer, .poem-tools, .pager, .crumbs, .cta-band, .poem-art, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-hero { border: 0; padding: 0 0 12pt; }
  .poem-page { display: block; }
  .poem-body .poem-text { font-size: 14pt; color: #000; }
  .poem-note { border: 0; padding: 0; }
  .section { padding: 0; }
  .print-footer { display: block !important; margin-top: 24pt; font-size: 9pt; color: #555; }
}
.print-footer { display: none; }

/* ---------- Word marquee ---------- */
.words { overflow: hidden; background: var(--paper-2); padding: 24px 0; }
.words-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: ribbon 70s linear infinite; }
.words span { font: italic 500 clamp(1.5rem, 2.2vw, 2rem)/1 var(--serif); color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.words i { display: block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; font-size: 0; }

/* ---------- Night quote ---------- */
.night { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 92vh; background: #0c1426; color: #fff; overflow: hidden; }
.night-copy {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px, 8vw, 120px) clamp(24px, 6vw, 110px) clamp(60px, 8vw, 120px) var(--gutter);
  background: radial-gradient(80% 60% at 20% 30%, rgba(44,64,106,.55), transparent 70%);
}
.night-copy::before {
  content: "\201D"; position: absolute; left: calc(var(--gutter) - 10px); top: clamp(10px, 4vw, 50px);
  font: 600 clamp(10rem, 18vw, 18rem)/1 var(--serif); color: rgba(201,164,106,.14);
}
.night .eyebrow { color: var(--gold-2); position: relative; }
.night-poem { margin: 10px 0 44px; position: relative; font: italic 500 clamp(1.9rem, 3.3vw, 3.2rem)/1.28 var(--serif); color: #fff; }
.night-poem .stanza { margin: 0 0 .7em; }
.night-poem .stanza span { display: block; }
.night-poem .stanza:nth-child(2) { color: rgba(255,255,255,.62); }
.link-arrow--light { color: #fff; align-self: flex-start; position: relative; }
.night-art { position: relative; overflow: hidden; }
.night-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s var(--ease); }
.night:hover .night-art img { transform: scale(1.1); }
.night-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0c1426 0%, rgba(12,20,38,0) 30%); }
.night-art span { position: absolute; z-index: 2; right: 18px; bottom: 14px; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .night { grid-template-columns: 1fr; min-height: 0; }
  .night-art { height: 70vw; order: -1; }
  .night-art::before { background: linear-gradient(0deg, #0c1426 0%, rgba(12,20,38,0) 40%); }
}

/* ---------- Richer interactions ---------- */
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.cat:hover::after { transform: scaleX(1); }
.cats .cat:nth-child(2), .news .news-card:nth-child(2), .reach .reach-item:nth-child(2) { transition-delay: .08s; }
.cats .cat:nth-child(3), .news .news-card:nth-child(3), .reach .reach-item:nth-child(3) { transition-delay: .16s; }
.cats .cat:nth-child(4) { transition-delay: .24s; }
.cat:hover { transition-delay: 0s; }
.btn--gold { box-shadow: none; }
.btn--gold:hover, .btn--gold:hover svg { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-word, .hero h1 .line > span, .hero-in, .hero-figure, .words-track, .scroll-cue span { animation: none !important; }
}

/* ---------- Hero logo strip ---------- */
.hero { padding-bottom: 150px; }
.hero-logos {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 104px; overflow: hidden;
  display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero-logos-track { display: flex; align-items: center; gap: 96px; width: max-content; animation: ribbon 60s linear infinite; }
.hero-logos img { display: block; width: auto; height: var(--h, 38px); filter: brightness(0) invert(1); opacity: .5; transition: opacity .3s; }
.hero-logos img:hover { opacity: .9; }
.lg-sans { font: 500 1.35rem var(--sans); letter-spacing: -.01em; }
.lg-caps { font: 600 1.05rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lg-serif { font: 700 1.7rem var(--serif); }
.lg-italic { font: italic 600 2rem var(--serif); }
@media (max-width: 860px) {
  .hero { padding-bottom: 0; }
  .hero-logos { position: relative; order: 3; height: 80px; margin-top: -1px; background: rgba(12,21,38,.9); }
  .hero-logos-track { gap: 48px; }
  .lg-sans { font-size: 1.1rem; } .lg-caps { font-size: .85rem; } .lg-serif { font-size: 1.35rem; } .lg-italic { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-logos-track { animation: none; } }

/* ---------- Hero: exactly one screen ---------- */
@media (min-width: 861px) {
  .hero {
    height: calc(100vh - 85px); height: calc(100svh - 85px); min-height: 540px;
    padding: clamp(24px, 4vh, 60px) 0 clamp(80px, 13vh, 140px);
  }
  .hero h1 { font-size: clamp(2.4rem, min(5vw, 8.6vh), 5.6rem); margin-bottom: clamp(16px, 3vh, 30px); }
  .hero .eyebrow { margin-bottom: clamp(12px, 2.2vh, 20px); }
  .hero .lead { margin-bottom: clamp(20px, 4vh, 38px); font-size: clamp(1rem, 2.1vh, 1.18rem); }
  .hero-logos { height: clamp(70px, 11vh, 104px); }
  .hero-figure { height: min(calc(100% - 30px), 940px); }
}

/* ---------- Quote card (about section) ---------- */
.quote-card {
  position: absolute; z-index: 2; right: -34px; bottom: 34px; margin: 0; max-width: 300px;
  background: var(--white); padding: 22px 26px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 3px solid var(--gold);
}
.quote-card p { font: italic 500 1.45rem/1.25 var(--serif); color: var(--ink); margin: 0 0 10px; }
.quote-card figcaption { font: 500 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .quote-card { right: -12px; bottom: 20px; } }

/* ---------- Subpage hero (matches home hero) ---------- */
.page-hero {
  position: relative; overflow: hidden; border: 0; color: rgba(255,255,255,.8); background: #0f1a2e;
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(12,21,38,.96) 0%, rgba(17,28,49,.88) 45%, rgba(21,34,59,.62) 100%),
    url("../img/tlo-biblioteka.webp") center 40% / cover no-repeat;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.05; margin-bottom: 18px; }
.page-hero h1 em { color: var(--gold-2); }
.page-hero .eyebrow { color: var(--gold-2); }
.page-hero .lead { color: rgba(255,255,255,.76); margin: 0; }
.page-hero .sub { font: italic 500 1.35rem/1.4 var(--serif); color: rgba(255,255,255,.72); margin: 0; }
.page-hero .crumbs { color: rgba(255,255,255,.55); margin-bottom: 34px; }
.page-hero .crumbs a { color: rgba(255,255,255,.7); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span { color: var(--gold-2); }
.poem-section { padding-top: clamp(56px, 7vw, 90px); }

/* Bio photo frame like home "O autorze" */
.bio-aside .bio-photo { position: relative; margin: 20px 0 30px 20px; }
.bio-aside .bio-photo::before { content: ""; position: absolute; inset: -20px 20px 20px -20px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.bio-aside .bio-photo img { position: relative; z-index: 1; margin: 0; box-shadow: var(--shadow); }

@media print { .page-hero { background: none; color: #000; padding: 0 0 12pt; } .page-hero::before { display: none; } .page-hero h1, .page-hero .sub { color: #000; } }

/* Saga list links */
.saga-steps li > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: inherit; text-decoration: none; transition: color .2s; }
.saga-steps li > a svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; opacity: .6; transition: opacity .2s, transform .25s var(--ease); }
.saga-steps li > a:hover { color: #fff; }
.saga-steps li > a:hover b { color: var(--gold-2); }
.saga-steps li > a:hover svg { opacity: 1; transform: translateX(4px); }

/* ---------- Homepage v2: merged sections ---------- */
.night-title { font: 600 clamp(1.4rem, 2vw, 1.9rem)/1.2 var(--serif); color: var(--gold-2); margin: 0 0 22px; position: relative; }
.night-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.night-actions .btn svg { width: 16px; height: 16px; }
.night-poem { min-height: 6.5em; }

.saga-panel {
  background: var(--ink); color: rgba(255,255,255,.8); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 70px); margin-bottom: clamp(56px, 7vw, 90px); box-shadow: var(--shadow);
}
.saga-panel h3 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 16px; }
.saga-panel h3 em { color: var(--gold-2); }
.saga-panel .eyebrow { color: var(--gold-2); }
.saga-panel .lead { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.shelf-title { font-size: 1.7rem; margin: 0 0 30px; }

.reach + .invite { margin-top: clamp(40px, 5vw, 64px); }
.invite h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.invite p { margin: 0; color: rgba(255,255,255,.75); }
.invite-actions { align-items: flex-end; }

.news--compact .news-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 860px) { .invite-actions { align-items: flex-start; } }
@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-body { padding: 16px 14px 18px; }
  .cat p { display: none; }
  .cat h3 { font-size: 1.2rem; margin-bottom: 12px; }
  .cat-count { font-size: .62rem; margin-bottom: 8px; }
  .cat .link-arrow { font-size: .8rem; }
  .reach-item { padding: 28px 24px; }
  .news-card { padding: 24px 22px; }
}
.night-copy::before { display: none; }

/* Static row of remaining books (home) */
.shelf-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 24px; }
.shelf-row .book-cover { aspect-ratio: auto; height: clamp(170px, 16vw, 250px); padding: 12px 12px 0; }
.shelf-row .book-cover img { max-height: 100%; }
@media (max-width: 1100px) { .shelf-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .shelf-row { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .shelf-row .book p { display: none; } }
.band::before { display: none; }

/* Dziedzictwo panel: full-width background, content stays in the grid */
.saga-panel {
  border-radius: 0; padding-left: 0; padding-right: 0;
  box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
}

/* Footer contact icons */
.site-footer .ico-link { display: inline-flex; align-items: center; gap: 12px; }
.site-footer .ico-link svg { width: 18px; height: 18px; flex: none; color: var(--gold-2); }
.site-footer .ico-link span { word-break: break-word; }

.nav-toggle svg + svg { display: none; }
.nav-toggle[aria-expanded="true"] svg:first-child { display: none; }
.nav-toggle[aria-expanded="true"] svg + svg { display: block; }

/* 404 */
.search--404 { display: block; max-width: 520px; margin-top: 26px; }
.page-hero--404 { min-height: calc(100vh - 85px); display: flex; align-items: center; }
.page-hero--404 .wrap { width: 100%; }
