:root {
    --tinta: #625d5e;
    --primaria: #928a8d;
    --primaria-clara: #c8b1b6;
    --fundo: #fff;
    --fundo-suave: #f8f9fa;
    --linha: #dee2e6;
    --realce: #fff3cd;
    --sombra: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --letra: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --raio: 0.375rem;
}

* { box-sizing: border-box; }

html { height: 100%; width: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    width: 100%;
    min-width: 100vw;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--fundo);
    color: var(--tinta);
    font-family: var(--letra);
    font-size: 1rem;
    line-height: 1.6;
}

a { color: var(--primaria); text-decoration: none; }
a:hover { color: var(--primaria-clara); }

button, input { font-family: inherit; }

.sr, .saltar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.saltar:focus {
    position: fixed;
    top: .5rem;
    left: .5rem;
    width: auto;
    height: auto;
    clip: auto;
    background: #fff;
    color: var(--tinta);
    padding: .4rem .7rem;
    z-index: 5;
}

.topo {
    position: sticky;
    top: 0;
    z-index: 2;
}

.barra {
    display: flex;
    width: 100%;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: var(--tinta);
    color: #fff;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #fff;
    font-size: calc(1.275rem + 0.3vw);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.marca:hover { color: #fff; }

.marca img { height: 90px; width: auto; }

.nome-marca span {
    font-size: 1rem;
    font-weight: 400;
}

.livros-nav {
    display: flex;
    gap: .2rem;
    overflow-x: auto;
    width: 100%;
    padding: .4rem 1.5rem;
    background: var(--fundo-suave);
    border-bottom: 1px solid var(--linha);
}

.livros-nav a {
    flex: 0 0 auto;
    padding: .2rem .5rem;
    border-radius: var(--raio);
    color: var(--tinta);
    font-size: .95rem;
    font-weight: 600;
}

.livros-nav a.entrada-nt {
    margin-right: .45rem;
    padding-right: .75rem;
    border-right: 1px solid var(--linha);
    border-radius: var(--raio) 0 0 var(--raio);
}

.livros-nav a.ativo,
.livros-nav a:hover {
    background: var(--tinta);
    color: #fff;
}

.pesquisa-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    flex: 1;
    max-width: 28rem;
}

.pesquisa {
    display: flex;
    width: 100%;
    background: #fff;
    border-radius: var(--raio);
    overflow: hidden;
}

.so-parte {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: .85rem;
}

.pesquisa input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--tinta);
    font-size: 1rem;
    padding: .65rem .9rem;
}

.pesquisa input:focus { outline: none; }

.pesquisa button {
    border: 0;
    background: var(--primaria);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    padding: 0 1rem;
    cursor: pointer;
}

.pesquisa button:hover { background: var(--tinta); }

main {
    flex: 1;
    width: min(74rem, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

h1 {
    margin: 0;
    color: var(--tinta);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.olho {
    margin: 0 0 .35rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primaria);
}

.capa { max-width: 40rem; }

.capa blockquote {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    background: var(--fundo-suave);
    border-left: 4px solid var(--primaria);
    border-radius: var(--raio);
}

.capa blockquote p { margin: 0; font-size: 1.15rem; }

.capa blockquote footer {
    margin-top: .4rem;
    font-size: .85rem;
    color: var(--primaria);
}

.capa h2 {
    margin: 1.75rem 0 .6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tinta);
}

.info p { margin: .9rem 0 0; }

.ligacoes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ligacoes a {
    font-weight: 600;
}

.entrada { color: var(--tinta); }

.grelha {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.cartao {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 5.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: var(--raio);
    color: var(--tinta);
    box-shadow: var(--sombra);
}

.cartao:hover, .cartao:focus-visible {
    color: var(--tinta);
    border-color: var(--primaria-clara);
}

.abrev { font-size: 1.35rem; font-weight: 700; }

.nome { font-size: .95rem; color: var(--primaria); }

.leitura { width: min(42rem, 100%); }

.caps {
    display: flex;
    gap: .35rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
}

.caps a {
    flex: 0 0 auto;
    min-width: 2.15rem;
    padding: .3rem .5rem;
    border-radius: var(--raio);
    text-align: center;
    color: var(--primaria);
    font-weight: 600;
}

.caps a.ativo, .caps a:hover {
    background: var(--tinta);
    color: #fff;
}

.versiculos { font-size: 1.125rem; line-height: 1.4; }

.v { margin: 0 0 .35rem; }

.vn {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primaria);
    vertical-align: super;
    margin-right: .3rem;
}

.com-nota {
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #000;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.com-nota:hover, .com-nota:focus-visible {
    color: #000;
    background: #f3eef0;
    border-radius: .15em;
}

.acr { color: var(--primaria); }

mark {
    background: var(--realce);
    color: inherit;
    padding: 0 .05em;
}

.passar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.resultados h1 { margin-bottom: .4rem; }

.resultados ol {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.resultados a {
    display: block;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: var(--raio);
    color: var(--tinta);
    box-shadow: var(--sombra);
}

.resultados a:hover { color: var(--tinta); border-color: var(--primaria-clara); }

.resultados .ref {
    display: block;
    margin-bottom: .25rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primaria);
}

.nota {
    position: fixed;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(70vh, 32rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--linha);
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    padding: 1rem 1.15rem 1.3rem;
}

.nota[hidden] { display: none; }

.nota-topo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
}

.nota h2 {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primaria);
}

.nota button {
    border: 0;
    background: var(--primaria);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--raio);
    padding: .55rem .9rem;
    cursor: pointer;
}

.nota button:hover { background: var(--tinta); }

#nota-texto {
    margin: .75rem 0 0;
    overflow: auto;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: var(--letra), "Segoe UI Historic", "Noto Sans Syriac", sans-serif;
}

.rodape {
    margin-top: auto;
    width: 100%;
    background: var(--tinta);
    color: #fff;
    padding: 1.25rem 1.5rem;
    font-size: .875rem;
}

.rodape p { margin: 0; }

.rodape a { color: #fff; }
.rodape a:hover { color: var(--primaria-clara); }

@media (min-width: 1200px) {
    .marca { font-size: 1.5rem; }
}

@media (min-width: 1100px) {
    .nota {
        top: 11rem;
        right: 1.25rem;
        bottom: 1.25rem;
        left: auto;
        width: 22rem;
        max-height: none;
        border: 1px solid var(--linha);
        border-radius: var(--raio);
    }
}

@media (max-width: 640px) {
    .barra { flex-wrap: wrap; padding: .75rem 1rem; }
    .pesquisa-form { max-width: none; flex-basis: 100%; align-items: stretch; }
    main { width: min(74rem, calc(100% - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
