@charset "UTF-8";
/* Modular SCSS Architecture */
/* CSS Custom Properties / Variables */
:root {
  /* Layout */
  --max-width: clamp(48rem, 55vw, 50rem); /* ~768px–1152px range, scales with font size */
  --side-margin: max(2rem, 5vw);
  --scroll-margin-top: 2rem;
  /* Colors */
  --text-color: #181818;
  --background-color: #fff;
  --accent-color: #0168c2;
  --accent-hover: #5695ec;
  --subtle-color: #555;
  --border-color: #eaeaea;
  --muted-text: #757575;
  /* Typography */
  --heading-font: "Open Sans", system-ui, -apple-system, sans-serif;
  --body-font: "Open Sans", system-ui, -apple-system, sans-serif;
  --base-font-size: 16px;
  --line-height: 1.6;
}

/* Font declarations */
/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/open-sans-v40-latin-300.woff2") format("woff2");
}
@font-face {
  font-display: optional;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/open-sans-v40-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/open-sans-v40-latin-italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/open-sans-v40-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: optional;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/open-sans-v40-latin-600.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/open-sans-v40-latin-700.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/open-sans-v40-latin-800.woff2") format("woff2");
}
/* Base styles and typography */
html {
  scroll-behavior: smooth;
  /* Prevent scroll restoration issues during navigation */
  scroll-padding-top: 2rem;
}

body {
  font-family: var(--body-font);
  margin: 0 auto;
  padding: 3rem var(--side-margin);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: var(--line-height);
  font-size: var(--base-font-size);
  color: var(--text-color);
  max-width: var(--max-width);
  background-color: var(--background-color);
  /* Prevent layout shifts during font loading */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Improve stability during navigation */
  overflow-x: auto;
  min-width: 20rem; /* allow horizontal scroll below this width instead of squashing */
}

/* Prevent layout shifts during page transitions */
* {
  box-sizing: border-box;
}

/* Links styling */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Add scroll margin to section headings */
[id] {
  scroll-margin-top: var(--scroll-margin-top);
}

/* Target highlighting */
@keyframes targetFade {
  0% {
    background-color: rgba(255, 250, 236, 0);
  }
  7% {
    background-color: rgba(255, 250, 236, 0.95);
  }
  30% {
    background-color: rgba(255, 250, 236, 0.95);
  }
  100% {
    background-color: rgba(255, 250, 236, 0);
  }
}
:target {
  animation: targetFade 4s cubic-bezier(0.2, 0, 0.1, 1) forwards;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  :target {
    animation: none;
    background-color: rgba(255, 250, 236, 0.95);
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Navigation and header */
header {
  margin-bottom: 2rem;
}

.nav-path {
  display: flex;
  align-items: center;
  font-size: clamp(1.2rem, 0.6rem + 1.2vw, 1.3rem);
  font-weight: 600;
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 0.15em;
  text-overflow: clip;
}

.nav-path a {
  color: var(--text-color);
  text-decoration: none;
  min-width: auto;
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible;
}

.nav-path span {
  min-width: auto;
  white-space: nowrap;
  text-overflow: clip;
  overflow: visible;
}

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

.nav-separator {
  margin: 0 0.5rem;
  color: var(--subtle-color);
  flex-shrink: 0;
}

/* Content container */
.container {
  width: 100%;
  position: relative;
}

.container.always-grid {
  display: grid;
  grid-template-columns: 1fr;
}

/* Divider element */
.divider {
  display: flex;
  width: 80%;
  margin: 1rem auto;
  justify-content: center;
  align-items: center;
  height: 1px;
}

.divider::before, .divider::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
}

.verbose-references::after {
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem auto;
}

.verbose-reference:last-child::after {
  display: none;
}

/* Section links styling */
.section-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.hover-container {
  transition: background-color 0.2s ease;
  position: relative;
  border-radius: 8px;
  margin: -0.75rem;
  padding: 0.75rem;
}

.hover-container:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.section-link:hover .section-heading,
.section-link:hover .blog-link {
  color: var(--accent-hover);
}

.section-link .description {
  color: var(--text-color);
}

/* Section headings */
.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 0.5rem;
}

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

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

/* Description text */
.description {
  font-size: 1rem;
  line-height: var(--line-height);
  margin-bottom: 0.75rem;
}

/* Anchor links */
.has-anchor {
  position: relative;
}

.anchor-link {
  opacity: 0;
  font-size: 0.8em;
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-left: 0.3em;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

.has-anchor:hover .anchor-link,
.hover-container:hover .anchor-link {
  opacity: 1;
}

.anchor-link:hover {
  color: var(--accent-hover);
  opacity: 1;
}

/* Abstract toggle section */
.toggle-section {
  margin-top: 1rem;
}

.expand-button {
  background-color: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  color: var(--subtle-color);
  transition: all 0.2s ease;
  border-radius: 4px;
}

.expand-button:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

.hidden {
  display: none;
}

/* Footer */
footer {
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--subtle-color);
  position: relative;
}

.global-footer .divider {
  width: 100%;
  margin: 2rem auto 1rem auto;
}

/* Author highlighting */
.author-name {
  transition: all 0.2s ease;
}

.author-name.highlight-author {
  text-decoration: underline;
  /* color: var(--accent-color); */
}

.author-name.highlight-author:hover {
  /* color: var(--accent-hover); */
}

/* Publications timeline */
.publications-timeline {
  position: relative;
  margin-left: 4rem;
}

.publications-timeline::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.year-marker {
  position: absolute;
  left: -4.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--subtle-color);
  background-color: var(--background-color);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  z-index: 2;
}

.year-group {
  position: relative;
  margin-bottom: 2rem;
}

.year-group .bibliography-entry {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

/* Removed timeline dots for cleaner look
.year-group .bibliography-entry::before {
  content: '';
  position: absolute;
  left: -3.05rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
}
*/
/* Venue links styling */
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.venue-link:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

.venue-name {
  font-weight: 500;
}

.venue-date {
  color: var(--muted-text);
  font-size: 0.8rem;
}

.venue-link.venue-journal {
  border-color: #4a90e2;
}

.venue-link.venue-journal .venue-name {
  color: #4a90e2;
}

.venue-link.venue-journal:hover {
  background-color: #4a90e2;
}

.venue-link.venue-journal:hover .venue-name {
  color: white;
}

.venue-link.venue-conference {
  border-color: #f39c12;
}

.venue-link.venue-conference .venue-name {
  color: #f39c12;
}

.venue-link.venue-conference:hover {
  background-color: #f39c12;
}

.venue-link.venue-conference:hover .venue-name {
  color: white;
}

.venue-link.venue-arxiv {
  border-color: #e74c3c;
}

.venue-link.venue-arxiv .venue-name {
  color: #e74c3c;
}

.venue-link.venue-arxiv:hover {
  background-color: #e74c3c;
}

.venue-link.venue-arxiv:hover .venue-name {
  color: white;
}

/* Blog venue link styling */
.venue-link.venue-blog {
  border-color: #9b59b6;
  color: #9b59b6;
}

.venue-link.venue-blog:hover {
  background-color: #9b59b6;
  color: white;
}

/* Clean tabular blog posts list inspired by Steph Ango */
.posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.posts-list li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.posts-list .post-link {
  color: var(--text-color);
  text-decoration: none;
  display: grid;
  grid-template-columns: 6rem 1fr;
  grid-template-rows: auto auto;
  gap: 0 2rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.posts-list .post-link:hover {
  color: var(--accent-hover);
}

.posts-list .post-link:hover .post-list-title {
  color: var(--accent-hover);
}

.post-flex {
  display: contents;
}

.post-date {
  color: var(--subtle-color);
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  font-family: var(--body-font);
  grid-column: 1;
  grid-row: 1;
  align-self: baseline;
}

.post-list-title {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
}

.post-excerpt-compact {
  color: var(--subtle-color);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.1rem;
  opacity: 0.8;
  grid-column: 2;
  grid-row: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .posts-list .post-link {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.25rem 0;
  }
  .post-date {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .post-list-title {
    grid-column: 1;
    grid-row: 2;
  }
  .post-excerpt-compact {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.25rem;
  }
}
/* Resume page styling */
.resume-container {
  max-width: 100%;
  margin: 0 auto;
}

.resume-header {
  margin-bottom: 2rem;
  text-align: center;
}

.resume-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.resume-meta {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.resume-date {
  color: var(--subtle-color);
  font-size: 0.9rem;
  font-family: var(--body-font);
}

.resume-content {
  max-width: 100%;
}

.resume-description {
  margin-bottom: 2rem;
  text-align: center;
}

.resume-description p {
  color: var(--subtle-color);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.resume-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Resume-specific venue link styles */
.venue-link.venue-resume {
  border-color: #27ae60;
  color: #27ae60;
}

.venue-link.venue-resume:hover {
  background-color: #27ae60;
  color: white;
}

.venue-link.venue-download {
  border-color: #8e44ad;
  color: #8e44ad;
}

.venue-link.venue-download:hover {
  background-color: #8e44ad;
  color: white;
}

.resume-preview {
  margin-bottom: 2rem;
}

.pdf-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pdf-iframe {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  display: block;
}

.resume-fallback {
  text-align: center;
  margin-top: 1rem;
}

.resume-fallback .muted-text {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.resume-fallback a {
  color: var(--accent-color);
  text-decoration: underline;
}

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

/* Responsive resume adjustments */
@media (max-width: 768px) {
  .resume-title {
    font-size: 1.5rem;
  }
  .resume-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .pdf-iframe {
    height: 60vh;
    min-height: 400px;
  }
  .pdf-container {
    border-radius: 4px;
  }
}
@media (max-width: 480px) {
  .resume-header {
    margin-bottom: 1.5rem;
  }
  .resume-description {
    margin-bottom: 1.5rem;
  }
  .pdf-iframe {
    height: 50vh;
    min-height: 350px;
  }
}
/* Paper styling */
.paper-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Research page specific styling */
.research-page .paper-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.research-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-color);
}

.paper-authors, .date {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--subtle-color);
  margin-bottom: 0.6rem;
}

.paper-links {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.date {
  font-weight: 400;
  font-style: italic;
}

/* Blog */
.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.blog-link {
  text-decoration: none;
  color: var(--text-color);
}

.section-link:hover .blog-link {
  color: var(--accent-hover);
}

/* Blog post */
.blog-post {
  margin-top: 1rem;
  line-height: 1.7;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem 0;
  color: var(--text-color);
}

.blog-post .post-date {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-bottom: 2.5rem;
}

.blog-post p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.blog-post h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1rem 0 1rem 0;
  color: var(--text-color);
}

.blog-post h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  color: var(--text-color);
}

.blog-post h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem 0;
  color: var(--text-color);
}

.blog-post h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-color);
}

.blog-post ul, .blog-post ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.blog-post li {
  margin-bottom: 0.5rem;
}

.blog-post img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
}

.blog-post figure {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 2rem auto;
  display: block;
}

.blog-post blockquote {
  border-left: 3px solid var(--border-color);
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--subtle-color);
}

.blog-post code {
  font-family: monospace;
  background-color: #f5f5f5;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.95em;
}

.blog-post pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post pre code {
  background-color: transparent;
  padding: 0;
}

.blog-post a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 2rem 1.5rem;
  }
  .nav-separator {
    margin: 0 0.3rem;
  }
  .anchor-link {
    opacity: 0.6;
  }
  .divider {
    margin: 1.25rem auto;
  }
  footer {
    padding-top: 1.5rem;
  }
  .global-footer .divider {
    margin: 0 auto 1.5rem auto;
  }
  .post-title {
    font-size: 1.8rem;
  }
  .blog-post h1 {
    font-size: 1.7rem;
  }
  .blog-post h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
  }
  .nav-separator {
    margin: 0 0.25rem;
  }
  .divider {
    margin: 1rem auto;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .blog-post h1 {
    font-size: 1.5rem;
  }
  .blog-post h2 {
    font-size: 1.3rem;
  }
  footer {
    padding-top: 1.25rem;
  }
  .global-footer .divider {
    margin: 0 auto 1.25rem auto;
  }
}

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