*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100vh; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a       { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--c-ink); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0 0 12px; }

code {
    font-family: 'SF Mono', 'Monaco', 'Roboto Mono', monospace;
    font-size: 0.85em;
    background: var(--n-100);
    padding: 2px 6px;
    border-radius: var(--r-xs);
    color: var(--n-800);
}

.muted { color: var(--text-soft); }
.error { color: var(--danger); }
.row-nowrap { white-space: nowrap; }
.d-none { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
