:root {
    color-scheme: light;
    --ink: #14213d;
    --muted: #526079;
    --surface: #ffffff;
    --soft: #f3f7fb;
    --accent: #bc2727;
    --line: #dce4ec;
    --shadow: 0 1rem 2.5rem rgb(20 33 61 / 10%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    font-weight: 800;
    text-decoration: none;
}

.brand span {
    display: grid;
    width: 2.4rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 0.7rem;
    color: white;
    background: var(--accent);
    font-size: 0.8rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
}

.hero {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    overflow: hidden;
    border-radius: 1.5rem;
    color: white;
    background: #14213d;
    box-shadow: var(--shadow);
}

.hero img {
    width: 100%;
    border-radius: 1rem;
}

.eyebrow {
    margin-block: 0 0.5rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin-block: 0 0.65em;
    line-height: 1.15;
}

h1 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 8vw, 4.8rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.05rem;
}

p {
    margin-block: 0 1rem;
}

.intro {
    max-width: 60ch;
    color: #d9e4f2;
    font-size: 1.1rem;
}

.button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    color: white;
    background: var(--accent);
    font-weight: 750;
    text-decoration: none;
}

.content-layout {
    display: grid;
    gap: 1.5rem;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.content-layout > article,
.content-layout > aside,
.card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.content-layout > article,
.content-layout > aside {
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.content-layout > article > p {
    max-width: 68ch;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.card {
    padding: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-number {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
}

.content-layout > aside {
    align-self: start;
    border-top: 0.35rem solid var(--accent);
}

.content-layout > aside h2 {
    font-size: 1.3rem;
}

.checklist {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--muted);
}

.checklist li::before {
    position: absolute;
    left: 0;
    color: var(--accent);
    content: "✓";
    font-weight: 900;
}

footer {
    padding-block: 0 2rem;
    color: var(--muted);
    text-align: center;
}

/* The layout changes when two readable columns fit, not for a named device. */
@media (min-width: 48rem) {
    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.32fr);
    }

    .content-layout > aside {
        position: sticky;
        top: 1rem;
    }
}

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