/* reading.css — tipografia de leitura longa (contos). Só FORMA: nunca altera o texto.
   Reúne as variações dos 8 contos originais (capitular, separador, caixa de carta,
   nota do editor, poemas bilíngues, rodapé de notas) em classes compartilhadas. */
.story {
  font-family: var(--font-read); font-size: 1.13rem; line-height: 1.8; color: var(--text);
  max-width: 68ch; margin: 0 auto;
}
.story p { margin: 0 0 1.35rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.story h1, .story h2, .story h3 { font-family: var(--font-ui); color: var(--text); }
.story h1.main-title {
  font-weight: 300; font-size: clamp(1.9rem, 5vw, 2.7rem); text-align: center; text-transform: uppercase;
  letter-spacing: .12em; margin: .4rem 0 3rem; line-height: 1.15;
}
.story h2 { font-size: 1.5rem; margin: 3.5rem 0 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.story h3 { font-size: 1.2rem; font-weight: 500; margin: 2rem 0 1rem; }
.story h2 + p::first-letter, .story p.first-paragraph::first-letter {
  float: left; font-size: 3.4rem; line-height: .85; margin: .12rem .5rem 0 0; color: var(--accent); font-weight: 700;
}
.story em { color: var(--accent); font-style: italic; }
.story hr, .story hr.separator {
  border: 0; height: 1px; margin: 3.5rem 0; opacity: .6;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.story blockquote {
  margin: 2rem 0; padding: .9rem 1.3rem; border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.story blockquote p:last-child { margin-bottom: 0; }
.story .meta-info { display: block; font-style: italic; font-size: .92rem; color: var(--muted); margin-bottom: 2rem; }
.story .author-info { text-align: center; font-family: var(--font-ui); color: var(--accent); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.story header { text-align: center; margin-bottom: 3rem; }
.story header h1.main-title { margin-bottom: .8rem; }
.story .editor-note {
  background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.3rem 1.5rem; margin: 0 0 3rem; font-size: .96rem; font-style: italic; color: var(--muted);
}
.story .editor-note p { margin: 0; text-align: left; }
.story .editor-note a { color: var(--accent); }
.story .letter-box {
  background: var(--surface-2); border-left: 3px solid var(--accent); padding: 1.6rem 1.8rem; margin: 2.5rem 0;
  font-style: italic; font-size: 1.05rem;
}
.story .letter-signature { text-align: right; margin-top: 1.2rem; font-weight: 700; color: var(--accent); }
.story .footnotes { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.story .hero-image { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 0 2.5rem; border: 1px solid var(--border); }
.story .hero-image[alt]:not([width]) { max-height: 32rem; object-fit: cover; }

/* Poemas bilíngues (Fantasma na Máquina) */
.story .poem-container { margin: 2.5rem 0; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.story .poem-original { font-family: var(--font-ui); color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 1.3rem; }
.story .poem-translation { font-size: 1.1rem; margin-bottom: .9rem; white-space: pre-wrap; }
.story .poem-date { text-align: right; font: italic .85rem var(--font-ui); color: var(--accent); margin-top: .6rem; }
.story .poem-container p { text-align: left; }

.story-credits {
  max-width: 68ch; margin: 3.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font: .85rem var(--font-ui); color: var(--muted); display: flex; flex-direction: column; gap: .3rem;
}
.story-credits a { color: var(--accent); }
.story-nav { max-width: 68ch; margin: 1.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; font: .9rem var(--font-ui); }
