/* Reset + base element styling. Load after tokens.css. */
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-body);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }

/* Accessibility */
.skip-link {
    position: absolute; top: -100%; left: 16px; z-index: 200;
    padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: #fff; background: var(--teal);
    font-weight: 700; font-size: 0.875rem;
    transition: top 180ms ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

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

/* Scrollbar + placeholder */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--line-light); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
::placeholder { color: var(--muted-soft); }

/* Typography */
h1 {
    max-width: 820px; margin: 0; color: var(--ink);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.15; letter-spacing: -0.03em; font-weight: 700;
}
h2 {
    margin: 0 0 8px; color: var(--ink);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.2; letter-spacing: -0.02em; font-weight: 700;
}
h3 { margin: 0 0 6px; color: var(--ink); font-size: 0.92rem; font-weight: 700; }
p { margin: 0; color: var(--muted); line-height: 1.65; }

.lead { max-width: 640px; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.eyebrow {
    margin: 0 0 10px; color: var(--orange);
    font-size: 0.67rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
}
.metric {
    color: var(--teal-dark); font-size: 1.75rem; font-weight: 800;
    letter-spacing: -0.04em; line-height: 1;
}
.sku {
    margin: 0 0 6px; color: var(--blue);
    font-size: 0.71rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}

/* Form element defaults */
label { display: grid; gap: 5px; color: #374151; font-size: 0.875rem; font-weight: 600; }

input:not([type="checkbox"]), select, textarea {
    width: 100%; min-height: 38px;
    border: 1.5px solid #d1d5db; border-radius: var(--radius-sm);
    padding: 7px 11px; color: var(--ink); background: #fff; outline: none;
    transition: border-color var(--t), box-shadow var(--t);
    font-size: 0.9rem;
}
input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer; accent-color: var(--teal); outline: none; border: 0;
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
    padding-right: 40px !important; cursor: pointer;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #9ca3af; }
textarea { min-height: 92px; resize: vertical; }
