:root {
    --lime: #9eff2f;
    --background: #f3f7ef;
    --surface: #ffffff;
    --text: #10130f;
    --text-secondary: #667064;
    --line: #dde4d6;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.top,
main {
    max-width: 680px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
}

main {
    padding-bottom: 72px;
}

a {
    color: var(--text);
    text-decoration-color: var(--lime);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
}

h1 {
    margin: 40px 0 8px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    margin: 36px 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

p,
li {
    margin: 0 0 12px;
}

ul {
    padding-left: 22px;
}

.meta,
.note {
    color: var(--text-secondary);
}

.language {
    position: relative;
    font-size: 15px;
}

.language summary {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.language summary::-webkit-details-marker {
    display: none;
}

.language summary::after {
    content: " ▾";
    color: var(--text-secondary);
}

.language ul {
    position: absolute;
    right: 0;
    z-index: 1;
    min-width: 200px;
    margin: 8px 0 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(16, 19, 15, 0.12);
    list-style: none;
}

.language li {
    margin: 0;
}

.language a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.language a:hover,
.language a[aria-current] {
    background: var(--background);
}

.language a[aria-current] {
    font-weight: 700;
}

.button {
    display: inline-block;
    margin: 8px 0 16px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--text);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding-top: 48px;
}

.hero img {
    width: 112px;
    height: 112px;
}

.hero h1 {
    margin-top: 28px;
}

.hero .lead {
    margin: 0 auto 6px;
    max-width: 30em;
    color: var(--text-secondary);
    font-size: 19px;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 36px;
    font-weight: 600;
}

footer {
    margin-top: 72px;
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 480px) {
    .top {
        padding-top: 20px;
    }

    h1 {
        font-size: 32px;
    }
}
