:root {
  --papel: #f5ecdc;
  --ouro: #ffd27a;
  --noite: #14110d;
  --cartao: #1f1a14;
  --apagado: rgba(245, 236, 220, .62);
  --sombra: 0 2px 16px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--noite); color: var(--papel); }
body { font-family: 'EB Garamond', Garamond, Georgia, serif; font-size: 18px; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2;
        display: flex; justify-content: space-between; align-items: center;
        padding: 1rem 5vw; }
.marca { font-size: 1.6rem; font-style: italic; text-decoration: none;
         text-shadow: var(--sombra); }
.eu img, .eu .inicial { width: 38px; height: 38px; border-radius: 50%; display: block;
                        object-fit: cover; border: 1px solid rgba(245,236,220,.4); }
.eu .inicial { display: grid; place-items: center; background: var(--cartao); }

.botao, .botoes a { display: inline-block; border: 1px solid rgba(245,236,220,.45);
         background: rgba(12,9,6,.35); border-radius: 999px; padding: .55em 1.4em;
         text-decoration: none; font-size: 1.05rem; }
.botao.principal, .botoes .principal { background: var(--papel); color: #1d150c; border-color: var(--papel); }
.botao.entrar { font-size: .95rem; padding: .45em 1.1em; }
.botao.perigo { border-color: #c4554d; color: #f0a39d; }
.botoes { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* The featured work: its first scene, full width, the text in the dark
   fall-off at the bottom — the reader's own language, on the way in. */
.destaque { position: relative; min-height: 78vh; background-size: cover;
            background-position: center; display: flex; align-items: flex-end; }
.destaque::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--noite) 0%, rgba(20,17,13,.75) 35%, rgba(20,17,13,.1) 75%); }
.destaque > div { position: relative; padding: 0 5vw 6vh; max-width: 46rem; }
.destaque.obra { min-height: 100vh; }
.rotulo { font-style: italic; margin: 0 0 .3rem; opacity: .8; }
.destaque h1 { font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1;
               margin: 0; text-shadow: var(--sombra); }
.autor { font-style: italic; color: var(--apagado); margin: .5rem 0 0; font-size: 1.15rem; }
.sinopse { font-size: 1.2rem; line-height: 1.5; margin: 1rem 0 0; text-shadow: var(--sombra); }
.nota { color: var(--apagado); font-size: .95rem; margin-top: 1rem; }

/* The showcase: one story at a time, its scenes cross-fading behind it,
   the next story every few seconds when there is more than one. */
.vitrine { position: relative; height: 84vh; min-height: 480px; max-height: 900px; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end;
         opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.fundo, .fundo i { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.fundo i { background: center / cover no-repeat; opacity: 0; transition: opacity 2.2s ease; }
.fundo i.on { opacity: 1; animation: respira 40s ease-in-out infinite alternate; }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.08); } }
.fundo::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--noite) 0%, rgba(20,17,13,.78) 32%, rgba(20,17,13,.08) 72%),
              linear-gradient(to right, rgba(20,17,13,.55) 0%, rgba(20,17,13,0) 60%); }
.slide .texto { position: relative; padding: 0 5vw 10vh; max-width: 46rem; }
.slide h1 { font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1; margin: 0;
            text-shadow: var(--sombra); }
.pontos { position: absolute; left: 5vw; bottom: 4vh; display: flex; gap: .4rem; z-index: 2; }
.pontos button { width: 30px; height: 22px; padding: 0; border: 0; background: none; position: relative; }
.pontos button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px;
                        border-radius: 2px; background: rgba(245,236,220,.35); transition: background .3s; }
.pontos button.on::after { background: var(--papel); }

/* The rows are carousels: a track that scrolls sideways and snaps to its
   cards, the next one always peeking in so a reader knows there is more. */
.fileira { padding: 1.6rem 0 0; }
.fileira h2 { font-weight: 400; font-size: 1.5rem; margin: 0 0 .5rem; padding: 0 5vw; }
.fileira h2 i { font-style: italic; }
.carrossel { position: relative; }
.trilho { display: flex; gap: .9rem; overflow-x: auto; overscroll-behavior-x: contain;
          scroll-snap-type: x mandatory; scroll-padding: 0 5vw; padding: .5rem 5vw 1rem;
          scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { flex: 0 0 clamp(230px, 23vw, 330px); scroll-snap-align: start; }
@media (max-width: 600px) {
  .trilho > * { flex-basis: 74vw; }
  .vitrine { height: 78vh; }
}
.seta { position: absolute; top: .5rem; bottom: 1rem; z-index: 1; width: max(44px, 4.5vw);
        border: 0; font-size: 2.6rem; line-height: 1; opacity: 0; transition: opacity .2s ease; }
.seta.esq { left: 0; background: linear-gradient(to right, rgba(20,17,13,.9), rgba(20,17,13,0)); }
.seta.dir { right: 0; background: linear-gradient(to left, rgba(20,17,13,.9), rgba(20,17,13,0)); }
.carrossel:hover .seta, .seta:focus-visible { opacity: 1; }
@media (hover: none) { .seta { display: none; } }

.cartao { display: block; text-decoration: none; background: var(--cartao); border-radius: 10px;
          overflow: hidden; position: relative; transition: transform .25s ease; }
.cartao:hover { transform: translateY(-4px); }
.cartao .img { aspect-ratio: 16 / 9; background: #2a231b center / cover; position: relative; }
.cartao.breve .img { filter: brightness(.82); }
.cartao .info { padding: .7rem .9rem .9rem; }
.cartao .info b { display: block; font-weight: 500; font-size: 1.15rem; }
.cartao .info span { color: var(--apagado); font-size: .95rem; font-style: italic; }
.cartao .barra { height: 3px; background: rgba(245,236,220,.15); }
.cartao .barra i { display: block; height: 100%; background: var(--ouro); }
.selo { position: absolute; top: .6rem; left: .6rem; font-size: .75rem; letter-spacing: .08em;
        text-transform: uppercase; background: rgba(12,9,6,.7); padding: .2em .6em; border-radius: 4px; }

/* A story without pictures yet: a cover made of its title. */
.tipo { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
        align-items: center; justify-content: center; text-align: center; padding: 1rem 1.4rem;
        background: radial-gradient(ellipse at 30% 15%, rgba(255,240,215,.12), transparent 65%), var(--cor);
        box-shadow: inset 0 0 0 9px var(--cor), inset 0 0 0 10px rgba(245,236,220,.35); }
.tipo b { font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.tipo span { font-style: italic; font-size: .92rem; opacity: .75; margin-top: .45rem; }

.pagina { max-width: 40rem; margin: 0 auto; padding: 6rem 5vw 2rem; }
.pagina h1 { font-weight: 400; font-size: 2.4rem; margin: 0; }
.pagina h2 { font-weight: 400; margin-top: 2rem; }
.pagina.texto p { line-height: 1.55; }
.pagina form { display: inline-block; margin: 1.5rem .6rem 0 0; }
.numeros b { font-size: 1.5rem; font-weight: 500; }
.lista { list-style: none; padding: 0; }
.lista li { display: flex; justify-content: space-between; padding: .5rem 0;
            border-bottom: 1px solid rgba(245,236,220,.12); }
.lista span { color: var(--apagado); font-style: italic; }

.rodape { color: var(--apagado); font-size: .9rem; text-align: center; padding: 3rem 5vw 2rem; }
.rodape a { color: inherit; }
[hidden] { display: none !important; }
