:root {
    --nrd-red: #ed1b2f;
    --nrd-red-deep: #9e0720;
    --nrd-red-dark: #bc0a28;
    --nrd-black: #000000;
    --nrd-graphite: #303030;
    --nrd-gray: #6c6d6d;
    --nrd-gray-light: #a7a9ac;
    --nrd-white: #ffffff;

    font: 100%/1.5 system-ui, sans-serif;
    color: var(--nrd-graphite);
    background: var(--nrd-white);
    scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }

.wrap {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: max(35rem, 100vh);
    min-height: max(35rem, 100svh);
    display: flex;
    flex-direction: column;
    background: var(--nrd-black);
    color: var(--nrd-white);
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Artwork coordinates match the uncropped winter scene assets. */
.gift-box {
    position: absolute;
    inset: 0 auto auto 0;
    transform-origin: top left;
    pointer-events: none;
}

.gift-box-lid, .gift-box-front {
    position: absolute;
    inset: 0;
}

.gift-box span {
    position: absolute;
    width: 1280px;
    height: 960px;
    background: url("gift-box-original.jpg") no-repeat;
    transform-origin: top left;
}

.gift-box-lid {
    clip-path: polygon(63px 751px, 600px 650px, 807px 828px, 235px 970px);
}
.gift-box-lid span {
    transform: matrix3d(0.77056340875, 0.17680461458, 0, 0.00002175334, -0.16364275229, 1.14258104308, 0, 0.00056111507, 0, 0, 1, 0, 108.92492497227, 457.78998374403, 0, 1);
    filter: saturate(1.17) brightness(1.04);
}
.gift-box-front {
    /* Keep the kit and the snowbank in front of the box. */
    clip-path: polygon(235px 969px, 807px 827px, 797px 951px, 763px 957px, 738px 964px, 708px 977px, 670px 988px, 617px 1001px, 550px 1017px, 478px 1027px, 465px 1034px, 233px 1036px);
}
.gift-box-front span {
    transform: matrix3d(0.35092875258, -0.13106510977, 0, -0.00029713843, -0.14735626602, 0.18199807933, 0, -0.00024486588, 0, 0, 1, 0, 112.0313209223, 589.25458952506, 0, 1);
    filter: saturate(1.22) brightness(.88);
}

.hero-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0009, #0003 29%, transparent 48% 76%, #0008);
    content: "";
}

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    --brand-width: clamp(7rem, 24vw, 9rem);

    width: fit-content;
    padding: calc(var(--brand-width) * .18) calc(var(--brand-width) * .09);
}
.brand img {
    display: block;
    width: var(--brand-width);
    height: auto;
}
.preview {
    color: var(--nrd-gray-light);
    font-size: .8125rem;
    text-align: right;
}

.hero-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding-block: clamp(.85rem, 3svh, 2rem) clamp(2.5rem, 8svh, 5rem);
}

h1 {
    font-size: clamp(2.35rem, 10.1vw, 4.7rem);
    font-weight: 900;
    font-style: italic;
    line-height: .88;
    letter-spacing: -.058em;
    padding-right: .18em;
}

h1 span, h1 strong { display: block; }
h1 strong {
    margin-block: .04em;
    color: var(--nrd-red);
    font-size: 1.76em;
    font-weight: 950;
    letter-spacing: -.082em;
}

.tagline {
    margin-top: .62rem;
    font-size: clamp(1rem, 3.8vw, 1.35rem);
    font-style: italic;
    font-weight: 620;
}

.hero-action { text-align: center; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 21rem);
    min-height: 3.1rem;
    padding: .65rem 1.35rem;
    border: 1px solid var(--nrd-red);
    border-radius: 2rem;
    background: linear-gradient(var(--nrd-red-dark), var(--nrd-red-deep));
    box-shadow: 0 .35rem 1.4rem #ed1b2f38, inset 0 1px 4px #fff3;
    color: var(--nrd-white);
    font-weight: 750;
    text-decoration: none;
}
.button:hover { background: var(--nrd-red-dark); }
.button:focus-visible { outline: 2px solid var(--nrd-white); outline-offset: 4px; }

.greeting {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.2rem, 8vw, 7rem);
}

.greeting::before, .greeting::after {
    position: absolute;
    width: clamp(11rem, 30vw, 29rem);
    height: clamp(1.75rem, 5vw, 4rem);
    border-radius: 50%;
    background: linear-gradient(175deg, var(--nrd-red-deep), var(--nrd-red) 48%, var(--nrd-red-dark) 96%);
    box-shadow: 0 .7rem 1.2rem #9e07201c;
    content: "";
    pointer-events: none;
}
.greeting::before { top: .8rem; right: -3.2rem; transform: rotate(28deg); }
.greeting::after { bottom: .1rem; left: -3.3rem; transform: rotate(-15deg); }

.greeting-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-areas: "heading" "portrait" "letter";
    gap: 1.15rem;
    align-items: start;
}
.greeting-heading { grid-area: heading; }

h2 {
    max-width: 20ch;
    font-size: clamp(1.75rem, 6vw, 3.55rem);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -.045em;
}

h2::after {
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: .9rem;
    background: var(--nrd-red);
    content: "";
}

.portrait {
    grid-area: portrait;
    justify-self: center;
}

.portrait img {
    display: block;
    width: clamp(9rem, 44vw, 12rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 45%;
    border-radius: 50%;
    background: var(--nrd-gray-light);
}

.letter {
    grid-area: letter;
    max-width: 37rem;
    font-size: clamp(1rem, 2.6vw, 1.125rem);
}
.letter p + p { margin-top: .75rem; }
.letter .draft { color: var(--nrd-gray); font-size: .875rem; }
.letter strong, .signature { color: var(--nrd-red-deep); font-size: 1.15em; font-weight: 800; }

@media (min-width: 48rem) {
    .wrap { width: min(100% - 5rem, 76rem); }
    .masthead { justify-content: flex-start; }

    .hero-backdrop img { object-position: 70% center; }
    .gift-box-lid {
        clip-path: polygon(755px 343px, 1210px 247px, 1403px 391px, 915px 519px);
    }
    .gift-box-lid span {
        transform: matrix3d(0.66169928323, 0.11468283102, 0, -0.00000134227, 0.3146842388, 0.79507230174, 0, 0.00057761381, 0, 0, 1, 0, 774.7047874199, 101.05938784866, 0, 1);
    }
    .gift-box-front {
        clip-path: polygon(915px 518px, 1403px 390px, 1397px 553px, 1378px 558px, 1338px 546px, 1170px 554px, 1165px 565px, 1154px 566px, 1152px 556px, 915px 568px);
    }
    .gift-box-front span {
        transform: matrix3d(0.04415725855, 0.06960301632, 0, -0.0003291282, -0.27510218811, 0.39791317499, 0, -0.00023295344, 0, 0, 1, 0, 805.3915899763, 27.40571847137, 0, 1);
    }
    .hero-art::after {
        background:
            linear-gradient(90deg, #000c, #0005 34%, transparent 64%),
            linear-gradient(180deg, #0007, transparent 28%, transparent 78%, #0006);
    }

    .hero-layout {
        justify-content: center;
        align-items: flex-start;
        gap: 1.85rem;
        padding-block: 1.8rem clamp(3rem, 10svh, 7rem);
    }
    h1 { font-size: clamp(3rem, 6.4vw, 6.65rem); }

    .hero-action { text-align: left; }
    .button { width: auto; }

    .greeting-layout {
        grid-template-areas: "heading heading" "portrait letter";
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 2rem clamp(2rem, 6vw, 6rem);
    }
    .portrait img { width: clamp(12rem, 22vw, 20rem); }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
    .hero-backdrop img { object-position: 85% center; }
}

@media (min-width: 48rem) and (max-aspect-ratio: 5/4) {
    .hero-backdrop img {
        position: absolute;
        bottom: 0;
        height: auto;
        mask-image: linear-gradient(transparent, #000 20%);
    }

    .hero-layout {
        justify-content: flex-start;
        padding-top: clamp(2rem, 7svh, 5rem);
    }
}

@media (max-width: 47.99rem) and (max-height: 40rem) {
    .hero-layout { padding-top: .5rem; }
    h1 { font-size: clamp(2rem, 9.5vw, 2.8rem); }
}

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