/* Mobile-first reset + base typography. Build up with min-width media queries, never max-width. */

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

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

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg-alt);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
    line-height: 1.25;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }

@media (min-width: 768px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

table { width: 100%; border-collapse: collapse; }

/* Every interactive element gets a real tap target on touch devices — tablets/phones are first-class here. */
button, input, select, textarea, a.btn {
    font-family: inherit;
    font-size: 1rem;
    min-height: var(--tap-target-min);
}

input, select, textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-heading);
}

.container {
    width: 100%;
    padding: 0 var(--space-3);
    margin: 0 auto;
    max-width: 1200px;
}
