/* OperationsHQ — Base styles: tokens, reset, typography. */

:root {
    --color-primary: #ffffff;
    --color-primary-dark: #e2dfdf;
    --color-primary-light: #e6e6e6;
    --color-text: #000000;
    --color-text-secondary: #4e4e4e;
    --color-text-muted: #777169;
    --color-text-light: #ffffff;
    --color-bg: #f5f5f5;
    --color-bg-subtle: #f2f2f2;
    --color-border: #e0e0e0;
    --color-border-subtle: rgba(0, 0, 0, 0.05);
    --color-warm-stone: rgba(245, 242, 239, 0.8);
    --color-warm-shadow: rgba(78, 50, 23, 0.04);
    --color-success: #2e9e5d;
    --color-warning: #eca413;
    --color-danger: #d92626;
    --color-info: #2d7fd2;

    --shadow-inset: inset 0 0 0 0.5px rgba(0, 0, 0, 0.075);
    --shadow-outline: 0 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-elevation: 0 4px 4px rgba(0, 0, 0, 0.04);
    --shadow-card: rgba(0, 0, 0, 0.08) 0 0 0 0.5px, rgba(0, 0, 0, 0.04) 0 4px 4px;
    --shadow-warm-btn: 0 6px 16px var(--color-warm-shadow);
    --shadow-pop: 0 20px 40px rgba(0, 0, 0, 0.05);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}

h1 { font-size: 3rem; line-height: 1.08; letter-spacing: -0.96px; }
h2 { font-size: 2.25rem; line-height: 1.17; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
h5 { font-size: 0.9375rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: var(--color-text-muted); }

p {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.16px;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
}

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

a:hover {
    text-decoration: underline;
}

small, .ohq-small {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

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

.ohq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.ohq-container--narrow {
    max-width: 800px;
}

.ohq-section {
    padding: var(--space-20) 0;
}

.ohq-section--tight {
    padding: var(--space-12) 0;
}

.ohq-bg-subtle {
    background-color: var(--color-bg);
}

.ohq-bg-dark {
    background: #000;
    color: #fff;
}

.ohq-bg-dark h1, .ohq-bg-dark h2, .ohq-bg-dark h3 { color: #fff; }
.ohq-bg-dark p { color: rgba(255, 255, 255, 0.7); }

.ohq-uppercase-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: var(--space-4);
    display: block;
    color: var(--color-text);
}

.ohq-text-center { text-align: center; }
.ohq-text-muted { color: var(--color-text-muted); }
.ohq-text-secondary { color: var(--color-text-secondary); }

.ohq-stack { display: flex; flex-direction: column; }
.ohq-stack--sm { gap: var(--space-2); }
.ohq-stack--md { gap: var(--space-4); }
.ohq-stack--lg { gap: var(--space-8); }

.ohq-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ohq-row--between { justify-content: space-between; }

.ohq-hide { display: none !important; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .ohq-section { padding: var(--space-12) 0; }
    .ohq-container { padding: 0 var(--space-5); }
}
