/* Local display and fallback fonts */
@font-face {
    font-family: "Lufga";
    src: url("/assets/fonts/Lufga-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lufga";
    src: url("/assets/fonts/Lufga-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Lufga";
    src: url("/assets/fonts/Lufga-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --green-950: #022f20;
    --green-900: #003f29;
    --green-800: #005735;
    --green-700: #006b3f;
    --green-100: #dff0e7;
    --green-50: #eef7f2;
    --gold-500: #f4cf22;
    --gold-400: #f8dc58;
    --ink-900: #14251d;
    --ink-700: #385047;
    --ink-500: #63736b;
    --white: #ffffff;
    --warm-50: #f8f7f2;
    --line: #dce6e0;
    --danger: #b42318;
    --shadow-sm: 0 8px 24px rgba(0, 50, 31, 0.08);
    --shadow-md: 0 18px 48px rgba(0, 50, 31, 0.14);
    --shadow-lg: 0 28px 72px rgba(0, 35, 22, 0.2);
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --container: min(1180px, calc(100% - 2rem));
    --header-height: 80px;
}

/* Reset and foundations */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--white);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
strong {
    font-family: Lufga, Inter, Arial, sans-serif;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    line-height: 1.25;
}

/* Accessibility */
.skip-link {
    position: fixed;
    top: -6rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--green-950);
    background: var(--white);
    box-shadow: var(--shadow-md);
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.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(--gold-500);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    :root {
        --header-height: 76px;
    }
}

@media (max-width: 680px) {
    :root {
        --container: min(100% - 1.25rem, 1180px);
        --header-height: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}