/* Barrica — Documentos Legais
 * Estilo sóbrio, mobile-first, sem dependências externas.
 */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #6b3410; /* tom madeira/cachaça */
  --accent-soft: #b87a3d;
  --border: #e6e2da;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

header .inner,
main,
footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

header .brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
}

header .brand:hover {
  color: var(--accent-soft);
}

header nav {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1rem;
}

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

main {
  padding: 2rem 1rem 4rem;
}

h1 {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 700;
}

h1 + .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

p {
  margin: 0.6rem 0;
  white-space: pre-wrap;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Landing (index) */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  white-space: normal;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 0.4rem;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: normal;
}
