:root {
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #666666;
  --heading: #404040;
  --muted: #8a8a8a;
  --rule: #e6e6e6;
  --link: #1c7c7c;
  --link-hover: #0f4f4f;
  --accent: #800000;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Slab", Georgia, Times, serif;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

.page {
  max-width: 860px;
  margin: 24px auto;
  background: var(--card);
  padding: 48px 64px 32px;
}

/* Header */
.site-header { text-align: center; }
.site-title {
  margin: 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
}
.site-title a { color: var(--heading); }
.site-title a:hover { text-decoration: none; color: var(--link); }
.site-description {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.site-nav {
  margin: 28px 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}
.site-nav li + li::before {
  content: "/";
  color: var(--rule);
  margin: 0 10px;
}
.site-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--link); text-decoration: none; }

/* Content */
.entry-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 400;
  color: var(--heading);
}
h2 {
  margin: 36px 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
}
h2:first-child { margin-top: 0; }
p { margin: 0 0 18px; }
strong { color: var(--heading); }

/* About */
.about {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.about address { font-style: normal; flex: 1; }
.about address p { margin-bottom: 14px; }
.about img { width: 182px; height: auto; display: block; flex-shrink: 0; }

/* Research */
.citations {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.65;
}
.citations li {
  margin: 0 0 12px;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

/* Teaching */
.terms { columns: 2; column-gap: 48px; }
.term { break-inside: avoid; margin: 0 0 18px; }
.term h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.term ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.term.current h3 { color: var(--accent); font-weight: 700; }
.term.current ul { color: var(--text); }
.term.current a { font-weight: 700; }

/* CV */
.cv-download { font-size: 16px; margin-bottom: 24px; }
.cv-download a { font-weight: 700; }
.pdf-frame {
  display: block;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  border: 1px solid var(--rule);
  margin: 0 0 12px;
  background: #fafafa;
}
.pdf-fallback { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .page { margin: 0; padding: 32px 16px 24px; }
  .about { flex-direction: column-reverse; gap: 20px; }
  .terms { columns: 1; }
  .pdf-frame { height: 70vh; min-height: 400px; }
}
