@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #081719;
  --text: #ece9e1;
  --muted: #8f9a99;
  --line: #263638;
  --hover: #ffffff;
  --accent: #5aa7a0;
}

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

body {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: -0.01em;
}

.navbar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.navbar-nav .nav-link {
  color: var(--text) !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  opacity: 0.72;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--hover) !important;
  opacity: 1;
}

#quarto-content {
  padding-top: 0;
}

main.content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.quarto-title-block {
  display: none;
}

.home-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 5rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12vh 2rem 3rem;
}

.home-intro {
  align-self: center;
  width: 100%;
  max-width: 820px;
  text-align: left;
}

.home-name {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.home-name::before {
  content: "> ";
}

.home-kicker {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.home-kicker-accent {
  color: var(--accent);
  font-size: 1.1em;
}

.home-stack {
  margin-top: 1.75rem;
  color: var(--text);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.6;
}


.home-copy {
  max-width: 680px;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.8;
}

@keyframes typing-cursor {
  50% {
    opacity: 0;
  }
}

.home-rotator {
  min-height: 1.8em;
}

#home-rotator-text.is-typing::after {
  content: "_";
  display: inline-block;
  margin-left: 0.06em;
  color: var(--muted);
  font-weight: 400;
  animation: typing-cursor 0.8s steps(1) infinite;
}


.home-work {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-label {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.project-list {
  display: grid;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(16rem, 1.7fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, padding 160ms ease;
}

.project-item:hover,
.project-item:focus-visible {
  color: var(--hover);
  padding-left: 0.35rem;
}

.project-name {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
}

.project-description {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.project-arrow {
  color: var(--muted);
  font-size: 1rem;
}

.page-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 10vh 2rem 6rem;
}

.page-label {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-shell h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -0.04em;
}

.page-shell p {
  color: var(--muted);
  line-height: 1.7;
}


.trajectory-intro {
  max-width: 900px;
  margin-bottom: 4.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.trajectory-section {
  max-width: 900px;
  margin-bottom: 3.5rem;
}

.current-panel {
  max-width: 900px;
  margin-bottom: 3.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}

.current-panel > p:first-child {
  margin: 0 0 0.8rem;
}

.current-meta {
  color: var(--accent);
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.current-panel h3 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.current-panel p {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
}

.page-shell h2 {
  margin: 4rem 0 1.75rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-shell h2::before {
  content: "> ";
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  bottom: -2.5rem;
  left: 0.22rem;
  border-left: 1px solid var(--line);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-period,
.education-period {
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.timeline-content,
.education-content {
  min-width: 0;
}

.timeline-content h3,
.education-content h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.timeline-content p,
.education-content p {
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
}

.timeline-content ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.education-list {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.education-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.2;
}

.trajectory-note {
  max-width: 900px;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.fieldwork-section {
  max-width: 900px;
  margin-bottom: 3.5rem;
}

.fieldwork-section > p:first-child {
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.fieldwork-section .quarto-figure {
  margin: 0;
}

.fieldwork-section figure {
  margin: 0;
}

.fieldwork-map {
  display: block;
  width: min(100%, 760px);
  height: auto;
}

.fieldwork-places {
  display: none;
}





.trajectory-page {
  max-width: 1200px;
}

.trajectory-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 900px);
  gap: 3.5rem;
  align-items: start;
}

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

.trajectory-toc {
  position: sticky;
  top: 6rem;
  padding-top: 10vh;
}

.trajectory-toc-label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.trajectory-toc-label::first-letter {
  color: var(--accent);
}

.trajectory-toc ul {
  margin: 0;
  padding: 0 0 0 0.9rem;
  border-left: 1px solid var(--line);
  list-style: none;
}

.trajectory-toc li {
  margin: 0.45rem 0;
}

.trajectory-toc a {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-decoration: none;
}

.trajectory-toc a:hover,
.trajectory-toc a:focus-visible {
  color: var(--accent);
}

a {
  color: inherit;
}

@media (max-width: 720px) {
  .home-shell {
    min-height: calc(100vh - 64px);
    gap: 3.5rem;
    padding: 8vh 1.25rem 2rem;
  }

  .home-name {
    margin-bottom: 1.5rem;
  }

  .home-kicker {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
  }

  .home-stack {
    margin-top: 1.35rem;
  }


  .home-rotator {
    min-height: 3.6em;
  }

  .home-copy {
    margin-top: 0.9rem;
  }

  .home-work {
    padding-top: 1.5rem;
  }

  .project-item {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }

  .project-description {
    grid-column: 1 / -1;
    max-width: 34rem;
  }

  .project-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .trajectory-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trajectory-toc {
    position: static;
    padding-top: 0;
    margin-bottom: 3.5rem;
  }

  .trajectory-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0 0 1rem;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .trajectory-toc li {
    margin: 0;
  }

  .trajectory-toc a {
    font-size: 0.75rem;
  }


  .page-shell {
    padding: 8vh 1.25rem 4rem;
  }
}



@media (max-width: 720px) {
  .trajectory-intro {
    margin-bottom: 3.5rem;
  }

  .page-shell h2 {
    margin-top: 3rem;
  }

  .timeline-item,
  .education-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-left: 1.25rem;
  }

  .timeline-item:not(:last-child)::before {
    left: 0.22rem;
  }

  .timeline-item::after {
    left: 0;
  }

  .timeline-period,
  .education-period {
    padding-left: 0;
  }

  .fieldwork-section > p:first-child {
    margin-bottom: 1.25rem;
  }

  .fieldwork-map {
    width: 100%;
  }

  .fieldwork-places {
    display: block;
    margin-top: 1rem;
  }

  .fieldwork-places p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
  }

  .fieldwork-place {
    padding: 0.3rem 0.5rem;
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    line-height: 1.2;
  }
}

.footer {
  background: var(--bg) !important;
  border-top: 1px solid var(--line);
}

.nav-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg) !important;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.35rem 2rem 1.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
}

.nav-footer p {
  margin: 0;
}

.nav-footer-left,
.nav-footer-right {
  display: none;
}

.nav-footer-center {
  display: block;
  flex: 0 0 auto;
}

.nav-footer a {
  color: var(--muted);
}

.nav-footer a:hover,
.nav-footer a:focus-visible {
  color: var(--hover);
}

@media (max-width: 720px) {
  .nav-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.5rem;
  }
}
