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

:root {
    color-scheme: light dark;

    --red: #d91f1f;
    --red-hover: #bf1a1a;
    --red-active: #a31616;
    --red-subtle: color-mix(in srgb, var(--red) 8%, transparent);
    --red-border: color-mix(in srgb, var(--red) 32%, transparent);
    --red-glow: color-mix(in srgb, var(--red) 7%, transparent);
    --bg: #101011;
    --bg2: #18181b;
    --text: #eceae6;
    --muted: #8f8d87;
    --border: color-mix(in srgb, var(--text) 10%, transparent);
    --blurb-text: #b3b0a9;
    --focus-ring: color-mix(in srgb, var(--red) 55%, transparent);
    --on-red: #fff;
    --font-body: 'DM Sans', sans-serif;
    --radius-sm: 3px;
    --radius-md: 6px;
    --transition-fast: 0.15s ease;

    --ion-font-family: var(--font-body);
    --ion-background-color: var(--bg);
    --ion-text-color: var(--text);
    --ion-border-color: var(--border);
    --ion-placeholder-color: var(--muted);
    --ion-color-primary: var(--red);
    --ion-color-primary-rgb: 217, 31, 31;
    --ion-color-primary-contrast: var(--on-red);
    --ion-color-primary-contrast-rgb: 255, 255, 255;
    --ion-color-primary-shade: #bf1a1a;
    --ion-color-primary-tint: #dd3535;
}

@media (prefers-color-scheme: light) {
    :root {
        --red-hover: #b81a1a;
        --red-active: #9f1616;
        --red-subtle: color-mix(in srgb, var(--red) 6%, transparent);
        --red-border: color-mix(in srgb, var(--red) 22%, transparent);
        --red-glow: color-mix(in srgb, var(--red) 4%, transparent);
        --bg: #faf9f7;
        --bg2: #ffffff;
        --text: #1a1a18;
        --muted: #65635d;
        --border: color-mix(in srgb, var(--text) 12%, transparent);
        --blurb-text: #3f3e3a;
        --focus-ring: color-mix(in srgb, var(--red) 40%, transparent);
        --ion-color-primary-shade: #b81a1a;
    }
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
ion-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.logo-wrap {
    line-height: 0;
}

.logo-wrap svg {
    width: min(220px, 70vw);
    height: auto;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
