/* ==========================================================================
   Wazo Hôtel & Appart-Hôtel — Base styles
   Minimal reset, typography, layout containers and global rules.
   Mobile-first: unprefixed rules target small screens, media queries
   layer on enhancements for larger viewports.
   ========================================================================== */

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

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

body {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--wz-ink);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Titles (h1-h3) carry the display face; smaller headings are labels and
   stay in the text face. */
h1, h2, h3 {
    margin: 0 0 var(--space-3);
    font-family: var(--font-family-display);
    font-weight: 400;
    line-height: var(--line-height-heading);
    letter-spacing: -0.015em;
}

h4, h5, h6 {
    margin: 0 0 var(--space-3);
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin: 0 0 var(--space-3);
}

img,
svg {
    max-width: 100%;
    display: block;
}

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

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

/* Form controls and buttons inherit Montserrat instead of the browser's
   system font. */
button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: inherit;
}

/* Layout container ------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

/* Anchors land below the fixed header. */
[id] {
    scroll-margin-top: 5.5rem;
}

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

:focus-visible {
    outline: 3px solid var(--focus, var(--wz-navy));
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
