:root {
  --ink: #1b1a15;
  --ink-soft: #4a473c;
  --muted: #726e5c;
  --line: #d6d2c6;
  --paper: #f0ece2;
  --accent: #5a6b28;
  --accent-hover: #45521e;
  --max: 58rem;
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--paper);
}

a {
  color: var(--accent);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

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

main {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.announcement {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.portrait {
  flex: 0 0 auto;
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

.name {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.subhead {
  margin: 1.15rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: 1rem;
}

.subhead:first-of-type {
  margin-top: 0;
}

.prose p {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.list-item {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.list-item:last-child {
  padding-bottom: 0;
}

.experience-list .experience-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.experience-main {
  flex: 1;
  min-width: 0;
}

.experience-main > .list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 0.85rem;
  margin-bottom: 0;
}

.experience-main > .list-heading h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.experience-main > .list-heading .org {
  font-weight: 400;
}

.experience-main > .list-heading .org::before {
  content: "·";
  margin: 0 0.35em;
  color: var(--muted);
}

.experience-list .experience-main > p,
.experience-list .experience-main > ul {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.experience-list .experience-main > ul {
  padding-left: 1rem;
}

.experience-list .org-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
}

.experience-list .org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-list .org-logo.is-placeholder {
  display: none;
}

.list.compact .list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  padding: 0.4rem 0;
}

.list-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.authors {
  font-size: 0.9rem;
  color: var(--muted);
}

.list-meta,
.list-item > .list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.85rem;
  margin-bottom: 0.1rem;
}

.list-item > .list-heading h3 {
  margin: 0;
}

.org {
  font-size: 0.9rem;
  color: var(--muted);
}

.dates {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.list-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.list-item h3 > a {
  color: inherit;
  text-decoration: none;
}

.list-item h3 > a:hover {
  color: var(--accent);
}

.list-item p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.list-item ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.list-item li + li {
  margin-top: 0.2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.35rem;
  align-items: stretch;
}

.works-grid .list-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border-top: none;
}

.works-grid .list-item > .list-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.works-grid .list-item h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.works-grid .talk-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.works-grid .list-item p {
  flex: 1;
}

.work-media {
  display: block;
  margin-top: 0.75rem;
  width: 100%;
}

.work-embed {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

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

.work-embed img,
.work-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.work-embed iframe {
  position: absolute;
  inset: 0;
}

.work-embed-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
}

.work-embed-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent #fff;
}

.work-embed.is-playing .work-embed-play,
.work-embed.is-playing > img {
  display: none;
}

.work-preview {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
}

.work-preview:hover,
.work-preview:focus-visible {
  color: inherit;
  text-decoration: none;
}

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

.work-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.work-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.work-preview-host {
  font-size: 0.85rem;
  color: var(--muted);
}

.work-preview-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.work-preview:hover .work-preview-title,
.work-preview:focus-visible .work-preview-title {
  color: var(--accent);
}

.work-preview-dek {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.talk-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}

.talk-title {
  font-weight: 500;
  color: var(--ink);
}

.talk-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-slot {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.badge-slot--credly {
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.badge-label {
  color: var(--ink-soft);
}

.badge-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .works-grid .list-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .works-grid .list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .works-grid .work-media {
    max-width: 28rem;
  }
}

@media (max-width: 540px) {
  .hero {
    gap: 1rem;
  }

  .portrait {
    width: 6.5rem;
    height: 6.5rem;
  }

  .name {
    font-size: 1.85rem;
  }

  .experience-list .experience-item {
    align-items: flex-start;
  }

  .experience-main > .list-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .list.compact .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
