/* Minimal academic site (slightly stylish) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fff;
  --text: #111;
  --muted: #555;
  --border: #e8e8e8;

  --max-width: 760px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  line-height: 1.68; /* slightly tighter than 1.75 */
  font-size: 18px;
}

/* --- global vertical rhythm (biggest win) --- */
p {
  margin: 0.55rem 0; /* instead of browser default ~1em */
}

ul {
  margin: 0.55rem 0;
  padding-left: 1.1rem;
}

li {
  margin: 0.2rem 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

/* Links */
a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  opacity: 0.85;
}

/* Minimal top bar */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  padding: 0.6rem 0; /* slightly tighter */
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
}
.nav-link:hover {
  color: var(--text);
}

/* Page header */
.page-header {
  padding: 1.1rem 0 0.5rem; /* tighter */
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem; /* slightly tighter */
}

h1 {
  font-size: 1.8rem;
  margin: 0 0 0.15rem; /* tighter */
  font-weight: 700; /* bookish: Libre Baskerville looks best w/ strong headings */
  letter-spacing: -0.015em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

/* Portrait */
.portrait {
  width: 92px; /* slightly smaller */
  height: 92px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Blocks */
.block {
  padding: 0.75rem 0; /* tighter */
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem; /* tighter */
  font-weight: 700; /* bookish */
  letter-spacing: -0.01em;
}

/* Degrees */
.degree {
  padding: 0.45rem 0; /* tighter */
}

.degree + .degree {
  margin-top: 0.15rem; /* small separation without lots of air */
}

.degree-title {
  font-weight: 700;
  margin: 0 0 0.1rem;
}

.degree-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0.05rem 0; /* helps when you stack multiple meta lines */
}

.degree-details {
  margin-top: 0.15rem;
}

/* Links list */
.links {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}
.links li {
  margin: 0.15rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1.4rem; /* tighter */
}

.footer-inner {
  padding: 0.8rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 520px) {
  body {
    font-size: 17px;
    line-height: 1.65;
  }

  .masthead {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .portrait {
    width: 78px;
    height: 78px;
  }
}
