/* Theme settings: change --color-primary only to update all CTAs */
:root {
  --color-primary: #006d8f; /* Hauptfarbe bleibt variabel */
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-elev: #ffffff;
  --color-text: #1a1b1e;
  --color-muted: #5a5f6a;
  --radius: 14px;
  --shadow-sm: 0 6px 20px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 14px 40px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -200px, rgba(16,24,40,.10), transparent 60%),
    radial-gradient(900px 500px at 85% -120px, rgba(16,24,40,.08), transparent 60%),
    var(--color-bg);
  color: var(--color-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* Subtle page-wide paper grain (lighter than card texture) */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .35; background-size: 220px 220px; mix-blend-mode: normal;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="220" height="220" filter="url(%23n)" opacity="0.035"/></svg>'); }

/* Floating blurred orbs */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; will-change: transform; }
.orb { position: absolute; width: 52vmin; height: 52vmin; border-radius: 50%; filter: blur(120px); opacity: .6; transform: translate3d(0,0,0); animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: ease-in-out; }
.orb--red { background: radial-gradient(circle at 30% 30%, rgba(0,109,143,.55), rgba(0,109,143,.0) 70%); top: -8vmin; left: -6vmin; animation: floatA 45s; }
.orb--graphite { background: radial-gradient(circle at 60% 40%, rgba(16,24,40,.35), rgba(16,24,40,.0) 70%); bottom: -10vmin; right: -4vmin; animation: floatB 52s; }
.orb--neutral { background: radial-gradient(circle at 50% 50%, rgba(100,110,120,.25), rgba(100,110,120,.0) 70%); top: 30%; left: 55%; width: 44vmin; height: 44vmin; animation: floatC 48s; }
.orb--red-2 { background: radial-gradient(circle at 60% 40%, rgba(0,109,143,.35), rgba(0,109,143,0) 70%); top: 60%; left: 10%; width: 38vmin; height: 38vmin; animation: floatD 40s; }
.orb--graphite-2 { background: radial-gradient(circle at 40% 60%, rgba(16,24,40,.25), rgba(16,24,40,0) 70%); top: 10%; right: 12%; width: 36vmin; height: 36vmin; animation: floatE 54s; }

@keyframes floatA { 0% { transform: translate(-10vw,-10vh) scale(1); } 100% { transform: translate(55vw,45vh) scale(1.06); } }
@keyframes floatB { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-60vw,40vh) scale(0.96); } }
@keyframes floatC { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(50vw,-50vh) scale(1.04); } }
@keyframes floatD { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-45vw,-55vh) scale(1.05); } }
@keyframes floatE { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(60vw,-40vh) scale(0.97); } }

/* Typewriter-style, floating red place names */
.bg-typing { position: fixed; inset: 0; z-index: -1; pointer-events: none; color: var(--color-primary); }
.bg-typing::before, .bg-typing::after { content: none !important; display: none; }
.bg-letter { position: absolute; font-family: 'Nixie One', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight: 400; color: var(--color-primary); opacity: 0; text-shadow: 0 0 1px rgba(0,109,143,.35); -webkit-text-stroke: 0.2px rgba(0,109,143,.18); animation: fadeLetter var(--dur,9s) ease-in-out var(--delay,0s) infinite both, driftSmall var(--drift,14s) ease-in-out infinite; }

@keyframes typing {
  0% { clip-path: inset(0 100% 0 0); }
  40% { clip-path: inset(0 0 0 0); }
  80% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}
@keyframes fade { 0% { opacity: 0; } 20% { opacity: .22; } 60% { opacity: .22; } 100% { opacity: 0; } }
@keyframes drift { 0% { transform: translateY(0); } 50% { transform: translateY(-1.5%); } 100% { transform: translateY(0); } }
@keyframes drift2 { 0% { transform: translateY(0); } 50% { transform: translateY(1%); } 100% { transform: translateY(0); } }
@keyframes fadeLetter { 0% { opacity: 0; } 30% { opacity: .14; } 70% { opacity: .14; } 100% { opacity: 0; } }
@keyframes driftSmall { 0% { transform: translateY(0); } 50% { transform: translateY(-1%); } 100% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .bg-orbs .orb { animation-duration: 60s !important; }
  .hero [data-reveal], .reveal { transition: none; opacity: 1 !important; transform: none !important; }
}

a { color: var(--color-primary); }
a:hover { opacity: .9; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(130%) blur(8px);
  background: transparent;
  border-bottom: 0;
  box-shadow: 0 6px 16px rgba(16,24,40,0.06);
}
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--color-primary), rgba(0,109,143,0)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: .2px; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--color-muted); }

.site-nav { display: flex; gap: 10px; align-items: center; }
.site-nav a { color: var(--color-primary); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: rgba(16,24,40,.06); border: 1px solid rgba(16,24,40,.12); }
.site-nav a:hover { background: rgba(16,24,40,.12); }

.nav-toggle { display: none; background: transparent; color: var(--color-text); border: 0; font-size: 24px; }

/* Hero */
.hero { padding: clamp(44px, 6vw, 84px) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(260px, 40vw, 420px);
  background: radial-gradient(650px 320px at 15% 30%, rgba(16,24,40,.06), transparent 60%),
              radial-gradient(500px 260px at 70% 10%, rgba(16,24,40,.04), transparent 60%);
  pointer-events: none;
}
.hero { position: relative; }
.hero [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.hero [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; margin: 0 0 14px; }
.hero p { margin: 0 0 22px; color: var(--color-muted); font-size: clamp(16px, 1.6vw, 18px); }
.signature { margin-top: 10px; font-family: "Playfair Display", Georgia, serif; font-style: italic; color: var(--color-primary); font-size: clamp(16px, 2vw, 22px); }
.hero-image { position: relative; display: grid; place-items: center; }
.hero-image .portrait { width: min(380px, 80%); }
.hero-image::after { content: ""; position: absolute; inset: auto 15% -14px 15%; height: 28px; filter: blur(18px); background: radial-gradient(50% 60% at 50% 50%, rgba(16,24,40,.18), transparent 70%); }
/* Monochrom-to-Color for portrait */
.hero-image .portrait img { filter: grayscale(45%) saturate(0.9) contrast(1.02); transition: filter .6s ease; }
.hero-image.is-visible .portrait img { filter: none; }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(191, 15, 15, .25);
  background-image: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  background-blend-mode: screen;
  transition: transform .18s ease, box-shadow .18s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.01); box-shadow: 0 10px 26px rgba(0,109,143,.35); filter: saturate(1.05); }
.btn.ghost { background: transparent; color: var(--color-primary); border: 1px solid currentColor; box-shadow: none; }
.btn.ghost:hover { background: rgba(16,24,40,.08); }

/* Sections */
.section-header { margin-bottom: 26px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.kicker { color: var(--color-primary); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 12px; }
.section-header::after { content: ""; display: block; width: 64px; height: 3px; background: linear-gradient(90deg, var(--color-primary), rgba(0,109,143,.0)); border-radius: 2px; margin-top: 10px; }
.section-header h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 6px; color: var(--color-primary); }
.section-header p { color: var(--color-muted); margin: 0; }
/* Gentle section dividers */
section + section { border-top: 1px solid rgba(16,24,40,0.06); position: relative; }
section + section::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, rgba(0,109,143,.15), rgba(16,24,40,0.08), rgba(0,109,143,.15)); opacity: .35; }

/* Legal sections */
.legal { padding: 40px 0 60px; }
.legal h3 { margin-top: 20px; }
.legal p, .legal li { color: var(--color-text); }
.legal ul { padding-left: 18px; }

/* Close button for legal pages */
.legal-close { position: fixed; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; text-decoration: none; color: var(--color-text); background: rgba(255,255,255,.9); border: 1px solid rgba(16,24,40,.12); box-shadow: var(--shadow-sm); z-index: 1010; }
.legal-close:hover { background: rgba(255,255,255,1); color: var(--color-primary); }

/* Books */
.books { padding: 40px 0 26px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.testimonials { margin-top: 34px; }
.testimonials-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; overflow: visible; padding-bottom: 0; align-items: start; }
.testimonial.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.testimonial.reveal.is-visible { opacity: 1; transform: translateY(0); }
.testimonial { position: relative; background: linear-gradient(180deg, #fff, rgba(255,255,255,.96)); border: 1px solid rgba(16,24,40,.12); border-radius: 14px; box-shadow: 0 14px 34px rgba(16,24,40,.12); padding: 16px 18px 18px; color: var(--color-text); overflow: visible; will-change: transform; transform: translateZ(0); transition: transform .5s ease; }
.testimonials .section-header { margin-bottom: 12px; }
.testimonial::before { content: "“"; position: absolute; top: 8px; left: 12px; color: var(--color-primary); font-family: "Playfair Display", Georgia, serif; font-size: 38px; line-height: 1; opacity: .18; pointer-events: none; }
.testimonial::after { content: ""; position: absolute; bottom: -8px; left: 28px; width: 16px; height: 16px; background: #fff; border-left: 1px solid rgba(16,24,40,.12); border-bottom: 1px solid rgba(16,24,40,.12); transform: rotate(45deg); box-shadow: 4px 4px 12px rgba(16,24,40,.06); }
.testimonial .book-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(0,109,143,.08); color: var(--color-primary); font-weight: 700; font-size: 12px; letter-spacing: .02em; margin-bottom: 8px; }
.testimonial .t-title { font-weight: 700; color: var(--color-primary); font-family: "Playfair Display", Georgia, serif; margin: 2px 0 8px; font-size: 17px; }
.testimonial p { margin: 8px 0; }
.testimonial cite { display: block; margin-top: 10px; font-style: normal; color: var(--color-muted); font-size: 13px; text-align: right; }
@media (max-width: 900px) { .testimonials-track { grid-template-columns: 1fr; } }
.book-card {
  background: var(--color-surface);
  border: 1px solid rgba(16,24,40,0.06);
  border-radius: var(--radius);
  box-shadow: 0 18px 26px rgba(16,24,40,.10), 0 2px 0 0 #e9eaee inset;
  overflow: hidden;
  display: flex; flex-direction: column; height: 100%; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  background-image:
    radial-gradient(60% 40% at 20% 10%, rgba(16,24,40,.04), transparent 60%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none"><g opacity="0.05"><path d="M0 0h120v120H0z"/><path d="M0 60h120M60 0v120" stroke="%23000" stroke-width="0.5"/></g></svg>');
  background-blend-mode: soft-light, normal;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(16,24,40,.18); }
.book-media { aspect-ratio: 1 / 1; background: #f3f4f6; margin: 0; flex: 0 0 auto; overflow: hidden; perspective: 900px; position: relative; }
.book-media::before { content: ""; position: absolute; inset: 0; box-shadow: inset 8px 0 12px -8px rgba(16,24,40,.25); opacity: .4; pointer-events: none; }
.book-media::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(120deg, rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.0) 60%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.book-card:hover .book-media::after { transform: translateX(120%); }
.book-card .book-media img { will-change: transform; }
.book-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; filter: saturate(1.02); transform: translateY(var(--img-shift, 0)) scale(var(--img-scale, 1)) rotateY(0deg) translateZ(0); transform-origin: left center; will-change: transform; transition: transform .35s ease, filter .35s ease; }
.book-card:hover .book-media img { transform: translateY(var(--img-shift, 0)) scale(calc(var(--img-scale, 1) * 1.0)) rotateY(-6deg) translateZ(12px); filter: saturate(1.08) contrast(1.02); }
.book-media img.cover-feuerengel { object-position: 50% 68%; --img-shift: 0px; --img-scale: 1.10; }
.book-media img.cover-lilien { object-position: 50% 70%; --img-shift: -16px; --img-scale: 1.10; }
.book-media img.cover-harte { object-position: 50% 62%; }
.book-media { position: relative; }
.book-quote-float { position: absolute; top: 12px; right: -12px; max-width: 58%; padding: 10px 12px; background: rgba(255,255,255,.92); border: 1px solid rgba(16,24,40,.12); border-radius: 10px; box-shadow: 0 10px 22px rgba(16,24,40,.12); color: var(--color-text); font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.book-quote-float.left { right: auto; left: -12px; }
.book-quote-float::before { content: "“"; color: var(--color-primary); font-family: "Playfair Display", Georgia, serif; font-size: 20px; margin-right: 4px; opacity: .9; }
.book-quote-float.show { opacity: 1; transform: translateY(0); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,109,143,.25); }
.book-content { padding: 18px; display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
.book-desc { max-height: none; overflow: visible; position: relative; }
.book-desc::after { display: none; }
.book-actions { margin-top: auto; }
.toggle-desc { display:none; }
.desc-toggle { display: none; }

/* Less preview text for Harte Zeiten card */
.book-harte .book-desc { max-height: none; }
.book-content h3 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; margin: 2px 0 0; }
.book-sub { color: var(--color-primary); font-weight: 600; margin: 0; }
.book-desc { color: var(--color-muted); margin: 0; }
.book-meta { list-style: none; margin: 0; padding: 0; color: #c9c9cf; display: grid; grid-template-columns: 1fr; gap: 6px; }
.book-meta li { position: relative; padding-left: 28px; color: var(--color-text); background: #fff; border: 1px solid rgba(16,24,40,0.06); border-radius: 10px; padding: 8px 10px 8px 32px; box-shadow: 0 1px 0 0 #e9eaee inset; }
.book-meta li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); color: var(--color-primary); opacity: .9; }
.book-meta .meta-pages::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23006d8f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="16" rx="2"/><line x1="7" y1="8" x2="17" y2="8"/><line x1="7" y1="12" x2="17" y2="12"/></svg>') center/contain no-repeat; }
.book-meta .meta-isbn::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23006d8f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="3" width="16" height="18" rx="2"/><line x1="8" y1="7" x2="16" y2="7"/><line x1="8" y1="11" x2="16" y2="11"/><line x1="8" y1="15" x2="13" y2="15"/></svg>') center/contain no-repeat; }
.book-meta .meta-price::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23006d8f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1v22"/><path d="M17 5.5a4.5 4.5 0 0 0-9 0c0 3.5 9 2.5 9 6s-9 2.5-9 6a4.5 4.5 0 0 0 9 0"/></svg>') center/contain no-repeat; }
.book-meta .meta-ebook::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23006d8f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4h9a3 3 0 0 1 3 3v13l-4.5-2L9 20l-3-1.5V4z"/></svg>') center/contain no-repeat; }
.book-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }

/* About */
.about { padding: 54px 0; }
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.about-image { display: grid; place-items: center; }
.portrait { position: relative; width: min(360px, 70%); aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 54px rgba(16,24,40,.18); background: radial-gradient(60% 60% at 50% 40%, #fff, #f6f7f9); }
.portrait::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; padding: 8px; background: linear-gradient(135deg, rgba(0,109,143,.25), rgba(0,109,143,0)); -webkit-mask: radial-gradient(#000 68%, transparent 72%) content-box, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(1.05) contrast(1.02); }
.about h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.about p { color: var(--color-muted); margin: 0; }

/* Contact */
.contact { padding: 50px 0 70px; }
.contact-actions { display: flex; align-items: center; }
.mail-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(16,24,40,0.12); background: var(--color-surface); }
.mail-btn:hover { background: rgba(16,24,40,.04); }
.mail-icon { width: 20px; height: 20px; color: var(--color-primary); }

/* Ink ornaments */
.ink-ornaments { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.ink { position: absolute; width: 28vmin; height: 28vmin; opacity: .06; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g fill="%23006d8f"><circle cx="40" cy="60" r="6"/><circle cx="60" cy="40" r="3"/><circle cx="80" cy="70" r="4"/><circle cx="100" cy="50" r="2"/><circle cx="120" cy="90" r="5"/><circle cx="160" cy="70" r="3"/><circle cx="140" cy="40" r="2"/></g></svg>'); filter: blur(1px); }
.ink--tl { top: 2vh; left: 1vw; transform: rotate(-10deg); }
.ink--br { bottom: 2vh; right: 1vw; transform: rotate(8deg); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(16,24,40,.45); backdrop-filter: blur(4px); z-index: 1000; }
.lightbox.open { display: flex; }
.lightbox-dialog { position: relative; width: min(900px, 94%); height: min(90vh, 880px); background: var(--color-surface); border: 1px solid rgba(16,24,40,.08); border-radius: 14px; box-shadow: 0 24px 64px rgba(16,24,40,.28); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background-image: radial-gradient(1000px 600px at 15% -200px, rgba(16,24,40,.03), transparent 60%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" viewBox="0 0 220 220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="220" height="220" filter="url(%23n)" opacity="0.05"/></svg>'); background-blend-mode: soft-light, normal; }
.lightbox-dialog::before { content: ""; position: absolute; width: 220px; height: 220px; top: 8%; left: -40px; opacity: .08; pointer-events: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><g fill="none" stroke="%238a5a3a" stroke-width="6" opacity="0.55"><circle cx="120" cy="120" r="80"/><circle cx="120" cy="120" r="60" opacity="0.6"/><circle cx="120" cy="120" r="42" opacity="0.4"/></g><g fill="none" stroke="%238a5a3a" stroke-width="3" opacity="0.35"><ellipse cx="200" cy="210" rx="40" ry="22"/><ellipse cx="210" cy="220" rx="24" ry="12"/></g></svg>') center/contain no-repeat; filter: blur(.2px) saturate(.9); transform: rotate(-8deg); }
.lightbox-dialog::after { content: ""; position: absolute; width: 260px; height: 260px; bottom: -20px; right: -30px; opacity: .06; pointer-events: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><g fill="none" stroke="%238a5a3a" stroke-width="2"><ellipse cx="80" cy="140" rx="18" ry="12" opacity="0.45"/><ellipse cx="96" cy="150" rx="14" ry="10" opacity="0.35"/><ellipse cx="110" cy="162" rx="10" ry="7" opacity="0.30"/></g><g fill="none" stroke="%238a5a3a" stroke-width="1.6" opacity="0.35"><path d="M210 80c20 10 28 30 10 44M196 96c18 8 22 22 8 32M184 110c12 6 14 14 4 20"/></g></svg>') center/contain no-repeat; transform: rotate(6deg); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(16,24,40,.08); }
.lightbox-title { font-family: "Playfair Display", Georgia, serif; margin: 0; color: var(--color-primary); }
.lightbox-controls { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; }
.lightbox-controls button { appearance: none; border: 1px solid rgba(16,24,40,.18); background: #fff; color: var(--color-text); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.lightbox-controls button:hover { background: rgba(16,24,40,.04); }
.scroll-timeline { position: fixed; left: 8px; top: 0; bottom: 0; width: 3px; background: rgba(16,24,40,0.06); z-index: 50; }
.scroll-timeline__bar { display: block; width: 100%; height: 0%; background: var(--color-primary); transition: height .1s linear; }
@media (max-width: 900px) { .scroll-timeline { display: none; } }
.lightbox-close { appearance: none; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--color-text); cursor: pointer; }
.lightbox-body { padding: 26px 28px 38px; overflow-y: auto; overflow-x: hidden; line-height: 1.75; color: var(--color-text); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-height: 0; }
.lightbox-body { white-space: normal; font-size: 18px; column-count: 1; column-gap: 0; column-fill: auto; hyphens: auto; text-align: justify; position: relative; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.lightbox-body * { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
/* Drop cap for first paragraph */
.lightbox-body p:first-of-type::first-letter { float: left; font-family: "Playfair Display", Georgia, serif; font-size: 3.2em; line-height: .9; padding-right: .12em; color: var(--color-primary); }
/* Subtle paper texture overlay */
.lightbox-body::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.35"/></svg>'); }
.lightbox-nav { display: none; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(16,24,40,.08); }
.lightbox-progress-bar { display: block; height: 100%; width: 0%; background: var(--color-primary); transition: width .2s ease; }
.lightbox-iframe { width: 100%; height: 100%; border: 0; }
.lightbox--iframe .lightbox-progress,
.lightbox--iframe .lightbox-nav { display: none; }
.sample-link { appearance: none; border: 1px solid rgba(16,24,40,.12); background: #fff; color: var(--color-primary); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; line-height: 1.2; box-shadow: 0 1px 0 0 #e9eaee inset; transition: background .2s ease, box-shadow .2s ease, transform .15s ease; }
.sample-link:hover { background: rgba(0,109,143,.06); text-decoration: none; box-shadow: 0 1px 0 0 #e9eaee inset, 0 6px 20px rgba(16,24,40,.08); }
.sample-link:active { transform: translateY(1px); }
.sample-link .book-ico { width: 18px; height: 18px; color: var(--color-primary); }

/* Footer */
.site-footer { border-top: 1px solid rgba(16,24,40,0.06); padding: 18px 0; background: #ffffff80; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--color-primary); text-decoration: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .book-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; position: absolute; right: 4%; top: 60px; background: rgba(255,255,255,.98); border: 1px solid rgba(16,24,40,0.08); padding: 12px 14px; border-radius: 12px; flex-direction: column; gap: 10px; }
  .nav-toggle { display: inline-block; }
  .site-nav.open { display: flex; }
}

/* Lightbox responsive columns */
@media (max-width: 900px) {
  .lightbox-body { column-count: 1; font-size: 16px; column-gap: 0; }
}


