/* Hallmark | shape: app screen | theme: ChatFire | signature: encrypted conversation */
/* Neutral surfaces frame the timeline; blue identifies selection and the primary action. */
:root {
    color-scheme: light dark;
    --background: #fff;
    --sidebar: #f5f6f8;
    --surface-text: #20242a;
    --muted: #525e6b;
    --border: #d9dfe6;
    --control-border: #77869a;
    --link: #134fa1;
    --accent: #134fa1;
    --on-accent: #fff;
    --selection: #e5efff;
    --pressed: #d0e1fa;
    --error: #a32f2c;
    --warning: #714000;
    --warning-surface: #fff2d5;
    --scrim: #141c2c66;
    --font-sans: system-ui, sans-serif;
    --font-mono: ui-monospace, monospace;
    --control-radius: .4rem;
    --panel-radius: .8rem;
    --control-height: 2.4rem;
    --touch-target: 44px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #17191d;
        --sidebar: #20242a;
        --surface-text: #ebedf0;
        --muted: #abb5c2;
        --border: #3b424c;
        --control-border: #687689;
        --link: #9dc5ff;
        --accent: #a9caff;
        --on-accent: #14243c;
        --selection: #2a3c57;
        --pressed: #354c6c;
        --error: #ffaaa6;
        --warning: #ffdaa0;
        --warning-surface: #3b2d18;
        --scrim: #070a11a6;
    }
}

* { box-sizing: border-box; }

html,
body {
    overflow-x: clip;
}

body {
    background: var(--background);
    color: var(--surface-text);
    font: 1rem / 1.5 var(--font-sans);
    margin: 0;
}

p { margin: 0; }
a { color: var(--link); }

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

button,
input:not([type=checkbox]),
textarea {
    min-height: var(--control-height);
    border: 1px solid var(--control-border);
    border-radius: var(--control-radius);
    background: var(--background);
    padding: .4rem .75rem;
}

button { cursor: pointer; }
button:hover { background: var(--selection); }
button:active:not(:disabled) { background: var(--pressed); }

button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    font-weight: 650;
}

button.primary:hover:not(:disabled) { filter: brightness(.90); }
button.primary:active:not(:disabled) { filter: brightness(.82); }

button:disabled,
button.primary:disabled {
    cursor: default;
    background: var(--sidebar);
    color: var(--muted);
    border-color: var(--border);
}

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

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

.hint { color: var(--muted); font-size: .875rem; }
.error { color: var(--error); }
.startup { display: grid; min-height: 100dvh; place-content: center; gap: 1rem; padding: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
    display: grid;
    flex: none;
    width: 2rem;
    aspect-ratio: 1;
    place-items: center;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--control-radius);
}

@media (any-pointer: coarse) {
    :root { --control-height: var(--touch-target); }
}
