/* ==========================================================================
   Istoria Japoniei — ca o poveste
   Foaie de stil principală
   Paletă: hârtie washi, cerneală sumi, cinabru (shu), indigo (ai), aur (kin)
   ========================================================================== */

/* ---------- 1. Variabile și teme ---------------------------------------- */

:root {
  /* Culori de bază — tema „hârtie” (hârtie washi nobilă, text sumi cald) */
  --paper:        #faf6ee;
  --paper-2:      #f2ebdb;
  --paper-3:      #e6ddc7;
  --ink:          #1c1917;
  --ink-soft:     #3e3731;
  --ink-faint:    #6e6559;
  --line:         #ded2bb;
  --line-soft:    #ece3cf;

  --shu:          #b73a2b;   /* cinabru imperial / vermilion */
  --shu-soft:     #d06c5e;
  --ai:           #1c395a;   /* indigo imperial */
  --ai-soft:      #4a6d96;
  --kin:          #a27e2b;   /* aur vechi / kinpaku */
  --matcha:       #59704c;
  --sumi:         #25211d;

  --shadow-sm: 0 1px 3px rgba(28, 25, 23, .05), 0 3px 10px rgba(28, 25, 23, .04);
  --shadow-md: 0 3px 8px rgba(28, 25, 23, .06), 0 14px 32px rgba(28, 25, 23, .08);
  --shadow-lg: 0 6px 16px rgba(28, 25, 23, .07), 0 28px 68px rgba(28, 25, 23, .12);

  /* Tipografie */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;
  --font-jp:      "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-ui:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .78rem + .18vw, .9rem);
  --step-0:  clamp(1.02rem, .97rem + .3vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.28rem + .8vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.6vw, 4rem);
  --step-5:  clamp(3rem, 1.8rem + 5vw, 6.5rem);

  /* Spațiere și formă */
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --measure: 68ch;
  --radius: 4px;
  --radius-lg: 8px;
  --frame: 1px solid var(--line);

  /* Lățimi de layout */
  --w-page: 1240px;
  --w-text: 720px;

  --ease: cubic-bezier(.2, .7, .25, 1);
  --speed: .35s;

  --scale-body: 1;

  color-scheme: light;
}
[data-theme="noapte"] { color-scheme: dark; }

/* Tema „noapte” — obsidian arhitectural, cerneală sumi și cinabru incandescent */
[data-theme="noapte"] {
  --paper:   #0c0e14;
  --paper-2: #131722;
  --paper-3: #1b202e;
  --ink:     #fff8ed;
  --ink-soft:#ded6c9;
  --ink-faint:#999083;
  --line:    #252c3c;
  --line-soft:#1a202d;

  --shu:     #eb6655;
  --shu-soft:#f28273;
  --ai:      #7ea7dc;
  --ai-soft: #a2c4ee;
  --kin:     #dcb444;
  --matcha:  #94aa82;
  --sumi:    #090b10;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .55);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .6), 0 12px 32px rgba(0, 0, 0, .48);
  --shadow-lg: 0 8px 36px rgba(0, 0, 0, .7), 0 28px 72px rgba(0, 0, 0, .6);
}

/* Tranziție lină și fluidă între temele Hârtie și Noapte */
html, body, .topbar, .drawer, .card, .note, .callout, .fig, .hero__placard, .author-box, .interludii__card, .chapter-nav a, .stat, .value-card, .btn {
  transition:
    background-color 0.35s cubic-bezier(.2, .7, .25, 1),
    border-color 0.35s cubic-bezier(.2, .7, .25, 1),
    color 0.35s cubic-bezier(.2, .7, .25, 1),
    box-shadow 0.35s cubic-bezier(.2, .7, .25, 1);
}

/* ---------- 2. Reset și bază ------------------------------------------- */

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

html {
  font-size: calc(100% * var(--scale-body, 1));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(183, 58, 43, .045), transparent 48%),
    radial-gradient(ellipse at 88% 0%, rgba(28, 57, 90, .055), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.038'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.76;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

[data-theme="noapte"] body {
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(235, 102, 85, .04), transparent 55%),
    radial-gradient(ellipse at 85% 0%, rgba(126, 167, 220, .05), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--shu);
  text-decoration-color: color-mix(in srgb, var(--shu) 35%, transparent);
  text-underline-offset: .18em;
  text-decoration-thickness: .06em;
  transition: color var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}
a:hover { color: var(--ai); text-decoration-color: currentColor; }

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

::selection { background: color-mix(in srgb, var(--shu) 22%, transparent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
  text-wrap: balance;
  margin: 0 0 .6em;
  color: var(--ink);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 2.5rem 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 50%; top: -4rem; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: .6rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-ui); font-size: var(--step--1); text-decoration: none;
  transition: top var(--speed) var(--ease);
}
.skip:focus { top: 0; color: var(--paper); }

/* ---------- 3. Elemente de interfață comune ---------------------------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--w-page)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 900px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1px; background: var(--shu); flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 2.2rem; height: 1px; background: var(--shu); flex: none;
}

.jp { font-family: var(--font-jp); font-weight: 400; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-ui); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  white-space: nowrap;
}
.chip--shu { border-color: color-mix(in srgb, var(--shu) 45%, transparent); color: var(--shu); }
.chip--ai  { border-color: color-mix(in srgb, var(--ai) 40%, transparent); color: var(--ai); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .06em;
  padding: .62rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover { background: var(--shu); border-color: var(--shu); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Sigiliu rotund cu kanji */
.seal {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: 4px;
  background: var(--shu); color: #fff5ee;
  font-family: var(--font-jp); font-size: 1.15rem; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* ---------- 4. Bara de sus --------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 20px color-mix(in srgb, var(--ink) 4%, transparent);
}
.topbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--shu) 25%, transparent) 20%,
    var(--shu) 50%,
    color-mix(in srgb, var(--shu) 25%, transparent) 80%,
    transparent 100%
  );
  pointer-events: none;
}
[data-theme="noapte"] .topbar {
  background: color-mix(in srgb, #080d16 92%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="noapte"] .topbar::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 20%,
    rgba(212, 175, 55, 0.6) 50%,
    rgba(212, 175, 55, 0.2) 80%,
    transparent 100%
  );
}

.topbar__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.9rem;
}
.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand__mark,
.brand__seal {
  width: 2.35rem; height: 2.35rem; display: grid; place-items: center;
  background: var(--shu); border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 2px 10px color-mix(in srgb, var(--shu) 35%, transparent);
  position: relative; flex-shrink: 0;
}
.brand__mark::before,
.brand__seal::before {
  content: ""; position: absolute; inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px; pointer-events: none;
}
.brand__mark,
.brand__kanji {
  font-family: var(--font-jp); font-size: .88rem; font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: .08em;
}
.brand__mark { font-size: 1.15rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.brand__sub {
  font-family: var(--font-ui); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: .35rem;
}
.brand__sub .jp {
  color: var(--shu); font-family: var(--font-jp); font-size: .78rem;
}
[data-theme="noapte"] .brand__sub .jp {
  color: var(--kin);
}

.nav { display: flex; align-items: center; gap: .45rem; }
.nav a,
.nav__link {
  display: inline-flex; align-items: center; gap: .42rem;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: var(--ink-soft);
  padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  position: relative;
}
.nav__kanji {
  font-family: var(--font-jp); font-size: .75rem; color: var(--shu);
  opacity: .85; transition: transform .2s ease, opacity .2s ease;
  line-height: 1;
}
.nav a:hover,
.nav__link:hover {
  background: color-mix(in srgb, var(--paper-2) 90%, transparent);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--shu) 25%, transparent);
  transform: translateY(-1px);
}
.nav a:hover .nav__kanji,
.nav__link:hover .nav__kanji {
  transform: scale(1.15); opacity: 1;
}
.nav a[aria-current="page"],
.nav__link[aria-current="page"] {
  color: var(--shu);
  background: color-mix(in srgb, var(--shu) 10%, transparent);
  border-color: color-mix(in srgb, var(--shu) 30%, transparent);
}
[data-theme="noapte"] .nav a:hover,
[data-theme="noapte"] .nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}
[data-theme="noapte"] .nav__kanji {
  color: var(--kin);
}
[data-theme="noapte"] .nav a[aria-current="page"],
[data-theme="noapte"] .nav__link[aria-current="page"] {
  color: var(--kin);
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}

.tools { display: flex; align-items: center; gap: .35rem; }
.iconbtn {
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 65%, transparent);
  color: var(--ink-soft);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-ui); font-size: .95rem; line-height: 1;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease), background var(--speed) var(--ease), opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.iconbtn:hover { color: var(--shu); border-color: var(--shu); transform: translateY(-1px); }
.iconbtn[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.iconbtn:disabled,
.iconbtn[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.iconbtn--text {
  width: auto; padding: 0 .95rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid color-mix(in srgb, var(--shu) 30%, var(--line));
  background: color-mix(in srgb, var(--paper) 70%, var(--paper-2));
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 5%, transparent);
}
.iconbtn--text:hover {
  border-color: var(--shu);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shu) 25%, transparent);
  background: color-mix(in srgb, var(--shu) 10%, var(--paper-2));
  color: var(--shu);
}
[data-theme="noapte"] .iconbtn--text {
  border-color: rgba(212, 175, 55, 0.3);
  background: color-mix(in srgb, #141b27 80%, transparent);
}
[data-theme="noapte"] .iconbtn--text:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--kin);
  color: var(--kin);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.burger { display: none; }

/* Progres de lectură */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80;
  background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--shu), var(--kin), var(--ai));
  transition: width .1s linear;
}

/* Sertarul cu capitole */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 90;
  width: min(24rem, 92vw);
  background: var(--paper-2);
  border-left: var(--frame);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform var(--speed) var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 1.2rem 1.2rem 2.5rem;
}
body[data-drawer="open"] .drawer { transform: none; }
body[data-drawer="open"]::after {
  content: ""; position: fixed; inset: 0; z-index: 85;
  background: rgba(20, 18, 15, .45); backdrop-filter: blur(2px);
}
.drawer__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.drawer__head h2 { font-size: var(--step-1); margin: 0; margin-right: auto; }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.drawer__list a {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .7rem;
  align-items: baseline;
  padding: .55rem .5rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft);
  font-size: var(--step--1);
}
.drawer__list a:hover { background: color-mix(in srgb, var(--shu) 8%, transparent); color: var(--ink); }
.drawer__list a[aria-current="page"] { background: color-mix(in srgb, var(--shu) 12%, transparent); color: var(--ink); }
.drawer__list .num {
  font-family: var(--font-jp); color: var(--shu); font-size: .95rem; text-align: right;
}
.drawer__list .t { display: block; font-family: var(--font-body); }
.drawer__list .d { display: block; color: var(--ink-faint); font-size: .76rem; font-family: var(--font-ui); letter-spacing: .04em; }
.drawer__era {
  font-family: var(--font-ui); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 1.2rem 0 .3rem; padding-left: .5rem;
}

/* ---------- 5. Coperta Parallax — Artă Tradițională Japoneză ----------- */

.scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fbf5e6;
  border-bottom: var(--frame);
}
.scene--hero {
  min-height: clamp(480px, 48vh, 580px);
  max-height: 600px;
}
[data-theme="noapte"] .scene {
  background: #080d16;
}

.hero__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.scene__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.scene__content {
  position: relative;
  z-index: 10;
}

.hero-scene__inner {
  position: relative;
  z-index: 10;
  min-height: 480px;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.4rem, 2.5vw, 2.2rem) 1.5rem;
}

@media (min-width: 1200px) {
  .hero-scene__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    padding-left: 1.5rem;
  }
}

/* Placa plutitoare (Tanzaku / Emaki) pe hârtie washi semitransparentă — simetrie sacră */
.hero__placard {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.5vw, 2.2rem) clamp(1.6rem, 3vw, 2.5rem);
  box-shadow:
    0 4px 20px color-mix(in srgb, var(--ink) 5%, transparent),
    0 24px 60px color-mix(in srgb, var(--ink) 10%, transparent);
  position: relative;
}

.hero__placard::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--shu) 38%, transparent);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

[data-theme="noapte"] .hero__placard {
  background: color-mix(in srgb, #080d15 65%, transparent);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 24px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="noapte"] .hero__placard::before {
  border-color: rgba(212, 175, 55, 0.4);
}

/* Adaptare cromatică tematică pentru elementele din scenă */
/* Adaptare cromatică tematică pentru pictura Sumi-e unificată */
.scene__art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  pointer-events: none;
}

.scene__layer--art {
  mix-blend-mode: multiply;
  opacity: 0.98;
}

@media (max-width: 768px) {
  .scene__art-img {
    object-position: center bottom;
  }
}

[data-theme="noapte"] .scene {
  background: #060911;
}

[data-theme="noapte"] .scene__layer--art {
  mix-blend-mode: normal;
}

[data-theme="noapte"] .scene__layer--art img {
  filter: brightness(0.72) contrast(1.15) saturate(0.72) hue-rotate(195deg);
}

/* Pânză interactivă Sakura — petale de cireș animate cu fizică reală */
.hero__sakura-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Antet simetric cu sigiliul Hanko */
.placard__crest-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .6rem;
}
.placard__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--shu) 45%, var(--line)));
}
.placard__crest-row .placard__line:last-child {
  background: linear-gradient(90deg, color-mix(in srgb, var(--shu) 45%, var(--line)), transparent);
}
.hero__placard .hanko {
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--shu) 40%, transparent),
    0 2px 8px color-mix(in srgb, var(--shu) 20%, transparent);
}
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--shu);
  border-radius: 4px;
  background: color-mix(in srgb, var(--shu) 12%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shu) 35%, transparent);
  user-select: none;
  flex-shrink: 0;
}
.hanko__kanji {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  color: var(--shu);
  line-height: 1;
  letter-spacing: .06em;
}

.placard__eyebrow {
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--shu);
  font-weight: 600;
  margin: 0 0 .75rem;
}
[data-theme="noapte"] .placard__eyebrow {
  color: var(--kin);
}

.hero__title {
  font-size: clamp(1.9rem, 2.9vw, 2.85rem);
  line-height: 1.05;
  margin: 0 auto .65rem;
  letter-spacing: -.02em;
  text-align: center;
}
.hero__title em {
  font-style: italic;
  color: var(--shu);
  font-weight: 400;
}
[data-theme="noapte"] .hero__title em {
  color: var(--kin);
}
.hero__title .small {
  display: block;
  font-size: .44em;
  letter-spacing: .025em;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin: .45rem auto 0;
  max-width: 52ch;
  text-align: center;
}

.hero__lead {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.6;
  margin: 0 auto 1.15rem;
  text-align: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: 0 auto 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: 0 auto .65rem;
}

.placard__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin-top: .75rem;
}
.placard__foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.placard__footer .placard__foot-line:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}
.placard__footer .scroll-hint {
  font-family: var(--font-ui);
  margin: 0;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.placard__footer .scroll-hint::after {
  display: none;
}
.placard__footer .scroll-hint span {
  color: var(--shu);
  font-size: .65rem;
}
[data-theme="noapte"] .placard__footer .scroll-hint span {
  color: var(--kin);
}

@media (max-width: 768px) {
  .scene--hero {
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .hero__stage {
    position: relative;
    width: 100%;
    height: clamp(280px, 48vh, 390px);
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
    background: #fbf5e6;
  }
  [data-theme="noapte"] .hero__stage {
    background: #080d16;
  }
  .hero-scene__inner {
    min-height: auto;
    max-height: none;
    padding: 0 0 2.8rem;
    width: 100%;
  }
  .hero__placard {
    max-width: 100%;
    margin-top: -1.75rem;
    padding: 1.6rem 1.25rem 1.8rem;
    box-shadow:
      0 -8px 24px color-mix(in srgb, var(--ink) 8%, transparent),
      0 18px 44px color-mix(in srgb, var(--ink) 14%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__layer { transform: none !important; }
}

/* Benzile cu cifre / „pe scurt” */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: var(--frame); border-radius: var(--radius-lg);
  overflow: hidden;
  list-style: none; margin: 0; padding: 0;
}
.stat { background: var(--paper); padding: 1.1rem 1.2rem; }
.stat__n { font-family: var(--font-display); font-size: var(--step-2); color: var(--shu); line-height: 1; }
.stat__l { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: .35rem; }

/* Secțiuni */
.section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.section__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--ink-soft); }

.band {
  background: var(--paper-2);
  border-block: var(--frame);
}

/* Prologul — text mare, centrat pe măsură de lectură */
.prolog { max-width: var(--w-text); margin-inline: auto; }
.prolog p { font-size: var(--step-1); line-height: 1.78; color: var(--ink-soft); }
.prolog__lead::first-letter {
  float: left; font-family: var(--font-display);
  font-size: 3.7em; line-height: .75;
  margin-right: .04em; margin-top: .05em;
  padding: 0;
  color: var(--shu);
  font-weight: 600;
}
.prolog strong { color: var(--ink); font-weight: 600; }

/* Grila de capitole */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
  list-style: none; margin: 0; padding: 0;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  gap: .55rem;
  padding: 1.35rem 1.35rem 1.45rem;
  background: var(--paper);
  border: var(--frame);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
[data-theme="noapte"] .card {
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--shu); opacity: 0; transition: opacity var(--speed) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--shu) 45%, var(--line));
}
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--font-jp); font-size: .85rem; letter-spacing: .1em;
  color: var(--shu); display: flex; align-items: center; gap: .5rem;
}
.card__title { font-family: var(--font-display); font-size: var(--step-1); margin: 0; line-height: 1.22; font-weight: 600; }
.card__dates { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; font-weight: 500; }
.card__blurb { font-size: .95rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.card__kanji {
  position: absolute; right: .6rem; bottom: -.7rem;
  font-family: var(--font-jp); font-size: 4.6rem; line-height: 1;
  color: color-mix(in srgb, var(--ink) 6.5%, transparent);
  pointer-events: none;
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.card:hover .card__kanji {
  transform: scale(1.05);
  color: color-mix(in srgb, var(--shu) 12%, transparent);
}
.card--wide { grid-column: span 2; }
@media (max-width: 720px) { .card--wide { grid-column: span 1; } }

/* Banda de parallax din antetul paginilor de capitol */
.hero-band {
  position: relative;
  overflow: hidden;
  height: clamp(96px, 14vw, 140px);
  border-bottom: var(--frame);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.hero-band__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
  pointer-events: none;
}
.hero-band__kanji {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  top: 50%;
  font-family: var(--font-jp);
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: 1;
  color: color-mix(in srgb, var(--ink) 8%, transparent);
  transform: translateY(-50%);
  will-change: transform;
  pointer-events: none;
}
[data-theme="noapte"] .hero-band {
  background: linear-gradient(180deg, #10141d 0%, #171d29 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-band__layer, .hero-band__kanji { transform: none !important; }
}

@media (max-width: 768px) {
  .hero-band {
    height: clamp(100px, 26vw, 145px);
  }
  .hero-band__layer {
    width: 100%;
    height: 100%;
    left: 0;
  }
  .hero-band__layer > * {
    translate: -360px 0;
  }
  .hero-band__kanji {
    right: 0.75rem;
    font-size: clamp(3.2rem, 14vw, 5rem);
    opacity: 0.65;
  }
}

/* ---------- 5c. Figuri cu imagini --------------------------------------- */

.prose figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  background: var(--paper-2);
}
.prose figure.print--foto figcaption { text-align: left; }
.prose figure.print--foto img { padding: 0; }
.prose figure.strip img { max-height: 440px; object-fit: cover; }
.credit {
  display: block;
  font-family: var(--font-ui);
  font-size: .72rem;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: .5rem;
}
.credit a { color: var(--ink-faint); text-decoration: underline dotted; }
.credit a:hover { color: var(--shu); }

.plate {
  display: grid;
  gap: clamp(.9rem, 2vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr);
  margin: 2.4rem 0;
  align-items: center;
}
@media (min-width: 760px) {
  .plate { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .plate--invers .plate__img { order: 2; }
}
.plate__img img {
  width: 100%; height: auto; display: block;
  border: var(--frame); border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.plate__text > :first-child { margin-top: 0; }
.plate__text > :last-child { margin-bottom: 0; }

/* ---------- 5d. Figuri tipografice (fără imagini) ----------------------- */
/* Listele, cronologiile, secțiunile și cifrele se așază ca într-o carte:
   fără axe, fără chenar de grafic, cu literele site-ului. Se adaptează la temă. */

.fig {
  margin: 2.4rem 0;
  border: var(--frame);
  border-top: 3px solid var(--shu);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 1.15rem 1.25rem 1rem;
}
.fig__titlu {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
  margin: 0 0 .2rem;
}
.fig__sub {
  font-family: var(--font-ui);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .95rem;
}
.fig__nota {
  margin: .85rem 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-faint);
  font-style: italic;
}
.fig__sursa {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-style: normal;
  color: var(--ink-faint);
}

/* a) panou cu rânduri (liste, registre, ranguri, unelte) */
.fig--panou .rând {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr;
  gap: .5rem .9rem;
  padding: .45rem 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.fig--panou .rând:first-of-type { border-top: 0; }
.fig--panou .cheie { font-family: var(--font-jp); font-size: .95rem; color: var(--shu); }
.fig--panou .cheie .ro { font-family: var(--font-body); }
.fig--panou .text { font-size: .96rem; color: var(--ink-soft); }

/* b) straturi (secțiuni: cuptor, zid, lamă, castel, adăpost) */
.fig--straturi .strat {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr;
  gap: .7rem;
  align-items: center;
  margin-bottom: .35rem;
}
.fig--straturi .strat__bara {
  height: var(--h, .9rem);
  border-radius: 1px;
  background: var(--c, var(--paper-3));
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.fig--straturi .strat__text { font-size: .94rem; color: var(--ink-soft); }
.fig--straturi .strat__text b { color: var(--ink); font-weight: 600; }

/* c) bare fără axe (cifre) */
.fig--bare .linie {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7rem) 1fr auto;
  gap: .7rem;
  align-items: center;
  margin-bottom: .5rem;
}
.fig--bare .eticheta {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--ink-faint);
  text-align: right;
}
.fig--bare .bara { height: .8rem; background: var(--paper-3); border-radius: 1px; overflow: hidden; }
.fig--bare .bara i { display: block; height: 100%; background: var(--ai); }
.fig--bare .linie--accent .bara i { background: var(--shu); }
.fig--bare .valoare { font-family: var(--font-ui); font-size: .82rem; color: var(--ink); }

/* d) cronologie (momente) */
.fig--timp ol { list-style: none; margin: 0; padding: 0 0 0 1.15rem; position: relative; }
.fig--timp ol::before {
  content: ""; position: absolute; left: .3rem; top: .5rem; bottom: .6rem;
  width: 1px; background: var(--line);
}
.fig--timp li { position: relative; padding-bottom: .9rem; }
.fig--timp li:last-child { padding-bottom: 0; }
.fig--timp li::before {
  content: ""; position: absolute; left: -1.02rem; top: .42rem;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--shu);
}
.fig--timp .când {
  display: block;
  font-family: var(--font-ui);
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shu);
}
.fig--timp .ce { font-size: .97rem; color: var(--ink-soft); }

/* e) traseu (popasuri pe un drum) */
.fig--traseu ol { list-style: none; margin: 0; padding: 0; counter-reset: popas; }
.fig--traseu li {
  position: relative;
  padding: 0 0 .8rem 2rem;
  counter-increment: popas;
}
.fig--traseu li::before {
  content: counter(popas);
  position: absolute; left: 0; top: .05rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 1px solid var(--shu); color: var(--shu);
  font-family: var(--font-ui); font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
}
.fig--traseu li:not(:last-child)::after {
  content: ""; position: absolute; left: .66rem; top: 1.5rem; bottom: .1rem;
  width: 1px; background: var(--line);
}
.fig--traseu .loc { font-weight: 600; color: var(--ink); }
.fig--traseu .detaliu { display: block; font-size: .92rem; color: var(--ink-soft); }

/* f) două jumătăți față în față (obiecte tăiate în două, comparații) */
.fig--duo .duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}
.fig--duo .duo__parte { min-width: 0; }
.fig--duo .duo__titlu {
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 .5rem;
}
.fig--duo ul { margin: 0; padding-left: 1.05rem; }
.fig--duo li { font-size: .94rem; color: var(--ink-soft); margin-bottom: .3rem; }
.fig--duo .duo__taietura {
  align-self: stretch;
  width: 0;
  border-left: 2px dashed var(--line);
  position: relative;
}
.fig--duo .duo__taietura::before,
.fig--duo .duo__taietura::after {
  content: "";
  position: absolute;
  left: -.28rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--paper-3);
  border: 1px solid var(--line);
}
.fig--duo .duo__taietura::before { top: -0.2rem; }
.fig--duo .duo__taietura::after { bottom: -0.2rem; }

@media (max-width: 560px) {
  .fig { padding: 1rem .95rem .85rem; }
  .fig--panou .rând,
  .fig--straturi .strat { grid-template-columns: 1fr; gap: .15rem; }
  .fig--bare .linie { grid-template-columns: minmax(4rem, 5.5rem) 1fr auto; }
  .fig--duo .duo { grid-template-columns: 1fr; }
  .fig--duo .duo__taietura { display: none; }
}

/* ---------- 6. Pagina de capitol --------------------------------------- */

.chapter-hero {
  position: relative;
  border-bottom: var(--frame);
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--shu) 8%, transparent), transparent 60%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  overflow: hidden;
}
.chapter-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--shu) 0%, color-mix(in srgb, var(--shu) 35%, transparent) 45%, transparent 100%);
}
.chapter-hero__inner {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
  padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3.2rem);
}
.chapter-hero__kanji {
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  color: var(--shu);
  letter-spacing: .15em;
  border-right: 1px solid var(--line);
  padding-right: clamp(1rem, 2.5vw, 2.2rem);
  user-select: none;
  text-shadow: 0 0 24px color-mix(in srgb, var(--shu) 18%, transparent);
}
.chapter-hero h1 { font-size: var(--step-4); margin: .15rem 0 .6rem; letter-spacing: -.015em; }
.chapter-hero__sub { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.65; font-style: italic; max-width: 58ch; margin: 0; }
.chapter-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chapter-hero__reading {
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

.chapter-body {
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--w-text)) minmax(0, 17rem);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.rail { position: sticky; top: 5.4rem; font-family: var(--font-ui); font-size: .82rem; }
.rail__title {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .8rem;
  padding-bottom: .45rem; border-bottom: 1px solid var(--line);
}
.rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .15rem;
  border-left: 1.5px solid var(--line-soft);
}
.rail a {
  display: block; color: var(--ink-soft); text-decoration: none;
  padding: .32rem .5rem .32rem .85rem; line-height: 1.38;
  border-left: 2px solid transparent; margin-left: -1.5px;
  border-radius: 0 4px 4px 0;
  transition: all var(--speed) var(--ease);
}
.rail a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 65%, transparent);
  border-left-color: color-mix(in srgb, var(--shu) 40%, transparent);
}
.rail a.is-active {
  color: var(--shu);
  font-weight: 600;
  border-left-color: var(--shu);
  background: color-mix(in srgb, var(--shu) 9%, transparent);
}

/* Textul propriu-zis */
.prose { max-width: var(--w-text); }
.prose > p:first-of-type { font-size: 1.08em; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.5em;
  line-height: .75;
  margin-right: .04em;
  margin-top: .05em;
  padding: 0;
  color: var(--shu);
  font-weight: 600;
}
.prose h2 {
  font-size: var(--step-2);
  margin: 3.2rem 0 1rem;
  padding-top: .4rem;
  position: relative;
}
.prose h2 .jp {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .52em;
  color: var(--shu);
  letter-spacing: .2em;
  margin-bottom: .35rem;
}
.prose h2 .jp::after {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--shu) 45%, transparent);
  vertical-align: middle;
}
.prose h3 { font-size: var(--step-1); margin: 2rem 0 .6rem; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--shu); }
.prose blockquote {
  position: relative;
  margin: 2.4rem 0;
  padding: 1.25rem 1.6rem 1.35rem 1.9rem;
  border-left: 3px solid var(--shu);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: color-mix(in srgb, var(--paper-2) 65%, transparent);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  line-height: 1.65;
  font-style: italic;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 40%, transparent);
}
.prose blockquote::before {
  content: "“";
  position: absolute;
  left: 0.65rem;
  top: -0.25rem;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--shu);
  opacity: 0.25;
  pointer-events: none;
}
.prose blockquote footer {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.prose blockquote footer::before {
  content: "—";
  color: var(--shu);
}
.prose figure { margin: 2.2rem 0; }
.prose figure img { margin-inline: auto; }
.prose figcaption {
  font-family: var(--font-ui); font-size: .78rem; color: var(--ink-faint);
  text-align: center; margin-top: .8rem; line-height: 1.5;
}
.prose .lead-in { font-weight: 600; color: var(--ink); }

/* Termen japonez cu explicație la trecere/atingere */
.term {
  border-bottom: 1px dotted var(--shu);
  cursor: help; position: relative;
  font-style: italic;
}
.term__tip {
  position: absolute; left: 50%; bottom: calc(100% + .5rem);
  transform: translateX(-50%) translateY(.3rem);
  width: max-content; max-width: 22rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-ui); font-size: .78rem; font-style: normal;
  line-height: 1.5; letter-spacing: .01em;
  padding: .6rem .75rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  z-index: 20;
}
.term:hover .term__tip, .term:focus .term__tip, .term[aria-expanded="true"] .term__tip {
  opacity: 1; transform: translateX(-50%);
}

/* Casete laterale: repere, cuvinte, personaje */
.notes {
  display: grid;
  gap: 1.35rem;
  position: sticky;
  top: 5.4rem;
  /* fără înălțime maximă și fără derulare proprie: coloana curge cu pagina,
     ca textul să nu fie tăiat la mijloc de rând pe ecranele joase */
  max-height: none;
  overflow: visible;
  padding-right: .25rem;
}
.note {
  border: var(--frame); border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.note::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--shu) 0%, color-mix(in srgb, var(--shu) 30%, transparent) 50%, transparent 100%);
  opacity: .85;
}
/* coloana de repere: când nu încape pe ecran, site.js o lasă să curgă cu lectura
   (poziția se calculează din derulare); regula de mai jos doar marchează cazul */
.notes--curge { will-change: transform; }
.note__title {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 .85rem; display: flex; align-items: center; gap: .6rem;
}
.note__title::after { content: ""; flex: 1; height: 1px; background: var(--line); opacity: .7; }

.repere {
  list-style: none;
  margin: 0;
  padding: .2rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .95rem;
}
.repere::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .6rem;
  bottom: .6rem;
  width: 1.5px;
  background: linear-gradient(180deg, var(--shu), color-mix(in srgb, var(--line) 75%, transparent) 25%, color-mix(in srgb, var(--line) 75%, transparent) 85%, transparent 100%);
}
.repere li {
  position: relative;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .86rem;
  line-height: 1.48;
}
.repere li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .35rem;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--shu);
  box-shadow: 0 0 0 2px var(--paper-2);
  box-sizing: border-box;
  transition: transform var(--speed), background var(--speed), box-shadow var(--speed);
}
.repere li:hover::before {
  background: var(--shu);
  transform: scale(1.25);
  box-shadow: 0 0 6px color-mix(in srgb, var(--shu) 60%, transparent);
}
.repere .an {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--shu);
  line-height: 1.3;
  padding: .1rem .45rem;
  margin-left: -.45rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--shu) 8%, transparent);
  width: fit-content;
  max-width: 100%;
  word-break: normal;
}
[data-theme="noapte"] .repere .an {
  background: color-mix(in srgb, var(--shu) 14%, transparent);
  color: var(--shu-soft);
}
.repere .ce {
  display: block;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.48;
}
.repere .ce a {
  color: var(--ink);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.repere .ce a:hover {
  color: var(--shu);
  text-decoration: underline solid;
}

.cuvinte { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cuvinte dt { font-family: var(--font-jp); color: var(--ink); font-size: .95rem; }
.cuvinte dt span { font-family: var(--font-body); font-style: italic; color: var(--ink-faint); font-size: .82rem; margin-left: .4rem; }
.cuvinte dd { margin: .15rem 0 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }

.personaje { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.personaje li { font-size: .86rem; line-height: 1.45; }
.personaje b { font-family: var(--font-display); font-size: 1rem; display: block; color: var(--ink); }
.personaje span { color: var(--ink-soft); display: block; }
/* anii stau doar la începutul intrării, nu oriunde în text */
.personaje > li > em { font-family: var(--font-ui); font-style: normal; font-size: .74rem; color: var(--ink-faint); letter-spacing: .05em; display: block; }
/* titlurile de cărți din descriere rămân cursive normale, în text */
.personaje span em,
.personaje span i { font-family: inherit; font-size: inherit; font-style: italic; color: inherit; letter-spacing: 0; display: inline; }

/* Caseta „Surse”: volumele Cambridge și legături instituționale */
.note__lead { font-size: .82rem; color: var(--ink-soft); margin: .9rem 0 .5rem; line-height: 1.45; }
.note__lead:first-of-type { margin-top: 0; }
.surse { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.surse li { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); }
.surse li a { color: var(--ink); text-decoration-color: var(--shu); text-underline-offset: 2px; }
.surse li em { font-style: italic; }

/* Casete mari în fluxul textului */
.callout {
  position: relative;
  margin: 2.4rem 0;
  border: var(--frame); border-left: 4px solid var(--ai);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--ai) 4.5%, var(--paper-2));
  padding: 1.3rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.callout--shu {
  border-left-color: var(--shu);
  background: color-mix(in srgb, var(--shu) 4.5%, var(--paper-2));
}
.callout h4 {
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ai); margin: 0 0 .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.callout--shu h4 { color: var(--shu); }
.callout h4::before {
  content: "❖";
  font-size: .85rem;
  line-height: 1;
}
.callout p { margin-bottom: .85rem; font-size: .98rem; line-height: 1.68; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); font-weight: 600; }

/* Mini-cronologie în flux */
.minitl { list-style: none; margin: 2rem 0; padding: 0; border-left: 1px solid var(--line); }
.minitl li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.minitl li::before {
  content: ""; position: absolute; left: -4px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--shu);
}
.minitl .an { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; color: var(--shu); display: block; }
.minitl .txt { color: var(--ink-soft); font-size: .96rem; }

/* Navigare între capitole */
.chapter-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  border-top: var(--frame);
  padding: 2.2rem 0 0;
  margin-top: 1rem;
}
.chapter-nav a {
  border: var(--frame); border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem; text-decoration: none; color: inherit;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.chapter-nav a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--shu) 45%, var(--line));
  box-shadow: var(--shadow-md);
  color: inherit;
}
.chapter-nav .dir { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.chapter-nav .ttl { font-family: var(--font-display); font-size: var(--step-1); display: block; margin-top: .3rem; font-weight: 600; }
.chapter-nav .next { text-align: right; }
.chapter-nav a[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 7. Cronologie interactivă ---------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .04em;
  padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.filters button:hover { border-color: var(--shu); color: var(--shu); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.2rem; }
.tl::before {
  content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
  width: 1.5px; background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}
.tl__item { position: relative; padding: 0 0 1.7rem; }
.tl__item::before {
  content: ""; position: absolute; left: -1.98rem; top: .5rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--shu);
  box-shadow: 0 0 0 2px var(--paper);
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.tl__item[data-era="meiji"]::before { border-color: var(--ai); }
.tl__item[data-era="modern"]::before { border-color: var(--kin); }
.tl__item[data-era="preistorie"]::before { border-color: var(--matcha); }
.tl__item[data-era="curte"]::before { border-color: var(--ai); }
.tl__item[data-era="unificare"]::before { border-color: var(--kin); }
.tl__item[data-era="modern"]::before { border-color: var(--ink); }
.tl__count {
  font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: -.7rem 0 1.8rem;
}
.tl__item:hover::before {
  transform: scale(1.35);
  background: var(--shu);
  box-shadow: 0 0 8px color-mix(in srgb, var(--shu) 60%, transparent);
}
.tl__item[hidden] { display: none; }
.tl__year {
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--shu); display: block;
}
.tl__title { font-family: var(--font-display); font-size: var(--step-1); margin: .15rem 0 .3rem; }
.tl__text { color: var(--ink-soft); font-size: .96rem; max-width: 66ch; margin: 0; }
.tl__link { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .06em; }

/* ---------- 8. Glosar --------------------------------------------------- */

.gsearch {
  display: flex; align-items: center; gap: .6rem;
  border: var(--frame); border-radius: 999px;
  padding: .5rem 1rem; background: var(--paper-2);
  max-width: 32rem; margin-bottom: 2rem;
}
.gsearch input {
  border: 0; background: transparent; font: inherit; color: inherit;
  width: 100%; outline: none;
}
.gsearch input::placeholder { color: var(--ink-faint); }

.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.gloss li {
  border: var(--frame); border-radius: var(--radius-lg);
  padding: 1rem 1.1rem; background: var(--paper);
}
.gloss li[hidden] { display: none; }
.gloss .w { font-family: var(--font-jp); font-size: var(--step-1); margin: 0 0 .1rem; }
.gloss .r { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.gloss .d { margin: .5rem 0 0; font-size: .94rem; color: var(--ink-soft); }
.gloss .src { font-family: var(--font-ui); font-size: .72rem; color: var(--ink-faint); margin-top: .5rem; }

/* ---------- 9. Subsol --------------------------------------------------- */

.site-foot {
  border-top: var(--frame);
  background: var(--paper-2);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-foot__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
}
.site-foot h3 {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .7rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--shu); text-decoration: underline; }
.site-foot__bottom {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  font-family: var(--font-ui); font-size: .76rem; color: var(--ink-faint);
}
.site-foot__bottom .jp { font-size: 1rem; color: var(--shu); }

/* ---------- 10. Animații de apariție ----------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
html.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 11. Responsive --------------------------------------------- */

@media (max-width: 1080px) {
  .chapter-body { grid-template-columns: 12rem minmax(0, 1fr); }
  .notes { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .chapter-body { padding-bottom: 2rem; }
  .chapter-body .notes { grid-column: 2; display: grid; }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; padding: 2.5rem 0 3.5rem; }
  .hero__art { max-width: 540px; margin: 0 auto; width: 100%; }
  .nav { display: none; }
  .burger { display: grid; }
  .chapter-body { grid-template-columns: minmax(0, 1fr); }
  .chapter-body .notes { grid-column: auto; }
  .rail { display: none; }
}

@media (max-width: 620px) {
  .chapter-hero__inner { grid-template-columns: 1fr; }
  .chapter-hero__kanji { writing-mode: horizontal-tb; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .5rem; font-size: 2.2rem; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav .next { text-align: left; }

  /* bara de sus: încape pe ecrane mici */
  .topbar__inner { gap: .5rem; }
  .brand__sub { display: none; }
  .brand__title { font-size: 1rem; }
  .brand__mark, .brand__seal { width: 2rem; height: 2rem; font-size: 1.15rem; }
  .tools { gap: .25rem; }
  .iconbtn { width: 2.05rem; height: 2.05rem; font-size: .85rem; }
  .iconbtn:not(.iconbtn--text) { width: 2.05rem; height: 2.05rem; }
  .iconbtn--text { width: auto; height: 2.05rem; padding: 0 .6rem; font-size: .72rem; }

  /* explicațiile termenilor: casetă centrată, ca să nu lățească pagina */
  .term__tip {
    position: fixed;
    left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%) scale(.98);
    width: min(88vw, 22rem); max-width: none;
  }
  .term:hover .term__tip, .term:focus .term__tip, .term[aria-expanded="true"] .term__tip {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ---------- 11b. Gravuri („printuri”) și ornamente ---------------------- */

/* Ilustrațiile au paletă fixă, ca o gravură pe hârtie washi:
   rămân lizibile în toate temele. */
.print {
  background: #f6efdf;
  border: 1px solid #ded2b8;
  border-radius: var(--radius-lg);
  padding: clamp(.8rem, 2.5vw, 1.4rem);
  box-shadow: var(--shadow-sm);
}
.print svg { width: 100%; height: auto; display: block; }
.print--foto { margin: 2.2rem 0; }
.print--foto img {
  width: 100%; height: auto; display: block;
  border-radius: 2px;
  background: var(--paper-2);
}
.print--wide { max-width: 640px; margin-inline: auto; }
.print figcaption { color: #6f6455 !important; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--shu); font-family: var(--font-jp); font-size: 1.05rem;
  margin: 2.6rem 0;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: clamp(2rem, 10vw, 5rem); background: var(--line);
}

/* Caseta autorului pe pagina despre */
.author-box {
  position: relative;
  margin: 2.4rem 0;
  padding: 2rem 2.2rem;
  background: color-mix(in srgb, var(--paper-2) 75%, transparent);
  border: var(--frame);
  border-left: 4px solid var(--shu);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.author-box__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.author-box__seal {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--shu);
  color: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-jp);
  font-size: 1.6rem;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shu) 30%, transparent);
  flex-shrink: 0;
}
.author-box__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  line-height: 1.2;
}
.author-box__subtitle {
  margin: .2rem 0 0;
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shu);
}
.author-box__text {
  font-size: 1.02rem;
  line-height: 1.76;
  color: var(--ink);
  margin-bottom: 1rem;
}
.author-box__text:last-of-type {
  margin-bottom: 0;
}
.author-box__signature {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .8rem;
}
.author-box__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}
.author-box__tag {
  font-family: var(--font-jp);
  font-size: .85rem;
  color: var(--shu);
  border: 1px solid color-mix(in srgb, var(--shu) 50%, transparent);
  padding: .15rem .45rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--shu) 6%, transparent);
}
/* legătura către profilul autorului, sub semnătură */
.author-box__contact {
  margin: .85rem 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: right;
}
.author-box__contact a,
.site-foot__social a {
  color: var(--shu);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--shu) 40%, transparent);
}
.author-box__contact a:hover,
.site-foot__social a:hover {
  border-bottom-color: var(--shu);
}
.site-foot__social {
  margin: .5rem 0 0;
  font-size: .9rem;
}
/* text numai pentru cititoarele de ecran */
.doar-cititor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grilă de principii / valori narative */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.1rem;
  margin: 2.2rem 0;
}
.value-card {
  padding: 1.3rem 1.4rem;
  background: var(--paper);
  border: var(--frame);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.value-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--shu) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}
.value-card__badge {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.value-card__kanji {
  font-family: var(--font-jp);
  font-size: 1.35rem;
  color: var(--shu);
  line-height: 1;
}
.value-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.value-card__desc {
  font-size: .92rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0;
}

.grila-ere {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line);
  border: var(--frame); border-radius: var(--radius-lg); overflow: hidden;
}
.grila-ere li { background: var(--paper); }
.grila-ere a {
  display: grid; grid-template-columns: 9.5rem 1fr auto;
  gap: 1rem; align-items: baseline;
  padding: .72rem 1.05rem; text-decoration: none; color: inherit;
  transition: background var(--speed) var(--ease);
}
.grila-ere a:hover { background: var(--paper-2); }
.grila-ere .n { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shu); }
.grila-ere .t { font-family: var(--font-display); font-size: 1.08rem; }
.grila-ere .d { font-family: var(--font-ui); font-size: .74rem; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 640px) {
  .grila-ere a { grid-template-columns: 1fr; gap: .1rem; }
  .grila-ere .d { white-space: normal; }
}

/* Caseta „continuă lectura” */
.resume {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  border: var(--frame); border-left: 3px solid var(--shu);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--shu) 5%, var(--paper));
  padding: .9rem 1.1rem; margin: 0 0 1.6rem;
  font-size: .95rem;
}
.resume[hidden] { display: none; }
.resume__label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.resume a { font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; }
.resume a:hover { text-decoration: underline; }

/* ---------- 11c. Serial: calendarul publicării ------------------------- */

.card--locked {
  position: relative;
  border-style: dashed;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  color: var(--ink-faint);
  cursor: default;
}
.card--locked::before { display: none; }
.card--locked:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card--locked .card__title { color: var(--ink-faint); }
.card--locked .card__kanji { color: color-mix(in srgb, var(--ink) 4%, transparent); }

.interludii { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: var(--frame); border-radius: var(--radius-lg); overflow: hidden; }
.interludii li { background: var(--paper); padding: .95rem 1.1rem; display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .4rem 1.1rem; align-items: baseline; }
.interludii .sapt { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shu); }
.interludii .titlu { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.interludii .titlu a { text-decoration: none; }
.interludii .rezumat { color: var(--ink-soft); font-size: .92rem; display: block; margin-top: .2rem; }
.interludii .data { font-family: var(--font-ui); font-size: .76rem; color: var(--ink-faint); white-space: nowrap; }
.interludii__item--viitor { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.interludii__item--viitor .titlu { color: var(--ink-faint); }
.interludii__item--lipsa { opacity: .72; }
.stare { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); }
.stare--publicat { border-color: color-mix(in srgb, var(--matcha) 55%, transparent); color: var(--matcha); }
.stare--curand { border-color: color-mix(in srgb, var(--kin) 55%, transparent); color: var(--kin); }

.interludii__urmator {
  border: var(--frame); border-left: 3px solid var(--shu);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--shu) 5%, var(--paper));
  padding: 1.1rem 1.2rem; margin: 0 0 2rem;
}
.interludii__urmator h2 { font-size: var(--step-2); margin: 0 0 .3rem; }
.interludii__urmator p { margin: 0; color: var(--ink-soft); }
.interludii__cifre { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

@media (max-width: 700px) {
  .interludii li { grid-template-columns: 1fr; gap: .25rem; }
  .interludii .data { white-space: normal; }
}

/* ---------- 11d. Serial: cardurile episoadelor și lacătele ---------------- */

.interludii__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.interludii__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  border: var(--frame);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 1.05rem 1.1rem 1rem;
  overflow: hidden;
}
.interludii__card--publicat { border-left: 3px solid var(--matcha); }
.interludii__card--lacat {
  border-left: 3px solid var(--line);
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper-2) 70%, transparent) 0 8px, transparent 8px 16px),
    var(--paper-2);
}
.interludii__card--lacat::after {
  content: "🔒";
  position: absolute;
  right: .7rem;
  top: .6rem;
  font-size: 1.6rem;
  opacity: .28;
}
.interludii__card--gol { border-left: 3px solid var(--line); opacity: .72; }
.interludii__cap {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .71rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shu);
}
.interludii__cap .jp { font-size: 1.15rem; letter-spacing: 0; }
.interludii__titlu {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}
.interludii__titlu a { text-decoration: none; }
.interludii__titlu a:hover { color: var(--shu); }
.interludii__rezumat { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.interludii__jos {
  margin-top: auto;
  padding-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}
.interludii__data { font-family: var(--font-ui); font-size: .76rem; color: var(--ink-faint); }

.stare--lacat {
  font-family: var(--font-ui);
  font-size: .74rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* blocul „următoarea pagină", pe pagina Serial și pe copertă */
.interludii__urmator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  border: var(--frame);
  border-left: 4px solid var(--shu);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  margin-bottom: 2.2rem;
}
.interludii__urmator--mic { border-left-width: 3px; margin: 0 0 1.8rem; }
.interludii__urmator--mic h3 { font-family: var(--font-display); font-size: var(--step-1); margin: 0 0 .3rem; }
.interludii__urmator--mic p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.interludii__urmator-kanji {
  font-family: var(--font-jp);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  color: color-mix(in srgb, var(--shu) 55%, transparent);
}
.interludii__urmator-text h2 { font-size: var(--step-2); margin: .1rem 0 .5rem; }
.interludii__urmator-text > p { color: var(--ink-soft); margin: 0 0 .9rem; max-width: 62ch; }
.interludii__cifre { display: flex; flex-wrap: wrap; gap: .5rem; }
.interludii__nota {
  margin: .2rem 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  color: var(--ink-faint);
  font-size: .9rem;
  font-style: italic;
  max-width: 70ch;
}
@media (max-width: 560px) {
  .interludii__urmator { grid-template-columns: 1fr; }
  .interludii__urmator-kanji { font-size: 3rem; }
}

/* ---------- 12. Tipărire ----------------------------------------------- */

@media print {
  :root { --paper: #fff; --paper-2: #fff; --ink: #000; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .drawer, .progress, .chapter-nav, .skip, .hero__actions, .site-foot { display: none !important; }
  .chapter-body { display: block; }
  .rail, .notes { display: none; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: none; }
  .prose h2 { page-break-after: avoid; }
  .callout, figure, blockquote { page-break-inside: avoid; }
}
