/* Papert Lab — Text-first research site */

:root {
  --bg: #faf9f6;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --link: #1a4d8f;
  --link-hover: #0a2d5f;
  --border: #e0ddd8;
  --max-width: 640px;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Navigation */

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Typography */

h1 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

em {
  font-style: italic;
}

/* Sections */

section {
  margin-bottom: 3rem;
}

.hero {
  margin-bottom: 3.5rem;
}

.tagline {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}

/* Essay List */

.essay-list {
  list-style: none;
}

.essay-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.essay-list li:first-child {
  border-top: 1px solid var(--border);
}

.essay-list a {
  color: var(--text);
  text-decoration: none;
}

.essay-list a:hover {
  text-decoration: underline;
}

.date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}

/* Paper List */

.paper-list {
  list-style: none;
}

.paper-list li {
  margin-bottom: 1rem;
  padding-left: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

footer a:hover {
  color: var(--text);
}

footer p {
  margin-bottom: 0.3rem;
}

/* Responsive */

@media (max-width: 500px) {
  body {
    padding: 2rem 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .essay-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .date {
    margin-left: 0;
  }
}
