@font-face {
  font-family: Gantari;
  src: url('/assets/fonts/Gantari-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #FFFFFF;
  --ink: #11253B;
  --muted: #5E728D;
  --line: #E8EEF7;
  --hover: #F3F7FD;
  --head: #11253B;
  --shadow: #11253B;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #06182B;
  --ink: #F3F7FD;
  --muted: #9FB0C6;
  --line: #293C54;
  --hover: #11253B;
  --head: #FFFFFF;
  --shadow: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --background: #06182B;
    --ink: #F3F7FD;
    --muted: #9FB0C6;
    --line: #293C54;
    --hover: #11253B;
    --head: #FFFFFF;
    --shadow: #000000;
  }
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Gantari, 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
button[hidden], [hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--background); }
.page { min-height: 100svh; display: flex; flex-direction: column; padding: 0 48px; }
.header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark { display: block; width: 165px; height: auto; }
.wordmark-dark { display: none; }
[data-theme='dark'] .wordmark-light { display: none; }
[data-theme='dark'] .wordmark-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .wordmark-light { display: none; }
  :root:not([data-theme='light']) .wordmark-dark { display: block; }
}
.controls { display: flex; align-items: center; gap: 6px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.language-menu { position: relative; color: var(--muted); font-size: 12px; }
.language-menu summary { display: flex; align-items: center; gap: 6px; min-height: 42px; cursor: pointer; list-style: none; border-radius: 6px; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.language-menu[open] summary { color: var(--ink); }
.language-menu[open] summary svg { transform: rotate(180deg); }
.language-menu nav { position: absolute; z-index: 5; right: -8px; top: 46px; display: grid; gap: 2px; min-width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); box-shadow: 0 8px 24px rgb(0 0 0 / .06); }
.language-menu nav a { padding: 10px 12px; border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.language-menu nav a:hover, .language-menu nav a[aria-current='page'] { color: var(--ink); background: var(--hover); }
.language-menu nav a[aria-current='page'] { font-weight: 600; }
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 180ms, color 180ms;
}
.icon-button:hover { color: var(--ink); background: var(--hover); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.control-divider { width: 1px; height: 16px; margin: 0 2px; background: var(--line); }
.icon-button .play-icon, .icon-button .sun-icon { display: none; }
[data-effective-theme='dark'] .moon-icon { display: none; }
[data-effective-theme='dark'] .icon-button .sun-icon { display: block; }
[data-paused='true'] .pause-icon { display: none; }
[data-paused='true'] .icon-button .play-icon { display: block; }
.main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0 48px; text-align: center; }
.mascot-stage { position: relative; width: clamp(260px, 27vw, 350px); margin: 0 0 44px; }
.mascot { width: 100%; height: auto; overflow: visible; display: block; }
.head, .eyes { fill: var(--head); }
.antenna { fill: none; stroke: var(--head); stroke-width: 32.8; }
.ground-shadow { position: absolute; width: 42%; height: 8px; bottom: -7px; left: 29%; background: var(--shadow); opacity: .075; border-radius: 50%; filter: blur(7px); }
.intro { width: 100%; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .025em; }
.eyebrow > span { width: 20px; height: 1px; background: currentColor; }
h1 { margin: 0; font-size: clamp(35px, 4.2vw, 60px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
h1 > span { color: var(--muted); }
.description { margin: 25px 0 0; color: var(--muted); font-size: 17px; font-weight: 400; line-height: 1.6; }
.mobile-break { display: none; }
.footer { min-height: 82px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; color: var(--muted); font-size: 12px; letter-spacing: .015em; }
.footer p { margin: 0; }
.privacy { justify-self: end; display: flex; align-items: center; gap: 6px; }
.privacy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); color: var(--ink); background: var(--background); padding: 12px; }
.skip-link:focus { transform: translateY(0); }

@media (min-width: 1600px) {
  .page { padding: 0 64px; }
  .header { min-height: 128px; }
  .main { padding-bottom: 56px; }
}
@media (min-width: 701px) and (min-height: 950px) {
  .mascot-stage { width: clamp(320px, 29vw, 400px); margin-bottom: 52px; }
}
@media (max-height: 850px) and (min-width: 701px) {
  .header { min-height: 88px; }
  .main { padding: 8px 0 32px; }
  .mascot-stage { width: clamp(220px, 25vw, 260px); margin-bottom: 32px; }
  h1 { font-size: clamp(38px, 4.2vw, 48px); }
  .footer { min-height: 70px; }
}
@media (max-width: 700px) {
  .page { padding: 0 24px; }
  .header { min-height: 88px; }
  .wordmark { width: 143px; }
  .controls { gap: 2px; }
  .header-tools { gap: 12px; }
  .main { padding: 34px 0 58px; }
  .mascot-stage { width: clamp(245px, 65vw, 330px); margin-bottom: 58px; }
  h1 { font-size: clamp(31px, 6.5vw, 43px); line-height: 1.15; }
  :lang(fr) h1, :lang(de) h1 { font-size: clamp(28px, 6.3vw, 43px); }
  .eyebrow { font-size: 12px; margin-bottom: 20px; gap: 8px; }
  .eyebrow > span { width: 14px; }
  .description { font-size: 16px; margin-top: 22px; }
  .mobile-break { display: inline; }
  .footer { grid-template-columns: 1fr auto; row-gap: 18px; padding: 23px 0; min-height: 105px; font-size: 11px; }
  .swiss { grid-column: 2; grid-row: 1; }
  .privacy { grid-column: 1 / -1; justify-self: center; font-size: 10px; }
  .privacy svg { width: 12px; height: 12px; }
}
@media (max-width: 380px) {
  .page { padding: 0 20px; }
  .wordmark { width: 130px; }
  .header-tools { gap: 8px; }
  .icon-button { width: 38px; }
  .mobile-break { display: inline; }
  h1 { font-size: 29px; }
  .footer { grid-template-columns: 1fr; row-gap: 16px; text-align: center; }
  .swiss { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
