:root {
  /* @link https://utopia.fyi/type/calculator?c=320,16,1.125,720,21,1.25,6,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --step--1: clamp(0.8889rem, 0.7873rem + 0.5079vw, 1.2rem);
  --step-0: clamp(1rem, 0.8367rem + 0.8163vw, 1.5rem);
  --step-1: clamp(1.125rem, 0.8801rem + 1.2245vw, 1.875rem);
  --step-2: clamp(1.2656rem, 0.9136rem + 1.7602vw, 2.3438rem);
  --step-3: clamp(1.6018rem, 1.0885rem + 2.5666vw, 3.1738rem);
  --step-4: clamp(1.802rem, 1.095rem + 3.5351vw, 3.9673rem);
  --step-5: clamp(2.0273rem, 1.07rem + 4.7866vw, 4.9591rem);
  --step-6: clamp(2.2807rem, 1.0013rem + 6.397vw, 6.1989rem);

  /* @link https://utopia.fyi/space/calculator?c=320,8,1.2,1240,12,1.333,6,2,&s=0.75|0.5,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --space-2xs: clamp(0.25rem, 0.2065rem + 0.2174vw, 0.375rem);
  --space-xs: clamp(0.375rem, 0.3098rem + 0.3261vw, 0.5625rem);
  --space-s: clamp(0.5rem, 0.413rem + 0.4348vw, 0.75rem);
  --space-m: clamp(0.75rem, 0.6196rem + 0.6522vw, 1.125rem);
  --space-l: clamp(1rem, 0.8261rem + 0.8696vw, 1.5rem);
  --space-xl: clamp(1.5rem, 1.2391rem + 1.3043vw, 2.25rem);
  --space-2xl: clamp(2rem, 1.6522rem + 1.7391vw, 3rem);
  --space-3xl: clamp(3rem, 2.4783rem + 2.6087vw, 4.5rem);

  /* Line heights */
  --line-height-single: 1;
  --line-height-display: 1.1;
  --line-height-tight: 1.3;
  --line-height-snug: 1.4;
  --line-height-body: 1.5;
}

/* Desktop header */

/* header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
} */

/* WordPress admin bar offsets (so it doesn’t overlap) */
body.admin-bar {
  --admin-offset: 32px;
}
@media (max-width: 782px) {
  body.admin-bar {
    --admin-offset: 46px;
  }
}

.site-header {
  background: #000;
  position: relative;
  z-index: 1000;
}

.site-header__inner {
  margin: 0 auto;
  padding: var(--space-s) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  max-width: 1650px;
}

/* Logo left */
.site-header__logo {
  flex: 0 0 auto;
}
.site-header__logo img {
  height: var(--step-4);
  width: auto;
  display: block;
  z-index: 1200;
}

/* Burger button – hidden on desktop */
.site-header__toggle {
  background: none;
  border: 0;
  padding: 0.5rem;
  display: none; /* shown in mobile */
  cursor: pointer;
}

/* The two lines */
.site-header__toggle-line {
  display: block;
  width: 30px;
  height: 2px;
  margin: 5px 0;
  background-color: #eeeeee;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__lang-switch {
  justify-self: end;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.site-header__lang-switch a {
  text-decoration: none;
}

/* Desktop nav */
.site-header__nav {
  display: block;
  /* background-color: rgb(26, 26, 26); */
  background-color: #000000c5;
  padding: var(--space-s) var(--space-l); /* moved padding into the menu */
  border-radius: var(--space-xl);
  flex: 1 1 auto; /* grow to fill middle */
  min-width: 0;
  max-width: 895px; /* avoid overflow with long labels */
}

.site-header__menu {
  list-style: none;
  margin: 0;
  padding: 0; /* inner breathing room */
  display: flex;
  width: 100%;
  gap: var(--space-m);
  justify-content: space-between; /* spread links across the width */
  align-items: center;
}

.site-header__menu li a {
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: var(--step-2);
  font-family: "False", "General Sans Variable", sans-serif;
  white-space: nowrap;
}

/* MOBILE */

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  /* Show burger, but NOT fixed */
  .site-header__toggle {
    display: block;
    position: relative; /* in the header flow */
    top: auto;
    right: auto;
    z-index: 1100;
    color: #eeeeee;
  }

  /* Hide nav by default */
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%; /* directly under the header */
    left: 0;
    right: 0;
    padding: 0;
  }

  /* Overlay-style dropdown that overlaps content but scrolls with the header */
  .site-header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: start;
    padding-top: 4rem;
    /* min-height: 100vh; */
    min-height: 100dvh; /* dynamic viewport units on modern browsers */
    height: 100vh; /* fallback for older ones */
    z-index: 1000;
  }

  .site-header__menu {
    width: auto; /* don’t force full width in overlay */
    padding: 0;
    gap: 1.5rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .site-header__menu li {
    border: 0;
    font-size: var(--step-3);
  }

  .site-header__menu li a {
    display: block;
    padding: 0.25rem 0;
    text-decoration: none;
  }

  .site-header__lang-switch {
    display: none;
  }
}

/* Burger → X (with two lines) */
.site-header__toggle.is-active .site-header__toggle-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.site-header__toggle.is-active .site-header__toggle-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Header hiding */

/* Fade animation for sticky header */
header.wp-block-template-part {
  position: sticky;
  top: var(--admin-offset, 0px);
  z-index: 1000;
  isolation: isolate;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

/* Hidden state */
header.wp-block-template-part.is-hidden {
  opacity: 0;
  pointer-events: none; /* ensures links don’t block content below */
}

/* WordPress admin bar offset variable */
body.admin-bar {
  --admin-offset: 32px;
}
@media (max-width: 782px) {
  body.admin-bar {
    --admin-offset: 46px;
  }
}

/* .menu-item-type-post_type.menu-item-object-page.current-menu-item.page_item.current_page_item
  a {
  color: var(--wp--preset--color--accent-1) !important;
} */

/* header.wp-block-template-part {
  position: absolute;
  top: var(--admin-offset, 0px);
  left: 0;
  width: 100%;
  z-index: 1000;
  isolation: isolate;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
} */

.site-header__nav.is-open .site-header__menu li a {
  font-size: var(--step-4);
}
