/* Manrope, the same face the app ships, self-hosted from @fontsource-variable/manrope. */
@font-face {
    font-family: "Manrope Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../media/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../media/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Every tone leans toward the lilac accent so the page reads as one color, not grey plus purple. */
    --accent: #b197fc;
    --accent-hover: #c2adff;
    --accent-press: #a58bf0;
    --accent-soft: #b197fc1a;
    --accent-border: #b197fc59;

    --base: #100e16;
    --surface: #17141f;
    --raised: #221e2c;
    --hover: #2c2739;

    --text: #ece8f6;
    --muted: #a49cbf;
    --subtle: #7d7598;
    --red: #ef8f8f;

    --line: #c9b8ff14;
    --line-strong: #c9b8ff24;

    --radius-control: 999px;
    --radius-small: 12px;
    --radius-card: 20px;

    --page: 1200px;
    --gutter: 32px;

    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
    --spring: cubic-bezier(0.22, 1.7, 0.36, 1);

    --font-family: "Manrope Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans", "Liberation Sans", sans-serif;
    --font-display: var(--font-family);

    @media screen and (max-width: 640px) {
        --gutter: 16px;
    }
}

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

::selection {
    background-color: var(--accent-border);
    color: white;
}

html,
body {
    width: 100%;
    font-family: var(--font-family);
    color: var(--text);
    font-size: 1rem;
    /* Manrope has finer strokes than Segoe, so each weight sits 50 above the usual step, like in the app. */
    font-weight: 450;
    line-height: 1.5;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--base);
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

section {
    width: 100%;
    max-width: calc(var(--page) + var(--gutter) * 2);
    padding: 0 var(--gutter);
}

img,
video {
    display: block;
}


/* ===== Text ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 650;
    color: var(--text);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 {
    font-size: 3rem;
    line-height: 1.08;

    @media screen and (max-width: 640px) {
        font-size: 2.25rem;
    }
}

h2 {
    font-size: 2.25rem;
    line-height: 1.15;

    @media screen and (max-width: 640px) {
        font-size: 1.75rem;
    }
}

h3 {
    font-size: 1.6rem;
    line-height: 1.2;
}

h4 {
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

p {
    color: var(--muted);
    text-wrap: pretty;
}


/* ===== Links ===== */
a:not(.button) {
    color: var(--text);
    font-weight: 550;
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: text-decoration-color 160ms var(--ease);
}

a:not(.button):hover {
    text-decoration-color: var(--accent);
}

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


/* ===== Buttons ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 550;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    background: var(--raised);
    border: none;
    border-radius: var(--radius-control);
    cursor: pointer;
    transition:
        scale 260ms var(--spring),
        background 160ms var(--ease),
        color 160ms var(--ease);
}

.button:hover {
    background: var(--hover);
}

.button:active {
    scale: 0.95;
}

.button.primary {
    color: #16121f;
    font-weight: 650;
    background: var(--accent);
}

.button.primary:hover {
    background: var(--accent-hover);
}

.button.primary:active {
    background: var(--accent-press);
}

.button.ghost {
    color: var(--muted);
    background: transparent;
}

.button.ghost:hover {
    color: var(--text);
    background: var(--raised);
}

.button.large {
    height: 46px;
    padding: 0 22px;
    font-size: 1rem;
}

.button.large .icon {
    width: 18px;
    height: 18px;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.button-group>* {
    flex: 1;
}
