:root {
  --accent: #D62828;
  --accent-hover: #b01f1f;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --pico-font-family: var(--font-body);
  --pico-spacing: 0.25rem;
}
[data-theme="light"] {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1a1a18;
  --text-muted: #6b6b65;
  --rule: #ddddd8;
}
[data-theme="dark"] {
  --bg: #111110;
  --surface: #1c1c1b;
  --text: #f0f0ec;
  --text-muted: #9a9a92;
  --rule: #2e2e2c;
  --pico-background-color: #111110;
  --pico-color: #f0f0ec;
  --pico-muted-color: #9a9a92;
  --pico-muted-border-color: #2e2e2c;
  --pico-contrast: #f0f0ec;
  --pico-card-background-color: #1c1c1b;
}
html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.7;
  transition: background-color 0.2s ease, color 0.2s ease;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
header:has(h1) {
  display: flex;
  align-items: center;
  text-align: center;
  margin: clamp(1rem, 3vw, 2rem) auto clamp(0.5rem, 1.5vw, 1rem) auto;
  max-width: 42rem;
  gap: 1rem;
}
header:has(h1)::before,
header:has(h1)::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--rule);
}
h1 { margin: 0; }
h1 a {
  color: var(--text);
  text-decoration: none;
  font-style: italic;
}
h1 a:hover {
  color: var(--accent);
  text-decoration: none;
}
nav.header, nav.footer {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto calc(var(--pico-block-spacing-vertical) * 6) auto;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: calc(var(--pico-block-spacing-vertical) * 2);
}
nav.footer {
  border-bottom: none;
  border-top: 1px solid var(--rule);
  margin: calc(var(--pico-block-spacing-vertical) * 6) auto calc(var(--pico-block-spacing-vertical) * 4) auto;
  padding-top: calc(var(--pico-block-spacing-vertical) * 2);
  padding-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
nav.footer a { color: var(--text-muted); }
nav.footer a:hover { color: var(--accent); }
nav ul {
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  nav ul { flex-direction: row; align-items: center; justify-content: center; }
}
nav li { padding: 0 0.75rem; }
nav li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
nav li a:hover,
nav li a[aria-current] {
  color: var(--accent);
  text-decoration: none;
}
nav li a[aria-current] {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
nav li.muted { color: var(--rule); user-select: none; }
nav ul li[aria-hidden="true"] { display: none; }
@media (min-width: 768px) {
  nav ul li[aria-hidden="true"] { display: initial; }
}
#theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1.6;
}
#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.content { width: 100%; }
.aside {
  display: flex;
  flex-direction: column;
  margin-top: calc(var(--pico-block-spacing-vertical) * 8);
  padding-bottom: calc(var(--pico-block-spacing-vertical) * 4);
}
.aside:not(:last-child) { border-bottom: 1px solid var(--rule); }
.aside h2, .aside hgroup { padding-right: calc(var(--pico-block-spacing-horizontal) * 4); }
.aside hgroup { text-align: right; }
.aside h2 a, .aside h3 a { color: var(--text); }
.aside h2 a:hover, .aside h3 a:hover { color: var(--accent); }
.aside ul { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
@media (min-width: 768px) {
  .aside { flex-direction: row; }
  .aside h2, .aside hgroup { width: 15rem; flex-shrink: 0; }
}
@media (min-width: 992px) {
  .aside h2, .aside hgroup { width: 20rem; }
}
.article-body {
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
  flex-grow: 1;
}
.article-abstract {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background-color: var(--surface);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-style: italic;
}
blockquote {
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.tag, [data-tag] {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--rule);
  color: var(--text-muted);
  background: none;
  border-radius: 1px;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.tag:hover, [data-tag]:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.centered { text-align: center; }
.muted { color: var(--text-muted) !important; }
footer nav ul { margin: 0 auto !important; text-align: center; }
.home-numeros ul li,
.home-articles ul li {
  list-style: none;
}

.home-numeros ul li::before,
.home-articles ul li::before,
.home-numeros ul li::marker,
.home-articles ul li::marker {
  display: none;
  content: none;
}
.aside hgroup h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.aside hgroup h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.aside hgroup p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.aside hgroup h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.aside hgroup small {
  font-size: 0.75rem;
}
nav.footer {
  font-size: 0.75rem;
}
.read-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.read-link:hover {
  opacity: 0.75;
  text-decoration: none;
}
