:root {
    color-scheme: light dark;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --text: #1b1d21;
    --muted: #5d636e;
    --surface: #ffffff;
    --surface-alt: #f3f4f6;
    --border: #d9dce1;
    --accent: #1a56db;
    --accent-text: #ffffff;
    --danger: #b42318;
    --radius: 0.5rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8eaed;
        --muted: #a3a9b3;
        --surface: #15171a;
        --surface-alt: #1f2226;
        --border: #33373d;
        --accent: #8ab4f8;
        --accent-text: #0b0d10;
        --danger: #f97066;
    }
}

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

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font: 1rem/1.5 var(--font);
}

h1,
h2 {
    margin: var(--space-2) 0;
    line-height: 1.25;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.25rem;
}

h3 {
    margin: var(--space-4) 0 var(--space-1);
    font-size: 1rem;
}

a {
    color: var(--accent);
}

[hidden] {
    display: none !important;
}

button,
.button {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Box Model */
    min-height: 2.75rem;
    padding: var(--space-2) var(--space-4);
    border: 0;
    border-radius: var(--radius);

    /* Visual */
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    font-weight: 600;
    text-decoration: none;

    /* Interaction */
    cursor: pointer;
    touch-action: manipulation;
}

button:disabled {
    opacity: 0.5;
    cursor: default;
}
