:root {
    --ink: #17171e;
    --muted: #585962;
    --paper: #fcfbf8;
    --line: #deded9;
    --violet: #5041da;
    --soft: #f5f5fb;
    --wrap: 1180px;
    --header-height: 70px;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 8px); }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, summary, a { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #7162dd; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap, .navigation { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 8; left: 12px; top: 8px; padding: 10px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 3; background: #e5e4f8; }
.navigation { width: min(var(--wrap), calc(100% - 48px)); min-height: var(--header-height); display: flex; gap: clamp(14px, 1.4vw, 22px); align-items: center; border-bottom: 1px solid #28263a24; }
.brand { margin-right: auto; }
.navigation > .brand { flex: none; }
.navigation .brand img { width: 137px; }
.brand img, .footer img { height: auto; }
.nav-links, .footer nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-links { gap: clamp(12px, 1.35vw, 20px); }
.nav-links a, .nav-download { white-space: nowrap; font-size: .88rem; font-weight: 600; }
.nav-links a:hover, .footer a:hover, .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-download { padding: 8px 17px; border: 1px solid #17171e; border-radius: 7px; }
.download-short, .menu { display: none; }

.cta { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; font-size: .96rem; }
.cta span { font-size: 1.13em; }
.primary { color: #fff; background: var(--ink); }
.primary:hover { background: #393447; }
.secondary { color: var(--ink); border-color: #585260; background: #ffffff26; }
.secondary:hover { background: #ffffff80; }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

.footer { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-block: 35px; font-size: .83rem; color: var(--muted); }
.footer nav { margin-left: auto; }

.languages { position: relative; font-size: .88rem; }
.languages summary { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 9px; border-radius: 7px; font-weight: 600; white-space: nowrap; }
.languages summary:hover, .languages[open] summary { background: #ffffff80; }
.globe { position: relative; width: 17px; height: 17px; border: 1.5px solid; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid; border-radius: 50%; }
.globe::after { content: ""; position: absolute; top: 50%; inset-inline: 0; border-top: 1px solid; }
.chevron { width: 6px; height: 6px; margin: -3px 1px 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.languages[open] .chevron { transform: translateY(3px) rotate(225deg); }
.language-code { display: none; }
.languages nav, .menu nav { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior-y: contain; }
.languages nav { position: absolute; top: 100%; right: 0; display: grid; min-width: 10rem; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px #19132320; }
.languages a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; padding: 6px 10px; border-radius: 5px; }
.languages a[aria-current]::after { content: "✓" / ""; color: var(--violet); }
.languages a:hover, .languages a[aria-current] { background: #eceaf7; }
.footer nav { flex-wrap: wrap; }
@media (width > 75em) {
    .nav-links { flex: 1; justify-content: space-evenly; }
    .nav-download { min-width: 12rem; text-align: center; }
    .languages { min-width: 8.5rem; }
}
@media(max-width: 75em) {
    .navigation { width: calc(100% - 40px); }
    .nav-links { display: none; }
    .menu { display: block; position: relative; }
    .menu summary { width: 36px; height: 40px; display: grid; align-content: center; justify-content: center; gap: 5px; }
    .menu i { width: 20px; height: 2px; background: var(--ink); }
    .menu nav { position: absolute; top: 45px; right: 0; display: grid; min-width: 170px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px #19132324; }
    .menu nav a { padding: 8px 10px; }
}

@media(max-width: 800px) {
    .wrap { width: calc(100% - 40px); }
}
@media(max-width: 600px) {
    :root { --header-height: 59px; }
    .navigation { gap: 9px; }
    .languages summary { padding-inline: 4px; gap: 4px; }
    .language-name { display: none; }
    .language-code { display: inline; }
    .navigation .brand img { width: 116px; }
    .nav-download { font-size: .78rem; padding: 7px 10px; }
    .footer { gap: 12px; }
    .footer nav { margin: 0; width: 100%; }
}

@media(max-width: 30em) {
    .navigation { width: calc(100% - 24px); gap: 6px; }
    .download-full { display: none; }
    .download-short { display: inline; }
}
@media(max-width: 23em) {
    .navigation .brand img { width: 94px; }
    .navigation { gap: 4px; }
    .nav-download { padding-inline: 8px; }
    .languages summary { min-width: 44px; padding-inline: 0; justify-content: center; }
    .languages .chevron { display: none; }
}

.nav-links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
