/* V3: agreed header changes only. The V2 stylesheet and assets stay unchanged.
   Keep the 1100px breakpoint aligned with desktopNavigation in app.js. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/sora-500.woff2') format('woff2');
}

:root {
  --header-height: 248px;
  --brand-home-size: 288px;
  --brand-compact-size: 192px;
  --brand-top: 52px;
  --navigation-font: 'Sora', Manrope, Arial, sans-serif;
}

.topline > span {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.topline em {
  font-style: italic;
  font-weight: 400;
}

.header {
  height: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: none;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 38px);
  margin: 4px 0 0;
}

.desktop-nav a {
  font-family: var(--navigation-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.brand {
  top: var(--brand-top);
  width: var(--brand-home-size);
  height: var(--brand-home-size);
}

.header.is-scrolled .brand,
.inner-page .brand,
.header:has(.menu-toggle[aria-expanded=true]) .brand {
  top: var(--brand-top);
  width: var(--brand-compact-size);
  height: var(--brand-compact-size);
}

.header-right {
  position: absolute;
  right: 4.5%;
  top: 122px;
  margin: 0;
}

.home-page .hero {
  margin-top: calc(-1 * var(--header-height));
  height: auto;
  min-height: calc(100svh - 34px);
  max-height: none;
}

.hero-content {
  padding-top: 280px;
}

.mobile-nav a {
  font-family: var(--navigation-font);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

@media (max-width: 1320px) and (min-width: 1101px) {
  :root { --brand-home-size: 276px; }
  .header { padding-inline: 3%; }
  .desktop-nav { gap: 23px; }
  .hero-content { padding-top: 275px; }
}

@media (max-width: 1100px) {
  :root {
    --header-height: 184px;
    --brand-home-size: 252px;
    --brand-compact-size: 176px;
    --brand-top: 4px;
  }
  .desktop-nav { display: none; }
  .header { justify-content: center; }
  .header-right { right: 28px; top: 68px; }
  .menu-toggle { top: 68px; }
  .hero-content { padding-top: 280px; }
}

@media (max-width: 600px) {
  :root {
    --header-height: 170px;
    --brand-home-size: 214px;
    --brand-compact-size: 162px;
  }
  .header-right { display: none; }
  .menu-toggle { top: 61px; }
  .header:after { top: 79px; right: 16px; }
  .hero-content { padding-top: 240px; }
  .home-page .hero { min-height: calc(100svh - 58px); }
  .mobile-nav { padding-top: 12px; }
  .mobile-nav a { min-height: 56px; font-size: 21px; }
}

@media (max-width: 360px) {
  :root { --brand-home-size: 198px; }
  .hero-content { padding-top: 224px; }
  .header:after { right: 10px; }
  .mobile-nav a { font-size: 19px; }
}
