@font-face { font-family: "Caveat"; src: url("../fontes/Caveat.ttf"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fontes/Lora.ttf"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fontes/Lora-Italic.ttf"); font-weight: 400 700; font-style: italic; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--suave); font: 400 1.0625rem/1.6 "Lora", Georgia, serif; }
h1, h2 { font-family: "Caveat", cursive; font-weight: 700; line-height: 1.05; margin: 0; color: var(--papel); }
h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin-bottom: .75rem; }
p { margin: 0; }
a { color: var(--acento); }

.topo { display: flex; align-items: flex-end; gap: 1rem; max-width: 68rem; margin: 0 auto; padding: 2rem 1rem 1.5rem; }
.topo img { flex: none; width: clamp(84px, 22vw, 130px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--acento); }
.topo p { max-width: 34ch; margin-top: .5rem; }

.mesa { display: grid; gap: 1.5rem; max-width: 68rem; margin: 0 auto; padding: 0 1rem 2.5rem; }
@media (min-width: 60rem) { .mesa { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); align-items: start; } .previa { position: sticky; top: 1rem; } }

.ficha { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 1.25rem; padding: 1.5rem 1.25rem; }
.peque { display: grid; grid-template-columns: 1fr 5.5rem auto; gap: .5rem; align-items: end; margin-bottom: .75rem; }
.campo, .peque label { display: block; font-size: .95rem; color: var(--suave); }
.campo { margin-top: 1.25rem; }
.opcional { opacity: .75; }
input { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit; font-size: 1.0625rem; color: var(--tinta); background: var(--papel); border: 2px solid transparent; border-radius: .6rem; }
input::placeholder { color: #9b8a6e; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.escolha { margin: 1.25rem 0 0; padding: 0; border: 0; font-size: .95rem; }
.escolha legend { padding: 0; margin-bottom: .4rem; }
.escolha label { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: 1.0625rem; color: var(--papel); }
.escolha input { display: inline-block; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--acento); }
small { display: block; margin-top: .4rem; font-size: .875rem; line-height: 1.45; opacity: .85; }

button { font: inherit; cursor: pointer; border-radius: 999px; }
.principal { display: block; width: 100%; margin-top: 1.75rem; padding: 1rem 1.25rem; font-weight: 700; font-size: 1.15rem; color: var(--acento-tinta); background: var(--acento); border: 0; }
.principal:hover { filter: brightness(1.06); }
.principal:disabled { opacity: .6; cursor: progress; }
.secundario { padding: .55rem 1rem; color: var(--papel); background: transparent; border: 1.5px solid var(--linha); }
.secundario:hover { border-color: var(--acento); }
.tirar { padding: .7rem .8rem; color: var(--suave); background: transparent; border: 0; text-decoration: underline; font-size: .9rem; }
.estado { min-height: 1.6em; margin-top: .75rem; color: var(--papel); font-weight: 600; }
.privado { margin-top: .25rem; font-size: .875rem; opacity: .8; }

.abas { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.abas button { padding: .45rem .9rem; color: var(--suave); background: transparent; border: 1.5px solid var(--linha); }
.abas button[aria-selected="true"] { color: var(--acento-tinta); background: var(--acento); border-color: var(--acento); font-weight: 600; }
#folha { display: block; width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, .35); background: var(--papel); }

.depois, .hoje { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.depois ol { margin: 0; padding-left: 1.3rem; }
.depois li { margin-bottom: .7rem; padding-left: .25rem; }
.depois strong { color: var(--papel); }
.hoje { background: var(--papel); color: var(--tinta); border-radius: 1.25rem; padding: 1.5rem 1.25rem; margin-bottom: 2rem; width: calc(100% - 2rem); }
.hoje h2 { color: #2f5d3a; }
.hoje .dia { font-weight: 700; font-size: 1.15rem; }
.hoje .vispera { margin-top: .4rem; }
.hoje .pista { margin-top: .9rem; font-family: "Caveat", cursive; font-size: 1.5rem; line-height: 1.25; color: #2f5d3a; }
.hoje .passo { display: flex; gap: .5rem; margin-top: 1.1rem; }
.hoje .secundario { color: var(--tinta); border-color: #c9b88f; }

.rodape { max-width: 44rem; margin: 0 auto; padding: 0 1rem 3rem; font-size: .9rem; opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .principal, .secundario, .abas button { transition: filter .15s, border-color .15s, background-color .15s; } }
