@charset "UTF-8";
:root {
  --bg: #f7f7f5;
  --fg: #111;
  --muted: #555;
  --accent: #B4461F;
  --panel: #fff;
  --hair: #e0d3cb;
  --rule: 1px solid var(--accent);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: 1.25rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #111110;
    --fg: #ececea;
    --muted: #a3a39d;
    --accent: #D9784F;
    --panel: #1b1b1a;
    --hair: #3b2f2a;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #111110;
  --fg: #ececea;
  --muted: #a3a39d;
  --accent: #D9784F;
  --panel: #1b1b1a;
  --hair: #3b2f2a;
  color-scheme: dark;
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.55 var(--sans);
}

.mono, .label, .sublabel, nav, .links, .tag, time, summary, button, pre, code {
  font-family: var(--mono);
}

.mono {
  font-size: 0.8125rem;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.label {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.sublabel {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.1rem 0 0.4rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8125rem;
}

button:hover {
  background: var(--accent);
  color: var(--bg);
}

button[aria-pressed=true] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.prose img {
  max-width: 100%;
}

.prose pre {
  overflow-x: auto;
  padding: 0.8rem;
  border: var(--rule);
  background: var(--panel);
  font-size: 0.85rem;
}

.prose code {
  font-size: 0.875em;
}

.meta {
  color: var(--muted);
}

.shell {
  max-width: 1120px;
  margin: 1.25rem auto;
  border: var(--rule);
  background: var(--bg);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  border-bottom: var(--rule);
}

.bar-name {
  font-weight: 600;
  text-decoration: none;
}

.bar nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.bar nav a {
  text-decoration: none;
}

.bar nav a:hover, .bar-name:hover {
  background: var(--accent);
  color: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.main {
  border-left: var(--rule);
}

.side {
  padding: var(--pad);
  align-self: start;
  position: sticky;
  top: 0;
}

.photo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--rule);
  margin-bottom: 1rem;
}

.name {
  font-size: 1.6rem;
  color: var(--accent);
}

.aff {
  color: var(--muted);
  margin: 0.35rem 0 0.9rem;
}

.bio {
  margin: 0 0 1rem;
}

.links {
  font-size: 0.8125rem;
  line-height: 1.9;
}

.email {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.email-img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.links a {
  text-decoration: none;
  margin-right: 0.5rem;
}

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

.cell {
  padding: var(--pad);
  border-bottom: var(--rule);
}

.main > .cell:last-child {
  border-bottom: 0;
}

.more {
  margin: 1rem 0 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  border-top: var(--rule);
  color: var(--muted);
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .main {
    border-left: 0;
  }
  .side {
    position: static;
    border-bottom: var(--rule);
  }
  .shell {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }
}
/* news + entries */
.news, .entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news li, .entries li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.45rem 0;
}

.news li + li, .entries li + li {
  border-top: 1px solid var(--hair);
}

.news time {
  color: var(--muted);
}

.when {
  color: var(--muted);
}

@media (max-width: 520px) {
  .news li, .entries li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
/* publications */
.bibliography {
  list-style: none;
  margin: 0;
  padding: 0;
}

h2.bibliography {
  font: 600 0.75rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.2rem 0 0.4rem;
}

.pub {
  padding: 0.6rem 0;
}

.pub + .pub {
  border-top: 1px solid var(--hair);
}

.pub-links {
  margin-top: 0.3rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.pub-links a {
  text-decoration: none;
}

.pub-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

.bibtex summary {
  cursor: pointer;
  list-style: none;
}

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

.bibtex[open] {
  flex-basis: 100%;
}

.bibtex pre {
  white-space: pre-wrap;
  border: var(--rule);
  background: var(--panel);
  padding: 0.7rem;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
}

/* career: list <-> timeline */
.career-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.career[data-view=list] .view-timeline,
.career[data-view=timeline] .view-list {
  display: none;
}

/* timeline: one row per entry; the month scale fills the cell, down to a minimum, then it scrolls */
.tl-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.5rem;
  container-type: inline-size;
}

.tl-scroll:focus-visible {
  outline: var(--rule);
  outline-offset: 2px;
}

.tl {
  --mo: max(.45rem, calc(100cqw / var(--months)));
  position: relative;
  width: calc(var(--months) * var(--mo));
  min-width: 100%;
}

.tl-axis {
  position: relative;
  height: 1.4rem;
  border-bottom: var(--rule);
  color: var(--muted);
  font-size: 0.6875rem;
}

.tl-tick {
  position: absolute;
  bottom: 0.2rem;
  left: calc(var(--s) * var(--mo));
  padding-left: 0.25rem;
}

.tl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  width: calc(var(--months) * var(--mo));
  background: repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px calc(12 * var(--mo)));
}

.tl-row {
  padding: 0.4rem 0 0.15rem;
}

.tl-label {
  position: sticky;
  left: 0;
  display: block;
  width: fit-content;
  max-width: 100cqw;
  padding-right: 0.4rem;
  background: var(--bg);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.tl-label .tag {
  display: inline-block;
  line-height: 1.3;
  margin-right: 0.2rem;
}

.tl-bar {
  display: block;
  height: 0.5rem;
  margin: 0.3rem 0 0 calc(var(--s) * var(--mo));
  width: max(var(--w) * var(--mo), 6px);
  background: var(--accent);
}

.tl-edu .tl-bar {
  background: var(--fg);
}

.tl-bar.open {
  clip-path: polygon(0 0, calc(100% - 0.35rem) 0, 100% 50%, calc(100% - 0.35rem) 100%, 0 100%);
}

.tl-sub {
  padding-top: 0.1rem;
}

.tl-sub .tl-label {
  padding-left: 0.9rem;
  font-size: 0.75rem;
}

.tl-sub .tl-bar {
  height: 0.3rem;
  margin-top: 0.2rem;
  background: var(--muted);
}

/* nested projects / sub-roles */
.sub {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 1px solid var(--muted);
}

.sub li {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.6rem;
  padding: 0.15rem 0;
}

.sub .when {
  white-space: nowrap;
}

.sub li + li {
  border-top: 0;
}

.sub li:not(:has(.when)) {
  grid-template-columns: 1fr;
}

.sub .note {
  display: block;
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  .sub li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* collapsible sections (mobile only; always open on desktop / without JS) */
.label button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: default;
}

.label button:hover {
  background: none;
  color: inherit;
}

@media (max-width: 800px) {
  .cell[data-collapsible] > .label button,
  .cell[data-collapsible] .career-head .label button {
    cursor: pointer;
    display: inline-flex;
    gap: 0.6rem;
    padding: 0.35rem 0;
    margin: -0.35rem 0;
  }
  .cell[data-collapsible] > .label button {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .cell[data-collapsible] .label button::after {
    content: "[−]";
  }
  .cell[data-collapsible].collapsed .label button::after {
    content: "[+]";
  }
  .cell.collapsed > :not(.label):not(.career-head) {
    display: none;
  }
  .cell.collapsed .toggle {
    display: none;
  }
  .cell.collapsed > .label, .cell.collapsed .career-head .label {
    margin-bottom: 0;
  }
  /* career header: toggle sits beside the title, expand marker pinned far right */
  .career-head {
    position: relative;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding-right: 2.5rem;
  }
  .career-head .label button::after {
    position: absolute;
    right: 0;
    top: 0.35rem;
  }
}
.bibtex summary {
  color: var(--accent);
}

.bibtex summary:hover {
  background: var(--accent);
  color: var(--bg);
}

.links, .pub-links, .more {
  color: var(--accent);
}

.highlight {
  background: transparent;
}

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs {
  color: var(--muted);
  font-style: italic;
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .nf, .highlight .nc {
  font-weight: 600;
}

.highlight .s, .highlight .s1, .highlight .s2, .highlight .m, .highlight .mi {
  color: var(--accent);
}

/*# sourceMappingURL=main.css.map */