/* ═══════════════════════════════════════════════════════
   GLOBAL.CSS — Chris & Gariné Wedding Site
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--size-base);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;

    /* Reveal the site-border */
    padding: clamp(24px, 4vw, 50px);
}

/* Main content "paper" wrapper - semi-transparent to show floral pattern behind */
main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 60px rgba(43, 32, 24, 0.08);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* top corners only */
    position: relative;
    z-index: 10;
    min-height: 90vh;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-ink);
}

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

h2 {
    font-size: var(--size-3xl);
}

h3 {
    font-size: var(--size-2xl);
}

h4 {
    font-size: var(--size-xl);
}

p {
    font-size: var(--size-base);
    color: var(--color-ink-soft);
    max-width: 60ch;
    line-height: 1.75;
}

a {
    color: var(--color-fuchsia);
    text-decoration: none;
    transition: opacity 0.2s var(--ease-soft);
}

a:hover {
    opacity: 0.75;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

/* ── Utility: visually hidden (for screen readers) ── */
.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;
}

/* ── Page sections ── */
.section {
    padding-block: var(--space-16);
}

.section--alt {
    background-color: rgba(249, 244, 236, 0.15);
    /* even more transparent to show the floral boarder */
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section__label {
    font-family: var(--font-body);
    font-size: var(--size-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-fuchsia);
    display: block;
    margin-bottom: var(--space-3);
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--size-3xl);
    font-weight: 400;
    color: var(--color-ink);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 {
        font-size: var(--size-4xl);
    }

    h2 {
        font-size: var(--size-2xl);
    }

    .section {
        padding-block: var(--space-16);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--size-3xl);
    }

    h2 {
        font-size: var(--size-xl);
    }

    .container {
        padding-inline: var(--space-4);
    }

    body {
        padding: 10px;
    }

    .section {
        padding-block: var(--space-10);
    }
}