/* ==========================================================================
   BespokeLMS Marketing Site — Base Styles
   Reset, element defaults, and utility classes
   ========================================================================== */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-slate);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Defaults ────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-ink);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-snug);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
}

p {
    line-height: var(--line-height-relaxed);
    color: var(--color-slate);
}

p+p {
    margin-top: var(--space-4);
}

a {
    color: var(--color-ink);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

/* ── Focus Styles ───────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Images ─────────────────────────────────────────────────────────────── */
img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Lists ──────────────────────────────────────────────────────────────── */
ul,
ol {
    list-style: none;
}

/* ── Layout Utilities ───────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width-site);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: var(--max-width-prose);
}

/* ── Scroll Animations ──────────────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 {
    transition-delay: 0.1s;
}

.fade-up-delay-2 {
    transition-delay: 0.2s;
}

.fade-up-delay-3 {
    transition-delay: 0.3s;
}

.fade-up-delay-4 {
    transition-delay: 0.4s;
}

.fade-up-delay-5 {
    transition-delay: 0.5s;
}

/* ── Visually Hidden (accessibility) ───────────────────────────────────── */
.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;
}

/* Prevent any horizontally-overflowing element from causing page scroll */
html, body {
    overflow-x: hidden;
}