:root {
  --ink: #1c1c1c;
  --muted: #5e5e5e;
  --faint: #8a8a8a;
  --line: #e4e2dc;
  --link: #1c3d66;
  --bg: #f7f6f3;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(28 61 102 / 0.12);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.layout {
  --top: 2.25rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: var(--top) 2rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 3.25rem;
}

main { min-width: 0; }

.side {
  position: sticky;
  top: var(--top);
  align-self: start;
}

.identity img {
  width: 9.25rem;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid #e3dfd6;
  background: #fff;
}

h1 {
  margin: 0 0 0.7rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.role {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.sections {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sections,
h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sections a {
  color: var(--muted);
  text-decoration: none;
}

section { scroll-margin-top: var(--top); }

h2 {
  margin: 2.15rem 0 0.7rem;
  color: var(--muted);
}

main > section:first-child h2 { margin-top: 0; }

h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

section h3:first-of-type { margin-top: 0; }

p { margin: 0 0 1rem; text-wrap: pretty; }

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

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

.when {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-right: 0.35rem;
}

footer {
  margin-top: 2.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--faint);
}

@media (hover: hover) and (pointer: fine) {
  a:hover { color: #0e243d; }
  .sections a:hover { color: var(--ink); }
}

@media (min-width: 1040px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-height: 42rem) {
  .side { position: static; }
}

@media (max-width: 1039px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 44rem;
    padding: 1.35rem 1.2rem 3rem;
  }

  .side { display: contents; }

  .identity img { width: 8.25rem; }
  h1 { font-size: 1.85rem; }

  .sections {
    position: sticky;
    top: 0;
    z-index: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1.05rem;
    margin: 0.6rem -1.2rem 1.1rem;
    padding: 0.15rem 1.2rem;
    background: var(--bg);
  }

  .sections a { padding: 0.55rem 0; }

  section { scroll-margin-top: 3.1rem; }
}
