/* Custom styles layered on top of Skeleton. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --card: #f3f4f6;
  --border: #e5e7eb;
  --award-bg: #fef3c7;
  --award-text: #92400e;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

.container {
  max-width: 860px;
}

h1 {
  font-size: 3.0rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
}

h2 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 0;
}

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

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

/* Header */

.intro {
  margin-top: 6rem;
}

.tagline {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: -0.5rem 0 1.5rem;
}

.intro .headshot {
  border-radius: 12px;
  display: block;
  height: auto;
}

.role-line {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.bio {
  margin-top: 2rem;
}

/* Buttons */

.button,
button {
  height: 32px;
  line-height: 30px;
  padding: 0 14px;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
button:hover,
.button:focus,
button:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.button .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  vertical-align: -2px;
  margin-right: 6px;
}

/* Experience / Education */

.section-heading,
.publications-heading {
  margin-top: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.job {
  position: relative;
  margin: 2.2rem 0 2.2rem 0.5rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.job::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.job-org {
  font-weight: 600;
  font-size: 1.7rem;
}

.job-dates {
  color: var(--muted);
  background-color: var(--card);
  border-radius: 999px;
  padding: 0 10px;
  line-height: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.job-role {
  color: var(--accent);
  font-weight: 500;
}

.job-desc {
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-size: 14px;
}

/* Publications */

.pub-filter {
  float: right;
  margin-top: -3.4rem;
}

.pub-filter .filter-btn {
  margin-bottom: 0;
}

.filter-btn.active {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.filter-btn.active:hover,
.filter-btn.active:focus {
  color: #fff;
}

body.filter-selected .publication:not(.selected) {
  display: none;
}

.publication {
  margin: 1.3rem -1.2rem 0;
  padding: 1.2rem;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.publication:hover {
  background-color: var(--card);
}

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

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

.publication .thumb {
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  display: block;
  width: 100%;
  height: auto;
}

.publication .title {
  font-weight: 600;
}

.publication .venue {
  color: var(--muted);
  font-style: italic;
}

.award {
  display: inline-block;
  background-color: var(--award-bg);
  color: var(--award-text);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  margin: 4px 0 6px;
  text-decoration: none;
}

a.award:hover {
  color: var(--award-text);
  text-decoration: underline;
}

/* BibTeX */

details.bibtex {
  display: inline-block;
  vertical-align: top;
}

details.bibtex[open] {
  display: block;
}

details.bibtex summary {
  display: inline-block;
  height: 32px;
  line-height: 30px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

details.bibtex summary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.bibtex-body {
  position: relative;
  margin: 0.8rem 0 0;
}

.bibtex-body pre {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  margin-bottom: 0;
}

.bibtex-body .copy-bib {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 24px;
  line-height: 22px;
  padding: 0 10px;
  font-size: 9px;
  margin-bottom: 0;
  background-color: var(--bg);
}

/* Footer */

footer {
  margin: 6rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 549px) {
  .intro {
    margin-top: 3rem;
  }

  .intro .headshot {
    margin-top: 2rem;
  }

  .pub-filter {
    float: none;
    margin-top: 1rem;
  }

  .publication {
    margin-left: 0;
    margin-right: 0;
    padding: 1.2rem 0;
  }
}

@media print {
  .button,
  .pub-filter,
  details.bibtex,
  footer {
    display: none !important;
  }

  .publication {
    break-inside: avoid;
    padding: 0;
    margin: 2rem 0 0;
  }

  a,
  a.title {
    color: #000;
    text-decoration: none;
  }

  .intro {
    margin-top: 0;
  }
}
