/*
 * Shipshape FM — Design tokens
 *
 * Single source of truth for all design values.
 * Every other CSS file references these via var(--name).
 *
 * Token categories:
 *   Colors:    surfaces, ink, accents, status (success/warn/danger)
 *   Type:      family, size, weight, line-height, letter-spacing
 *   Space:     spacing scale (4px grid)
 *   Radii:     border-radius scale
 *   Shadow:    elevation scale
 *   Motion:    transition timings
 */

:root {
    /* ─── Surfaces & ink ───────────────────────────────────────────── */
    --bg: #f4f1ea;              /* warm cream page background */
    --card: #ffffff;            /* card / surface */
    --row-hover: #faf8f3;       /* subtle hover state on rows */
    --border: #e6e1d6;          /* warm border, not gray */

    --ink: #1c2530;             /* primary text */
    --ink-soft: #5a6573;        /* secondary text */
    --muted: #9aa3b0;           /* tertiary / placeholder */

    /* ─── Brand accents ────────────────────────────────────────────── */
    --accent: #012342;          /* deep navy — primary brand */
    --accent-bg: #e4ebf2;       /* navy tint for active states */

    --teal: #198a94;            /* signature teal accent */
    --teal-bg: #dff1f3;

    /* ─── Status colors ────────────────────────────────────────────── */
    --green: #1f8a5b;           /* success */
    --green-bg: #e3f3ea;

    --red: #c0392b;             /* urgent / error */
    --red-bg: #fbeae8;

    --amber: #b8860b;           /* warning */
    --amber-bg: #fbf3df;

    --blue: #2563a8;            /* info */
    --blue-bg: #e6eef7;

    --slate: #64748b;           /* neutral metadata */
    --slate-bg: #eef1f4;

    --purple: #6b4ca8;          /* secondary accent (used sparingly) */
    --purple-bg: #ece6f7;

    /* ─── Typography ───────────────────────────────────────────────── */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 38px;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* ─── Spacing (4px grid) ───────────────────────────────────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* ─── Border radii ─────────────────────────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 9px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-pill: 999px;

    /* ─── Shadows ──────────────────────────────────────────────────── */
    --shadow-sm: 0 1px 2px rgba(28, 37, 48, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 37, 48, 0.06);
    --shadow-lg: 0 14px 40px rgba(28, 37, 48, 0.16);

    /* ─── Motion ───────────────────────────────────────────────────── */
    --transition-fast: 0.12s ease;
    --transition-base: 0.18s ease;
    --transition-slow: 0.25s cubic-bezier(.4, 0, .2, 1);

    /* ─── Calendar category colors ─────────────────────────────────── */
    --cal-critical: #c2410c;      /* warm burnt-orange — expirations, urgency */
    --cal-work: #198a94;          /* brand teal — scheduled work orders */
    --cal-pm: #012342;            /* brand navy — preventive maintenance */
    --cal-inspection: #4d7c4d;    /* muted green — inspections */
    --cal-overdue: #b91c1c;       /* stronger red — overdue emphasis */
    --cal-overdue-bg: #fef2f2;    /* soft red wash for overdue rows */
}

/* ─── Base reset / element defaults ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    letter-spacing: -0.4px;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
}