/* ================================================
   LOISTE STUDIO - BASE STYLES
   CSS Reset, Typography & Foundation
   ================================================ */

/* ============================================
   CSS RESET (Modern Normalize)
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px for easier calculations */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-normal);
    color: var(--black);
    background-color: var(--white-beige);
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* ============================================
   FONT LOADING
   ============================================ */
@font-face {
    font-family: 'Clarist';
    src: url('../assets/fonts/clarist.woff2') format('woff2'),
        url('../assets/fonts/clarist.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Adobe Typekit fonts loaded via external link */
/* aktiv-grotesk and kepler-std-condensed-display */

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: 2rem;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    margin-bottom: 1.5rem;
    line-height: var(--line-height-relaxed);
}

em {
    font-style: italic;
    font-family: var(--font-heading);
}

strong {
    font-weight: 600;
}

/* Small title style (used throughout site) */
.small__title {
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    color: var(--color-charcoal);
    /* Improved contrast globally */
    display: block;
    margin-bottom: 2rem;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-bronze);
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* ============================================
   LISTS
   ============================================ */
ul,
ol {
    list-style: none;
}

/* ============================================
   FORMS
   ============================================ */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section padding */
.section-padding {
    padding: var(--section-padding) 0;
}

/* Reveal animation (Premium Motion) */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Visually hidden (accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    .section-padding {
        padding: var(--section-padding-tablet) 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56.25%;
        /* Slightly smaller base on mobile */
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}