/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables - Humanist palette */
:root {
  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-bg: #f9f6e8;
  --color-bg-alt: #f3f0e0;
  --color-link: #6b5b4f;
  --color-link-hover: #4a3f35;
  --color-border: #e8e4df;
  --color-accent: #8b7355;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --max-width: 680px;
}

/* Base */
html {
  font-size: 20px;
  line-height: 1.75;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: var(--color-bg);
  padding: 3rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

::selection {
  background: rgba(139, 115, 85, 0.2);
}

/* Tipografía */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Header */
header {
  margin-bottom: 4rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  font-size: 1.1rem;
  font-weight: 500;
}

nav a {
  color: var(--color-text-muted);
}

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

/* Footer */
footer {
  margin-top: 5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Home */
.bio {
  margin-bottom: 2rem;
}

.links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Articles list */
.articles-list {
  list-style: none;
}

.articles-list li {
  margin-bottom: 2rem;
}

.articles-list time {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.articles-list h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.articles-list p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Article */
.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 600;
}

.article-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.article-header time {
  display: block;
  text-align: right;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.article-content {
  margin-bottom: 3rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.article-content code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.875em;
  background: var(--color-bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.article-content pre {
  background: var(--color-bg-alt);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-footer {
  border-top: none;
  margin-top: 2rem;
  padding-top: 0;
}

/* Dialogue styling */
.dialogue-intro {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.speaker {
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
