:root {
  --site-paper: #f3ead8;
  --site-ink: #090909;
  --site-muted: #625f5d;
  --site-line: rgba(9, 9, 9, 0.16);
  --site-blue: #0004ff;
  --site-shell: min(1184px, calc(100% - 48px));
  --site-font: "Satoshi", Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--site-font);
}

.global-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--site-line);
  background: rgba(243, 234, 216, 0.92);
  color: var(--site-ink);
  backdrop-filter: blur(14px);
}

.global-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.global-header__inner {
  width: var(--site-shell);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(178px, 1fr) auto minmax(178px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.global-brand {
  width: fit-content;
  grid-column: 1;
  grid-row: 1;
  line-height: 0;
}

.global-brand img {
  display: block;
  width: 178px;
  height: auto;
}

.global-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.global-nav a,
.global-footer a,
.global-footer button {
  color: inherit;
  text-decoration: none;
}

.global-nav a {
  position: relative;
  padding: 9px 0;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.global-cta {
  min-height: 44px;
  padding: 0 19px;
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--site-ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.global-cta:hover {
  background: var(--site-blue);
  transform: translateY(-1px);
}

.global-header__actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-header__actions .global-cta { grid-column: auto; grid-row: auto; }

.language-switcher { position: relative; }
.language-switcher__code { display: none; }
.language-switcher summary {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: rgba(243, 234, 216, 0.78);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  display: inline;
  width: auto;
  height: auto;
  flex: none;
  border-radius: 0;
  background: none;
  color: inherit;
  content: '⌄';
  font-size: 1rem;
  line-height: 1;
}
.language-switcher[open] summary::after {
  background: none;
  color: inherit;
  content: '⌄';
  transform: rotate(180deg);
}
.language-switcher summary:hover::after { transform: none; }
.language-switcher summary:focus-visible,
.language-switcher a:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 3px; }
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: max-content;
  min-width: 170px;
  max-height: min(65vh, 480px);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-radius: 16px;
  background: #fff;
  color: var(--site-ink);
  box-shadow: 0 14px 40px rgba(9, 9, 9, 0.18);
}
.language-switcher__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
}
.language-switcher__menu a:hover,
.language-switcher__menu a[aria-current='page'] { background: #f1f1ff; }

.global-brand:focus-visible,
.global-nav a:focus-visible,
.global-cta:focus-visible,
.global-footer a:focus-visible,
.global-footer button:focus-visible {
  outline: 2px solid var(--site-blue);
  outline-offset: 4px;
}

.global-footer {
  position: relative;
  min-height: clamp(480px, 33.333vw, 724px);
  overflow: hidden;
  background: var(--site-paper);
  color: #fff;
}

.global-footer__art {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.global-footer__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.global-footer__inner {
  position: relative;
  z-index: 1;
  width: var(--site-shell);
  min-height: clamp(480px, 33.333vw, 724px);
  margin: 0 auto;
  padding: 104px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
}

.global-footer__brand {
  width: fit-content;
  line-height: 0;
}

.global-footer__brand img {
  display: block;
  width: 204px;
  height: auto;
}

.global-footer__bottom {
  padding-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.global-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.global-footer__links a,
.global-footer__links button,
.global-footer__business {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

.global-footer__links a:hover,
.global-footer__links button:hover,
.global-footer__business a:hover {
  color: #fff;
  text-decoration: underline;
}

.global-footer__links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.global-footer__sep {
  color: rgba(255, 255, 255, 0.35);
}

.global-footer__business {
  margin: 0;
  text-align: right;
}

@media (max-width: 760px) {
  :root {
    --site-shell: calc(100% - 30px);
  }

  .global-header__inner {
    min-height: 108px;
    padding: 12px 0 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 7px;
  }

  .global-header__actions { display: contents; }

  .language-switcher { grid-column: 2; grid-row: 1; justify-self: end; }
  .language-switcher summary { min-height: 38px; padding: 0 10px; }
  .language-switcher summary .language-switcher__name { display: none; }
  .language-switcher summary .language-switcher__code { display: inline; }
  .language-switcher summary::before { content: '🌐'; font-size: 1rem; }

  .global-brand img {
    width: 154px;
  }

  .global-cta {
    min-height: 40px;
    padding: 0 16px;
    grid-column: 2;
    grid-row: 1;
    font-size: 0.8125rem;
  }

  .global-header--localized .global-cta { grid-column: 2; grid-row: 2; }

  .global-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    font-size: 0.8125rem;
    scrollbar-width: none;
  }

  .global-nav::-webkit-scrollbar {
    display: none;
  }

  .global-nav a {
    padding: 5px 0;
  }

  .global-nav a::after {
    bottom: 1px;
  }

  .global-header--localized .global-nav { grid-column: 1; }

  .global-footer,
  .global-footer__inner {
    min-height: 520px;
  }

  .global-footer__inner {
    padding: 190px 0 24px;
    align-items: center;
    gap: 24px;
  }

  .global-footer__bottom {
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }

  .global-footer__links {
    justify-content: center;
  }

  .global-footer__business {
    text-align: center;
  }
}

@media (max-width: 390px) {
  .global-header__inner {
    column-gap: 10px;
  }

  .global-brand img {
    width: 142px;
  }

  .global-nav {
    gap: 18px;
  }

  .global-footer__sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav a::after,
  .global-cta {
    transition: none;
  }
}
