@font-face {
  font-family: "Baloo";
  src: url("/assets/fonts/baloo2-extrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --night: #0b0b0e;
  --shell: #f1efe8;
  --gold: #fac775;
  --gold-deep: #f2b94e;
  --ray: #faeeda;
  --display: "Baloo", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --background: var(--night);
  --surface: #16161c;
  --line: rgba(241, 239, 232, .14);
  --text: var(--shell);
  --muted: #b3b0a8;
  --accent: var(--gold);
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.65 var(--body);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

a {
  color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--night);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
  padding: 8px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.5vw, 18px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .language {
  padding: 0 14px;
  border: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font: 800 20px/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.brand em {
  color: var(--accent);
  font-style: normal;
}

.brand-mark {
  width: 30px;
  height: 40px;
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--night);
  font: 800 18px/1.2 var(--display);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .2s, box-shadow .2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--gold-deep) 70%, transparent);
}

.button.ghost {
  background: transparent;
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px clamp(16px, 5vw, 56px) 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
