/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}
/* Light / dark theme */
:root {
  --bg: #ffffff;
  --text: #1f2328;
  --link: #1e3a8a;
  --link-hover: #3b82f6;
  --highlight: #f3f4f6;
  --toggle-border: #e5e7eb;
  --muted: #6b7280;
}

[data-theme="dark"] {
  --bg: #111317;
  --text: #e5e7eb;
  --link: #93b4ff;
  --link-hover: #c7d7ff;
  --highlight: #1c1f26;
  --toggle-border: #2d313a;
  --muted: #9ca3af;
}

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

body, td, th, tr, p, strong, h2, .name {
  color: var(--text);
}

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

a:focus,
a:hover {
  color: var(--link-hover);
}

tr[bgcolor="#ffffd0"],
span.highlight {
  background-color: var(--highlight);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  background-color: var(--bg);
  color: var(--text);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: border-color .2s ease-in-out, color .2s ease-in-out, transform .3s ease-in-out;
}

.theme-toggle:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
  transform: rotate(-20deg);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.colored-box,
.colored-box h2 {
  color: black;
}

/* Section headings: even, roomy spacing between sections */
h2.section {
  margin-top: 28px;
}

/* Hide the publications table while it has no papers */
table.papers:not(:has(tr)) {
  display: none;
}

.footer {
  margin: 64px 0 0;
  padding: 16px 0 24px;
  border-top: 1px solid var(--toggle-border);
  text-align: center;
  font-size: small;
  color: var(--muted);
}

.name {
  white-space: nowrap;
}

/* Phones: keep the PC layout, but fit the name and tidy dated entries */
@media (max-width: 600px) {
  .name {
    font-size: 26px;
    padding-top: 8px;
  }

  tr.intro > td.intro-photo img {
    width: 100% !important;
    max-width: 100% !important;
  }

  td.news-date {
    white-space: nowrap;
    width: 1% !important;
    padding-right: 8px !important;
  }

  /* Education / Honors: show the date on its own line above each entry */
  tr:has(> td.entry-date) {
    display: flex;
    flex-direction: column-reverse;
  }

  td.entry,
  td.entry-date {
    display: block;
    width: auto !important;
  }

  td.entry-date {
    text-align: left !important;
    padding-bottom: 0 !important;
    font-size: 13px;
    color: var(--muted);
  }

  td.entry {
    padding-top: 2px !important;
    padding-bottom: 10px !important;
  }
}

/* Space between the name and the intro; less gap above the first section */
.name {
  margin-bottom: 30px;
}

h2.section.first {
  margin-top: 0;
}

/* Minimal monotone theme */
body, td, th, tr, p, a, strong, h2, .name, .papertitle {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
}

body, td, th, tr, p, a, strong {
  font-size: 14.5px;
  line-height: 1.6;
}

strong, .papertitle {
  font-weight: 600;
}

.name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2.section {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--toggle-border);
}

a {
  text-decoration: none;
  transition: color .15s ease-in-out;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

td.news-date strong,
td.entry-date {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.footer {
  font-size: 12.5px;
}

@media (max-width: 600px) {
  .name {
    font-size: 25px;
  }

  td.entry-date {
    font-size: 12.5px;
  }
}

/* Top wash: soft color glow at the top of the page that scrolls away */
body {
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: absolute;
  /* -8px reaches past the body's default margin to the window edges */
  top: -8px;
  left: -8px;
  right: -8px;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 20% 0%, var(--wash-1), transparent 70%),
    radial-gradient(55% 65% at 80% 0%, var(--wash-2), transparent 70%),
    radial-gradient(50% 55% at 50% 0%, var(--wash-3), transparent 70%);
}

:root {
  --wash-1: rgba(165, 180, 252, .55);
  --wash-2: rgba(249, 168, 212, .45);
  --wash-3: rgba(125, 211, 252, .40);
}

[data-theme="dark"] {
  --wash-1: rgba(99, 102, 241, .28);
  --wash-2: rgba(219, 39, 119, .20);
  --wash-3: rgba(14, 165, 233, .18);
}
