/* ==========================================================================
   Base Styles - Clayworks Website
   Typography, body styles, and common elements
   ========================================================================== */

/* -------------------------------------------------------------------------
   Body
   ------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background: var(--color-purple-mid);
}

/* -------------------------------------------------------------------------
   Typography - Display
   ------------------------------------------------------------------------- */
.italic {
    font-style: italic;
    font-weight: 400;
}

/* -------------------------------------------------------------------------
   Links
   ------------------------------------------------------------------------- */
a {
    transition: color var(--transition-base);
}

/* -------------------------------------------------------------------------
   Page Loading States
   Used for controlled page reveal after critical assets load
   ------------------------------------------------------------------------- */
body.loading .page-content {
    opacity: 0;
}

body.loaded .page-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* -------------------------------------------------------------------------
   Section Titles
   ------------------------------------------------------------------------- */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-display-md);
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--space-5xl);
    color: var(--color-text-light);
}

/* -------------------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------------------- */

/* 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;
}

/* Text colors */
.text-accent {
    color: var(--color-accent);
}

/* Note: prefers-reduced-motion is handled in reset.css */
