/* === DAS KLEINE LÄDCHEN === */

/* ── Custom Fonts ── */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "League Script";
  src: url("../fonts/LeagueScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ── */
:root {
  --bg:           #ffffff;
  --surface:      #FAF5F6;
  --surface-2:    #F5FAF9;
  --border:       #e8e4e2;
  --border-light: #f0edeb;
  --accent:       #be6f50;
  --accent-2:     #9a5540;
  --accent-glow:  rgba(190,111,80,.12);
  --text:         #251812;
  --muted:        #7a6258;
  --soft:         #b09888;

  --header-bg:    rgba(255,255,255,.95);
  --header-border:rgba(0,0,0,.07);
  --nav-color:    #7a6258;
  --nav-active:   #251812;

  --script:  "League Script", cursive;
  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "DM Sans", system-ui, sans-serif;
  --mono:    ui-monospace, "Cascadia Code", "SF Mono", monospace;
  --max-w:   900px;

  --r-xs:  3px;
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;
  --r-pill:9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow:    0 4px 20px rgba(0,0,0,.09), 0 1px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.05);

  --ease:        cubic-bezier(.25,.46,.45,.94);
  --ease-spring: cubic-bezier(.22,.68,0,1.2);
  --t-fast:  .15s var(--ease);
  --t:       .25s var(--ease);
  --t-slow:  .45s var(--ease);
}

body.dark-mode {
  --bg:           #141214;
  --surface:      #251d1f;
  --surface-2:    #1a2422;
  --border:       rgba(255,255,255,.06);
  --border-light: rgba(255,255,255,.03);
  --accent-glow:  rgba(190,111,80,.15);
  --text:         #ccc8c6;
  --muted:        #b0acaa;
  --soft:         #706c6a;
  --header-bg:    rgba(20,18,20,.95);
  --header-border:rgba(255,255,255,.07);
  --nav-color:    #9a9694;
  --nav-active:   #ccc8c6;
  --shadow-xs:    0 1px 2px rgba(0,0,0,.3);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.25);
  --shadow:       0 4px 20px rgba(0,0,0,.5), 0 1px 6px rgba(0,0,0,.3);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none }
a:hover { color: var(--accent-2); text-decoration: underline }
img { display: block; max-width: 100% }

/* ── Page wrapper ── */
.page-wrapper { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-brand { display: flex; flex-direction: column; text-decoration: none; transition: opacity var(--t-fast) }
.site-brand:hover { opacity: .65 }
.site-title {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
}
.site-sub {
  display: block;
  font-size: .74rem;
  font-weight: 400;
  color: #a89e98;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-top: 1px;
}

.site-nav { display: flex; align-items: center; gap: .05rem; flex-wrap: wrap }
.site-nav a {
  position: relative;
  padding: .3rem .65rem;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--nav-color);
  transition: color var(--t-fast);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .65rem; right: .65rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t-fast);
}
.site-nav a:hover { color: var(--nav-active); text-decoration: none }
.site-nav a:hover::after { transform: scaleX(1) }
.site-nav a.active { color: var(--nav-active) }
.site-nav a.active::after { transform: scaleX(1) }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2rem; height: 2rem;
  font-size: .82rem;
  cursor: pointer;
  color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  margin-left: .5rem;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Öffnungszeiten-Leiste ── */
.hours-bar {
  background: var(--surface-2);
  color: var(--text);
  padding: .75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.hours-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2.25rem; flex-wrap: wrap;
}
.hours-item { display: flex; align-items: center; gap: .55rem }
.hours-icon { font-size: 1.1rem; flex-shrink: 0; opacity: .6 }
.hours-day {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.hours-time { display: block; font-size: .82rem; color: var(--text) }
.hours-divider { width: 1px; height: 1.75rem; background: var(--border); flex-shrink: 0 }
@media(max-width:600px){ .hours-divider { display: none } .hours-bar { padding: .65rem 1.25rem } }

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none }
.gallery-item.reveal { transition-delay: calc(var(--i, 0) * 55ms) }
@media(prefers-reduced-motion:reduce) {
  .reveal { opacity: 1; transform: none; transition: none }
  html { scroll-behavior: auto }
}

section[id], main[id] { scroll-margin-top: 100px }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: min(580px, 82vh);
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: min(580px, 82vh);
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(10,7,4,.72) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
  animation: hero-up .85s var(--ease) both;
}
.hero-tagline {
  font-size: clamp(.78rem, 2vw, .88rem);
  font-weight: 400;
  color: rgba(255,255,255,.7);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 2.25rem;
  animation: hero-up .85s .15s var(--ease) both;
}
.hero-cta {
  display: inline-block;
  padding: .7rem 2rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t), border-color var(--t);
  animation: hero-up .85s .28s var(--ease) both;
}
.hero-cta:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85); color: #fff; text-decoration: none }
@keyframes hero-up {
  from { opacity: 0; transform: translateY(18px) }
  to   { opacity: 1; transform: none }
}

/* ── Site main ── */
.site-main { padding: 5rem 0 5.5rem }

/* ── Section divider ── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Panels ── */
.panel { margin-bottom: 3.5rem }
.panel h2 {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  margin: 0 0 1.75rem;
  letter-spacing: .01em;
  line-height: 1.25;
  -webkit-text-stroke: 0.6px currentColor;
}
.panel p, .panel ul {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 1rem;
  color: var(--text);
}

/* ── Intro ── */
.section-intro p { font-size: 1.05rem; line-height: 1.9; color: var(--muted) }

/* ── Aktuelles ── */
.aktuelles-hint {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: .95rem;
}

/* ── Gallery ── */
.gallery-masonry {
  columns: 3 200px;
  column-gap: .85rem;
  margin-top: .75rem;
}
.gallery-item {
  margin: 0 0 .85rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--r-sm);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t-slow);
}
.gallery-item:hover { box-shadow: var(--shadow); transform: translateY(-3px) }
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.03) }

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(10,8,6,.95);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto }
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 2.4rem; height: 2.4rem;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35) }

/* ── Spenden cards ── */
.spenden-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: .5rem 0 1.5rem;
}
.spenden-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: box-shadow var(--t), transform var(--t);
}
.spenden-card:hover { box-shadow: var(--shadow); transform: translateY(-2px) }
.spenden-card--highlight {
  background: var(--surface-2);
  border-color: var(--border);
}
.spenden-card--highlight:hover { box-shadow: var(--shadow) }
.spenden-card-icon { font-size: 1.6rem; display: block; margin-bottom: .85rem; opacity: .65 }
.spenden-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 .65rem;
  color: var(--text);
}
.spenden-card p { font-size: .95rem; line-height: 1.7; margin: 0; color: var(--muted) }
.spenden-note { font-size: .88rem; color: var(--muted); margin-top: .75rem }
@media(max-width:500px){ .spenden-cards { grid-template-columns: 1fr } }

/* ── Kontakt ── */
.contact-box {
  display: flex;
  align-items: stretch;
  margin-top: .75rem;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-row {
  flex: 1;
  padding: 1.5rem 1.75rem;
}
.contact-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.contact-row h3 {
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .55rem;
  color: var(--muted);
}
.contact-row p { margin: 0; font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere }
@media(max-width:600px){
  .contact-box { flex-direction: column }
  .contact-divider { width: auto; height: 1px }
}

/* ── Instagram CTA ── */
.instagram-cta {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin: .5rem 0;
  background: var(--surface-2);
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.instagram-cta-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .85rem;
}
.instagram-cta-handle {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: .85rem;
  transition: color var(--t);
}
.instagram-cta-handle:hover { color: var(--accent-2); text-decoration: none }
.instagram-cta-sub {
  font-size: .88rem;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: .8rem;
  color: var(--soft);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  flex-wrap: wrap;
}
.footer-dot { color: var(--border) }
.site-footer a { color: var(--soft) }
.site-footer a:hover { color: var(--accent); text-decoration: underline }

/* ── Responsive ── */
@media(max-width:640px){
  .page-wrapper { padding: 0 1.25rem }
  .header-inner { padding: .85rem 1.25rem; gap: .75rem }
  .hero { min-height: min(340px, 55vh) }
  .hero-img { height: min(340px, 55vh) }
  .gallery-masonry { columns: 2 150px }
  .site-main { padding: 3.5rem 0 4.5rem }
}
@media(max-width:480px){
  .site-nav { gap: 0 }
  .site-nav a { padding: .25rem .4rem; font-size: .72rem }
}
@media(max-width:400px){
  .gallery-masonry { columns: 1 }
}

/* ── Impressum ── */
.impressum-block { margin-bottom: 1.75rem }
.impressum-block h3 { font-family: var(--display); font-size: 1rem; font-style: italic; font-weight: 400; color: var(--muted); margin: 0 0 .5rem; letter-spacing: .02em }
.impressum-block p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.75 }

/* ── Back links ── */
.back-link,.photos-back,.books-back,.poetry-back,.about-back,.drawings-back,.share-back {
  display: inline-block; font-size: .875rem; color: var(--muted); margin-bottom: 1.75rem;
}
.back-link:hover,.photos-back:hover,.books-back:hover,.poetry-back:hover,.about-back:hover,.drawings-back:hover,.share-back:hover {
  color: var(--accent); text-decoration: underline;
}

/* ── About ── */
.about-main { padding-bottom: 4rem }
.about-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border) }
.about-section:last-of-type { border-bottom: none }
.about-section-title { font-family: var(--display); font-size: .9rem; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .75rem; font-style: normal }
.about-section p { margin: 0 0 .75rem; line-height: 1.7 }

/* ── Photos ── */
.photos-main { padding-bottom: 4rem }
.photos-gallery { display: flex; flex-direction: column; align-items: center; gap: 3rem; padding: 1rem 0 }
.photo-frame { margin: 0; padding: 10px 10px 38px; background: #f8f4ee; box-shadow: 3px 6px 16px rgba(0,0,0,.18); max-width: 520px; width: 90%; transition: transform .2s, box-shadow .2s }
.photo-frame:nth-child(odd) { transform: rotate(-1.5deg) }
.photo-frame:nth-child(even) { transform: rotate(1.2deg) }
.photo-frame:hover { transform: rotate(0) scale(1.02)!important; box-shadow: 6px 10px 28px rgba(0,0,0,.25) }
.photo-frame img { width: 100%; display: block }
.photo-frame figcaption { margin-top: 8px; font-family: var(--mono); font-size: .65rem; color: #666; text-align: center }

/* ── Blog / Post styles ── */
.site-main-blog { padding-bottom: 4rem }
.post {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  margin-bottom: .75rem;
  transition: box-shadow var(--t), transform var(--t);
}
.post:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px) }
.post h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--text); font-family: var(--display); font-style: italic; font-weight: 400 }
.post p { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted) }
.post a { font-size: .875rem; font-weight: 600; color: var(--accent) }
.meta { font-size: .8rem; color: var(--soft) }
.sort-controls { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap }
.sort-label { font-size: .8rem; color: var(--muted) }
.sort-btn { padding: .25rem .75rem; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: .8rem; background: none; cursor: pointer; color: var(--muted) }
.sort-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent) }
.tag-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem }
.tag-btn { padding: .2rem .65rem; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: .78rem; background: none; cursor: pointer; color: var(--muted) }
.tag-btn.active { background: var(--surface); border-color: var(--accent); color: var(--accent) }

/* ── Marquee ── */
.marquee { overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: .78rem; padding: .4rem 0; background: var(--surface); color: var(--soft); border-bottom: 1px solid var(--border); margin-bottom: 2.5rem }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee-scroll 20s linear infinite }
@keyframes marquee-scroll { 0% { transform: translateX(0) } 100% { transform: translateX(-100%) } }
@media(prefers-reduced-motion:reduce){ .marquee span { animation: none; padding-left: 0 } }

/* ── Links ── */
.links-list { list-style: none; padding: 0; margin: 0 }
.links-list li { margin-bottom: .35rem; font-size: .9rem }
.links-category { color: var(--soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem 0 .35rem }
.bullet { color: var(--accent); margin-right: .35rem }

/* ── TOC ── */
.toc { margin: 1.5rem 0; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .875rem }
.toc-title { margin: 0 0 .5rem; font-family: var(--mono); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em }
.toc ul { list-style: none; margin: 0; padding: 0 }
.toc li { margin-bottom: .2rem }
.toc a { color: var(--muted) }
.toc a:hover { color: var(--accent) }

/* ── Post content ── */
.post-content { padding-bottom: 4rem }
.post-content img { max-width: 100% }
.post-content pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem; overflow-x: auto; font-family: var(--mono); font-size: .85rem }
.post-content code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: .1em .3em; border-radius: var(--r-xs) }
.post-content pre code { background: none; padding: 0 }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .825rem }
.post-nav a { color: var(--muted); max-width: 48%; line-height: 1.4 }
.post-nav a:hover { color: var(--accent) }
.post-nav-prev { text-align: left }
.post-nav-next { text-align: right }

/* ── Spoiler ── */
.retro-btn { padding: .3rem .8rem; border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--surface); color: var(--muted); font-size: .85rem; cursor: pointer; font-family: var(--mono) }
.retro-btn:hover { border-color: var(--accent); color: var(--accent) }
.proof-content { display: none; margin-top: .75rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm) }
.proof-content.is-visible { display: block }

/* ── Share ── */
.share-main { padding-bottom: 4rem }
.share-intro { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem }
.file-tree { font-family: var(--mono); font-size: .85rem; line-height: 1.8; background: var(--surface); padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--r-sm); overflow-x: auto; margin: 0 }
.tree-root { color: var(--accent); display: block }
.tree-dir { color: var(--text); font-weight: 500 }
.tree-file { color: var(--muted); text-decoration: none }
.tree-file:hover { color: var(--accent); text-decoration: underline }
.tree-meta { color: var(--soft); font-size: .75rem }

/* ── Poetry ── */
.poetry-main { max-width: 600px; margin: 0 auto; padding-bottom: 4rem }
.poem { margin-bottom: .5rem }
.poem-title { font-family: var(--display); font-size: .9rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); font-style: normal; font-weight: 500 }
.poem-body { font-size: 1rem; line-height: 1.9; white-space: pre-line; color: var(--text); font-style: italic; font-family: var(--display) }
.poem-divider { text-align: center; color: var(--soft); margin: 2.5rem 0; letter-spacing: .2em }

/* ── Sidebar / Reading time ── */
.reading-time { color: var(--soft) }
.sidebar { position: sticky; top: 80px; align-self: start }
.sidebar a.active { color: var(--accent) }

/* ── Drawings / Notebook ── */
.drawings-main { padding-bottom: 4rem }
.drawings-empty,.books-empty,.poetry-empty,.photos-empty,.share-empty,.about-empty { font-family: var(--mono); color: var(--soft); font-size: .85rem }
.notebook { max-width: 680px; width: 100%; margin: 0 auto; perspective: 2800px }
.nb-book { display: flex; width: 100%; aspect-ratio: 16/11; border-radius: 3px 6px 6px 3px; box-shadow: -3px 0 8px rgba(0,0,0,.15),4px 6px 24px rgba(0,0,0,.25); overflow: hidden }
.nb-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 1.25rem 0 3rem }
.nb-prev,.nb-next { background: none; border: 1px solid var(--border); color: var(--muted); font-family: var(--mono); font-size: .75rem; padding: .3rem .8rem; cursor: pointer; border-radius: var(--r-xs) }
.nb-prev:hover,.nb-next:hover { border-color: var(--accent); color: var(--accent) }
.nb-prev:disabled,.nb-next:disabled { opacity: .3; cursor: default }
.nb-counter { font-family: var(--mono); font-size: .75rem; color: var(--soft); min-width: 40px; text-align: center }
.nb-cover-left { width: 12px; flex-shrink: 0; background: linear-gradient(to right,#2c1a08,#4a2e12); border-radius: 3px 0 0 3px }
.nb-cover-right { width: 8px; flex-shrink: 0; background: linear-gradient(to left,#2c1a08,#3a2410); border-radius: 0 6px 6px 0 }
.nb-half { flex: 1; position: relative; overflow: hidden }
.nb-half-right { overflow: visible; z-index: 11 }
.nb-half-left>.nb-left { position: absolute; inset: 0 }
.nb-left { background: repeating-linear-gradient(transparent,transparent 23px,rgba(140,170,210,.4) 23px,rgba(140,170,210,.4) 24px),#f6f1e4 }
.nb-left::before { content: ''; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: rgba(210,80,80,.25); z-index: 1 }
.nb-left-content { position: absolute; inset: 0; padding: 18px 14px 14px 42px; display: flex; flex-direction: column; justify-content: center; gap: 8px }
.nb-title { font-family: Georgia,serif; font-style: italic; font-size: 1rem; color: #2a1a08; margin: 0; line-height: 1.5 }
.nb-label { font-family: var(--mono); font-size: .58rem; color: rgba(100,70,40,.5); text-transform: uppercase; letter-spacing: 1px; margin: 0 }
.nb-seam { width: 20px; flex-shrink: 0; background: repeating-linear-gradient(to bottom,transparent 0,transparent 7px,#c0a070 7px,#c0a070 8px,#7a5830 8px,#7a5830 11px,#c0a070 11px,#c0a070 12px,transparent 12px,transparent 26px),linear-gradient(to right,rgba(0,0,0,.12),rgba(255,255,255,.15) 50%,rgba(0,0,0,.12)); z-index: 10; position: relative }
.nb-right { background: #f6f1e4; position: relative }
.nb-right::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(to right,rgba(0,0,0,.06),transparent); z-index: 1; pointer-events: none }
.nb-right-under { position: absolute; inset: 0 }
.nb-page-flipper { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; z-index: 5 }
@keyframes nb-fold-shadow { 0%{opacity:0} 28%{opacity:0} 45%{opacity:.7} 85%{opacity:.7} 100%{opacity:0} }
.nb-flip-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left,transparent,rgba(0,0,0,.3) 100%); opacity: 0; pointer-events: none; z-index: 20 }
@keyframes nb-flip-forward { 0%{transform:translateX(0) rotateY(0)} 100%{transform:translateX(-20px) rotateY(-180deg)} }
@keyframes nb-flip-backward { 0%{transform:translateX(-20px) rotateY(-180deg)} 100%{transform:translateX(0) rotateY(0)} }
.nb-page-flipper.nb-flip-forward { animation: nb-flip-forward .65s forwards }
.nb-page-flipper.nb-flip-backward { animation: nb-flip-backward .65s forwards }
.nb-page-flipper.nb-flip-forward .nb-flip-front::after,
.nb-page-flipper.nb-flip-backward .nb-flip-front::after { animation: nb-fold-shadow .65s ease-in-out forwards }
.nb-flip-face { position: absolute!important; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden }
.nb-flip-back { transform: rotateY(180deg) }
.nb-drawing { position: absolute; inset: 10px; margin: 0; display: flex; align-items: center; justify-content: center; cursor: pointer }
.nb-drawing img { max-width: 100%; max-height: 100%; object-fit: contain; display: block }
.blink { animation: blink 1s steps(2,start) infinite }
@keyframes blink { to { visibility: hidden } }
@media(prefers-reduced-motion:reduce){ .blink { animation: none } }

@media(max-width:520px){
  .nb-book { aspect-ratio: auto; flex-direction: column; height: auto; border-radius: 0 }
  .nb-cover-left,.nb-cover-right { display: none }
  .nb-seam { order: -1; width: auto; height: 16px; background: repeating-linear-gradient(to right,transparent 0,transparent 7px,#c0a070 7px,#c0a070 8px,#7a5830 8px,#7a5830 11px,#c0a070 11px,#c0a070 12px,transparent 12px,transparent 26px),linear-gradient(to bottom,rgba(0,0,0,.1),rgba(255,255,255,.14) 50%,rgba(0,0,0,.08)) }
  .nb-half-left { background: #f6f1e4 }
  .nb-half-left>.nb-left { position: relative; inset: auto }
  .nb-left::before { display: none }
  .nb-left { background: #f6f1e4 }
  .nb-left-content { position: relative; inset: auto; padding: 10px 16px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 4px }
  .nb-half-right { aspect-ratio: 4/3 }
  .nb-right::before { display: none }
  .nb-page-flipper { transform-style: flat }
  .nb-flip-back { transform: none; opacity: 0 }
}
