/* A small, self-contained stylesheet. No fonts or frameworks to download. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #242a28;
  --muted: #626b66;
  --accent: #285648;
  --rule: #e1e6e2;
  --content-width: 46rem;
  --gutter: clamp(20px, 5vw, 2rem);
}

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

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.page-width {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-width);
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  max-width: calc(100% - 2 * var(--gutter));
  overflow-wrap: anywhere;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.75rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.contact-email {
  min-width: 0;
  max-width: 100%;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: min(2rem, 44px);
  height: min(2rem, 44px);
  color: var(--muted);
  text-decoration: none;
}

.social-icon svg {
  display: block;
  width: min(1.125rem, 24px);
  height: min(1.125rem, 24px);
}

.social-icon:hover {
  color: var(--accent);
}

.introduction,
section {
  padding-top: clamp(2.25rem, 6vw, 3rem);
}

h2 {
  margin-bottom: 1.125rem;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.research {
  margin-top: 1.125rem;
}

.publications {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication + .publication {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.publication h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

.publication-authors {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.publication-authors a {
  color: inherit;
}

.publication-venue {
  margin-top: 0.3125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

main {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media print {
  .page-width {
    width: 100%;
    max-width: none;
  }

  .site-header {
    padding-top: 0;
  }

  .skip-link,
  .social-icon {
    display: none;
  }

  a {
    color: inherit;
  }

  .publication {
    break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
