@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0e0e0e;
    color: #ececec;
    font-size: 15px;
    line-height: 1.7;
}

#pagina {
    max-width: 980px;
    margin: 0 auto;
    padding: 36px 22px 60px;
}

header {
    padding: 40px 36px;
    margin-bottom: 28px;
    border-radius: 14px;
    background-color: #141414;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #7c3aed44, transparent 70%);
    pointer-events: none;
}

header h1 {
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

header p {
    color: #888;
    font-size: 14px;
}

nav {
    margin-bottom: 28px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

nav a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #333;
    background-color: #141414;
    color: #bbb;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    border-color: #7c3aed;
    color: #c4b5fd;
    background-color: #1a1025;
}

section {
    background-color: #141414;
    border: 1px solid #222;
    padding: 30px;
    margin-bottom: 22px;
    border-radius: 14px;
    transition: border-color 0.2s;
}

section:hover {
    border-color: #333;
}

section > h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
    letter-spacing: -0.02em;
}

#linha-do-tempo ol {
    list-style: none;
    padding: 0;
    position: relative;
    margin-top: 8px;
}

#linha-do-tempo ol::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #7c3aed, #06b6d4, #7c3aed);
    opacity: 0.4;
}

#linha-do-tempo ol li {
    position: relative;
    list-style: none;
    padding: 0 0 28px 120px;
    border: none;
    color: #ececec;
    font-size: 15px;
    min-height: 28px;
}

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

#linha-do-tempo ol li::before {
    content: attr(data-ano);
    position: absolute;
    left: 0;
    top: 2px;
    width: 72px;
    text-align: right;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #7c3aed;
    letter-spacing: 0.02em;
}

#linha-do-tempo ol li::after {
    content: '';
    position: absolute;
    left: 85px;
    top: 7px;
    width: 10px;
    height: 10px;
    background-color: #7c3aed;
    border-radius: 50%;
    border: 2px solid #0e0e0e;
    outline: 1px solid #7c3aed;
    z-index: 1;
}

article {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s, background 0.2s;
}

article:hover {
    border-color: #7c3aed55;
    background-color: #1c1626;
}

article:last-child {
    margin-bottom: 0;
}

article h3 {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

article p {
    font-size: 14px;
    color: #888;
    line-height: 1.65;
}

aside {
    background-color: #1a1200;
    border: 1px solid #3d2e00;
    border-left: 3px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: #d4a017;
}

aside h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: #f59e0b;
    font-size: 13px;
}

aside p { color: #a07a10; }

details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

summary::before {
    content: '▸';
    font-size: 11px;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary:hover { color: #a78bfa; }

details p {
    margin-top: 8px;
    background-color: #1a1a1a;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #888;
    border-left: 2px solid #7c3aed44;
}

blockquote {
    border-left: 3px solid #06b6d4;
    background-color: #061a1f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-style: italic;
    font-size: 14px;
    color: #7dd3fc;
}

code {
    font-family: 'Fira Code', monospace;
    background-color: #1a1a1a;
    color: #4ade80;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #2a2a2a;
}

pre {
    font-family: 'Fira Code', monospace;
    background-color: #0a0a0a;
    color: #4ade80;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #1e1e1e;
}

ul {
    padding-left: 18px;
    color: #888;
    font-size: 14px;
}

ul li { margin-bottom: 4px; }
ul li::marker { color: #7c3aed; }

section:not(#linha-do-tempo) ol {
    padding-left: 18px;
    color: #888;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #222;
}

table th {
    background-color: #1a1a1a;
    color: #a78bfa;
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
}

table td {
    padding: 11px 14px;
    border-bottom: 1px solid #1e1e1e;
    color: #888;
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background-color: #1a1626; }

caption {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 600;
}

tfoot td {
    color: #555;
    font-size: 12px;
    background-color: #111;
}

fieldset {
    border: 1px solid #2a2a2a;
    padding: 22px;
    border-radius: 10px;
    background-color: #111;
}

legend {
    font-weight: 600;
    font-size: 13px;
    color: #a78bfa;
    padding: 0 8px;
    letter-spacing: 0.04em;
}

label {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 9px 12px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    background-color: #0e0e0e;
    color: #ececec;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #7c3aed;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

input[type="submit"] {
    width: auto;
    margin-top: 18px;
    padding: 10px 24px;
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: background 0.2s, transform 0.15s;
}

input[type="submit"]:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

figcaption {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

abbr[title] {
    text-decoration: underline dotted #7c3aed;
    cursor: help;
}

strong { color: #e2e8f0; font-weight: 600; }
em     { color: #fbbf24; font-style: italic; }

footer {
    background-color: #141414;
    border: 1px solid #222;
    text-align: center;
    padding: 24px;
    border-radius: 14px;
    margin-top: 24px;
}

footer p {
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
}

footer address {
    font-style: normal;
    font-size: 12px;
    color: #3f3f3f;
}


@media (max-width: 768px) {
    nav ul { gap: 6px; }
    nav a  { font-size: 12px; padding: 6px 12px; }
    header { padding: 24px 20px; }
    section { padding: 20px 16px; }

    #linha-do-tempo ol::before { left: 50px; }
    #linha-do-tempo ol li {
        grid-template-columns: 42px 20px 1fr;
        gap: 0 8px;
    }
}
