/* ==========================================================================
   Minimal theme — plain text, EB Garamond, Harvard Crimson accents
   ========================================================================== */

:root {
  --accent: #A41034;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #d8d4ce;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "EB Garamond", Garamond, serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: #fdfdfb;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
}

h1.name {
  font-size: 2.1em;
  margin: 0 0 0.3em;
}

h2 {
  font-size: 1.3em;
  margin-top: 2.2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--rule);
}

p {
  margin: 0 0 1em;
}

/* ---- header / nav ---- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  font-size: 1.3em;
}

.site-name {
  font-weight: 600;
  color: var(--text);
}

.site-name:hover {
  border-bottom-color: var(--text);
}

.site-nav a {
  margin-left: 1.2em;
  color: var(--text);
}

.site-nav a:first-child {
  margin-left: 0;
}

/* ---- homepage ---- */

.bio p {
  margin-bottom: 1.1em;
}

.home-photo {
  text-align: center;
  margin-top: 2.5rem;
}

.home-photo img {
  width: 250px;
  height: auto;
}

/* ---- footer ---- */

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9em;
  color: var(--muted);
}

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

/* ---- publications / research list ---- */

.paper {
  margin-bottom: 1.8em;
}

.paper-title {
  font-size: 1.05em;
  margin: 0 0 0.15em;
}

.paper-title a {
  font-weight: 600;
}

.paper-meta {
  font-size: 0.85em;
  color: var(--muted);
  margin: 0 0 0.4em;
  font-style: italic;
}

.paper-summary {
  font-size: 0.85em;
  margin: 0 0 0.4em;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
  font-size: 0.92em;
}

.paper-commentary a {
  color: var(--accent);
}

.paper-abstract {
  color: var(--text);
}

.paper-abstract summary {
  cursor: pointer;
  color: var(--accent);
  list-style: none;
}

.paper-abstract summary::-webkit-details-marker {
  display: none;
}

.paper-abstract summary::before {
  content: "+ ";
}

.paper-abstract[open] summary::before {
  content: "\2212\0020";
}

.paper-abstract p {
  margin-top: 0.5em;
  color: var(--muted);
}

.paper-media {
  font-size: 0.85em;
  color: var(--muted);
  margin: 0.5em 0 0;
}

/* ---- CV ---- */

.cv-pdf-link {
  font-size: 0.9em;
  margin-bottom: 0;
}

.cv-header h1.name {
  margin-bottom: 0.2em;
}

.cv-header p {
  color: var(--muted);
}

.cv-row {
  display: flex;
  margin-bottom: 0.9em;
}

.cv-date {
  flex: 0 0 7.5em;
  color: var(--muted);
  font-size: 0.9em;
}

.cv-desc {
  flex: 1;
}

ol.cv-list {
  padding-left: 1.3em;
}

ul.cv-list.cv-list--unmarked {
  list-style: none;
  padding-left: 0;
}

.cv-list li {
  margin-bottom: 0.9em;
}

@media (max-width: 500px) {
  body {
    font-size: 18px;
    padding: 2rem 1.2rem 3rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 0.5em;
  }

  .site-nav a:first-child {
    margin-left: 0;
  }

  .cv-row {
    flex-direction: column;
  }

  .cv-date {
    margin-bottom: 0.2em;
  }
}
