@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/syne-ext.woff2') format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/syne-latin.woff2') format('woff2');
    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;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-ext.woff2') format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    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 {
    color-scheme: dark;

    --font-display: 'Syne', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
    --fs-3xl: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
    --fs-display: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);

    --lh-tight: 1.08;
    --lh-snug: 1.3;
    --lh-body: 1.65;

    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    --w-page: 1200px;
    --w-text: 68ch;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(3.5rem, 8vw, 6.5rem);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --dur: 150ms;

    --bg: #0e0d1b;
    --bg-raised: #16152a;
    --bg-sunken: #0a0914;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #ecebf3;
    --text-2: #b1afc2;
    --text-3: #8d8ba0;
    --accent: #9d4edd;
    --accent-ink: #c99bf2;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(157, 78, 221, 0.14);
    --danger: #ff7a86;
    --danger-soft: rgba(255, 122, 134, 0.12);
    --success: #5fd0a0;
    --success-soft: rgba(95, 208, 160, 0.12);
    --warning: #f2c46d;
    --warning-soft: rgba(242, 196, 109, 0.12);
    --focus: var(--accent-ink);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f6fb;
    --bg-raised: #ffffff;
    --bg-sunken: #efeef5;
    --line: rgba(20, 18, 34, 0.1);
    --line-strong: rgba(20, 18, 34, 0.2);
    --text: #15141d;
    --text-2: #45434f;
    --text-3: #64626f;
    --accent: #7b2cbf;
    --accent-ink: #6a24a8;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(123, 44, 191, 0.1);
    --danger: #b3261e;
    --danger-soft: rgba(179, 38, 30, 0.08);
    --success: #1d7a52;
    --success-soft: rgba(29, 122, 82, 0.1);
    --warning: #8a5a00;
    --warning-soft: rgba(138, 90, 0, 0.1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--s-4);
    top: -100px;
    z-index: 100;
    padding: var(--s-2) var(--s-4);
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: var(--s-4);
}

.logo-mark {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    background-color: currentColor;
    -webkit-mask: url('../images/branding/LunoviaMoon.webp') center / contain no-repeat;
    mask: url('../images/branding/LunoviaMoon.webp') center / contain no-repeat;
}

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