/* ============================================================
   FSE Base — reset, typography, links, utilities
   Depends on fse-variables.css
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fse-font-sans);
    font-size: var(--fse-font-size-md);
    line-height: var(--fse-line-height-normal);
    color: var(--fse-text-body);
    background: var(--fse-surface-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

::selection {
    background: var(--fse-selection-bg);
    color: var(--fse-selection-fg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--fse-space-4) 0;
    color: var(--fse-text-primary);
    font-weight: var(--fse-font-weight-semibold);
    line-height: var(--fse-line-height-tight);
    letter-spacing: var(--fse-letter-spacing-tight);
}

h1 { font-size: var(--fse-font-size-5xl); font-weight: var(--fse-font-weight-bold); }
h2 { font-size: var(--fse-font-size-4xl); }
h3 { font-size: var(--fse-font-size-2xl); }
h4 { font-size: var(--fse-font-size-xl); }
h5 { font-size: var(--fse-font-size-lg); }
h6 { font-size: var(--fse-font-size-md); text-transform: uppercase; letter-spacing: var(--fse-letter-spacing-wide); }

p {
    margin: 0 0 var(--fse-space-4) 0;
}

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

strong {
    font-weight: var(--fse-font-weight-semibold);
    color: var(--fse-text-primary);
}

small {
    font-size: var(--fse-font-size-sm);
    color: var(--fse-text-muted);
}

a {
    color: var(--fse-text-accent);
    text-decoration: none;
    transition: color var(--fse-transition-fast);
}

a:hover {
    color: var(--fse-color-accent-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--fse-focus-ring);
    border-radius: var(--fse-radius-sm);
}

ul, ol {
    margin: 0 0 var(--fse-space-4) 0;
    padding-left: var(--fse-space-6);
}

li {
    margin-bottom: var(--fse-space-2);
}

code, pre, kbd, samp {
    font-family: var(--fse-font-mono);
    font-size: 0.95em;
}

hr {
    border: none;
    height: 1px;
    background: var(--fse-border-subtle);
    margin: var(--fse-space-8) 0;
}

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

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

/* ---------- Utility classes ---------- */

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

.fse-text-center { text-align: center; }
.fse-text-muted { color: var(--fse-text-muted); }
.fse-text-accent { color: var(--fse-text-accent); }

.fse-gradient-text {
    background: var(--fse-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fse-eyebrow {
    display: inline-block;
    font-size: var(--fse-font-size-xs);
    font-weight: var(--fse-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--fse-letter-spacing-wide);
    color: var(--fse-text-accent);
    margin-bottom: var(--fse-space-3);
}

.fse-divider {
    height: 1px;
    background: var(--fse-border-subtle);
    margin: var(--fse-space-9) 0;
}
