:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --blue: #3b82f6;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  color-scheme: light;
  font-synthesis: none;
}

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

html {
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.page {
  width: min(calc(100% - 5rem), 1320px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

header {
  min-height: 108px;
}

.brand {
  display: inline-flex;
}

.brand img {
  display: block;
  width: 168px;
  height: auto;
}

.languages {
  display: flex;
  gap: 1rem;
}

.languages a {
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: none;
  text-transform: uppercase;
}

.languages a[aria-current="page"] {
  color: var(--ink);
  box-shadow: 0 2px var(--purple-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--purple-dark);
}

footer {
  min-height: 90px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

footer p span {
  margin-inline: 0.4rem;
}

footer nav {
  display: flex;
  gap: 1.6rem;
}

footer nav a {
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--purple-dark);
}

@media (max-width: 720px) {
  .page {
    width: min(calc(100% - 2.2rem), 1320px);
  }

  header {
    min-height: 82px;
  }

  .brand img {
    width: 130px;
  }

  .languages {
    gap: 0.7rem;
  }

  footer {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
  }
}
