/* =====================================================================
   GRETHORIA — Base / reset / typography
   ===================================================================== */

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--color-cream-light); /* #FAF8F3 */
    color: var(--color-ink);              /* #20201D */
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul, ol { list-style: none; padding: 0; }

/* ---- Headings (editorial serif) ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-ink);
}

h1 {
    font-size: clamp(50px, 6vw, 88px);
    line-height: .95;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.03;
}

h3 { font-size: 30px; line-height: 1.1; }
h4 { font-size: 22px; line-height: 1.2; }

p { line-height: 1.65; }

/* ---- Selection ---- */
::selection {
    background: var(--color-forest);
    color: var(--color-white);
}

/* ---- Focus visibility (a11y) ---- */
:focus-visible {
    outline: 2px solid var(--color-forest);
    outline-offset: 2px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Utility ---- */
.eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-spice);
}

.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.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;
}

/* ---- Scroll reveal base state ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .6, .2, 1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
