/* ==========================================================================
   base.css — design tokens, reset, typography, utilities
   ========================================================================== */

:root {
    /* palette */
    --color-bg:          #ffffff;
    --color-bg-alt:      #f7f8fa;
    --color-surface:     #ffffff;
    --color-text:        #1a1a1a;
    --color-text-muted:  #5f6368;
    --color-text-soft:   #8a8f98;
    --color-border:      #e6e8eb;
    --color-border-soft: #f0f2f5;
    --color-accent:      #003055;
    --color-accent-hi:   #004b85;
    --color-accent-soft: #e8eff6;

    /* typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* shape */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;

    /* elevation */
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);

    /* layout */
    --max-width:         1080px;
    --container-padding: 24px;
    --header-height:     64px;
}

/* reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; height: 1px; background: var(--color-border); margin: 3rem 0; }

/* typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0 0 0.6em;
}
h1 { font-size: 2.4rem;   line-height: 1.15; }
h2 { font-size: 1.6rem;   line-height: 1.25; }
h3 { font-size: 1.2rem;   line-height: 1.3;  }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--color-accent-hi); text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--color-accent-soft); color: var(--color-accent); }

/* layout helpers ----------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* utilities ---------------------------------------------------------------- */
.muted       { color: var(--color-text-muted); }
.small       { font-size: 0.88rem; }
.text-center { text-align: center; }
.mt-2        { margin-top: 16px; }
.mt-3        { margin-top: 24px; }

.eyebrow {
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

/* reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
