/* GitHub colors */
:root {
  --font-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  color-scheme: light dark;

  --gh-base: #ffffff;
  --gh-mantle: #f6f8fa;
  --gh-crust: #f6f8fa;
  --gh-text: #1f2328;
  --gh-heading: #1f2328;
  --gh-subtext1: #656d76;
  --gh-subtext0: #6e7781;
  --gh-overlay0: #6e7781;
  --gh-overlay1: #7d8590;
  --gh-overlay2: #656d76;
  --gh-surface0: #eaeef2;
  --gh-surface1: #d0d7de;
  --gh-surface2: #afb8c1;
  --gh-link: #1f2328;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-strong: rgba(0, 0, 0, 0.3);
  --focus-ring: var(--gh-heading);
}

[data-theme="light"] {
  --gh-base: #ffffff;
  --gh-mantle: #f6f8fa;
  --gh-crust: #f6f8fa;
  --gh-text: #1f2328;
  --gh-heading: #1f2328;
  --gh-subtext1: #656d76;
  --gh-subtext0: #6e7781;
  --gh-overlay0: #6e7781;
  --gh-overlay1: #7d8590;
  --gh-overlay2: #656d76;
  --gh-surface0: #eaeef2;
  --gh-surface1: #d0d7de;
  --gh-surface2: #afb8c1;
  --gh-link: #1f2328;
}

[data-theme="dark"] {
  --gh-base: #22272e;
  --gh-mantle: #1c2128;
  --gh-crust: #1c2128;
  --gh-text: #adbac7;
  --gh-heading: #cdd9e5;
  --gh-subtext1: #768390;
  --gh-subtext0: #636e7b;
  --gh-overlay0: #545d68;
  --gh-overlay1: #636e7b;
  --gh-overlay2: #768390;
  --gh-surface0: #2d333b;
  --gh-surface1: #444c56;
  --gh-surface2: #545d68;
  --gh-link: #cdd9e5;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 101;
  padding: 0.75rem 1rem;
  background: var(--gh-base);
  color: var(--gh-heading);
  border: 1px solid var(--gh-heading);
  border-radius: 0.25rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: calc(.75em + .1vw);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

html {
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 450;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  background-color: var(--gh-base);
  color: var(--gh-text);
  line-height: 1.65;
  margin: 0;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

p,
li,
blockquote,
dl,
dt,
figcaption,
label,
textarea {
  line-height: 1.65;
}

p {
  margin: calc(1em + .5vw) 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  color: var(--gh-heading);
  line-height: 1.1;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  color: var(--gh-heading);
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.35rem);
  letter-spacing: -0.01em;
  margin: 2em 0 0.75em;
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2em;
  margin-bottom: 1em;
}

h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
}

h6 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a {
  color: var(--gh-link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
.icon-button:focus-visible,
.talks-filter:focus-visible,
.site-logo:focus-visible,
.lang-switcher__link:focus-visible,
.social-link:focus-visible,
.resume-pdf:focus-visible,
.contact-list a:focus-visible,
.talks-card-title a:focus-visible,
.talks-slides a:focus-visible,
.speaker-talk-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
}

blockquote {
  font-family: var(--font-serif);
  font-size: 1.125em;
  font-style: italic;
  line-height: 1.55;
  color: var(--gh-heading);
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 2px solid var(--gh-surface2);
}

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: calc(.75em + .1vw);
  background: var(--gh-surface0);
  color: var(--gh-heading);
  padding: 0.15em 0.35em;
  border-radius: 0.25rem;
}

/* Site header */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--gh-base);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 800;
  font-variation-settings: 'wght' 800;
  letter-spacing: -0.02em;
  color: var(--gh-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-logo:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--gh-heading);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--gh-heading);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-nav a[aria-current="page"] {
  color: var(--gh-heading);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
}

.site-utils {
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.lang-switcher__current {
  color: var(--gh-heading);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
}

.lang-switcher__link {
  color: var(--gh-subtext1);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switcher__link:hover {
  color: var(--gh-heading);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.lang-switcher__divider {
  color: var(--gh-surface2);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--gh-heading);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.icon-button:hover {
  opacity: 0.55;
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-icon {
  display: none;
}

.theme-icon--active {
  display: block;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gh-heading);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.55;
}

.social-link svg {
  width: 100%;
  height: 100%;
}

.social-link-name {
  display: none;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 3.5rem;
}

.hero-avatar {
  display: block;
  width: clamp(3.5rem, 8vw, 6rem);
  height: clamp(3.5rem, 8vw, 6rem);
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gh-surface1);
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--gh-heading);
  margin: 0;
}

.hero-lead {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  color: var(--gh-subtext1);
  line-height: 1.5;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--fade-delay, 0s);
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .hero-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .nav-indicator {
    transition: none;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gh-surface1);
  border-radius: 0.5rem;
  color: var(--gh-heading);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: calc(.75em + .1vw);
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--gh-surface0);
  border-color: var(--gh-surface2);
}

/* Speaker */
.speaker {
  padding: 3.5rem 1.5rem;
  background-color: var(--gh-base);
  border-bottom: 1px solid var(--gh-surface1);
}

.speaker-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.speaker-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.speaker-intro {
  flex: 1;
}

.speaker-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--gh-heading);
  margin: 0 0 1rem;
}

.speaker-lead {
  font-family: var(--font-serif);
  font-size: calc(1.125rem + .1vw);
  line-height: 1.5;
  color: var(--gh-text);
  max-width: 60ch;
  margin: 0;
}

.speaker-talks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem 1.5rem;
  margin-bottom: 2rem;
}

.speaker-talk-link {
  display: block;
  color: var(--gh-heading);
  text-decoration: none;
}

.speaker-talk-link:hover {
  color: var(--gh-heading);
}

.speaker-talk-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--gh-surface1);
}

.speaker-talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.speaker-talk:hover .speaker-talk-thumb img {
  transform: scale(1.03);
}

.speaker-talk-title {
  font-family: var(--font-sans);
  font-size: calc(1.05rem + .1vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
  hyphens: auto;
  transition: color 0.2s ease;
}

.speaker-talk-link:hover .speaker-talk-title {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.speaker-talk-meta {
  font-size: calc(.75rem + .1vw);
  color: var(--gh-subtext1);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.speaker-links {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  background-color: var(--gh-base);
  border-top: 1px solid var(--gh-surface1);
  color: var(--gh-subtext1);
  font-size: calc(.75em + .1vw);
}

.site-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-content p {
  margin: 0;
}

.site-footer .social-links {
  justify-content: center;
}

.site-footer a {
  color: var(--gh-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gh-heading);
  border-bottom-color: var(--gh-subtext1);
}

/* Resume */
.resume {
  --line: 1.65rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--line) * 2) 1.5rem calc(var(--line) * 3);
}

@media screen and (min-width: 48em) {
  .resume {
    --line: 1.856rem;
  }
}

.resume-hero {
  position: relative;
  text-align: center;
  margin-bottom: calc(var(--line) * 2);
  padding-top: 1.5rem;
}

.resume-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resume-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: calc(.75em + .1vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gh-heading);
  transition: color 0.2s ease;
}

.resume-pdf:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.resume-pdf svg {
  width: 1.25rem;
  height: 1.25rem;
}

.resume-name {
  font-family: var(--font-sans);
  font-size: calc(1.5rem + 1vw);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gh-heading);
  margin: 0 0 calc(var(--line) * 0.5);
}

.resume-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: calc(1.125rem + .25vw);
  font-weight: 500;
  color: var(--gh-heading);
  margin: 0 0 calc(var(--line) * 0.5);
}

.resume-update {
  font-size: calc(.75em + .1vw);
  color: var(--gh-subtext1);
  margin: 0;
}

.resume-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: calc(var(--line) * 2);
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: calc(var(--line) * 2);
}

.resume-main {
  min-width: 0;
}

.resume-section {
  margin-bottom: calc(var(--line) * 2);
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-label {
  font-family: var(--font-sans);
  font-size: calc(0.875rem + .1vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gh-subtext1);
  margin: 0 0 0.5em;
}

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

.contact-list li {
  font-size: calc(.75em + .1vw);
  line-height: 1.5;
}

.contact-list a {
  color: var(--gh-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-list a:hover {
  color: var(--gh-heading);
  border-bottom-color: var(--gh-subtext1);
}

.contact-list span {
  color: var(--gh-subtext1);
}

.skill-category {
  margin-bottom: var(--line);
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category-label {
  font-family: var(--font-sans);
  font-size: calc(.75rem + .1vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gh-heading);
  margin: 0 0 0.5em;
}

.skill-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.skill-list li {
  font-size: calc(.75em + .1vw);
  line-height: 1.5;
  color: var(--gh-text);
}

/* Resume main content */
.resume-main > :first-child {
  margin-top: 0;
}

.resume-main h2 {
  font-family: var(--font-sans);
  font-size: calc(1.25rem + .8vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: var(--gh-heading);
  margin: calc(var(--line) * 2) 0 calc(var(--line) * 0.5);
}

.resume-main h3 {
  font-family: var(--font-sans);
  font-size: calc(1.125rem + .2vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: var(--gh-heading);
  margin: calc(var(--line) * 1.5) 0 0.2em;
}

.resume-main h3:first-of-type {
  margin-top: 0;
}

.resume-main h3 + p {
  font-size: calc(.75em + .1vw);
  font-variant-numeric: tabular-nums;
  color: var(--gh-subtext1);
  margin: 0 0 calc(var(--line) * 0.5);
}

.resume-main h3 + p strong {
  color: var(--gh-heading);
}

.resume-main p {
  margin: 0 0 var(--line);
  max-width: 65ch;
}

.resume-main ul {
  margin: 0 0 var(--line);
  padding-left: 1.25rem;
  max-width: 68ch;
}

.resume-main li {
  margin-bottom: 0.5em;
}

.resume-main li:last-child {
  margin-bottom: 0;
}

.resume-main strong {
  color: var(--gh-heading);
}

/* Mobile */
@media (max-width: 50rem) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header-right {
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .resume-hero {
    padding-top: 0;
  }

  .resume-actions {
    position: static;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .hero-lockup {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .speaker {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .speaker-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .speaker-title {
    font-size: 1.5rem;
  }

  .resume {
    padding: var(--line) 1rem calc(var(--line) * 2);
  }

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

  .resume-sidebar {
    position: static;
    display: contents;
  }

  .resume-main {
    order: 3;
  }

  .resume-section:nth-child(1) {
    order: 1;
  }

  .resume-section:nth-child(2) {
    order: 2;
  }

  .resume-section:nth-child(3) {
    order: 4;
  }

  .resume-section:nth-child(4) {
    order: 5;
  }

  .resume-section:nth-child(5) {
    order: 6;
  }

  .resume-section {
    margin-bottom: 0;
  }
}

/* Talks */
.talks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.talks-lead {
  font-size: 1.125rem;
  color: var(--gh-text);
  margin-top: 0;
  margin-bottom: 2rem;
  max-width: 70ch;
}

.talks-featured {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gh-surface1);
}

.talks-section-title {
  font-family: var(--font-sans);
  font-size: calc(1.25rem + .5vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  color: var(--gh-heading);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.talks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.talks-filter {
  padding: 0 0 0.15em;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--gh-subtext1);
  font-family: var(--font-sans);
  font-size: calc(.75rem + .1vw);
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.talks-filter::after {
  content: attr(data-text);
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  font-weight: 800;
  font-variation-settings: 'wght' 800;
  pointer-events: none;
}

.talks-filter:hover {
  color: var(--gh-heading);
}

.talks-filter--active,
.talks-filter--active:hover {
  color: var(--gh-heading);
  font-weight: 800;
  font-variation-settings: 'wght' 800;
  border-bottom: 2px solid var(--gh-heading);
}

.talks-year {
  margin-bottom: 2.5rem;
}

.talks-year[hidden] {
  display: none;
}

.talks-year-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  color: var(--gh-heading);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gh-surface1);
}

.talks-grid--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 2.5rem;
}

@media (min-width: 48rem) {
  .talks-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

.talks-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0 0 4rem;
}

@media (min-width: 40rem) {
  .talks-card {
    grid-template-columns: minmax(0, 15rem) 1fr;
    gap: 2rem;
  }
}

.talks-card[hidden] {
  display: none;
}

.talks-card--featured {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
}

.talks-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gh-surface1);
  border-radius: 0.375rem;
  overflow: hidden;
}

.talks-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.talks-card:hover .talks-thumbnail {
  transform: scale(1.03);
}

.talks-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.talks-card:hover .talks-play {
  background-color: rgba(0, 0, 0, 0.5);
}

.talks-play svg {
  width: 3.5rem;
  height: 3.5rem;
  color: #fff;
  filter: drop-shadow(0 2px 4px var(--shadow-color-strong));
  transition: transform 0.2s ease;
}

.talks-play:hover svg {
  transform: scale(1.1);
}

.talks-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.talks-card-title {
  font-family: var(--font-sans);
  font-size: calc(1.2rem + 0.4vw);
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  letter-spacing: -0.01em;
  color: var(--gh-heading);
  margin: 0;
  line-height: 1.25;
  hyphens: auto;
}

.talks-card-title a {
  color: var(--gh-link);
  text-decoration: none;
}

.talks-card-title a:hover {
  text-decoration: underline;
}

.talks-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: baseline;
  margin: 0;
  font-size: calc(.75rem + .1vw);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gh-subtext1);
}

.talks-card-meta > * + *::before {
  content: '·';
  margin-right: 0.6rem;
  color: var(--gh-surface1);
}

.talks-card-year {
  color: var(--gh-heading);
  font-weight: 600;
}

.talks-card-lang {
  font-weight: 500;
}

.talks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: baseline;
  margin: 0;
  font-size: calc(.7rem + .1vw);
  color: var(--gh-subtext1);
}

.talks-tag {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.talks-tag + .talks-tag::before {
  content: '·';
  margin-right: 0.6rem;
  color: var(--gh-surface1);
}

.talks-slides {
  margin: 0;
  font-size: calc(.75rem + .1vw);
}

.talks-slides a {
  color: var(--gh-link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.talks-slides a:hover {
  text-decoration-thickness: 0.12em;
}

/* Print */
@media print {
  @page {
    margin: 1.4cm 1.6cm;
  }

  :root {
    --gh-base: #ffffff;
    --gh-mantle: #f6f8fa;
    --gh-crust: #f6f8fa;
    --gh-text: #1f2328;
    --gh-heading: #1f2328;
    --gh-subtext1: #656d76;
    --gh-subtext0: #6e7781;
    --gh-overlay0: #6e7781;
    --gh-overlay1: #7d8590;
    --gh-overlay2: #656d76;
    --gh-surface0: #eaeef2;
    --gh-surface1: #d0d7de;
    --gh-surface2: #afb8c1;
    --gh-link: #1f2328;
  }

  html {
    font-size: 12pt;
  }

  .no-print,
  .site-header,
  .resume-section:has(.social-links) {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: #fff;
  }

  body {
    min-height: 0;
    background: #fff;
    color: var(--gh-text);
    font-size: 10pt;
    line-height: 1.2em;
    transition: none;
    orphans: 3;
    widows: 3;
  }

  .resume {
    --line: 1em;
    max-width: none;
    padding: 0;
  }

  .resume-hero {
    text-align: left;
    margin-bottom: 0.6em;
    padding-top: 0;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--gh-surface1);
  }

  .resume-name {
    font-size: 16pt;
    margin: 0 0 0.1em;
  }

  .resume-role {
    font-size: 10.5pt;
    margin: 0 0 0.2em;
  }

  .resume-update {
    font-size: 7.5pt;
    margin: 0;
  }

  .resume-grid {
    display: block;
  }

  .resume-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2em;
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--gh-surface1);
  }

  .resume-section {
    margin-bottom: 1em;
  }

  .resume-section-label {
    font-size: 8pt;
    margin: 0 0 0.4em;
  }

  .contact-list li {
    font-size: 9pt;
  }

  .contact-list a[href^="http"]::after {
    content: " — " attr(href);
    color: var(--gh-subtext1);
  }

  .resume-sidebar .resume-section:has(.skill-category) {
    grid-column: 1 / -1;
    columns: 3;
    column-gap: 2em;
  }

  .resume-sidebar .resume-section:has(.skill-category) .resume-section-label {
    column-span: all;
  }

  .skill-category {
    break-inside: avoid;
    margin-bottom: 0.8em;
  }

  .skill-category-label {
    display: none;
  }

  .skill-list li {
    font-size: 9pt;
    line-height: 1.2em;
  }

  .resume-main h2 {
    font-size: 12pt;
    margin: 1.4em 0 0.4em;
    break-after: avoid;
  }

  .resume-main h3 {
    font-size: 10.5pt;
    margin: 1em 0 0.1em;
    break-after: avoid;
  }

  .resume-main h3 + p {
    font-size: 8.5pt;
    margin: 0 0 0.4em;
    break-after: avoid;
  }

  .resume-main p {
    margin: 0 0 0.8em;
    max-width: none;
  }

  .resume-main ul {
    margin: 0 0 0.8em;
    max-width: none;
  }

  .resume-main li {
    margin-bottom: 0.3em;
    line-height: 1.2em;
  }

  .resume-main h3,
  .resume-main li,
  .resume-section {
    break-inside: avoid;
  }

  a {
    color: var(--gh-link);
    text-decoration: none;
  }

  .button {
    border-color: #999;
  }
}
