:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #252b28;
  --muted: #626963;
  --accent: #285548;
  --rule: #d8ddd7;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

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

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

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

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

.page {
  width: min(100%, 48rem);
  margin-inline: auto;
  padding: clamp(3.5rem, 12vh, 7.5rem) 2rem 4rem;
}

.intro {
  padding-bottom: 3.5rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.intro-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.section {
  scroll-margin-top: 1.5rem;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--rule);
}

.section-heading {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2rem;
}

.publication + .publication {
  margin-top: 2rem;
}

.publication-title {
  max-width: 30rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
}

.publication-authors {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.publication-source,
.publication-year {
  color: var(--muted);
  font-size: 0.8125rem;
}

.publication-source {
  margin-top: 0.25rem;
}

.publication-year {
  padding-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.profile-link {
  display: inline-block;
  padding-block: 0.25rem;
  overflow-wrap: anywhere;
  min-width: 0;
}

.profile-link span {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.875em;
}

/* Required post template support; no post/blog section is published yet. */
.future-post {
  margin-top: 3rem;
}

.future-post h1 {
  margin-bottom: 1rem;
}

.prose {
  margin-top: 2rem;
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose pre {
  overflow-x: auto;
}

.draft-notice {
  margin-bottom: 1rem;
  font-weight: 600;
}

@media (max-width: 35rem) {
  .page {
    padding-inline: 1.5rem;
  }

  .intro {
    padding-bottom: 2.5rem;
  }

  .publication {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.5rem;
  }
}
