/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f7f4ef;
  --bg-alt:   #efebe3;
  --text:     #1c1c1c;
  --muted:    #6b6560;
  --accent:   #7a1f1f;
  --border:   #d9d3c8;
  --max:      720px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header & Nav ──────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.site-title:hover { color: var(--accent); }

nav { display: flex; gap: 1.8rem; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover,
nav a.ativo { color: var(--accent); }

nav a.ativo { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* ─── Main ──────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ─── Início ────────────────────────────────────────────────── */
.inicio-nome {
  font-size: 2.8rem;
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.inicio-titulo {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.inicio-intro {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 600px;
}

.divisor {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.secao-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ─── Listas de textos / notas ──────────────────────────────── */
.lista { list-style: none; }

.lista li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.lista li:first-child { border-top: 1px solid var(--border); }

.lista-titulo {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.lista-titulo:hover { color: var(--accent); }

.lista-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Página de textos ──────────────────────────────────────── */
.page-titulo {
  font-size: 1.9rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.page-subtitulo {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* ─── Nota individual ───────────────────────────────────────── */
.nota-cabecalho { margin-bottom: 2.5rem; }

.nota-titulo {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.nota-data {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.nota-corpo { font-size: 1.05rem; }

.nota-corpo p { margin-bottom: 1.4rem; }

.nota-corpo h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2rem 0 0.75rem;
}

.voltar {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.voltar:hover { color: var(--accent); }

/* ─── Contato ───────────────────────────────────────────────── */
.contato-intro {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

form { display: flex; flex-direction: column; gap: 1.2rem; }

label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

input, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus { border-color: var(--accent); }

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

button[type="submit"] {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: #5c1515; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ─── Responsivo ────────────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 1.2rem 1.2rem; }
  nav { gap: 1.2rem; }
  main { padding: 2.5rem 1.2rem 4rem; }
  .inicio-nome { font-size: 2rem; }
}
