/*
 * Theme "green" (chosen 7 November 2026): all colours, the font and the shapes
 * of the public site. Components live in ../app.css and only use these variables.
 * Same colours as config/theme.php and the emails (checked by tests/Feature/ThemeTest.php).
 */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../../fonts/bricolage-grotesque-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;
}

/* Extended Latin (ş, ğ, ł, ő and more), so names such as Aktaş stay in the same font. */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../../fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Same font stack as the emails (checked by tests/Feature/ThemeTest.php). */
    --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Type scale: the only font sizes on the site; the emails use the same sizes in px. */
    --fs-sm: .875rem;      /* 14 px: hints, chips, errors, notes, footer */
    --fs-base: 1rem;       /* 16 px: body text, buttons, fields */
    --fs-lg: 1.125rem;     /* 18 px: intro text on the home page */
    --fs-xl: 1.25rem;      /* 20 px: brand name, h3, headings in tiles */
    --fs-2xl: 1.5rem;      /* 24 px: h2 on a phone, group code field */
    --fs-3xl: 1.75rem;     /* 28 px: h1 on a phone, h2 from 768 px */
    --fs-4xl: 2.25rem;     /* 36 px: h1 from 768 px */
    --fs-code: 2rem;       /* 32 px: group code shown large */
    --fs-display: clamp(2.25rem, 6vw, 3.75rem); /* 36 to 60 px: large numbers on the home page */
    --fs-hero: clamp(2.625rem, 7vw, 5.625rem);  /* 42 to 90 px: title of the home page */
    --fs-section: clamp(2rem, 4.4vw, 3.375rem); /* 32 to 54 px: section titles on the home page */
    --fs-h1: var(--fs-3xl);
    --fs-h2: var(--fs-2xl);

    --primary: #1A6D35;       /* Pine: buttons, links, headings */
    --primary-dark: #10341C;  /* Dark pine: footer, bands, hover */
    --accent: #F9B800;        /* Sun: decorative only */
    --background: #F6FBF3;    /* Paper: page background */
    --surface: #EAEFE7;       /* Surface: panels and tiles */
    --text: #181D18;          /* Ink: body text */
    --text-muted: #414941;
    --border: #C1C9BF;        /* Borders: lines and fields */
    --error: #BA1A1A;         /* Error: messages and validation */
    --white: #FFFFFF;
    --on-dark-muted: #DCE8DD; /* Text on the dark footer */
    --info-bg: #FFF6D6;       /* Background of an informational notice */

    /* Group colours from the style guide: the only exuberant element. Decorative only
       (stickers, step numbers, task labels). White text on 2 to 5, dark pine on 1; 6 never behind text. */
    --group-1: #F9B800; /* Zonnebloemen */
    --group-2: #6B4EA0; /* Vlinders */
    --group-3: #C2185B; /* Draken */
    --group-4: #0B57D0; /* Piraten */
    --group-5: #006874; /* Sterren */
    --group-6: #C25E00; /* Raketten */

    /* Slots of the scrapbook design: the decorations a year theme may fill (public/css/year-themes/,
       checked by tests/Feature/YearThemeTest.php). These defaults are the look without a year theme. */
    --paper: var(--background);                                       /* page background */
    --paper-line: color-mix(in srgb, var(--border) 38%, transparent); /* grid lines on the paper */
    --tape: color-mix(in srgb, var(--accent) 42%, transparent);       /* tape on photos and notes */
    --marker: color-mix(in srgb, var(--accent) 55%, transparent);     /* highlighter under titles */
    --title-mark: var(--accent);   /* drawn mark around the last words of the home title */
    --arrow: var(--group-3);       /* drawn arrow to the group-code note */
    --sticker-1: var(--group-3);   /* stickers on the photo board: top right, left, bottom, bottom right */
    --sticker-2: var(--group-2);
    --sticker-3: var(--group-4);
    --sticker-4: var(--group-5);
    --badge-bg: var(--accent);     /* edition sticker */
    --badge-fg: var(--primary-dark);
    --note-bg: var(--info-bg);     /* group-code note */
    --icon-accent: var(--accent);  /* second colour in the drawings of a year theme */
    --theme-badge-bg: var(--white);  /* name of the year theme */
    --theme-badge-fg: var(--text);
    --trail: var(--primary);       /* path through the steps */
    --trail-dash: 0 14;
    --trail-width: 4;
    --trail-style: dotted;         /* the same path as a border on a phone */

    /* Statuses: green done, yellow to complete, blue in progress, red attention. Always with a word. */
    --done-bg: #C9EDCF;  --done-fg: #0B4D22;
    --todo-bg: #FFE8A3;  --todo-fg: #5A4300;
    --busy-bg: #D3E4FF;  --busy-fg: #0B3A73;
    --alert-bg: #FFDAD6; --alert-fg: #7A0E0E;

    /* Shapes: pill buttons, fields 8 px, tiles 16 px, at least 44 px for fingers. */
    --radius-field: 8px;
    --radius-tile: 16px;
    --tap: 44px;
    --gutter: 16px;
    --max: 1120px;
}

@media (min-width: 48rem) {
    :root { --fs-h1: var(--fs-4xl); --fs-h2: var(--fs-3xl); }
}
