* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--fg);
}

body {
    min-height: 100dvh;
}

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

button, a {
    color: inherit;
}

button {
    min-height: 44px;
    cursor: pointer;
}

a {
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

input, textarea, select {
    width: 100%;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--muted);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

label {
    display: grid;
    gap: 6px;
}

.muted {
    color: var(--soft);
}

.number {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

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