/* ==================================================
   Design tokens
   ================================================== */

:root {
    --color-background: #ffffff;
    --color-background-alt: #f4f6f8;
    --color-text: #1d252c;
    --color-text-muted: #53616b;
    --color-primary: #bb2026;
    --color-primary-dark: #93181d;
    --color-border: #d9e0e5;

    --font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --content-width: 72rem;
    --border-radius: 0.4rem;

    --shadow-small:
        0 0.25rem 1rem rgb(0 0 0 / 8%);
}


/* ==================================================
   Base styles
   ================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    line-height: 1.15;
}

h1 {
    max-width: 14ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 7vw, 5.25rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}


/* ==================================================
   Layout
   ================================================== */

.container {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.section {
    padding-block: 5rem;
}

.section-alternate {
    background: var(--color-background-alt);
}


/* ==================================================
   Header and navigation
   ================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(0.75rem);
}

.site-header .container {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    font-weight: 800;
    text-decoration: none;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-navigation a {
    font-weight: 600;
    text-decoration: none;
}

.site-navigation a:not(.button):hover {
    color: var(--color-primary);
}


/* ==================================================
   Buttons and links
   ================================================== */

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-small);
}

.button:hover {
    background: var(--color-primary-dark);
}

.button-small {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
}

.text-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
}


/* ==================================================
   Hero
   ================================================== */

.hero {
    display: grid;
    min-height: calc(100vh - 4.5rem);
    align-items: center;
    padding-block: 6rem;
    background:
        linear-gradient(
            110deg,
            rgb(255 255 255 / 98%) 0%,
            rgb(255 255 255 / 90%) 55%,
            rgb(255 255 255 / 60%) 100%
        ),
        var(--color-background-alt);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1 1 52%;
    min-width: 0;
}

.hero-image {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    max-width: 11ch;
}


.hero-image img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 12px;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-introduction {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-signature {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
}

.hero-footnote {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* ==================================================
   Call to action and footer
   ================================================== */

.section-cta {
    text-align: center;
}

.section-cta p {
    max-width: 40rem;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-left: auto;
}

.site-footer {
    padding-block: 2rem;
    color: var(--color-text-muted);
    background: var(--color-background-alt);
    text-align: center;
}

.site-footer p {
    margin-bottom: 0;
}


/* ==================================================
   Responsive navigation
   ================================================== */

@media (max-width: 48rem) {
    .site-header {
        position: static;
    }

    .site-header .container {
        min-height: 4rem;
    }

    .site-navigation a:not(.button) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-block: 5rem;
    }
    
    .hero h1 {
        max-width: none;
        font-size: clamp(2.75rem, 12vw, 4rem);
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding-block: 4rem;
    }
}