/* --- Font faces --- */

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/inter-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/inter-500.woff2') format('woff2');
}

/* --- Design tokens --- */

:root {
    /* Fonts */
    --font-ui: 'IBM Plex Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* --------------------------------------------------------------------
       PALETTE — "Daylight Field Notebook" (Overworld theme). A warm paper +
       sepia-ink substrate; each accent hue has exactly ONE role. The act and
       status anchors sit on the blue↔yellow axis so they stay distinct under
       red-green colour vision; green/red states must ALSO carry an icon or
       label, never colour alone. Full rationale in the docs-product skill.
       -------------------------------------------------------------------- */

    /* Colors */
    --bg-base: #EBE1C8;        /* desk / page edge — aged tan */
    --bg-surface: #F7F0DE;     /* the page */
    --bg-raised: #FCF7EA;      /* a raised note / card */
    --border: #D6C6A2;         /* pencil rule line */
    --border-strong: #C2AE82;  /* emphasized rule (hover/focus) */
    --text-primary: #2A2218;   /* dark sepia ink */
    --text-muted: #7A6B47;     /* faded pencil */
    --text-disabled: #A99B78;
    --accent: #2C6E9E;         /* lapis ink — primary / CTA + links (act) */
    --accent-hover: #245C85;
    --accent-muted: #D6E2EC;   /* pale lapis wash */
    --on-accent: #FCF7EA;      /* cream text/icon on a lapis fill */
    --green: #4F7A2B;          /* grass — success / status / growth (done) */
    --amber: #B0791A;          /* wheat-gold — warning */
    --red: #A6321F;            /* redstone — danger */
    --progress: #4F7A2B;       /* grass — completion is status, not brand */
    --green-bg: #DEE8CB;
    --red-bg: #F0DACF;

    /* Typography scale */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-ui: 13px;
    --text-label: 11px;

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

    /* Layout */
    --max-width: 1080px;
    --breakpoint-mobile: 768px;
    --radius: 6px;
}

/* --- Base body styles --- */
body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
}

main {
    padding-top: var(--space-5);
    padding-bottom: var(--space-8);
}

/* --- Section label --- */
.section-label {
    font-family: var(--font-ui);
    font-size: var(--text-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* --- Layout utilities (Tailwind-style) --- */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.surface {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.divider {
    border-top: 1px solid var(--border);
}

.subtle {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.is-hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-5 {
    gap: var(--space-5);
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.p-4 {
    padding: var(--space-4);
}

.p-5 {
    padding: var(--space-5);
}