/*
 * Sin framework ni build a propósito: son cuatro páginas de texto que tienen
 * que seguir abriendo dentro de diez años, cuando nadie se acuerde de cómo se
 * compilaban. Se publican tal cual están en el repo.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --text: #1c1c1e;
  --text-soft: #5b5b60;
  --primary: #2e4fa8;
  --border: #dfe2ea;
  --warning: #b32d2d;
  --warning-bg: #fdeaea;
  --width: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171b;
    --bg-soft: #1e2026;
    --text: #ececf0;
    --text-soft: #a5a7b0;
    --primary: #8fa9f0;
    --border: #2e3138;
    --warning: #ff8f8f;
    --warning-bg: #3a1f1f;
  }
}

* { box-sizing: border-box; }

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

header.site {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

header.site .content {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
}

header.site .brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

a { color: var(--primary); }

.date {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}

.summary p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th { background: var(--bg-soft); }

/* Datos que hay que completar antes de publicar. En rojo y a propósito
   imposibles de pasar por alto: publicar el sitio con uno de estos a la vista
   es peor que no publicarlo. */
.placeholder {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px dashed var(--warning);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.9em;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.cards li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
}

.cards h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.cards p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.9rem;
}

footer.site .content {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
}
