:root {
    color-scheme: light dark;

    --brand-orange: #ff6200;
    --brand-orange-70: #ff914d;
    --brand-orange-50: #ffb180;
    --brand-orange-30: #ffd0b3;
    --brand-deep-orange: #cd3700;
    --brand-light-orange: #fbb040;
    --brand-grey: #4d4d4d;
    --brand-grey-light: #cacaca;
    --brand-grey-mid: #a6a6a6;
    --brand-grey-pale: #ededed;
    --brand-green: #a2bc13;
    --brand-blue: #0082a8;
    --brand-blue-50: #80c1d4;
    --brand-purple: #5e024e;
    --brand-deep-red: #920c2c;

    --color-background: light-dark(#ffffff, #222222);
    --color-surface: light-dark(#f7f7f7, #333333);
    --color-surface-hover: light-dark(var(--brand-grey-pale), #3d3d3d);
    --color-border: light-dark(var(--brand-grey-light), #484848);
    --color-border-hover: light-dark(var(--brand-grey-mid), #606060);
    --color-text: light-dark(var(--brand-grey), #eeeeee);
    --color-text-muted: light-dark(#6e6e6e, #9a9a9a);
    --color-link: light-dark(var(--brand-deep-orange), var(--brand-orange-70));
    --color-primary: var(--brand-orange);
    --color-primary-hover: var(--brand-orange-70);
    --color-primary-contrast: #000000;
    --color-success: light-dark(#1f7a4d, #4cc38a);
    --color-warning: light-dark(#8a5300, #f5b942);
    --color-danger: light-dark(#c62828, #ef5b5b);
    --color-danger-hover: light-dark(#a11f1f, #f27d7d);
    --color-neutral: light-dark(#a6a6a6, #666666);
    --color-danger-contrast: light-dark(#ffffff, #000000);
    --color-focus: light-dark(var(--brand-blue), var(--brand-blue-50));

    --font-family-base: "Segoe UI", Arial, sans-serif;
    --font-family-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
    --font-size-base: 0.875rem;
    --font-size-small: 0.75rem;
    --line-height-base: 1.3;
    --line-height-heading: 1.1;

    --space-1: 0.125rem;
    --space-2: 0.25rem;
    --space-3: 0.5rem;
    --space-4: 0.75rem;
    --space-5: 1rem;

    --radius: 4px;
    --radius-pill: 999px;
    --control-height: 1.875rem;
    --header-height: 3.25rem;
    --nav-width: 15.625rem;
    --shadow-popup: 0 0.5rem 1.5rem light-dark(rgb(0 0 0 / 0.14), rgb(0 0 0 / 0.5));
    --brand-gradient: linear-gradient(90deg, var(--brand-deep-orange), var(--brand-orange) 55%, var(--brand-light-orange));
}
:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
}

body {
    min-height: 100vh;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: var(--line-height-heading);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; }
h5 { font-size: 0.8125rem; }
h6 { font-size: 0.75rem; color: var(--color-text-muted); }

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

code,
pre {
    font-family: var(--font-family-mono);
}

.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;
}
