/* Matthew Hogancamp — academic site
   Plain static CSS, no build step. */

:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e2e2e2;
  --link: #7a1f1f;       /* deep red, echoes the CV color scheme */
  --link-hover: #a83232;
  --bg: #ffffff;
  --accent-bg: #faf8f6;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

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

/* ---------- Header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
header.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 0;
}
.site-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin: 0;
}
.site-name a { color: var(--ink); text-decoration: none; }
.site-role {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.15rem 0 1rem;
}
nav.main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  padding-bottom: 0.9rem;
}
nav.main a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--link); }
nav.main a.active {
  color: var(--ink);
  border-bottom-color: var(--link);
}

/* ---------- Typography ---------- */
h1 { font-size: 1.7rem; margin: 0 0 1rem; }
h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ---------- Home / profile ---------- */
.profile {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile .photo {
  width: 170px;
  height: 170px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--accent-bg);
  border: 1px solid var(--rule);
  flex: 0 0 auto;
}
.profile .photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}
.profile .intro { flex: 1 1 320px; }
.contact {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.contact div { margin-bottom: 0.15rem; }

/* ---------- Publication list ---------- */
ol.pubs, ol.pubs-plain { padding-left: 1.4rem; }
ol.pubs li, ol.pubs-plain li { margin-bottom: 1.1rem; }
.pub-title { font-weight: bold; }
.pub-meta { color: var(--muted); font-size: 0.95rem; font-style: italic; }
.pub-authors { font-size: 0.95rem; }
.pub-links {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}
.pub-links a {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--muted);
}
.pub-links a:hover { border-color: var(--link); color: var(--link); text-decoration: none; }

/* ---------- Talks ---------- */
.talks { list-style: none; padding: 0; }
.talks li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.talks .talk-title { font-style: italic; }
.talks .talk-where { color: var(--muted); font-size: 0.95rem; }
.talks .talk-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Buttons / doc links ---------- */
.doclinks { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--link);
  border-radius: 5px;
  color: var(--link);
}
.btn:hover { background: var(--link); color: #fff; text-decoration: none; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .profile .photo { width: 130px; height: 130px; }
}
