/* A compact, text-first layout for the homepage and publication list. */
:root {
  color-scheme: light;
  --text: #333333;
  --muted: #666666;
  --link: #57068c;
  --rule: #e8e8e8;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.wrapper {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 50px;
}

a { color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
a:focus-visible, main:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: #ffffff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.site-nav { min-height: 57px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 56px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.page-content { flex: 1 0 auto; padding-block: 30px 56px; }
.post-header { margin-bottom: 36px; }
h1, h2, h3 { color: var(--muted); font-weight: 300; overflow-wrap: anywhere; }
h1 { margin: 0 0 10px; font-size: 2.625rem; line-height: 1.12; letter-spacing: -1px; }
h2 { margin: 28px 0 12px; font-size: 1.5rem; line-height: 1.3; }
h3 { margin: 24px 0 10px; font-size: 1.25rem; }
p { margin: 0 0 18px; }
.post-description { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.post-content { display: flow-root; }
.profile { float: right; width: 33.333%; margin: 0 0 20px 24px; }
.profile img { display: block; width: 100%; height: auto; box-shadow: 0 0 5px #aaaaaa; }
.contact { clear: both; margin-top: 30px; }
.contact h2 { font-size: 1.25rem; }
.contact address { font-style: normal; }
.personal-note { margin-top: 24px; color: var(--muted); font-style: italic; }

.publications .post-header { margin-bottom: 24px; }
.publications ol { margin: 24px 0 0; padding-left: 1.5rem; }
.publications li { padding-left: 0.3rem; margin-bottom: 24px; }
.publications li::marker { color: var(--muted); }
.publications li p { margin: 0; }
.publications strong { font-weight: 600; }

.site-footer { padding-block: 12px; color: #cccccc; background: #424242; font-size: 0.875rem; text-align: center; }
.site-footer a { color: #ffffff; }

@media (max-width: 600px) {
  .wrapper { padding-inline: 24px; }
  .page-content { padding-block: 28px 40px; }
  h1 { font-size: 2.125rem; }
  .post-header { margin-bottom: 28px; }
  .profile { width: 34%; margin-left: 20px; }
}

@media (max-width: 420px) {
  .wrapper { padding-inline: 20px; }
  .site-nav { justify-content: center; }
  .profile { float: none; width: 180px; max-width: 100%; margin: 0 0 24px; }
}

@media print {
  .site-header, .skip-link { display: none; }
  .wrapper { max-width: none; padding-inline: 0; }
  .page-content { padding-block: 0; }
  .site-footer { background: none; color: var(--muted); }
  .site-footer a { color: inherit; }
  .publications li { break-inside: avoid; }
}
