/* Via Lexica standalone vertical reader */
:root {
  --paper: #f6f0df;
  --ink: #1f1b17;
  --muted: #6f675c;
  --rule: rgba(74, 64, 52, .22);
  --accent: #7a4e2c;
  --panel: rgba(255, 252, 242, .72);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.45), transparent 28rem),
    linear-gradient(90deg, #ede1c8, var(--paper));
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}
a { color: var(--accent); }
.reader-header {
  writing-mode: horizontal-tb;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(246,240,223,.94);
  backdrop-filter: blur(6px);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.reader-header h1 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: .08em;
  font-weight: 600;
}
.reader-header .note {
  color: var(--muted);
  font-size: .82rem;
  margin: 0;
}
.vertical-stage {
  height: calc(100vh - 3.1rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 2rem 2.5rem;
  scroll-snap-type: x proximity;
}
.vertical-reader {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 100%;
  max-height: 100%;
  line-height: 2.05;
  letter-spacing: .045em;
  font-size: clamp(17px, 2.05vh, 22px);
}
.wp-block-columns {
  display: inline-block;
  height: 100%;
  vertical-align: top;
  padding: 1.3rem 1.25rem;
  margin-left: 2.2rem;
  background: var(--panel);
  border-left: 1px solid var(--rule);
  border-right: 1px solid rgba(255,255,255,.4);
  scroll-snap-align: start;
}
.wp-block-column { height: 100%; }
p {
  margin: 0 0 0 1.1em;
  max-height: 100%;
}
h2.wp-block-heading {
  margin: 0 0 0 1.1em;
  padding: .25em .15em;
  font-size: 1.45em;
  letter-spacing: .18em;
  color: var(--accent);
  border-left: 2px solid var(--accent);
}
figure { margin: 0 0 0 1.15em; }
figure.scene-image {
  writing-mode: horizontal-tb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 .7rem;
}
figure.scene-image img {
  display: block;
  max-height: min(56vh, 520px);
  max-width: 78vw;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  border: 1px solid rgba(60,50,40,.18);
  background: #ddd;
}
figure.speaker-icon {
  writing-mode: horizontal-tb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.4rem;
  margin-left: .45em;
}
figure.speaker-icon img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
ruby rt { font-size: .55em; color: var(--muted); }
sup, .fn { font-size: .68em; }
.wp-block-file { writing-mode: horizontal-tb; padding: .6rem; border: 1px solid var(--rule); background: rgba(255,255,255,.45); }
.wp-block-file__button { margin-left: .8rem; padding: .35rem .6rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; }
@media (max-width: 700px) {
  .reader-header { display:block; }
  .reader-header .note { margin-top:.25rem; }
  .vertical-stage { height: calc(100vh - 4.7rem); padding: 1rem; }
  .vertical-reader { font-size: 17px; line-height: 1.9; }
  figure.scene-image img { max-height: 46vh; max-width: 82vw; }
}
@media print {
  .reader-header { position: static; }
  .vertical-stage { height: auto; overflow: visible; }
}
