:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    font-size: 100%;
    color: #0f172a;
    background: #e5edf7;
}

@media (min-width: 1921px) {
    :root {
        font-size: max(1rem, calc(16 / 1920 * 100vw));
    }
}

* {
    box-sizing: border-box;
}

body {
    display: flow-root;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #f9fbff, #dbe4f3);
    line-height: 1.55;
}

.shell {
    width: min(100% - 2rem, 76rem);
    margin: 2rem auto;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.95));
    box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.18);
}

.language-choice {
    max-width: 40rem;
}

.navigation,
.language-links,
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.navigation {
    justify-content: space-between;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.language-links [aria-current] {
    color: #334155;
    font-weight: 700;
}

.intro {
    margin: 2.5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-weight: 600;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    max-width: 24em;
    margin: 0.75rem 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h2 {
    margin: 0.75rem 0 0;
    font-size: 1.75rem;
}

h3 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

p {
    color: #334155;
}

.lead {
    margin: 0.25rem 0 0;
    color: #1d4ed8;
    font-weight: 600;
}

.product {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.08);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.feature {
    padding: 1rem;
    border: 1px solid #d5e0f0;
    border-radius: 0.8rem;
    background: rgba(241, 245, 255, 0.8);
}

.feature p {
    margin-bottom: 0;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
    gap: 1rem;
}

.preview-dialog {
    width: min(1220px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100% - 2rem);
    padding: 1rem;
    border: 1px solid #94a3b8;
    border-radius: 0.8rem;
    color: #0f172a;
    background: #fff;
}

.preview-dialog[open] {
    display: flex;
    flex-direction: column;
}

.preview-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.preview-dialog header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-dialog h2 {
    margin: 0;
    font-size: 1.2rem;
}

.preview-dialog button {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.preview-image {
    min-height: 0;
    overflow: auto;
}

.preview-image img {
    display: block;
    width: 1180px;
    max-width: none;
    height: auto;
}

figure {
    min-width: 0;
    margin: 0;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
}

figcaption,
.caption {
    margin: 0.5rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.support {
    margin: 2rem 0 1.5rem;
    padding: 1.25rem;
    border-left: 0.25rem solid #2563eb;
    border-radius: 0.7rem;
    background: #eff6ff;
}

a {
    color: #1d4ed8;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.1rem;
    border: 1px solid #1d4ed8;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    background: #1e40af;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 100%;
}

.donate-button .pointing-hand {
    flex: none;
    font-size: 1.4rem;
    line-height: 1;
}

.button.secondary {
    background: #fff;
    color: #1d4ed8;
}

.button.secondary:hover {
    background: #eff6ff;
}

:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 3px;
}

footer {
    margin-top: 2rem;
    text-align: center;
}
