/* ==========================================================================
   Al Saad — Base: reset, fonts, elemental typography
   ========================================================================== */

/* ---- Modern minimal reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body-sm);
    line-height: 1.5;
    color: var(--text-on-light);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip; /* clip horizontal overflow WITHOUT breaking position: sticky */
}

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

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; background: none; border: none; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-light);
    line-height: 1;
    letter-spacing: -0.01em;
}

:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
}

/* ---- Elemental type helpers ---- */
.h1 { font-size: var(--fs-h1); line-height: 1; }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-body); font-weight: var(--fw-light); }

.text-light  { font-weight: var(--fw-light); }
.text-medium { font-weight: var(--fw-medium); }
.font-body   { font-family: var(--font-body); }
.font-head   { font-family: var(--font-heading); }

/* Screen-reader only */
.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;
}

/* Reduced motion — only disable smooth scrolling. The intentional brand
   motion (marquee, scroll reveals) is kept, matching the design intent. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
