:root {
    --bg: #f1f4fb;
    --card: #fff;
    --ink: #0e1730;
    --mute: #5d6783;
    --line: #dde3f1;
    --blue: #2a4bff;
    --blueink: #fff;
    --gold: #ffb520;
    --coral: #ff5a4e;
    --r: 20px;
    --d: 'Bricolage Grotesque', system-ui, sans-serif;
    --b: 'Figtree', system-ui, sans-serif
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg: #0a0f1f;
        --card: #131a2f;
        --ink: #eef1fb;
        --mute: #97a1bd;
        --line: #232c47;
        --blue: #7b93ff;
        --blueink: #0a0f1f
    }
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--b);
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px
}

h1,
h2,
h3 {
    font-family: var(--d);
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.08
}

.btn {
    border: 1.5px solid var(--line);
    background: transparent;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: transform .15s, background .15s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn:active {
    transform: scale(.97)
}

.btn.p {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--blueink)
}

.btn.x {
    color: var(--coral);
    border-color: transparent
}

#toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 30px);
    background: var(--ink);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 99px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 99
}

#toast.on {
    opacity: 1;
    transform: translate(-50%, 0)
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}