:root {
  color-scheme: light dark;
  --bg: #f6f4f0;
  --ink: #1c1917;
  --muted: #44403c;
  --line: #e4dfd6;
  --link: #1e3a5f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --ink: #f4f0e8;
    --muted: #c4bdb2;
    --line: #3a342c;
    --link: #e4d2b0;
  }
}

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

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 4.5rem;
}

@media (min-width: 40rem) {
  main {
    padding: 5.5rem 1.5rem 6rem;
  }
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.role {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.intro {
  margin: 2rem 0 0;
}

.detail {
  margin: 1rem 0 0;
  color: var(--muted);
}

.papers,
.patents,
.profiles {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.papers ul,
.patents ul,
.profiles ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.profiles li {
  margin: 0.3rem 0;
}

.papers li,
.patents li {
  margin: 0.95rem 0 0;
}

.cite {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.contact {
  margin: 1.25rem 0 0;
}

@media print {
  :root {
    --bg: #fff;
    --ink: #000;
    --muted: #222;
    --line: #ccc;
    --link: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
