:root {
  --bg:        #0d0a12;
  --surface:   #1c1522;
  --muted:     #6b5c72;
  --dust:      #b0a0b8;
  --cream:     #f0e8d8;
  --highlight: #c9a87c;
  --accent:    #9b6fa0;
  --fence:     #4a3d52;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(155, 111, 160, 0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23ffffff' fill-opacity='0.015'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23ffffff' fill-opacity='0.015'/%3E%3C/svg%3E");
}

/* ─── Wrapper ─── */
.wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

/* ─── Header ─── */
header {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--fence);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.site-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 0 28px rgba(155, 111, 160, 0.35);
}

/* ─── Publications heading ─── */
.page-heading {
  font-family: 'IM Fell English', serif;
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 8px; /* antes era 40px */
  letter-spacing: 0.02em;
}

.page-heading-publications {
  font-family: 'IM Fell English', serif;
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* ─── Sections ─── */
main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

section { animation: fadeIn 0.6s ease both; }
section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.12s; }
section:nth-child(3) { animation-delay: 0.19s; }
section:nth-child(4) { animation-delay: 0.26s; }
section:nth-child(5) { animation-delay: 0.33s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--dust);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ─── Publication list ─── */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
}

.bullet {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}

.pub-date {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pub-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.pub-link:hover {
  color: var(--highlight);
  text-decoration: none;
}

.semicolon {
  color: var(--fence);
  margin-left: 2px;
}

/* ─── Footer ─── */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--fence);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--dust);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-sep {
  color: var(--fence);
  margin: 0 4px;
  user-select: none;
}

.footer-copy {
  color: var(--dust);
  font-size: 13px;
  white-space: nowrap;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fence); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

::selection {
  background: rgba(155, 111, 160, 0.35);
  color: var(--cream);
}
