/* Homepage only. Course styles remain independent. */
:root {
  color-scheme: light;
  --ink: #28313a;
  --muted: #626b74;
  --link: #265e87;
  --line: #e1e5e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #163c58; text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.page { width: min(900px, calc(100% - 64px)); margin: 0 auto; }
.profile { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 0 32px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 400; line-height: 1.2; letter-spacing: -.8px; margin-bottom: 15px; }
.position { font-size: 17px; line-height: 1.6; }
.location { color: var(--muted); font-size: 14px; margin-top: 9px; }
.profile-links { display: flex; gap: 22px; margin-top: 12px; font-size: 14px; }
.portrait { width: 156px; height: 190px; object-fit: cover; object-position: 65% 43%; border-radius: 3px; }
nav { display: flex; gap: 28px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; }
nav a { text-decoration: none; }
main { padding-top: 30px; }
section { margin-bottom: 36px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.35; font-weight: 400; margin-bottom: 15px; }
section > p + p { margin-top: 12px; }
.entry { margin-top: 23px; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 2px; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.55; }
.date { flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.role { color: var(--muted); font-size: 14px; margin-bottom: 7px; }
ul { padding-left: 20px; margin: 7px 0; }
li { padding-left: 2px; margin-bottom: 4px; }
.tools, .secondary { color: var(--muted); font-size: 13px; margin-top: 7px; }
.course-list { margin-top: 15px; padding-left: 17px; border-left: 2px solid var(--line); }
.course-list > div + div { margin-top: 13px; }
.course-list a { text-decoration: none; }
.course-list p { font-size: 14px; color: var(--muted); margin-top: 1px; }
.archives { margin-top: 17px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
.archives ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; }
.project-link { font-size: 13px; }
.gpa { color: var(--muted); margin-left: 16px; font-size: 13px; white-space: nowrap; }
.skills { display: grid; grid-template-columns: 90px 1fr; gap: 5px 20px; margin: 0; }
.skills dt { color: var(--muted); }
.skills dd { margin: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; }
footer a { text-decoration: none; }
.skip-link { position: fixed; top: -100px; left: 12px; padding: 8px 16px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 640px) {
  .page { width: calc(100% - 40px); }
  .profile { gap: 20px; padding-top: 34px; align-items: flex-start; }
  h1 { font-size: 32px; }
  .position { font-size: 15px; }
  .portrait { width: 100px; height: 128px; margin-top: 3px; }
  nav { gap: 9px 23px; }
  .entry-heading { flex-direction: column; gap: 0; margin-bottom: 5px; }
  .gpa { display: block; margin-left: 0; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .profile { position: relative; display: block; }
  .profile > div { padding-top: 120px; }
  .portrait { position: absolute; top: 30px; left: 0; width: 86px; height: 106px; }
  h1 { font-size: 32px; }
  .skills { grid-template-columns: 1fr; gap: 0; }
  .skills dd { margin-bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .page { width: 100%; }
  nav, footer, .archives, .skip-link { display: none; }
  .profile { padding-top: 0; }
  .entry { break-inside: avoid; }
  body { font-size: 11px; }
  a { color: inherit; }
}
