
:root {
  --header-height: clamp(90px, 10vw, 135px);
  --header-logo-size: clamp(50px, 7vw, 90px);
  --header-title-size: clamp(28px, 4.8vw, 68px);
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  height: auto;

  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 25px);

  padding: 12px 75px 12px 2vw;
  box-sizing: border-box;

  background: linear-gradient(to bottom, #181821 85%, transparent);
  z-index: 9;
}

/* LOGO */

.site-header .site-logo {
  display: block;
  position: static;
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  flex-shrink: 0;
  object-fit: contain;
  margin: 0;
}

/* PAGE TITLE */

.site-header .site-title {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.1em 0 0.16em;

  font-family: 'Montserrat', sans-serif;
  font-size: var(--header-title-size);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: visible;

  background: linear-gradient(to right, #81dee0, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #81dee0;
}

/* MOBILE */

@media (max-width: 600px) {
  .site-header {
    min-height: 75px;
    padding: 10px 60px 10px 12px;
    gap: 12px;
  }

  .site-header .site-logo {
    width: 48px;
    height: 48px;
  }

  .site-header .site-title {
    font-size: clamp(20px, 5vw, 30px);
    line-height: 1.3;
    padding: 0.1em 0 0.15em;
  }
}

/* CONSISTENT SPACING BELOW HEADER*/

:root {
  --page-content-gap: 15px;
}

.site-header {
  margin-bottom: var(--page-content-gap);
}

.page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* CONSISTENT SPACING BELOW HEADER */

:root {
  --page-content-gap: 15px;
}

.site-header {
  margin-bottom: 0;
}

body > .site-header + .about-parent-container,
body > .site-header + .blog-parent-container,
body > .site-header + .filter-dropdown,
body > .site-header + .parent-container,
body > .site-header + .projects-parent-container,
body > .site-header + .publication-controls,
body > .site-header + .resources-parent-container,
body > .site-header + #codVis {
  margin-top: var(--page-content-gap) !important;
  padding-top: 0 !important;
}
