/* Ірина Мороз — макет, версія 2: «глибина й дихання».
   Стримана палітра моря, туману й ранкового світла. Без вінків і барвистості.
   З нинішнього сайту: рукописне ім'я JakobC, фото Ірини за столом. */

@font-face {
  font-family: 'JakobC';
  src: url('../fonts/JakobC.ttf') format('truetype');
  font-display: swap;
}

:root {
  --mist: #f2f0ec;      /* туман */
  --paper: #f8f7f4;     /* світле тло */
  --deep: #0e1c23;      /* глибина */
  --deep-2: #17303b;
  --sea: #3f5f6c;       /* море */
  --sea-soft: #9db2ba;
  --light: #e9dcc4;     /* ранкове світло */
  --ink: #1d282d;
  --ink-soft: #5d6a70;
  --line: #d9dcd9;
  --hand: 'JakobC', 'Segoe Script', cursive;
  --display: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --serif: 'Lora', Georgia, serif;
  --wrap: 1120px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .15 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--grain), var(--paper); color: var(--ink); font: 400 18px/1.75 var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.eyebrow { font: 500 13px/1.4 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Шапка (поверх глибини) ---------- */
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; color: #f3efe7; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.logo { font-family: var(--hand); font-size: 38px; line-height: 1; text-decoration: none; color: inherit; opacity: .95; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font: 400 15px var(--serif); letter-spacing: .08em; text-decoration: none; color: inherit; opacity: .78; transition: opacity .3s; }
.nav a:hover { opacity: 1; }
.menu-btn { display: none; }

/* ---------- Перший екран: глибина, що дихає ---------- */
.deep {
  position: relative; min-height: 100vh; overflow: hidden; color: #f3efe7;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(233, 220, 196, .16), transparent 60%),
    linear-gradient(180deg, #1d3a46 0%, #13262f 45%, var(--deep) 100%);
}
.deep::after { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .9; pointer-events: none; }
.breath {
  position: absolute; left: 50%; top: 50%; width: min(78vw, 640px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.82);
  background: radial-gradient(circle, rgba(233, 220, 196, .22) 0%, rgba(233, 220, 196, .08) 38%, transparent 68%);
  animation: breathe 10s ease-in-out infinite;
}
.ripple { position: absolute; left: 50%; top: 50%; width: min(70vw, 560px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(233, 220, 196, .14); transform: translate(-50%, -50%) scale(.6); animation: ripple 10s ease-out infinite; }
.ripple.r2 { animation-delay: 3.3s; }
.ripple.r3 { animation-delay: 6.6s; }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.82); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.45); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.deep .inner { position: relative; z-index: 2; padding: 120px 28px 140px; max-width: 900px; }
.deep h1 { margin: 0; font: italic 400 clamp(48px, 7.4vw, 104px)/1.02 var(--display); letter-spacing: -.01em; }
.deep .sub { margin: 26px auto 0; max-width: 34em; font: italic 400 clamp(19px, 2vw, 23px)/1.6 var(--display); color: rgba(243, 239, 231, .78); }
.cue { margin-top: 54px; font: 400 13px var(--serif); letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 239, 231, .62); height: 1.4em; position: relative; }
.cue span { position: absolute; left: 0; right: 0; animation: cue 10s ease-in-out infinite; }
.cue span + span { animation-delay: -5s; }
@keyframes cue { 0%, 100% { opacity: 0; } 15%, 40% { opacity: 1; } 50% { opacity: 0; } }
.dive { position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%); color: rgba(243, 239, 231, .6); text-decoration: none; font: italic 17px var(--display); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dive i { width: 1px; height: 46px; background: linear-gradient(rgba(243, 239, 231, .6), transparent); }

/* ---------- Розділи ---------- */
.section { padding: 120px 0; position: relative; }
.section.mist { background: var(--grain), var(--mist); }
.head { max-width: 640px; margin-bottom: 64px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font: italic 400 clamp(36px, 4.4vw, 54px)/1.1 var(--display); margin: 14px 0 0; }
.head p { margin: 16px 0 0; color: var(--ink-soft); }
.textlink { font: italic 500 20px var(--display); text-decoration: none; border-bottom: 1px solid var(--sea-soft); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.textlink:hover { color: var(--sea); border-color: var(--sea); }

/* ---------- Рядки, що тримають глибину ---------- */
.verse { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: center; }
.verse .photo { position: relative; }
.verse .photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(.35) contrast(1.02); }
.verse .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 28, 35, .35)); }
.verse blockquote { margin: 0; }
.verse blockquote p { font: italic 400 clamp(28px, 3vw, 40px)/1.45 var(--display); margin: 0 0 28px; white-space: pre-line; }
.verse cite { font-style: normal; display: block; color: var(--ink-soft); font-size: 16px; margin-bottom: 36px; }

/* ---------- Нова збірка ---------- */
.collection { background: var(--deep); color: #f0ece4; overflow: hidden; }
.collection .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.collection .eyebrow { color: rgba(240, 236, 228, .6); }
.collection h2 { font: italic 400 clamp(44px, 5.6vw, 76px)/1.02 var(--display); margin: 16px 0 24px; }
.collection p { color: rgba(240, 236, 228, .78); max-width: 32em; }
.collection .textlink { border-color: rgba(240, 236, 228, .4); }
.collection .textlink:hover { color: var(--light); border-color: var(--light); }
.contents { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.contents li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(240, 236, 228, .12); font: italic 400 23px/1.35 var(--display); }
.contents li::before { content: counter(c, upper-roman); font: 400 13px var(--serif); letter-spacing: .1em; color: rgba(240, 236, 228, .45); }
.contents li:last-child { border-bottom: 0; }

/* ---------- Вірші: тихий зміст ---------- */
.poems { border-top: 1px solid var(--line); }
.poem-row {
  display: grid; grid-template-columns: 1fr 1.4fr 40px; gap: 40px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: padding .4s, background .4s;
}
.poem-row h3 { margin: 0; font: italic 500 28px/1.25 var(--display); }
.poem-row p { margin: 0; color: var(--ink-soft); font: italic 400 20px/1.55 var(--display); white-space: pre-line; }
.poem-row .arrow { justify-self: end; color: var(--sea-soft); font-size: 22px; transition: transform .4s, color .4s; }
.poem-row:hover { padding-left: 18px; padding-right: 8px; background: linear-gradient(90deg, rgba(157, 178, 186, .14), transparent 70%); }
.poem-row:hover .arrow { transform: translateX(6px); color: var(--sea); }
.more { margin-top: 48px; text-align: center; }

/* ---------- Голос ---------- */
.voice { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track { width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.track .play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sea-soft); position: relative; transition: background .3s, border-color .3s; }
.track .play::before { content: ''; position: absolute; left: 17px; top: 14px; border-left: 12px solid var(--sea); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.track.playing .play { background: var(--sea); border-color: var(--sea); }
.track.playing .play::before { left: 15px; top: 14px; width: 14px; height: 16px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.track:hover .play { border-color: var(--sea); }
.track .t { font: italic 500 23px/1.3 var(--display); }
.track .bar { display: block; height: 1px; background: var(--line); margin-top: 8px; }
.track .bar i { display: block; height: 100%; width: 0; background: var(--sea); }

/* ---------- Книги ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 900px; }
.book { text-decoration: none; color: var(--ink); }
.book .cover { aspect-ratio: 2 / 3; overflow: hidden; background: var(--mist); box-shadow: 0 20px 40px -24px rgba(14, 28, 35, .45); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(.95); transition: filter .6s, transform .6s; }
.book:hover .cover img { filter: none; transform: scale(1.03); }
.book h3 { margin: 22px 0 4px; font: italic 500 23px/1.25 var(--display); }
.book .meta { font-size: 15px; color: var(--ink-soft); }

/* ---------- Про мене ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; align-items: center; }
.about img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05); }
.about .lead { font: italic 400 30px/1.45 var(--display); margin: 0 0 22px; }
.about p { color: var(--ink-soft); }

/* ---------- Підвал: знову глибина ---------- */
.site-footer { background: var(--deep); color: rgba(240, 236, 228, .75); padding: 100px 0 36px; font-size: 16px; }
.site-footer .closing { text-align: center; font: italic 400 clamp(26px, 3vw, 36px)/1.4 var(--display); color: #f0ece4; margin: 0 auto 80px; max-width: 760px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 48px; border-top: 1px solid rgba(240, 236, 228, .12); }
.site-footer .logo { color: #f0ece4; font-size: 40px; }
.site-footer h4 { margin: 0 0 12px; font: 500 12px var(--serif); letter-spacing: .22em; text-transform: uppercase; color: rgba(240, 236, 228, .5); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--light); }
.search { display: flex; margin-top: 22px; max-width: 360px; border-bottom: 1px solid rgba(240, 236, 228, .3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #f0ece4; font: italic 19px var(--display); padding: 10px 0; outline: none; }
.search input::placeholder { color: rgba(240, 236, 228, .45); }
.search button { border: 0; background: none; color: rgba(240, 236, 228, .75); font: 400 13px var(--serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.copy { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(240, 236, 228, .45); }

/* Поява під час прокручування */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .breath, .ripple, .cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптивність ---------- */
@media (max-width: 980px) {
  .verse, .collection .wrap, .voice, .about { grid-template-columns: 1fr; gap: 48px; }
  .verse .photo, .about img { max-width: 420px; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .poem-row { grid-template-columns: 1fr 30px; gap: 8px 20px; }
  .poem-row p { grid-column: 1; }
  .poem-row .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; background: none; border: 1px solid rgba(243, 239, 231, .45); color: #f3efe7; font: 400 13px var(--serif); letter-spacing: .2em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
  .nav { display: none; position: absolute; top: 84px; left: 16px; right: 16px; flex-direction: column; align-items: flex-start; gap: 4px; background: rgba(14, 28, 35, .96); padding: 22px 26px; border: 1px solid rgba(243, 239, 231, .1); }
  .nav.open { display: flex; }
  .nav a { font: italic 400 28px var(--display); letter-spacing: 0; padding: 6px 0; opacity: .9; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .logo { font-size: 32px; }
  .section { padding: 84px 0; }
  .head { margin-bottom: 44px; }
  .books { gap: 28px 18px; }
  .book h3 { font-size: 20px; }
  .poem-row h3 { font-size: 24px; }
  .poem-row p { font-size: 18px; }
  .contents li { font-size: 20px; }
  .about .lead { font-size: 25px; }
}

/* =====================================================================
   v2.1 — творчий шар: рука авторки, чорнило, акварель, чернетка
   ===================================================================== */

/* Акварельні розводи в глибині */
.wash { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: .55; animation: drift 40s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-3%, 2%) rotate(2deg); } }

/* Кит однією лінією */
.whale { position: absolute; z-index: 1; width: min(46vw, 560px); left: 6%; bottom: 14%; opacity: .5; animation: swim 26s ease-in-out infinite alternate; pointer-events: none; }
.whale path { fill: none; stroke: rgba(233, 220, 196, .55); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ink 9s ease forwards .6s; }
.whale path.thin { stroke-width: .8; animation-delay: 3.4s; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes swim { from { transform: translate(0, 0) rotate(-2deg); } to { transform: translate(6vw, -2vh) rotate(1deg); } }

/* Заголовок, що пишеться */
.deep h1 { clip-path: inset(0 100% 0 0); animation: write 3.2s cubic-bezier(.6, .1, .3, 1) forwards .3s; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.deep .sub { opacity: 0; animation: fade 2s ease forwards 2.8s; }
@keyframes fade { to { opacity: 1; } }

/* Рукописне «вдих / видих» */
.cue { font: 400 30px var(--hand); letter-spacing: 0; text-transform: none; color: rgba(233, 220, 196, .8); height: 1.3em; }

/* Дотик до води */
.tap { position: absolute; z-index: 1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1px solid rgba(233, 220, 196, .55); pointer-events: none; animation: tap 2.6s ease-out forwards; }
@keyframes tap { to { transform: scale(26); opacity: 0; } }

/* Рукописні підписи розділів з чорнильним підкресленням */
.eyebrow.hand-mark { font: 400 30px/1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--sea); position: relative; display: inline-block; padding-bottom: 6px; }
.eyebrow.hand-mark::after {
  content: ''; position: absolute; left: -4px; right: -10px; bottom: -4px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C30 2 60 9 90 4 S115 5 118 3' fill='none' stroke='%233f5f6c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .7;
}
.collection .eyebrow.hand-mark, .site-footer .eyebrow.hand-mark { color: var(--light); }
.collection .eyebrow.hand-mark::after { filter: invert(1) sepia(.4); }

/* Вірш на сторінці зошита — чернетка */
.draft-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 170px; align-items: center; }
.sheet {
  position: relative; background: #fbfaf6; padding: 56px 60px 52px 84px;
  box-shadow: 0 1px 1px rgba(14, 28, 35, .05), 0 30px 60px -30px rgba(14, 28, 35, .35);
  transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 51px, rgba(63, 95, 108, .14) 51px 52px);
  background-position: 0 44px;
}
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 58px; width: 1px; background: rgba(63, 95, 108, .25); }
.sheet .ln { font: italic 400 24px/52px var(--display); margin: 0; position: relative; }
.sheet del { text-decoration: none; position: relative; color: var(--ink-soft); }
.sheet del::after { content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--ink); opacity: .7; transform: rotate(-2deg); border-radius: 2px; }
.sheet ins { text-decoration: none; font: 400 23px/1 var(--hand); color: var(--sea); position: absolute; top: -8px; margin-left: -34px; transform: rotate(-4deg); white-space: nowrap; }
.sheet .margin {
  position: absolute; right: -150px; top: 30%; width: 140px; font: 400 23px/1.15 var(--hand); color: var(--sea); transform: rotate(6deg);
}
.sheet .margin svg { display: block; margin: 0 0 4px -40px; }
.sheet .num { position: absolute; left: 22px; top: 52px; font: 400 22px var(--hand); color: var(--ink-soft); }

/* Про мене — рукописна хронологія */
.about .facts-line { margin: 30px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.about .facts-line li { position: relative; padding: 0 0 18px 26px; font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); }
.about .facts-line li::before { content: ''; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--sea-soft); }
.about .facts-line b { display: block; font: 400 26px/1.1 var(--hand); color: var(--sea); }
.about .photo-wrap { position: relative; }
.about .photo-wrap .note { position: absolute; right: -24px; bottom: -22px; font: 400 26px var(--hand); color: var(--sea); transform: rotate(-6deg); background: var(--mist); padding: 2px 12px; }

@media (prefers-reduced-motion: reduce) {
  .wash, .whale { animation: none; }
  .whale path { animation: none; stroke-dashoffset: 0; }
  .deep h1 { clip-path: none; animation: none; }
  .deep .sub { opacity: 1; animation: none; }
}
@media (max-width: 980px) {
  .draft-grid { grid-template-columns: 1fr; gap: 56px; }
  .sheet .margin { right: 8px; top: auto; bottom: -58px; }
  .whale { width: 80vw; left: -6%; bottom: 8%; opacity: .35; }
}
@media (max-width: 560px) {
  .sheet { padding: 44px 26px 44px 52px; }
  .sheet::before { left: 36px; }
  .sheet .num { left: 10px; }
  .sheet .ln { font-size: 19px; line-height: 44px; }
  .sheet { background-image: repeating-linear-gradient(180deg, transparent 0 43px, rgba(63, 95, 108, .14) 43px 44px); }
  .about .photo-wrap .note { right: 6px; }
}

/* =====================================================================
   v2.2 — відео кита на першому екрані
   ===================================================================== */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(14, 28, 35, .25), rgba(14, 28, 35, .55) 70%),
    linear-gradient(180deg, rgba(14, 28, 35, .55) 0%, rgba(14, 28, 35, .15) 35%, rgba(14, 28, 35, .35) 70%, var(--deep) 100%);
}
.deep .breath { z-index: 1; opacity: .55; mix-blend-mode: screen; }
.deep .ripple { z-index: 1; }
.deep .inner, .deep .dive { z-index: 3; }
.deep h1, .deep .sub, .deep .cue { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
@media (orientation: portrait) and (max-aspect-ratio: 4/5) {
  .veil { background:
    radial-gradient(90% 34% at 50% 44%, rgba(14, 28, 35, .62), rgba(14, 28, 35, .2) 80%),
    linear-gradient(180deg, rgba(14, 28, 35, .5) 0%, rgba(14, 28, 35, .1) 30%, rgba(14, 28, 35, .3) 75%, var(--deep) 100%); }
  .deep .sub { color: rgba(243, 239, 231, .92); }
  .deep h1, .deep .sub, .deep .cue { text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
}

/* Вірші з мініатюрами */
.poem-row.with-thumb { grid-template-columns: 120px 1fr 1.3fr 40px; align-items: center; }
.poem-row .thumb { display: block; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.poem-row .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transition: filter .5s, transform .6s; }
.poem-row:hover .thumb img { filter: none; transform: scale(1.04); }

/* Проза */
.prose-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.prose-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.prose-card .pc-img { display: block; aspect-ratio: 7 / 5; overflow: hidden; margin-bottom: 22px; background: var(--paper); }
.prose-card .pc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7); transition: filter .6s, transform .6s; }
.prose-card:hover .pc-img img { filter: none; transform: scale(1.03); }
.prose-card h3 { margin: 0 0 10px; font: italic 500 26px/1.25 var(--display); }
.prose-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; flex: 1; }
.prose-card .textlink { align-self: flex-start; }

/* Голос: дві групи */
.list-title { font: 400 28px/1 var(--hand); color: var(--sea); margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.list-title a { font: italic 500 17px var(--display); color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.list-title a:hover { color: var(--sea); }


@media (max-width: 980px) {
  .prose-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .prose-card h3 { font-size: 22px; }
  .prose-card p { font-size: 15px; }
  .poem-row.with-thumb { grid-template-columns: 96px 1fr 30px; }
  .poem-row.with-thumb .thumb { width: 96px; grid-row: 1 / span 2; }
  .poem-row.with-thumb h3, .poem-row.with-thumb p { grid-column: 2; }
  .poem-row.with-thumb .arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  .prose-cards { grid-template-columns: 1fr; }
  .poem-row.with-thumb { grid-template-columns: 76px 1fr 24px; gap: 4px 14px; }
  .poem-row.with-thumb .thumb { width: 76px; }
}

/* =====================================================================
   Доопрацювання: роман, аудіо, проза, адаптивність
   ===================================================================== */

/* Роман — окрема картка з відступом від збірок */
.novel {
  display: grid; grid-template-columns: 180px 1fr; gap: 44px; align-items: center;
  max-width: 820px; margin-top: 96px; padding: 40px 44px;
  background: var(--paper); box-shadow: 0 30px 60px -40px rgba(14, 28, 35, .35);
}
.novel-cover img { width: 100%; height: auto; display: block; box-shadow: 0 18px 34px -16px rgba(14, 28, 35, .5); filter: grayscale(.5); transition: filter .5s; }
.novel:hover .novel-cover img { filter: none; }
.novel h3 { margin: 14px 0 10px; font: italic 500 32px/1.2 var(--display); color: var(--ink); }
.novel p { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; }
.novel-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.novel-meta span { font: italic 500 22px var(--display); color: var(--ink); }
.btn-line {
  display: inline-block; padding: 11px 24px; border: 1px solid var(--ink); border-radius: 999px;
  font: 500 14px var(--serif); letter-spacing: .08em; text-decoration: none; color: var(--ink); transition: background .3s, color .3s;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Проза — без підкреслень, чиста типографіка */
.prose-card, .prose-card:hover, .prose-card h3, .prose-card p { text-decoration: none; }
.prose-card .textlink { text-decoration: none; }

/* Аудіо: без зайвих ліній, прогрес лише під час відтворення */
.tracks { display: grid; gap: 6px; }
.track { border-bottom: 0; padding: 10px 0; }
.track .t { transition: color .3s; }
.track:hover .t { color: var(--sea); }
.track .bar { height: 2px; margin-top: 6px; opacity: 0; transition: opacity .4s; background: var(--line); }
.track.playing .bar { opacity: 1; }
.list-title { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }

/* Пісні — значок платівки, що крутиться під час відтворення */
.track.song .play {
  border: 0;
  background: radial-gradient(circle, var(--light) 0 4px, var(--sea) 4px 9px, #1d282d 9px 11px, #33464d 11px 12px, #1d282d 12px 15px, #33464d 15px 16px, #1d282d 16px 19px, #2b3c43 19px);
  box-shadow: 0 6px 14px -6px rgba(14, 28, 35, .6);
}
.track.song .play::before { display: none; }
.track.song:hover .play { transform: rotate(40deg); transition: transform .6s; }
.track.song.playing .play { animation: vinyl 2.4s linear infinite; background: radial-gradient(circle, var(--light) 0 4px, var(--sea) 4px 9px, #1d282d 9px 11px, #33464d 11px 12px, #1d282d 12px 15px, #33464d 15px 16px, #1d282d 16px 19px, #2b3c43 19px); }
@keyframes vinyl { to { transform: rotate(360deg); } }

/* Адаптивність: книги і роман */
@media (max-width: 980px) {
  .novel { grid-template-columns: 140px 1fr; gap: 28px; padding: 32px; margin-top: 72px; }
}
@media (max-width: 560px) {
  .books { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .books .book:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 60%; justify-self: center; }
  .novel { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .novel-cover { max-width: 150px; margin: 0 auto; }
  .novel-meta { justify-content: center; }
  .novel h3 { font-size: 27px; }
}

@media (max-width: 640px) { .prose-cards { grid-template-columns: 1fr; gap: 40px; } .prose-card h3 { font-size: 25px; } }
@media (max-width: 980px) {
  .poem-row.with-thumb { align-items: start; }
  .poem-row.with-thumb .thumb { margin-top: 6px; }
  .poem-row.with-thumb .arrow { align-self: center; }
}
