:root {
  --paper: #faf9f6;
  --ink: #24272b;
  --muted: #6c7075;
  --rule: #e2dfd8;
  --accent: #2f5d4e;
  --accent-hover: #1d3d33;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18191b;
    --ink: #e4e2dd;
    --muted: #9a9c9f;
    --rule: #303235;
    --accent: #8fbfae;
    --accent-hover: #b6dacd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 32px 64px;
}

p, ul, dl, dd { margin: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Name and position */
.intro {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.role {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.role span { padding: 0 0.3em; }

/* Labelled rows: label on the left on wide screens, stacked on narrow ones */
.row {
  display: grid;
  grid-template-columns: 112px 1fr;
  column-gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
h2 {
  margin: 0;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.interests {
  padding: 0;
  list-style: none;
}
.interests li {
  position: relative;
  padding-left: 22px;
}
.interests li + li { margin-top: 4px; }
.interests li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  row-gap: 4px;
}
.contact dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65rem;
  padding-top: 1px;
}
.contact dd { overflow-wrap: anywhere; }

footer {
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  main { padding: 56px 20px 48px; }
  h1 { font-size: 28px; }
  .intro { padding-bottom: 22px; }
  .row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 22px 0;
  }
  h2 { padding-top: 0; }
}
