:root {
  --paper: #FBF7F7; --page: #FFFFFF; --ink: #2E2440; --muted: #756A80;
  --accent: #B04A6E; --sea: #3C7FA6; --rule: #EFE3E8;
  --sky-top: #FCE1E4; --sky-mid: #FEEBD8; --sky-low: #E3EFF5;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--body); font-size: 1.1rem; line-height: 1.6; color: var(--ink);
  background: var(--paper);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
}
body[data-lang="en"] .it { display: none !important; }
body:not([data-lang="en"]) .en { display: none !important; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.lang {
  position: fixed; z-index: 10;
  top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; background: var(--page); border: 1px solid var(--rule); border-radius: 999px; padding: 3px;
  box-shadow: 0 6px 18px -10px rgba(46,36,64,.35);
}
.lang button { font: 500 .85rem/1 var(--body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .5rem .85rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.wrap { max-width: 34rem; margin: 0 auto; padding: 4.5rem 0 3rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.book { font-family: var(--display); font-style: italic; color: var(--muted); text-decoration: none; font-size: 1rem; }
.banner { display: block; width: 100%; height: 11rem; border-radius: 14px; margin: 1rem 0 1.75rem; box-shadow: 0 18px 40px -30px rgba(80,40,20,.55); }
.label { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--sea); }
.num { margin: .2rem 0 0; font-family: var(--display); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--accent); }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 6.5vw, 2.5rem); line-height: 1.15; margin: .6rem 0 0; text-wrap: balance; }

.player { width: 100%; margin-top: 2.25rem; background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem 1.25rem; box-shadow: 0 18px 40px -30px rgba(120,60,90,.4); }
.listen { margin: 0 0 1rem; font-family: var(--hand); font-size: 1.8rem; color: var(--accent); line-height: 1; }
.player audio { width: 100%; }
.soon { margin: 0; color: var(--muted); font-style: italic; }
.sign { margin: 2rem 0 0; font-family: var(--hand); font-size: 1.6rem; color: var(--accent); }

.text { width: 100%; margin-top: 2.5rem; text-align: left; background: var(--page); border-radius: 14px; padding: clamp(1.5rem, 6vw, 2.75rem) clamp(1.25rem, 6vw, 2.5rem); box-shadow: 0 18px 40px -30px rgba(120,60,90,.35); font-size: 1.08rem; line-height: 1.7; }
.text .lines p { margin: 0 0 .5rem; }
.text .lines p.gap { margin-top: 1.35rem; }
.text .prose p { margin: 0 0 1.1rem; }
.text .italic p { font-style: italic; }
.text p.big { font-family: var(--display); font-size: 1.55rem; font-style: normal; margin-block: .9rem; }
.text .name { font-family: var(--display); font-weight: 600; font-size: 1.2em; color: var(--accent); }
.text p.sign { font-family: var(--hand); font-size: 2.3rem; color: var(--accent); font-style: normal; margin-top: 1.5rem; line-height: 1; }

.dedica { margin: .5rem 0 0; font-family: var(--hand); font-size: 1.7rem; color: var(--accent); line-height: 1.1; }
.pager { width: 100%; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; text-align: left; }
.pager a { text-decoration: none; color: var(--muted); min-width: 0; max-width: 48%; }
.pager a:hover { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
.all { margin: 1.25rem 0 0; font-size: .9rem; }

.hero { position: relative; width: 100%; aspect-ratio: 3 / 4; min-height: 28rem; border-radius: 14px; overflow: hidden; margin-bottom: 1.75rem; background: #A9C2D4; box-shadow: 0 30px 60px -36px rgba(80,40,20,.6); }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-text { position: relative; padding: 3.5rem 1.25rem 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.home .hero .kicker { color: #8E2F52; }
.home .hero .title { color: #1F1A2E; }
.home .hero .title em { color: #8E2F52; }
.home .hero .subtitle { color: #3E3550; margin: 0; }
.home .kicker { margin: 0; font-family: var(--hand); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.home .title { font-size: clamp(2.6rem, 11vw, 4.2rem); line-height: 1.02; margin: 0; }
.home .title em { font-style: italic; color: var(--accent); }
.home .subtitle { margin: .75rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.home .intro { margin: 0 0 1.5rem; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; width: 100%; text-align: left; background: var(--page); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.list li + li { border-top: 1px solid var(--rule); }
.list a { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .75rem; align-items: center; padding: .85rem 1.1rem; color: var(--ink); text-decoration: none; }
.list a:hover { background: #FCF1F4; }
.list .n { font-family: var(--display); font-style: italic; color: var(--accent); font-variant-numeric: tabular-nums; }
.list .t { min-width: 0; font-size: 1rem; }
.list .play { color: var(--accent); font-size: .8rem; }
