/* Design tokens and base styles.
   White is the primary colour and black the secondary one.
   The palette is strictly black, white and greys — no other colours. */

:root {
    color-scheme: light;

    --bg: #ffffff;          /* primary: page and surfaces */
    --surface: #ffffff;
    --subtle: #f5f5f5;      /* quiet panels and hover states */
    --fg: #0a0a0a;          /* secondary: text, logo, buttons */
    --fg-muted: #5c5c5c;
    --border: #dedede;
    --border-hover: #8f8f8f;
    --line: rgba(0, 0, 0, 0.055);   /* decorative grid lines */

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --control-height: 46px;
}

/* Optional dark theme, only when someone switches to it. */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a0a0a;
    --surface: #0f0f0f;
    --subtle: #151515;
    --fg: #fafafa;
    --fg-muted: #a3a3a3;
    --border: #2b2b2b;
    --border-hover: #6b6b6b;
    --line: rgba(255, 255, 255, 0.07);
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    padding: 0;
    list-style: none;
}

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

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

::selection {
    background: var(--fg);
    color: var(--bg);
}

[hidden] {
    display: none !important;
}
