/* Zachari Pond — academic site stylesheet */

:root {
  --text: #1a1a1a;
  --muted: #555;
  --accent: #003262;      /* Berkeley blue */
  --accent-2: #FDB515;    /* California gold, used sparingly */
  --rule: #e2e2e2;
  --bg: #ffffff;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }

/* Content links: visibly underlined */
main a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 50, 98, 0.45);
  text-underline-offset: 2px;
}
main a:hover { text-decoration-color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0 0.85rem;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--text);
}

nav { margin-top: 0; }

nav a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-right: 1.3rem;
}

nav a:last-child { margin-right: 0; }
nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent-2); padding-bottom: 2px; }
nav a:hover { color: var(--accent); text-decoration: none; }

main { padding: 1.5rem 0 2.5rem; }

h1 { font-size: 1.5rem; margin: 0 0 0.8rem; }
h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
}
h2:first-child { margin-top: 0; }
h3 { font-size: 1rem; margin: 1.1rem 0 0.3rem; }

.muted { color: var(--muted); }
.small {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Home page intro layout */
.intro {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.intro-photo { flex: 0 0 190px; }

.intro-photo img {
  width: 190px;
  border-radius: 4px;
  display: block;
}

.intro-text { flex: 1 1 20rem; }
.intro-text p:first-child { margin-top: 0; }
.intro-text p { margin: 0.7rem 0; }

/* Paper entries */
.paper { margin-bottom: 1.05rem; }
.paper-title { font-weight: bold; }

.venue { color: var(--muted); }

.authors {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0.15rem 0 0;
}

.paper p.muted {
  line-height: 1.55;
  margin: 0.2rem 0 0;
}

.paper-links {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
}
.paper-links a { margin-right: 0.9rem; }

details.abstract { margin-top: 0.1rem; }
details.abstract summary {
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
}
details.abstract p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 1.6rem;
}

/* Mobile */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .intro { gap: 1.2rem; }
  .intro-photo, .intro-photo img { width: 150px; flex-basis: 150px; }
  nav a { margin-right: 0.9rem; }
}
