/*
 * tokens.css: design tokens (colour, type, spacing, radius, shadow, breakpoints) as custom properties.
 *
 * Part of the new stylesheet stack (redesign Step 3). Loaded by
 * templates/base.html.twig in this order, one <link> each: tokens.css,
 * base.css, layout.css, components.css, forms.css, admin.css, parent.css.
 * Never use @import here: every file is linked on its own so that
 * FileModifiedVersionStrategy versions each one by its modification time.
 */

:root {
    /* Surfaces and lines */
    --paper: #f7f4ee;
    --card: #fffdf9;
    --sunken: #f1ece3;
    --line: #e7e1d6;
    --line-control: #8f8698;

    /* Text */
    --ink: #3a3244;
    --muted: #6f6679;
    --header-muted: #7c7386; /* frozen header only: the signed-in name and Sign out */

    /* Plum: interaction */
    --plum: #6b5478;
    --plum-dark: #56425f;
    --plum-soft: #d9cfe0;
    --plum-tint: #efe9f1;
    --on-plum: #ffffff;

    /* Oak: brand accent, current tab, focus ring */
    --oak: #b9884c;
    --oak-deep: #7a5524;
    --oak-tint: #f4ead9;

    /* Sage: positive */
    --sage: #63875f;
    --sage-deep: #4a5e42;
    --sage-tint: #e7efe4;

    /* Danger and info */
    --danger: #a1453e;
    --danger-tint: #f6e6e3;
    --info: #3d6072;
    --info-tint: #e6eff3;

    /* Attention: a warning, a draft, an over-staffed period. Its own values,
       not the oak accent, so re-colouring the brand does not repaint warnings. */
    --attention: #7a5524;
    --attention-tint: #f4ead9;

    /* Break cover: a timeline segment for a break being covered (not a warning) */
    --break-cover: #7a5524;
    --break-cover-tint: #f4ead9;
    --break-cover-line: #b9884c;

    /* The mark only; not interface colours */
    --acorn: #8b5a2b;
    --leaf: #7a8e6f;

    /* Type families */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

    /* Weights: 400, 600 and 700 only */
    --weight-regular: 400;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Type scale: size, line height (and tracking where the system sets one) */
    --text-display-page: 30px;
    --leading-display-page: 36px;
    --tracking-display-page: -0.01em;
    --text-display-stat: 32px;
    --leading-display-stat: 38px;
    --text-display-section: 22px;
    --leading-display-section: 28px;
    --text-display-card: 18px;
    --leading-display-card: 24px;

    --text-body: 16px;
    --leading-body: 25px;
    --leading-body-ratio: 1.5625; /* 25 / 16, unitless so descendants that set only a font-size scale their line height */
    --text-table: 15px;
    --leading-table: 22px;
    --text-button: 15px;
    --leading-button: 20px;
    --text-label: 14px;
    --leading-label: 20px;
    --text-small: 13px;
    --leading-small: 18px;
    --text-overline: 12px;
    --leading-overline: 16px;
    --tracking-overline: 0.06em;

    /* Spacing: the 4px scale */
    --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;
    --space-16: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* Elevation: in-page cards are flat */
    --shadow-raised: 0 1px 2px rgba(58, 50, 68, 0.06), 0 6px 18px rgba(58, 50, 68, 0.07);
    --shadow-overlay: 0 18px 50px rgba(58, 50, 68, 0.35);

    /* Layout */
    --shell-max: 1440px;
    --sidebar-width: 232px;
    --parent-max: 1060px;

    /* The portal's older token names, kept as aliases so rules written with them keep working. */
    --shadow: var(--shadow-raised);
    --radius: var(--radius-lg);
    --radius-small: var(--radius-md);
}
