:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #2b2724;
  --muted: #6b635c;
  --accent: #9a6b4f;
  --border: #e8e2db;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1816;
    --surface: #23201d;
    --text: #ece7e1;
    --muted: #a9a097;
    --accent: #d4a283;
    --border: #3a3531;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 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;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Encabezado */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Contenido */
main { flex: 1; padding: 48px 0 64px; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.25;
}
h1 { font-size: 2.2rem; margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 40px 0 10px; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }

/* Portada */
.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font-size: 3rem; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.button:hover { border-color: var(--accent); color: var(--accent); }

/* Pie de página */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.3rem; }
  main { padding: 32px 0 48px; }
}
