/* =============================================
   AniVerse design tokens — "The Personal Shelf"
   Content gives colour. Interface gives structure.
   Semantic tokens only: components reference these, never raw values.
   ============================================= */

/* --- Fonts (self-hosted, SIL OFL — see /fonts/OFL-*.txt) --- */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/geist-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/geist-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/geist-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-400-normal.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: 'Geist Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-ext-400-normal.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: 'Geist Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-500-normal.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: 'Geist Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-ext-500-normal.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: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-latin-400-normal.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: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-latin-ext-400-normal.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: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-latin-400-italic.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: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-latin-ext-400-italic.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;
}

:root {
    color-scheme: dark;

    /* --- Ground (ink) --- */
    --av-bg: #0C0C0E;
    --av-surface-1: #131316;      /* panels, sidebar, widgets */
    --av-surface-2: #1A1A1E;      /* hover, selected */
    --av-surface-3: #232328;      /* active control */
    --av-sidebar: #111114;
    --av-overlay: rgba(6, 6, 8, 0.6);

    /* --- Lines --- */
    --av-line: rgba(237, 235, 230, 0.08);
    --av-line-strong: rgba(237, 235, 230, 0.16);
    --av-line-hover: rgba(237, 235, 230, 0.24);
    --av-track: rgba(237, 235, 230, 0.14);   /* progression rail track */

    /* --- Text (contrast on --av-bg) --- */
    --av-text-1: #EDEBE6;   /* 16.4:1 */
    --av-text-2: #A6A39D;   /* 7.7:1 */
    --av-text-3: #85827C;   /* 5.1:1 — labels, meta */
    --av-text-4: #5C5A56;   /* decorative only, never for information */
    --av-on-paper: #0C0C0E; /* text on paper-white fills (primary button) */

    /* --- Signature (vermilion, used like a stamp) --- */
    --av-seal: #E5553B;

    /* --- Status (6 px dot + label only) --- */
    --av-status-active: #7FA7D9;     /* watching / reading */
    --av-status-completed: #8CB38A;
    --av-status-planned: #A6A39D;
    --av-status-onhold: #D1A85A;
    --av-status-dropped: #C97A6D;
    --av-status-repeat: #A48CCB;     /* rewatching / rereading */

    /* --- Feedback --- */
    --av-danger: #D9907F;
    --av-danger-line: rgba(201, 122, 109, 0.45);
    --av-danger-fill: rgba(201, 122, 109, 0.12);
    --av-success: #8CB38A;
    --av-warning: #D1A85A;

    /* --- Type --- */
    --av-font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --av-font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --av-font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

    --av-fs-label: 0.6875rem;  /* 11 */
    --av-fs-small: 0.8125rem;  /* 13 */
    --av-fs-body: 0.9375rem;   /* 15 */
    --av-fs-title: 1.0625rem;  /* 17 */
    --av-fs-display-m: 1.75rem; /* 28 */
    --av-fs-display-l: 2.5rem;  /* 40 */
    --av-fs-display-xl: 3.5rem; /* 56 */

    /* --- Spacing (4 px base) --- */
    --av-space-1: 4px;
    --av-space-2: 8px;
    --av-space-3: 12px;
    --av-space-4: 16px;
    --av-space-5: 24px;
    --av-space-6: 32px;
    --av-space-7: 48px;
    --av-space-8: 64px;
    --av-space-9: 96px;

    /* --- Radius (by role) --- */
    --av-radius-panel: 2px;    /* manga-frame panels */
    --av-radius-cover: 4px;
    --av-radius-control: 6px;
    --av-radius-widget: 10px;  /* widgets, overlays */
    --av-radius-pill: 999px;

    /* --- Elevation --- */
    --av-shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.45);

    /* --- Focus --- */
    --av-focus-ring: 2px solid var(--av-text-1);
    --av-focus-offset: 2px;

    /* --- Motion --- */
    --av-dur-fast: 120ms;
    --av-dur-base: 200ms;
    --av-dur-slow: 320ms;
    --av-ease-out: cubic-bezier(0.2, 0, 0, 1);
    --av-ease-in: cubic-bezier(0.4, 0, 1, 1);

    /* --- Control sizes --- */
    --av-control-h: 36px;
    --av-control-h-sm: 32px;
    --av-touch: 44px;
}
