:root {
  color-scheme: dark;
  --bg: #151713;
  --ink: #f2efe6;
  --copy: #d7d1c3;
  --muted: #9b9f91;
  --faint: #3a3f35;
  --fainter: #2b3028;
  --accent: #d4a24c;
  --inverse: #151713;
  --label: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-shell {
  width: min(100% - 48px, 680px);
  margin: 0 auto;
  padding: 24px 0 52px;
}

.masthead {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--fainter);
  box-shadow: 0 0 0 1px var(--faint);
  color: var(--ink);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 520;
  text-decoration: none;
}

.profile-link:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 58%, transparent);
}

.profile-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  color: var(--muted);
}

.social-links a {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
}

.brand-logo {
  width: 16px;
  height: 16px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.brand-logo--wide {
  width: 18px;
}

.intro {
  margin-top: auto;
  max-width: 680px;
  padding: 52px 0 34px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 11px;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  font-weight: 420;
  line-height: 1.45;
}

.intro-copy {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.5;
}

.intro-copy span {
  display: block;
}

.intro-copy a {
  color: inherit;
}

.accordion {
  border-bottom: 1px solid var(--faint);
}

details {
  border-top: 1px solid var(--faint);
}

summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.section-index,
.section-title {
  font-family: var(--label);
  text-transform: uppercase;
}

.section-index {
  color: var(--muted);
  font-size: 11px;
}

.section-title {
  color: var(--ink);
  font-size: 13px;
}

.section-mark {
  width: 22px;
  height: 22px;
  position: relative;
  border: 1px solid var(--faint);
}

.section-mark::before,
.section-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.section-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .section-mark::after {
  opacity: 0;
}

.panel {
  width: min(100%, 520px);
  margin-left: 92px;
  padding: 0 0 28px;
}

.entry + .entry {
  margin-top: 18px;
}

.entry > a,
.entry > span {
  display: inline-block;
  font-size: 14px;
  font-weight: 520;
}

.entry p + p {
  margin-top: 7px;
}

.entry p,
.panel-statement,
.contact-panel p,
.thesis-list p {
  margin: 10px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.48;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.link-row a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--faint);
  padding: 0 10px;
  color: var(--ink);
  font-family: var(--label);
  font-size: 13px;
  text-decoration: none;
}

.link-row a:hover {
  border-color: var(--accent);
}

.panel-statement + .entry {
  margin-top: 18px;
}

.talk-list {
  width: min(100%, 520px);
}

.talk-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--fainter);
  color: inherit;
  text-decoration: none;
}

.talk-list a:first-child {
  border-top: 0;
  padding-top: 0;
}

.talk-list span:first-child {
  font-size: 14px;
}

.talk-list span:last-child {
  color: var(--muted);
  font-family: var(--label);
  font-size: 11px;
  line-height: 1.45;
}

.thesis-list p {
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--fainter);
  color: var(--ink);
  font-size: 14px;
}

.thesis-list p:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 32px, 680px);
    padding-top: 22px;
  }

  .masthead {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
  }

  .social-links {
    gap: 10px;
  }

  .intro {
    padding: 50px 0 34px;
  }

  h1 {
    font-size: 18px;
    line-height: 1.4;
  }

  .intro-copy {
    font-size: 15px;
  }

  summary {
    min-height: 64px;
    grid-template-columns: 1fr 24px;
    column-gap: 16px;
    row-gap: 6px;
    align-content: center;
  }

  .section-index {
    grid-column: 1;
    display: block;
    margin-bottom: 0;
    font-size: 11px;
  }

  .section-title {
    grid-column: 1;
    display: block;
    font-size: 15px;
  }

  .section-mark {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 24px;
    height: 24px;
  }

  .panel {
    width: 100%;
    margin-left: 0;
    padding-bottom: 30px;
  }

  .entry > a,
  .entry > span,
  .thesis-list p {
    font-size: 14px;
  }

  .entry p,
  .panel-statement,
  .contact-panel p,
  .thesis-list p {
    font-size: 13px;
  }

  .talk-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    gap: 18px;
  }

  .profile-link {
    width: 38px;
    height: 38px;
  }

  .social-links {
    justify-content: flex-end;
    gap: 8px;
  }

  .intro {
    padding-top: 46px;
  }

  h1 {
    font-size: 18px;
  }

  .intro-copy {
    margin-top: 16px;
    font-size: 14px;
  }

  summary {
    min-height: 62px;
  }
}
