/* Narrativefeld — long-scroll book chapters + sticky roman spine. Reading column. */
:root {
  --paper: #f6f0e4;
  --ink: #2a1c14;
  --rule: #c4a27a;
  --rust: #9c3b2a;
  --quiet: #6a5344;
  --display: "Playfair Display", "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, serif;
  --ui: "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.book {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.18rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); }
a:hover { color: var(--ink); }

.spine-line {
  position: fixed;
  left: 3.2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  z-index: 1;
  pointer-events: none;
}

.nf-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 5vw 0.7rem 4.8rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nf-logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.chapters-nav { display: flex; gap: 0.35rem; }
.chapters-nav a {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.chapters-nav a:hover { border-color: var(--rust); color: var(--rust); }
.chapters-nav a[href="contact.html"] { width: auto; padding: 0 0.5rem; font-family: var(--ui); font-size: 0.8rem; }
.nf-tel {
  font-family: var(--ui);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  font-family: var(--ui);
  background: transparent;
  border: 1px solid var(--rust);
  color: var(--rust);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.chapter {
  position: relative;
  min-height: 88vh;
  padding: 4.5rem 8vw 5rem 5.5rem;
  max-width: 58rem;
}
.chapter + .chapter { border-top: 1px solid var(--rule); }
.roman {
  position: absolute;
  left: 1.15rem;
  top: 4.6rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--rust);
  margin: 0;
}
.chapter h1, .chapter h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 1.2rem;
}
.chapter h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.chapter h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.drop::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6rem;
  line-height: 0.8;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--rust);
  font-weight: 700;
}
.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--rust);
  max-width: 22rem;
  margin: 2rem 0 2rem auto;
  padding-left: 1.2rem;
  border-left: 2px solid var(--rule);
}

.nf-btn, button[type="submit"] {
  display: inline-block;
  font-family: var(--ui);
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.75rem 1.3rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.nf-btn:hover, button[type="submit"]:hover { background: var(--rust); color: #fff; }

.chapter figure { margin: 2.2rem 0 0; }
.chapter img { width: 100%; max-height: 52vh; object-fit: cover; filter: sepia(0.18); }

.split .cols {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) { .split .cols { grid-template-columns: 1fr 1fr; } }
.cols p { margin: 0; color: var(--quiet); }

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: line;
}
.lines li {
  counter-increment: line;
  padding: 1.4rem 0 1.4rem 3.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.lines li::before {
  content: counter(line, upper-roman);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--rust);
}
.lines h3 { font-family: var(--display); font-size: 1.45rem; margin: 0 0 0.3rem; }
.lines p { margin: 0; color: var(--quiet); }

.chapter.dark {
  background: #2a1c14;
  color: #f3e8d6;
  max-width: none;
  margin-left: 0;
  padding-right: 8vw;
}
.chapter.dark .roman, .chapter.dark a { color: #e8b4a4; }
.chapter.dark .method { margin: 0 0 2rem; padding: 0; list-style: none; }
.chapter.dark .method li { padding: 0.7rem 0; border-bottom: 1px solid #5a4032; }
.chapter.dark img { filter: sepia(0.35) contrast(1.05); max-width: 36rem; }

.folio, .folios blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
}
.folio cite, .folios cite {
  display: block;
  font-style: normal;
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
  color: var(--quiet);
}
.folios { display: grid; gap: 1.2rem; }
@media (min-width: 800px) { .folios { grid-template-columns: repeat(3, 1fr); } }
.folios blockquote {
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 2px solid var(--rule);
  font-size: 1.25rem;
}

.close { max-width: none; }
.endpaper {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 900px) { .endpaper { grid-template-columns: 1fr 1fr; align-items: start; } }
form { display: flex; flex-direction: column; }
label { font-family: var(--ui); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.5rem; }
input, textarea {
  font-family: var(--text);
  font-size: 1.05rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 0.45rem 0;
  color: inherit;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--rust); }
.field-error { color: var(--rust); font-family: var(--ui); font-size: 0.85rem; }
button[type="submit"] { margin-top: 1rem; align-self: start; }

.map-frame { border: 1px solid var(--rule); background: #fff; }
.map-frame iframe { width: 100%; height: 240px; border: 0; filter: sepia(0.35); }
.map-frame a { display: block; padding: 0.4rem 0.7rem; font-family: var(--ui); font-size: 0.8rem; }

.nf-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  padding: 1.4rem 5vw 2.2rem 5.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 0.88rem;
}
.nf-foot .nf-logo { margin-right: 0; font-size: 1.2rem; }
.nf-foot nav { display: flex; gap: 1rem; }
.nf-foot p { width: 100%; margin: 0; color: var(--quiet); font-size: 0.8rem; }

.leaf { padding: 4rem 8vw 5rem 5.5rem; max-width: 44rem; min-height: 70vh; }
.leaf h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.orn { font-family: var(--display); font-style: italic; font-size: 4.5rem; color: var(--rust); margin: 0; }

.cookie-banner {
  position: fixed;
  z-index: 40;
  bottom: 1rem;
  right: 5vw;
  max-width: 28rem;
  background: #fffaf2;
  border: 1px solid var(--ink);
  padding: 1rem 1.1rem;
  font-family: var(--ui);
  font-size: 0.92rem;
}
.cookie-inner p { margin: 0 0 0.7rem; }
.cookie-actions { display: flex; gap: 0.5rem; }
.btn-cookie {
  font-family: var(--ui);
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.btn-cookie.accept { background: var(--ink); color: var(--paper); }

@media (max-width: 720px) {
  .spine-line { left: 1.1rem; }
  .chapter, .leaf, .nf-top, .nf-foot { padding-left: 2.6rem; }
  .roman { left: 0.15rem; }
  .nav-toggle { display: block; }
  .chapters-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 0.6rem 1rem 1rem 2.6rem;
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
  }
  .chapters-nav.is-open { display: flex; }
}

.visual-reel{padding:3.4rem 1.2rem 4.4rem;max-width:1180px;margin:0 auto}
.visual-reel-head{margin:0 0 1.35rem}
.visual-reel-head h2{margin:.2rem 0 .55rem;font-size:clamp(1.35rem,3vw,2.05rem);line-height:1.15}
.visual-reel-k{font-size:.94rem;opacity:.84;max-width:46rem;line-height:1.55;margin:0}
.visual-reel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.visual-reel-grid figure{margin:0}
.visual-reel-grid img{width:100%;height:220px;object-fit:cover;display:block}
.visual-reel-grid figcaption{font-size:.78rem;padding:.5rem .1rem .15rem;opacity:.78;line-height:1.35}
@media (max-width:820px){.visual-reel-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.visual-reel-grid{grid-template-columns:1fr}.visual-reel-grid img{height:240px}}

.page-jump{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;padding:2.2rem 1.2rem 1.2rem;max-width:1100px;margin:0 auto}
.page-jump a{display:block;padding:1.35rem 1.2rem;border:1px solid currentColor;text-decoration:none;color:inherit;opacity:.95}
.page-jump a strong{display:block;font-size:1.15rem;margin-bottom:.35rem}
.page-jump a span{font-size:.92rem;opacity:.8;line-height:1.45}
@media (max-width:640px){.page-jump{grid-template-columns:1fr}}
.inner-hero{padding:3rem 1.2rem 1rem;max-width:1100px;margin:0 auto}
.inner-hero h1{font-size:clamp(1.6rem,4vw,2.6rem);margin:.2rem 0 0.7rem;line-height:1.15}

.xsec{padding:2.6rem 1.2rem;max-width:1100px;margin:0 auto}
.xsec .k{opacity:.72;letter-spacing:.04em;font-size:.82rem;margin:0 0 .4rem}
.xsec h2{font-size:clamp(1.35rem,3vw,2.05rem);line-height:1.15;margin:0 0 .75rem}
.xsec p{line-height:1.55;margin:0 0 .8rem;max-width:46rem}
.xsec-split{display:grid;grid-template-columns:1.1fr .9fr;gap:1.4rem;align-items:center}
.xsec-split img,.xsec-grid3 img{width:100%;height:240px;object-fit:cover;display:block}
.xsec-notes{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.4rem;margin-top:.4rem}
.xsec-notes h3{margin:0 0 .35rem;font-size:1.05rem}
.xsec-notes p{margin:0;font-size:.95rem}
.xsec-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:1rem}
.xsec figure{margin:0}
.xsec figcaption{font-size:.78rem;opacity:.75;padding:.4rem 0 0}
.xsec-quote{font-size:1.12rem;line-height:1.45;margin:.2rem 0 0}
@media (max-width:800px){
  .xsec-split,.xsec-notes,.xsec-grid3{grid-template-columns:1fr}
  .xsec-split img,.xsec-grid3 img{height:220px}
}
