* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f7f5f2;

    color: #292524;
}

.container {
    width: min(1100px, 90%);

    margin: 0 auto;
}

.cabecalho {
    background: #ffffff;

    border-bottom:
        1px solid #e5e0da;
}

.navegacao {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    text-decoration: none;

    color: #292524;

    font-size: 24px;

    font-weight: bold;
}

.links {
    display: flex;

    gap: 24px;
}

.links a {
    text-decoration: none;

    color: #57534e;
}

.hero {
    padding: 90px 0;

    background: #e9e1d7;
}

.hero h1 {
    margin: 10px 0;

    font-size: clamp(42px, 7vw, 76px);

    line-height: 0.95;
}

.hero p {
    max-width: 600px;

    font-size: 18px;

    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;

    font-weight: bold;
}

.filtros {
    display: flex;

    gap: 15px;

    padding: 35px 0;
}

.filtros input,
.filtros select,
.admin input,
.admin textarea {
    width: 100%;

    padding: 13px;

    border:
        1px solid #d6d0ca;

    border-radius: 7px;

    font: inherit;

    background: #ffffff;
}

.filtros input {
    flex: 1;
}

.filtros select {
    max-width: 250px;
}

.grid-poemas {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 25px;

    padding-bottom: 80px;
}

.card-poema {
    background: white;

    border:
        1px solid #e5e0da;

    border-radius: 12px;

    padding: 25px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.04);
}

.categoria {
    display: inline-block;

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 11px;

    font-weight: bold;

    color: #8a6a48;
}

.card-poema h2 {
    margin-bottom: 5px;
}

.data {
    color: #78716c;

    font-size: 14px;
}

.card-poema p {
    line-height: 1.6;
}

.botao {
    display: inline-block;

    border: 0;

    background: #292524;

    color: white;

    padding: 11px 18px;

    border-radius: 6px;

    text-decoration: none;

    cursor: pointer;

    font-size: 14px;
}

.botao.secundario {
    background: #d6d0ca;

    color: #292524;
}

.botao.pequeno {
    padding: 8px 12px;
}

.excluir {
    background: #9b3a32;
}

.sobre {
    background: #ffffff;

    padding: 50px 0 0;

    overflow: hidden;
}

.sobre-container {
    display: grid;

    grid-template-columns: 1fr 380px;

    align-items: center;

    column-gap: 50px;
}

.sobre-texto {
    padding-bottom: 50px;
}

.sobre-texto h2 {
    margin-top: 10px;

    font-size: 44px;

    line-height: 1.1;
}

.sobre-texto p {
    max-width: 700px;

    font-size: 17px;

    line-height: 1.8;

    color: #57534e;

    text-align: justify;
}

.sobre-foto {
    margin: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    overflow: visible;
}

.sobre-foto img {
    display: block;

    height: 100%;

    width: auto;

    max-width: 100%;

    object-fit: contain;

    object-position: center bottom;

    filter: saturate(0.95);
}

.rodape {
    padding: 30px 0;

    background: #292524;

    color: white;
}

.pagina-poema {
    padding-top: 60px;

    padding-bottom: 100px;
}

.pagina-poema article {
    max-width: 750px;

    margin-top: 50px;
}

.pagina-poema h1 {
    font-size: 56px;

    line-height: 1.05;
}

.texto-poema {
    white-space: pre-line;

    font-family:
        Georgia,
        serif;

    font-size: 21px;

    line-height: 2;

    margin-top: 40px;
}

.voltar {
    color: #57534e;

    text-decoration: none;
}

.admin {
    padding-top: 60px;

    padding-bottom: 100px;
}

.admin form {
    max-width: 800px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.admin textarea {
    resize: vertical;
}

.checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;
}

.checkbox input {
    width: auto;
}

.acoes-form {
    display: flex;

    gap: 10px;

    margin-top: 10px;
}

.admin-item {
    background: white;

    border:
        1px solid #e5e0da;

    padding: 20px;

    margin-bottom: 12px;

    border-radius: 8px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.admin-acoes {
    display: flex;

    gap: 8px;
}

@media (max-width: 700px) {

    .links {
        gap: 10px;

        font-size: 14px;
    }

    .filtros {
        flex-direction: column;
    }

    .filtros select {
        max-width: none;
    }

    .pagina-poema h1 {
        font-size: 40px;
    }

    .admin-item {
        flex-direction: column;

        align-items: flex-start;
    }

}
/* Checkpoint 2: semântica, responsividade e acesso editorial */
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a46c28;
  outline-offset: 3px;
}
.pular-conteudo {
  position: absolute; top: -70px; left: 12px; padding: 12px 20px;
  background: #292524; color: white; z-index: 999;
}
.pular-conteudo:focus { top: 12px; }
.links { align-items: center; flex-wrap: wrap; }
.links a:hover, .voltar:hover, .card-poema h3 a:hover { text-decoration: underline; }
.links .link-admin { font-weight: 700; color: #8a572f; }
.secao-poemas { padding-top: 38px; }
.secao-poemas h2 { font-size: 30px; margin: 0 0 8px; }
.filtros { padding: 20px 0 8px; }
.campo-filtro { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.campo-filtro label { font-weight: 600; font-size: 14px; }
.categoria-filtro { max-width: 250px; }
.filtros select { max-width: none; }
.estado-lista { font-size: 14px; color: #57534e; min-height: 20px; margin: 12px 0 24px; }
.card-poema { display: flex; flex-direction: column; align-items: flex-start; }
.card-poema h3 { font-size: 24px; margin: 16px 0 8px; }
.card-poema h3 a { text-decoration: none; }
.card-poema > p:not(.data) { flex-grow: 1; overflow-wrap: anywhere; }
.card-poema .botao { margin-top: auto; }
.grid-poemas { align-items: stretch; }
.mensagem-vazia { padding: 22px 0 60px; }
.botao:hover { background: #4b4036; }
.botao.secundario:hover { background: #bdb1a3; }
.botao.excluir:hover { background: #822f29; }
.botao:disabled { cursor: wait; opacity: .65; }
.sobre-container { grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); }
.sobre-foto { align-self: center; }
.sobre-foto img { display: block; width: 100%; height: auto; object-fit: contain; }
.pagina-poema { padding-top: 54px; }
.pagina-poema .artigo-poema { margin: 42px auto 0; max-width: 760px; }
.pagina-poema h1 { font-size: clamp(36px, 7vw, 56px); overflow-wrap: anywhere; }
.autor-poema { color: #78716c; }
.texto-poema {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.9;
  margin: 40px 0 0;
}
.admin-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.admin-topo .botao { white-space: nowrap; }
.admin h1 { font-size: clamp(28px, 5vw, 40px); }
.admin-formulario { margin: 40px 0 50px; }
.admin-formulario h2 { font-size: 26px; }
.admin input[type="checkbox"] { width: auto; }
.admin input, .admin textarea { max-width: 100%; }
.admin textarea { resize: vertical; min-height: 180px; }
.admin label:not(.checkbox) { font-weight: 600; margin-top: 8px; }
.checkbox { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.acoes-form { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.admin-lista { padding-top: 35px; }
.admin-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e5e0da; border-radius: 10px;
  padding: 18px; margin: 12px 0;
}
.admin-item h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.admin-item p { margin: 0; color: #57534e; }
.admin-acoes { display: flex; gap: 10px; flex-shrink: 0; }
.acesso { padding: 80px 0 120px; max-width: 650px; }
.acesso h1 { font-size: clamp(30px, 5vw, 46px); }
.form-login { display: flex; flex-direction: column; gap: 12px; max-width: 430px; margin-top: 30px; }
.form-login label { font-weight: 600; }
.form-login input {
  border: 1px solid #d6d0ca; border-radius: 7px; padding: 13px;
  font: inherit; background: white;
}
.form-login .botao { align-self: flex-start; margin-top: 6px; }
#erroLogin { color: #9b3a32; min-height: 20px; }
.pagina-erro { padding: 100px 0 160px; }
.rodape { margin-top: auto; }

@media (max-width: 800px) {
  .sobre-container { grid-template-columns: 1fr 240px; column-gap: 25px; }
  .sobre-texto h2 { font-size: 35px; }
}
@media (max-width: 650px) {
  .navegacao { flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .logo { font-size: 22px; }
  .links { width: 100%; gap: 18px; font-size: 14px; }
  .hero { padding: 65px 0; }
  .filtros { flex-direction: column; }
  .categoria-filtro { max-width: none; }
  .grid-poemas { grid-template-columns: 1fr; }
  .sobre-container { grid-template-columns: 1fr; row-gap: 0; }
  .sobre { padding-top: 45px; }
  .sobre-texto { padding-bottom: 26px; }
  .sobre-foto { width: min(275px, 100%); justify-self: center; justify-content: center; }
  .sobre-foto img { width: 100%; height: auto; }
  .admin-topo { flex-direction: column; }
  .admin-item { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.card-poema.em-destaque { border-color: #c8a984; background: #fffcf7; }
