:root {
    --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;

    --color-page: #0b0b0c;
    --color-surface: #19191c;
    --color-surface-raised: #1e1e21;
    --color-line: #1f1f23;
    --color-edge: #26262b;

    --color-fg: #f5f5f7;
    --color-fg-soft: #c9c9cf;
    --color-fg-muted: #a9a9b0;
    --color-fg-subtle: #8e8e95;

    color-scheme: dark;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-page);
    color: var(--color-fg);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.backdrop {
    pointer-events: none;
}

/* The dots sit at the centre of each 28px cell, as on the extension repository's site. */
.dots {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 100vh;
    background-image: radial-gradient(circle, rgb(255 255 255 / 0.07) 1px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black 55%, transparent);
}

.vignette,
.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.vignette {
    background: radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / 0.55));
}

.grain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.06;
}

.page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.wordmark {
    display: block;
    height: 64px;
    width: auto;
}

.hero {
    padding: 64px 0 72px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 span {
    display: block;
}

h1 .soft {
    font-weight: 600;
    color: var(--color-fg-subtle);
}

.lead {
    max-width: 640px;
    margin: 32px auto 0;
    color: var(--color-fg-muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 72px;
}

.fact {
    padding: 0 48px;
}

.fact:first-child {
    padding-left: 0;
}

.fact:last-child {
    padding-right: 0;
}

.fact + .fact {
    border-left: 1px solid var(--color-edge);
}

/* The sections stack on narrow screens, so the dividers between them become horizontal. */
@media (max-width: 900px) {
    .facts {
        grid-template-columns: 1fr;
    }

    .fact {
        padding: 32px 0;
    }

    .fact:first-child {
        padding-top: 0;
    }

    .fact + .fact {
        border-left: none;
        border-top: 1px solid var(--color-edge);
    }
}

h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

ul {
    margin: 0;
    padding-left: 20px;
    color: var(--color-fg-soft);
}

li + li {
    margin-top: 8px;
}

strong {
    font-weight: 600;
    color: var(--color-fg);
}

.note {
    margin: 16px 0 0;
    color: var(--color-fg-soft);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0 48px;
    border-top: 1px solid var(--color-line);
    font-size: 13px;
    color: var(--color-fg-subtle);
}

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

.footer nav a {
    color: var(--color-fg-muted);
    text-decoration: none;
}

.footer nav a:hover {
    color: var(--color-fg);
}
