:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #66635d;
  --line: #dedbd3;
  --link: #0b5d7e;
  --link-soft: #e7f2f5;
  --accent: #7b3f00;
  --max: 1020px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  font-size: 17px;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  background: var(--link-soft);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 16px;
}

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

.links a[aria-current="page"],
.links a:hover {
  color: var(--ink);
  background: transparent;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 22px 70px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 42px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.portrait {
  width: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 650;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 7vw, 4.1rem);
}

.role {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.18rem;
}

h2 {
  font-size: 1.55rem;
  margin: 42px 0 16px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

p {
  margin: 0 0 16px;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.news,
.pub-list,
.compact-list {
  padding: 0;
  margin: 0;
}

.pub-list,
.compact-list {
  list-style: none;
}

.news {
  padding-left: 1.2em;
}

.news li {
  padding: 5px 0;
}

.pub {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  scroll-margin-top: 92px;
}

.pub:first-child {
  border-top: 0;
}

.pub-id {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-right: 6px;
}

.pub-title {
  font-weight: 700;
}

.pub-links {
  font-size: 0.9rem;
  white-space: nowrap;
}

.pub-links a {
  margin-right: 8px;
}

.pub-note {
  color: var(--accent);
  font-weight: 650;
  margin-top: 2px;
}

.pub-note-inline {
  margin-top: 0;
}

.venue {
  font-style: italic;
}

.version-lines {
  margin-top: 2px;
}

.note {
  color: var(--muted);
  margin-top: 4px;
}

.section-note {
  margin-top: 24px;
}

.compact-list li {
  padding: 7px 0;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 22px 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 20px;
}

.view-toggle button {
  font: inherit;
  color: var(--link);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}

.view-toggle button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .links {
    flex-wrap: wrap;
    gap: 10px 15px;
    font-size: 15px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 148px;
    order: -1;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 430px) {
  main {
    padding-top: 40px;
  }

  .nav {
    padding-inline: 20px;
  }

  .links {
    gap: 8px 12px;
  }

  h1 {
    font-size: 2.05rem;
  }
}
