:root {
    --red: #b51f2e;
    --red-dark: #8f1723;
    --blue: #0a2d62;
    --blue-light: #164f96;
    --ink: #151515;
    --muted: #5d6470;
    --paper: #ffffff;
    --soft: #f3f5f8;
    --line: #dfe4ea;
    --shadow: 0 18px 48px rgba(13, 31, 54, .14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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

a {
    color: inherit;
}


/* Header and Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(9px);
}

.nav-wrap {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--blue);
    font-size: 1.05rem;
}

.brand span {
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem;
    color: #28313b;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--red);
}


/* Hero */

.hero {
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(
            115deg,
            rgba(8, 38, 83, .98) 0%,
            rgba(10, 45, 98, .96) 58%,
            rgba(181, 31, 46, .92) 100%
        );
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, .11) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 30% 65%,
            rgba(255, 255, 255, .08) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 76% 18%,
            rgba(255, 255, 255, .08) 0 2px,
            transparent 3px
        );
    background-size: 170px 170px, 210px 210px, 190px 190px;
}

.hero-wrap {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 58px;
    align-items: center;
    padding: 76px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.04em;
}

.hero h1 span {
    display: block;
    color: #fff;
}

.hero-subtitle {
    margin: 22px 0 0;
    max-width: 700px;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    color: rgba(255, 255, 255, .92);
}

.hero-copy {
    margin: 20px 0 0;
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: white;
    color: var(--blue);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, .55);
    color: white;
}

.hero-photo {
    max-width: 440px;
    justify-self: end;
    padding: 12px;
    background: white;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
    transform: rotate(1.5deg);
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
}

.red-rule {
    height: 8px;
    background: var(--red);
}


/* General Sections */

main section {
    padding: 82px 0;
}

.section-wrap {
    width: min(1060px, calc(100% - 36px));
    margin: 0 auto;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
}

h2 {
    margin: 0 0 24px;
    color: var(--blue);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

h3 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 1.25rem;
}

p {
    margin: 0 0 18px;
}

.lead {
    font-size: 1.18rem;
    color: #2a333d;
    max-width: 860px;
}


/* Introduction */

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 46px;
    align-items: start;
}

.timeline-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--soft);
    border-top: 5px solid var(--red);
}

.timeline-card ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-card li {
    margin: 0 0 10px;
}

.timeline-card li:last-child {
    margin-bottom: 0;
}


/* Story */

.story {
    background: var(--soft);
}

.story-grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 48px;
    align-items: center;
}

.wedding-card {
    background: white;
    padding: 12px 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.wedding-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.wedding-card figcaption {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    padding-top: 12px;
}


/* Service and Experience */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.service-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 9px 28px rgba(15, 35, 60, .06);
}

.service-card .number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-bottom: 16px;
    color: white;
    background: var(--red);
    font-weight: 800;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}


/* Family Photo */

.family-photo {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 32px;
    border: 8px solid white;
}

.family-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
}


/* Why I'm Running */

.why {
    color: white;
    background: var(--blue);
}

.why .section-kicker {
    color: #ffb8bf;
}

.why h2 {
    color: white;
}

.why .lead {
    color: rgba(255, 255, 255, .92);
}

.why blockquote {
    margin: 34px 0 0;
    padding: 28px 30px;
    border-left: 5px solid var(--red);
    background: rgba(255, 255, 255, .07);
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    line-height: 1.55;
}


/* Closing */

.closing {
    text-align: center;
    background: white;
}

.closing-inner {
    max-width: 760px;
    margin: 0 auto;
}

.closing-mark {
    width: 64px;
    height: 6px;
    background: var(--red);
    margin: 0 auto 26px;
    border-radius: 999px;
}


/* Footer */

footer {
    color: white;
    background: #0b0d10;
    padding: 30px 0;
    text-align: center;
    font-size: .9rem;
}

footer p {
    margin: 0;
}

footer .small {
    margin-top: 7px;
    color: #b8bec6;
    font-size: .82rem;
}


/* Responsive */

@media (max-width: 820px) {

    .site-header {
        position: static;
    }

    .nav-wrap {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
    }

    .nav-links {
        gap: 10px 16px;
    }

    .hero-wrap,
    .intro-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrap {
        padding: 54px 0 62px;
        gap: 36px;
    }

    .hero-photo {
        justify-self: start;
        max-width: 360px;
        transform: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    main section {
        padding: 64px 0;
    }
}


@media (max-width: 560px) {

    .nav-wrap {
        display: block;
    }

    .nav-links {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 16vw, 4.2rem);
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .family-photo img {
        aspect-ratio: 4 / 3;
    }
}