/* NguLuoi design tokens, font faces and global reset. Tokens only: no component styles here. */

/* Font files sit next to css/ under static/. The noinspection comments silence IntelliJ's "no generic
   font" check, which does not apply to @font-face; --font-sans and --font-mono end in generic fallbacks. */
/*noinspection CssNoGenericFontName*/
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/figtree-400-normal.woff2') format('woff2');
}

/*noinspection CssNoGenericFontName*/
@font-face {
    font-family: 'Figtree';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/figtree-400-italic.woff2') format('woff2');
}

/*noinspection CssNoGenericFontName*/
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/figtree-600-normal.woff2') format('woff2');
}

/*noinspection CssNoGenericFontName*/
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/figtree-700-normal.woff2') format('woff2');
}

/*noinspection CssNoGenericFontName*/
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/figtree-800-normal.woff2') format('woff2');
}

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

:root {
    /* Neutrals */
    --ink: #14211f;
    --ink-soft: #3d4a48;
    --ink-muted: #66726f;
    --paper: #ffffff;
    --surface: #f3f5f4;
    --paper-tint: #eef2f1;
    --line: #dbe2e0;
    --line-strong: #c6d0ce;

    /* Brand */
    --accent: #108d95;
    /* One brand colour only: #108d95 on white. The other names stay so existing rules keep working. */
    --accent-strong: #108d95;
    --accent-ink: #108d95;
    --accent-tint: #ffffff;
    --accent-line: #108d95;
    --progress: #108d95;
    --focus: #108d95;
    --overlay: rgba(20, 33, 31, 0.45);
    /* Docker Desktop style, in NguLuoi teal: a darker hover, a light tint for selected items. */
    --accent-hover: #0b6f75;
    --accent-soft: #dcf0f1;
    --hover-grey: #f1f3f3;
    --danger-fill: #d6303c;
    --danger-hover: #b8222d;

    /* Tag colours: background, border, text, legend dot */
    --feasible-bg: #e3f3e8;
    --feasible-line: #b9dfc5;
    --feasible-ink: #1e6b3a;
    --feasible-dot: #2f9e5a;
    --vague-bg: #fff6dc;
    --vague-line: #d9a520;
    --vague-ink: #7a5a00;
    --vague-dot: #dca91f;
    --outside-bg: #eeebfb;
    --outside-line: #cfc8f3;
    --outside-ink: #4a3aa8;
    --outside-dot: #7c62d6;
    --delivered-bg: #e6eefb;
    --delivered-line: #c3d5f2;
    --delivered-ink: #1f4f99;
    --delivered-dot: #3a7bd5;
    --contradicted-bg: #fce7e4;
    --contradicted-line: #f2c2bd;
    --contradicted-ink: #b0281d;
    --contradicted-dot: #d9453a;
    --danger: #b0281d;

    /* Type: Figtree and IBM Plex Mono, shipped in static/fonts (the @font-face rules above). */
    --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    /* Fluid sizes: smallest on a phone, growing with the screen, capped on wide desktops. */
    --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.9375rem);
    --text-md: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    --text-xl: clamp(1.125rem, 1.04rem + 0.42vw, 1.375rem);
    --text-2xl: clamp(1.25rem, 1.08rem + 0.85vw, 1.75rem);
    --text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    /* Page titles and the logo text: Figtree's heaviest shipped weight. */
    --weight-black: 800;
    --leading-tight: 1.25;
    --leading-normal: 1.5;

    /* Space */
    --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;

    /* Shape */
    --radius-sm: 8px;
    --radius-card: 8px;
    --radius-lg: 8px;
    --radius-pill: 8px;
    --border-thin: 1px;
    --border-thick: 2px;
    --shadow-card: 0 1px 2px rgba(20, 33, 31, 0.06), 0 2px 8px rgba(20, 33, 31, 0.05);
    --shadow-raised: 0 4px 16px rgba(20, 33, 31, 0.12);

    /* Layout */
    --page-max: 1120px;
    --reading-max: 680px;
    /* One size for every button, chip, tab, nav link and hover row. */
    --control-h: 24px;
    --control-pad-y: 2px;
    --control-pad-x: 12px;
    --control-gap: 6px;
    --control-font: var(--text-sm);
    /* One size for every text input, dropdown and date field. */
    --field-h: 40px;
    /* Buttons, Docker Desktop style: 36px tall, slightly rounded. */
    --button-h: 36px;
    --radius-button: 4px;
    --field-font: var(--text-sm);
    --header-height: 64px;
    --bottom-nav-height: 80px;
    --tap-target: 48px;
    --gutter: var(--space-4);
}

@media (min-width: 900px) {
    :root {
        --gutter: var(--space-8);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* No visible scrollbars anywhere; areas still scroll by wheel, touch and keyboard. */
* {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    color: var(--ink);
    background: var(--surface);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    margin-bottom: var(--space-3);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
