/* ==========================================================================
   Reset + design tokens + typography + base utilities
   Industrial Grotesk: graphite + muted rust-orange accent, 12-col grid.
   ========================================================================== */

:root {
    --ink: oklch(22% 0.015 260);
    --ink-soft: oklch(40% 0.014 260);
    --bg: oklch(97% 0.006 80);
    --surface: oklch(93% 0.007 80);
    --surface-dark: oklch(20% 0.012 260);
    --on-dark: oklch(96% 0.004 80);
    --on-dark-soft: oklch(78% 0.01 80);

    --accent: #A6451E;
    --accent-dark: #7E3315;
    --accent-light: #D97B4F;
    --steel: #44515C;

    --border: oklch(85% 0.008 80);
    --border-dark: oklch(34% 0.015 260);

    --radius: 2px;
    --radius-feature: 16px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-ui: 220ms;
    --dur-reveal: 640ms;

    --space-s: 2rem;
    --space-m: 4rem;
    --space-l: 6rem;
    --space-xl: 8rem;
    --space-2xl: 10rem;

    --container-max: 1280px;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 0.5em;
    text-wrap: pretty;
    letter-spacing: -0.01em;
}
.h1, h1 { font-size: clamp(3.375rem, 2.3rem + 3.6vw, 4.75rem); }
.h2, h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.15rem); }
.h3, h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.9em;
}
.eyebrow--on-dark { color: var(--accent-light); }

.tabular { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--on-dark);
    padding: 0.8em 1.2em;
    z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.container--prose { max-width: 70ch; }

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
}

.section { padding-block: var(--space-l); }
.section--services { padding-top: var(--space-m); }
.section--about { padding-block: var(--space-xl); }
.section--contact-band { padding-block: var(--space-m); }

.prose { max-width: 65ch; }
.prose p { color: var(--ink-soft); }
.prose--lead { max-width: 70ch; font-size: 1.2em; }
.prose h2 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.1em; }
.prose ul li { margin-bottom: 0.4em; color: var(--ink-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }

/* Focus visibility, keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.9em 1.6em;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
    cursor: pointer;
    min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }

.btn--ghost-light { border-color: var(--border-dark); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.06); }

.btn--block { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
