/* ==========================================================================
   Lugosi Viktória — weboldal
   ========================================================================== */

:root {
  --paper: #f7f4ee;
  --paper-2: #efe9de;
  --card: #fbf9f5;
  --ink: #1e1c19;
  --ink-2: #57524a;
  --ink-3: #8a8378;
  --line: #ddd5c6;
  --accent: #2f5f8f;
  --accent-ink: #ffffff;
  --accent-soft: #e3eaf1;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
/* Safari a meglátogatott linkeket alapból kékre színezi – a „currentColor” keretekkel együtt */
a:visited { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 { font-size: clamp(34px, 5vw, 52px); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn--quiet { border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  font: 400 23px/1 var(--serif); text-decoration: none; letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.6vw, 34px); margin: 0; padding: 0; }
.nav a {
  font: 400 12.5px/1 var(--nav); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding-block: 6px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav { margin-left: auto; }
.lang {
  display: flex; align-items: center; gap: 12px;
  padding-left: 22px; border-left: 1px solid var(--line);
}
.lang a {
  font: 500 11.5px/1 var(--nav); letter-spacing: .14em; text-decoration: none;
  color: var(--ink-3); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); border-bottom-color: currentColor; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .lang { margin-left: auto; border-left: 0; padding-left: 0; gap: 10px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; font: 400 15px/1.2 var(--nav); letter-spacing: .22em; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(8px, 2vw, 32px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 96px); align-items: center;
}
.hero h1 { font-size: clamp(46px, 6.4vw, 80px); line-height: 1.0; margin-bottom: 20px; padding-top: .16em; }
.hero h1 em { font-style: italic; }

/* „Nyomtatott” cím – nyitóanimáció (a JS indítja, miután a betűtípus betöltődött) */
.print-ready .hero h1 { opacity: 0; }
.print-go .hero h1 {
  transform-origin: 0 55%;
  will-change: opacity, transform, filter;
  animation: press 1.15s cubic-bezier(.3,.7,.2,1) both;
}
@keyframes press {
  0%   { opacity: 0; filter: blur(7px); transform: scale(1.05); color: var(--ink-3); }
  55%  { opacity: 1; filter: blur(1.5px); transform: scale(1.01); color: var(--ink-2); }
  72%  { filter: blur(0); transform: scale(.975); color: var(--ink); }
  82%  { transform: scale(1.005); }
  100% { opacity: 1; filter: blur(0); transform: none; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .print-ready .hero h1 { opacity: 1; }
  .print-go .hero h1 { animation: none; }
}
.hero .lede { font: 400 clamp(20px, 2.2vw, 24px)/1.5 var(--serif); color: var(--ink-2); max-width: 30ch; margin: 0 0 10px; }
.hero .lede-src { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 36px; }

.hero .hero-text { color: var(--ink-2); max-width: 46ch; margin: 0 0 24px; }
.buy-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }

.hero-cover { justify-self: center; width: min(100%, 280px, 42vh); }
.hero-cover a, .hero-cover button { all: unset; cursor: pointer; display: block; }
.hero-cover a:focus-visible, .hero-cover button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Webáruház-gombok (Libri, Bookline) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 20px 0 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(30,28,25,.45); border-color: var(--ink-3); }
.store img { height: 22px; width: auto; }
.store .ext { width: 16px; height: 16px; flex: none; opacity: .6; }
.store--bookline { background: #7fbd00; border-color: #7fbd00; color: #fff; }
.store--bookline:hover { border-color: #72aa00; }
.store--bookline img { height: 20px; }
.store--bookline .ext { opacity: .9; }

/* A borítóképek 3D-s könyvfotók, háttérszínük a --paper színnel egyezik (#f7f4ee).
   Ha a papírszín változik, a borítók hátterét is újra kell generálni. */
.cover {
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cover img { width: 100%; height: auto; }
button:hover > .cover, a:hover > .cover { transform: translateY(-6px); }

.hero-cover .hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; font-size: 14px; color: var(--ink-3); text-align: center;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .hero .wrap { gap: 28px; }
  .hero-cover { order: -1; width: min(42%, 170px); }
}

/* ---------- Folyó szöveg elválasztó (hero és könyvek között) ---------- */

.flow-divider {
  position: relative; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-svg text {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px;
  fill: var(--ink-2); white-space: pre;
}
.flow-measure { visibility: hidden; }
.flow-divider + .section { padding-top: clamp(40px, 6vw, 88px); }
@media (max-width: 700px) {
  .flow-svg text { font-size: 21px; }
}

/* ---------- Books ---------- */

.books { display: grid; gap: 0; }

.book {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.book:first-child { border-top: 0; padding-top: 0; }

.book-cover { align-self: start; }
.book-cover button, .book-cover > div { all: unset; display: block; cursor: pointer; }
.book-cover > div { cursor: default; }
.book-cover button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.book-meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.book h3 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.book-desc { margin: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

.book-quote {
  margin: 0 0 28px; padding-left: 20px; border-left: 2px solid var(--line); max-width: 58ch;
}
.book-quote p { margin: 0 0 6px; font: italic 400 20px/1.5 var(--serif); color: var(--ink); }
.book-quote cite { font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.book-actions .btn-row { gap: 10px; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  vertical-align: middle; margin-left: 6px;
}

@media (max-width: 640px) {
  .book { grid-template-columns: 112px 1fr; gap: 20px; }
  .book h3 { font-size: 28px; margin-bottom: 10px; }
  .book-body { display: contents; }
  .book-head { grid-column: 2; align-self: center; }
  .book-rest { grid-column: 1 / -1; }
  .book-desc { font-size: 16px; }
}

/* ---------- Writings ---------- */

.writing-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.writing-groups h3 { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }

.writing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.writing {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 20px;
  width: 100%; padding: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.writing:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(30,28,25,.35); }
.writing img { width: 84px; height: 104px; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.writing strong { display: block; font: 400 26px/1.15 var(--serif); margin-bottom: 4px; }
.writing span { font-size: 14px; color: var(--ink-3); }
.writing .go {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.writing:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.writing .go svg { width: 18px; height: 18px; }

@media (max-width: 760px) { .writing-groups { grid-template-columns: 1fr; } }

/* ---------- Interviews ---------- */

/* Háttérszalag az Interjúk mögött: görgetés közben rajzolódik ki */
.interviews-section { position: relative; overflow: hidden; isolation: isolate; }
.interviews-section > .wrap { position: relative; z-index: 1; }
.ribbon {
  position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: 0; pointer-events: none;
  transform: translate3d(0, var(--ribbon-shift, 0px), 0);
}
.ribbon-path {
  fill: none; stroke: #ebe3d2; stroke-width: 96; stroke-linecap: round; stroke-linejoin: round;
  opacity: .75;
}
@media (max-width: 700px) {
  .ribbon { inset: 0; width: 100%; height: 100%; }
  .ribbon-path { stroke-width: 110; }
}

.interviews { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.interviews li { border-bottom: 1px solid var(--line); }
.interview {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 4px; text-decoration: none; width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  transition: background .2s, padding .25s;
}
.interview:hover { background: rgba(247,244,238,.85); padding-inline: 16px; }
.interview .src { font: 400 22px/1.2 var(--serif); }
.interview .ttl { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.interview .kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); white-space: nowrap;
}
.interview .kind svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .interview { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .interview .src { grid-column: 1; }
  .interview .kind { grid-column: 2; grid-row: 1; }
  .interview .ttl { grid-column: 1 / -1; }
}

/* ---------- Gallery ---------- */

/* Az eredeti oldal kékje (#55B1F2 + a Wix-háttér 12%-os sötét textúrája) */
.section--blue { background: #4f9fd9; color: #fff; }
.section--blue + .section, .section + .section--blue { border-top: 0; }
.section--blue .eyebrow { color: rgba(255,255,255,.78); }
.section--blue .section-head p { color: rgba(255,255,255,.85); }

/* Végtelenített, lassan csúszó képsáv. A JS megduplázza a képeket,
   így a sáv a fele szélességnél észrevétlenül újraindul. */
.gallery-band {
  --band-gap: clamp(12px, 1.6vw, 20px);
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gallery-track {
  display: flex; gap: var(--band-gap); width: max-content;
  animation: band var(--band-duration, 120s) linear infinite;
}
.gallery-band:hover .gallery-track,
.gallery-band:focus-within .gallery-track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(calc(-50% - var(--band-gap) / 2)); } }

.g-slide {
  all: unset; box-sizing: border-box; flex: none; display: block; position: relative;
  height: clamp(240px, 32vw, 420px); overflow: hidden; cursor: zoom-in; background: rgba(0,0,0,.08);
}
.g-slide img {
  display: block; height: 100%; width: auto; user-select: none;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.g-slide:hover img { transform: scale(1.04); }
.g-slide:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
  .gallery-band { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-photo img { border-radius: 4px; width: 100%; height: auto; }
.about h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }
.about p { margin: 0 0 18px; max-width: 60ch; }
.about .intro { font: 400 clamp(21px, 2.3vw, 25px)/1.5 var(--serif); }

/* Idősáv: vízszintes (asztali), függőleges (keskeny képernyő) */
.timeline {
  --dot: 11px; --gap: clamp(12px, 2vw, 28px);
  position: relative; list-style: none; padding: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gap);
}
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 0; top: calc(var(--dot) / 2); height: 1px;
  right: calc((100% - 5 * var(--gap)) / 6 - var(--dot) / 2); /* az utolsó pontig tart */
}
.timeline::before { background: var(--line); z-index: 0; }
.timeline::after { background: var(--ink); transform-origin: left center; z-index: 0; }
.timeline li { position: relative; padding-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before { /* pont */
  content: ""; position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot);
  border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); box-sizing: border-box; z-index: 1;
}
.timeline li:last-child::before { background: var(--ink); }
.timeline li:last-child::after { /* pulzáló gyűrű az Üst pontja körül */
  content: ""; position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot);
  border-radius: 50%; border: 1px solid var(--ink); box-sizing: border-box; opacity: 0; pointer-events: none;
}
.timeline b { font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); }
.timeline .t-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.timeline .t-note { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 32px; }
  .timeline::before, .timeline::after {
    top: 8px; bottom: 34px; left: calc(var(--dot) / 2); right: auto; width: 1px; height: auto;
  }
  .timeline::after { transform-origin: center top; }
  .timeline li { padding: 0 0 22px; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: baseline; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before, .timeline li:last-child::after { left: -32px; top: 6px; }
  .timeline b { grid-row: span 2; font-size: 22px; }
}

/* Animáció: a vonal végigrajzolódik, a pontok sorban felbukkannak, a feliratok beúsznak */
.js-tl .timeline::after { transform: scaleX(0); transition: transform 2.4s cubic-bezier(.45,.05,.25,1) .1s; }
.js-tl .timeline.is-in::after { transform: scaleX(1); }
.js-tl .timeline li::before { transform: scale(0); transition: transform .55s cubic-bezier(.3,1.7,.5,1) calc(var(--i) * .4s + .1s); }
.js-tl .timeline.is-in li::before { transform: scale(1); }
.js-tl .timeline li > * {
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s ease calc(var(--i) * .4s + .25s), transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .4s + .25s);
}
.js-tl .timeline.is-in li > * { opacity: 1; transform: none; }
.js-tl .timeline.is-in li:last-child::after { animation: tl-ring 1.8s ease-out 2.4s 2; }
@keyframes tl-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
@media (max-width: 860px) {
  .js-tl .timeline::after { transform: scaleY(0); }
  .js-tl .timeline.is-in::after { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .js-tl .timeline::after, .js-tl .timeline li::before, .js-tl .timeline li > * { transform: none !important; opacity: 1 !important; transition: none !important; }
  .js-tl .timeline.is-in li:last-child::after { animation: none; }
}

/* Életrajz: a szöveg és az évszámok egymás után beúsznak, amikor a rész a képernyőre ér */
.js-reveal .about [data-reveal] {
  opacity: 0; transform: translateY(-14px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.js-reveal .about.is-in [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .about [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* ---------- Kritikák sáv (videós háttér) ---------- */

.quotes-band { padding-inline: clamp(10px, 2vw, 28px); padding-block: clamp(8px, 2vw, 24px); }
.qb-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(14px, 2vw, 24px);
  min-height: clamp(560px, 86vh, 780px);
  display: flex; align-items: center; justify-content: center;
  background: #2a2826 url("../img/kritikak-hatter.webp") center / cover no-repeat;
  color: #fff;
}
.qb-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: opacity .45s ease;
}
.qb-frame.is-dip .qb-video { opacity: .55; } /* lágy áttűnés a videó újraindulásakor */
.qb-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(18,16,14,.35) 0%, rgba(18,16,14,.62) 100%),
    linear-gradient(180deg, rgba(18,16,14,.35), rgba(18,16,14,.15) 40%, rgba(18,16,14,.55));
}

.qb-inner {
  width: 100%; max-width: 1120px; padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* animált idézőjel */
.qb-mark {
  display: block; height: .62em; margin-bottom: 6px; padding-inline: .12em;
  font: italic 400 clamp(110px, 14vw, 180px)/1 var(--serif);
  color: rgba(255,255,255,.92);
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
  animation: qb-float 7s ease-in-out infinite;
}
.js-qb .qb-mark { clip-path: inset(-30% 100% -30% -30%); opacity: 0; }
.js-qb .quotes-band.is-in .qb-mark {
  animation: qb-write 1.3s cubic-bezier(.65,0,.35,1) .1s forwards, qb-float 7s ease-in-out 1.5s infinite;
}
@keyframes qb-write {
  0% { clip-path: inset(-30% 100% -30% -30%); opacity: 0; transform: translateY(10px) rotate(-6deg); }
  30% { opacity: 1; }
  99% { clip-path: inset(-30% -30% -30% -30%); }
  100% { clip-path: none; opacity: 1; transform: none; }
}
@keyframes qb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

.quotes-band h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.08; margin: 0 0 clamp(36px, 5vw, 56px);
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.quotes-band h2 em { font-style: italic; }

.qb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); width: 100%; max-width: 1000px; }
.qb-card {
  margin: 0; text-align: left;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
          backdrop-filter: blur(22px) saturate(1.25);
}
.js-qb .qb-card { opacity: 0; transform: translateY(24px); }
.js-qb .quotes-band.is-in .qb-card {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) calc(var(--d) + .4s), transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--d) + .4s);
}
.qb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qb-book { margin: 0; font: 400 clamp(22px, 2.2vw, 28px)/1.15 var(--serif); }
.qb-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  font: 500 11px/1 var(--nav); letter-spacing: .14em; text-transform: uppercase;
}
.qb-chip i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.qb-card blockquote { margin: 0; flex: 1; }
.qb-card blockquote p { margin: 0; font: italic 400 clamp(19px, 1.9vw, 23px)/1.45 var(--serif); color: rgba(255,255,255,.94); }
.qb-card figcaption {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.78);
}
.qb-card figcaption svg { width: 18px; height: 18px; opacity: .8; }

.qb-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 44px);
  padding: 13px 24px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 500 15px/1 var(--sans);
  transition: background .25s, color .25s, border-color .25s;
}
.qb-more svg { width: 18px; height: 18px; transition: transform .25s; }
.qb-more:hover { background: #fff; color: var(--ink); border-color: #fff; }
.qb-more:hover svg { transform: translateX(3px); }

.qb-pause {
  position: absolute; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .2s;
}
.qb-pause:hover { background: rgba(255,255,255,.28); }
.qb-pause svg { width: 20px; height: 20px; }
.qb-pause .i-play, .qb-pause[aria-pressed="true"] .i-pause { display: none; }
.qb-pause[aria-pressed="true"] .i-play { display: block; }
.quotes-band.is-paused .qb-mark { animation-play-state: paused; }

@media (max-width: 700px) {
  .qb-frame { min-height: 0; }
  .qb-inner { padding-bottom: 88px; }
  .qb-cards { grid-template-columns: 1fr; }
  .qb-mark { font-size: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .qb-mark, .js-qb .quotes-band.is-in .qb-mark { animation: none; clip-path: none; opacity: 1; }
  .js-qb .qb-card { opacity: 1; transform: none; transition: none; }
}

/* ---------- Contact / footer ---------- */

.contact { text-align: center; padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.contact .mail {
  font: 400 clamp(22px, 4vw, 40px)/1.2 var(--serif); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 4px; word-break: break-word;
  transition: border-color .2s, color .2s;
}
.contact .mail:hover { color: var(--accent); border-color: var(--accent); }

/* Nagy, logószerű név a lap alján */
.wordmark {
  margin: clamp(48px, 7vw, 96px) 0 0; padding: 0 clamp(8px, 1.5vw, 20px);
  font-family: var(--serif); font-weight: 400; line-height: .9;
  font-size: 15.2vw; /* a JS pontosan a szélességhez igazítja */
  letter-spacing: -0.035em; color: var(--ink);
  white-space: nowrap; text-align: center;
  margin-bottom: 0;
}
.wordmark-inner { display: inline-block; }
.wordmark .ch { display: inline-block; }
.js-wm .wordmark .ch { transform: translateY(105%); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1) var(--d), opacity .6s ease var(--d); }
.js-wm .wordmark.is-in .ch { transform: none; opacity: 1; }
.wordmark-clip { display: block; overflow: hidden; padding-block: .12em .2em; }
@media (prefers-reduced-motion: reduce) {
  .js-wm .wordmark .ch { transform: none; opacity: 1; transition: none; }
}

.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--ink-3); position: relative; background: var(--paper); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Érintőképernyőn ne „ragadjanak be” az egérráhúzásos effektek */
@media (hover: none) {
  .interview:hover { background: none; padding-inline: 4px; }
  .writing:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .writing:hover .go { background: none; color: inherit; border-color: var(--line); }
  .store:hover { transform: none; box-shadow: none; }
  button:hover > .cover, a:hover > .cover { transform: none; }
  .g-slide:hover img { transform: none; }
  .btn:hover { background: transparent; color: var(--ink); }
  .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .qb-more:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
}

/* ---------- Reviews page ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(46px, 7vw, 84px); margin-bottom: 20px; }
.page-head p { color: var(--ink-2); max-width: 52ch; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips a {
  font-size: 14px; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, background .2s, color .2s;
}
.chips a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.review-book {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line);
}
.review-book aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.review-book aside h2 { font-size: 32px; margin: 22px 0 6px; }
.review-book aside p { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }

.reviews { display: grid; gap: 40px; }
.review { margin: 0; }
.review blockquote { margin: 0 0 12px; }
.review blockquote p { margin: 0 0 12px; font: 400 21px/1.55 var(--serif); }
.review.is-short blockquote p { font-size: 26px; font-style: italic; line-height: 1.4; }
.review figcaption { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.review figcaption a { text-decoration: none; border-bottom: 1px solid var(--line); }
.review figcaption a:hover { color: var(--accent); border-color: var(--accent); }
.review + .review { padding-top: 40px; border-top: 1px dashed var(--line); }

.review details summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; margin: 4px 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.review details summary::-webkit-details-marker { display: none; }
.review details summary:hover { color: var(--accent); border-color: var(--accent); }
.review details[open] summary .more { display: none; }
.review details:not([open]) summary .less { display: none; }

@media (max-width: 760px) {
  .review-book { grid-template-columns: 1fr; gap: 28px; }
  .review-book aside { position: static; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
  .review-book aside h2 { margin-top: 0; font-size: 28px; }
  .review blockquote p { font-size: 19px; }
  .review.is-short blockquote p { font-size: 22px; }
}

/* ==========================================================================
   Reader (lapozós olvasó)
   ========================================================================== */

.reader {
  position: fixed; inset: 0; z-index: 100;
  background: #1c1a17; color: #f3efe7;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.reader.is-open { opacity: 1; visibility: visible; }
.reader[hidden] { display: grid !important; }

.reader-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px);
}
.reader-title { min-width: 0; }
.reader-title strong { display: block; font: 400 22px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title span { font-size: 13px; color: #a79f92; }

.r-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #f3efe7;
  cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, opacity .2s;
}
.r-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.r-btn:disabled { opacity: .3; cursor: default; background: rgba(255,255,255,.06); }
.r-btn svg { width: 20px; height: 20px; }
.r-tools { display: flex; gap: 8px; }

.reader-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 8px clamp(8px, 4vw, 72px); }
.reader-book { position: relative; }
.reader-book .stf__parent { margin: 0 auto; }

.reader-status {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px;
  text-align: center; font-size: 15px; color: #cfc7b9;
}
.reader-status[hidden] { display: none; }
.reader-status .spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); border-top-color: #f3efe7;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reader-status .progress { width: 180px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.reader-status .progress i { display: block; height: 100%; width: 0; background: #f3efe7; transition: width .2s; }

.reader-side {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
}
.reader-side.prev { left: clamp(8px, 1.5vw, 20px); }
.reader-side.next { right: clamp(8px, 1.5vw, 20px); }
.reader-side .r-btn { width: 52px; height: 52px; }
@media (max-width: 700px) { .reader-side { display: none; } }

.reader-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  padding: 12px 16px max(18px, env(safe-area-inset-bottom)); font-size: 14px; color: #cfc7b9;
}
.reader-foot .pages { min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.reader-foot .hint { color: #8c8477; font-size: 13px; }
@media (max-width: 700px) {
  .reader-foot .hint { display: none; }
  .reader-cta { flex-basis: 100%; }
  .reader-foot .pages { min-width: 80px; }
}

.reader.is-loading .reader-side,
.reader.is-loading .reader-foot > .r-btn,
.reader.is-loading .reader-foot .pages,
.reader.is-loading .reader-foot .hint { visibility: hidden; }

.reader-cta { display: flex; gap: 10px; justify-content: center; }
.reader-cta .btn { border-color: rgba(255,255,255,.35); color: #f3efe7; min-height: 40px; font-size: 14px; }
.reader-cta .btn:hover { background: #f3efe7; color: #1c1a17; }

/* Lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #1c1a17; color: #f3efe7;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox .reader-bar { justify-content: flex-end; }
.lightbox figure { margin: 0; min-height: 0; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 96px); }
.lightbox img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; max-width: 100%; border-radius: 3px; }
.lightbox figcaption { text-align: center; padding: 14px 16px 22px; font-size: 15px; color: #cfc7b9; min-height: 56px; }

.lightbox--doc figure { overflow-y: auto; place-items: start center; padding-block: 8px; -webkit-overflow-scrolling: touch; }
.lightbox--doc img { max-height: none; width: min(100%, 980px); cursor: auto; }
.lightbox [hidden] { visibility: hidden; display: grid !important; }

body.no-scroll { overflow: hidden; }

/* ---------- Kapcsolati űrlap (motor, v1.0.0) ---------- */

.contact-form {
  max-width: 680px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: left;
  hyphens: manual; -webkit-hyphens: manual;
}
.contact-form .cf-intro {
  margin: 0 0 22px; text-align: center;
  font: 400 clamp(19px, 2.2vw, 22px)/1.4 var(--serif); font-style: italic; color: var(--ink-2);
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field.cf-wide { grid-column: 1 / -1; }
.cf-field span {
  font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; margin: 0; padding: 13px 16px;
  font: 400 17px/1.5 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--ink-3); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.cf-actions { margin-top: 22px; display: flex; justify-content: center; }
.cf-actions .btn { min-width: 210px; justify-content: center; }
.cf-actions .btn[disabled] { opacity: .6; cursor: progress; }
.cf-status { margin: 18px 0 0; min-height: 1.5em; text-align: center; font-size: 15px; line-height: 1.5; }
.cf-status:empty { margin: 0; min-height: 0; }
.cf-status.is-ok { color: #2d6a3f; }
.cf-status.is-err { color: #a3322b; }
.contact-form.is-sent .cf-grid, .contact-form.is-sent .cf-note, .contact-form.is-sent .cf-actions { display: none; }
.contact-form.is-sent .cf-status {
  font: 400 clamp(20px, 2.4vw, 24px)/1.4 var(--serif); padding: 26px 20px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card);
}
@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-actions .btn { width: 100%; }
}
