/* =========================================================
   Uma breve história da tecnologia — folha de estilo
   Projeto de estudo (HTML + CSS)
   ========================================================= */

:root {
    --azul-escuro: #10233f;
    --azul: #1d4e89;
    --azul-claro: #4f83c2;
    --ambar: #c9822e;
    --tinta: #22303f;
    --tinta-suave: #5a6b7b;
    --papel: #f4f1ea;
    --cartao: #ffffff;
    --linha: #e2ddd2;
    --largura: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background-color: var(--papel);
    color: var(--tinta);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- Cabeçalho ---------- */

header {
    background-image: linear-gradient(160deg, var(--azul) 0%, var(--azul-escuro) 100%);
    color: #fff;
    text-align: center;
    padding: 64px 20px 44px;
}

.header-conteudo {
    max-width: var(--largura);
    margin: 0 auto;
}

.sobrescrito {
    margin: 0 0 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--azul-claro);
}

header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.15;
}

.subtitulo {
    max-width: 46ch;
    margin: 16px auto 0;
    color: #d5e2f2;
    font-size: 1.1rem;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 36px;
}

header nav a {
    padding: 10px 16px;
    color: #eaf1fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

header nav a:hover,
header nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.16);
}

/* ---------- Conteúdo ---------- */

main {
    max-width: var(--largura);
    margin: -28px auto 0;
    padding: 40px clamp(20px, 5vw, 48px);
    background-color: var(--cartao);
    border: 1px solid var(--linha);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(16, 35, 63, 0.12);
}

section + section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--linha);
}

h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0 0 20px;
    color: var(--azul-escuro);
}

h3 {
    font-size: 1.2rem;
    margin: 28px 0 8px;
    color: var(--tinta);
}

p {
    margin: 0 0 16px;
}

article strong {
    color: var(--azul);
}

/* ---------- Linha do tempo ---------- */

.linha-do-tempo {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--linha);
}

.linha-do-tempo li {
    position: relative;
    padding: 4px 0 20px 28px;
}

.linha-do-tempo li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--ambar);
    border: 3px solid var(--cartao);
}

.linha-do-tempo li:last-child {
    padding-bottom: 0;
}

.linha-do-tempo .ano {
    display: block;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--azul);
}

.linha-do-tempo p {
    margin: 2px 0 0;
}

/* ---------- Fontes ---------- */

.lista-fontes {
    margin: 0 0 16px;
    padding-left: 20px;
}

.lista-fontes li {
    margin-bottom: 6px;
}

.lista-fontes span {
    color: var(--tinta-suave);
}

.nota {
    font-size: 0.92rem;
    color: var(--tinta-suave);
    font-style: italic;
}

/* ---------- Rodapé ---------- */

footer {
    margin-top: 56px;
    background-color: var(--azul-escuro);
    color: #cdd8e6;
    padding: 44px 20px 28px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
}

.colunas-footer {
    list-style: none;
    max-width: var(--largura);
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.colunas-footer > li {
    flex: 1 1 200px;
}

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

.coluna li {
    margin-bottom: 8px;
}

.titulo-coluna {
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 12px;
}

footer a {
    color: #cdd8e6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
    border-bottom-color: var(--azul-claro);
}

.assinatura {
    max-width: var(--largura);
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ea3bd;
}

/* ---------- Responsivo ---------- */

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    header {
        padding-top: 44px;
    }

    header nav {
        margin-top: 28px;
    }

    main {
        margin-left: 12px;
        margin-right: 12px;
        padding: 28px 20px;
    }

    section + section {
        margin-top: 36px;
        padding-top: 28px;
    }
}

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