/* Kathryn Baragwanath — academic website
   Minimal single-column layout, blue accent. */

:root {
  --accent: #1a5f9e;
  --accent-dark: #12456f;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --rule: #e3e3e3;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

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

header {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0 18px;
  margin-bottom: 38px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}

.site-title {
  font-family: "Lora", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-title:hover { color: var(--accent); }

nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}

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

nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- content ---------- */

main { padding-bottom: 30px; }

main p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 {
  font-family: "Lora", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 20px;
}

h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 40px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

h2:first-child { margin-top: 0; }

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

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

.profile::after {
  content: "";
  display: block;
  clear: both;
}

.profile p:first-of-type { margin-top: 0; }

.profile-photo {
  float: right;
  width: 340px;
  margin: 5px 0 20px 34px;
  border-radius: 6px;
}

.contact {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 16px;
}

.contact a { margin-right: 4px; }

.contact .sep { margin: 0 8px; color: var(--rule); }

/* ---------- research ---------- */

.paper { margin-bottom: 26px; }

.paper-title {
  font-weight: 600;
  font-size: 17.5px;
}

.paper-meta {
  color: var(--muted);
}

.paper-meta .journal {
  font-style: italic;
  color: var(--text);
}

.paper-links {
  font-size: 15.5px;
  margin-top: 2px;
}

.paper-links a { white-space: nowrap; }

details.abstract {
  margin-top: 4px;
  font-size: 15.5px;
}

details.abstract summary {
  cursor: pointer;
  color: var(--accent);
  width: fit-content;
  user-select: none;
}

details.abstract summary:hover { color: var(--accent-dark); text-decoration: underline; }

details.abstract p {
  margin: 8px 0 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: #f5f8fb;
  color: #444;
}

/* ---------- teaching ---------- */

ul.course-list { padding-left: 20px; }
ul.course-list li { margin-bottom: 10px; }

.course-note { color: var(--muted); }

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

footer {
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .profile-photo {
    float: none;
    display: block;
    width: 65%;
    max-width: 260px;
    margin: 0 auto 22px;
  }
  header { padding-top: 20px; margin-bottom: 28px; }
}
