@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/resources/fonts/jupiter-firm/libre-franklin-latin-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/resources/fonts/jupiter-firm/libre-franklin-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 {
    /* Surfaces and lines */
    --bg: #f5f5f2;
    --surface: #ffffff;
    --surface-soft: #fafaf8;
    --surface-muted: #f0f1ec;
    --line: #e4e5df;
    --line-strong: #d3d5ce;
    --control-line: #8e938b;

    /* Text */
    --ink: #1f2420;
    --ink-2: #454b46;
    --muted: #646962;

    /* Brand accent: the gold of the Jupiter mark. Use the darker tone for text. */
    --gold: #c6a44e;
    --gold-ink: #85692b;
    --gold-soft: #f7f1e1;

    /* Meaning */
    --ok: #1f6b45;
    --ok-soft: #e7f2eb;
    --warn: #7a560c;
    --warn-soft: #fbf0d6;
    --danger: #9d2f2f;
    --danger-soft: #fbeaea;
    --danger-line: #e2b4b4;
    --info: #2f5a96;
    --info-soft: #e8eff9;

    /* Shape and space */
    --radius-sm: 4px;
    --radius: 6px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --control-height: 38px;
    --control-height-sm: 32px;
    --touch: 44px;
    --sidebar-width: 244px;
    --mobile-bar-height: 56px;
    --shadow-float: 0 12px 32px rgba(31, 36, 32, 0.14), 0 2px 6px rgba(31, 36, 32, 0.06);
}

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

[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #eadfbf; color: var(--ink); }

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 var(--space-3); }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: inherit;
    text-wrap: balance;
}

h1 { font-size: 24px; font-weight: 550; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }

img, svg { display: block; }
.icon { flex: 0 0 auto; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--gold-ink);
    outline-offset: 2px;
}

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

.portal-skip {
    position: fixed;
    top: -80px;
    left: 12px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
}

.portal-skip:focus { top: 8px; color: #fff; }

* { scrollbar-color: #b6b9b1 transparent; scrollbar-width: thin; }

/* Text helpers */
.muted { color: var(--muted); }
.small, .hint { font-size: 13px; }
.hint { margin: var(--space-1) 0 0; color: var(--muted); line-height: 1.45; }
.pre-line { white-space: pre-line; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.text-strong { font-weight: 600; color: var(--ink); }
.compact-note { margin: 0; }

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