:root {
  --bg: #2A2A2A;
  --bg-elevated: #353535;
  --text: #F5F1E8;
  --text-muted: #B8B0A0;
  --accent: #C5A572;
  --rule: #4A4A4A;
  --max-width: 720px;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 2rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

h3 a:hover {
  border-bottom-color: var(--accent);
}

p {
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 600px;
}

.deck {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.piece {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.piece:last-child {
  border-bottom: none;
}

.subscribe {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
}

.subscribe a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.subscribe a:hover {
  border-bottom-color: var(--accent);
}

/* About page specific */
.about-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.about-title h1 {
  margin-bottom: 0.5rem;
}

.formal-name {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.about p,
.page-intro p {
  font-size: 1.05rem;
  max-width: 620px;
}

.about a,
main a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.about a:hover,
main a:hover {
  border-bottom-color: var(--accent);
}

/* Publications / citations */
.publications {
  margin-top: 3rem;
}

.citation-list {
  list-style: none;
  padding: 0;
}

.citation-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  max-width: 620px;
}

.citation-list em {
  color: var(--text);
}

.citation-list .abstract {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-left: 0;
  text-indent: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
  max-width: 600px;
}

.scholar-links {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.scholar-links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.scholar-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Garage / gallery */
.hero-photo {
  margin: 3rem 0 4rem;
  max-width: 100%;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
  display: block;
}

.hero-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 0;
  margin-bottom: 3rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.garage-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.garage-note p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
}

.garage-note a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.garage-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.garage-note .photo-credit {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
}

footer .footer-links {
  margin-bottom: 0.5rem;
}

footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

footer .footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 2.5rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .about-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .headshot {
    width: 120px;
    height: 120px;
  }
}
