:root {
    --black: #000;
    --white: #fff;
    --pink: #ffd60a;
    --paper: #f7f2ec;
    --soft: #ebe7df;
    --ink-soft: #443d35;
    --sky: #edf5f7;
    --sage: #edf4ea;
    --lavender: #f0edf6;
    --bubblegum: #f7edf1;
    --orange: #e7cfa4;
    --blue: #c8dce6;
    --green: #c8ddc4;
    --coral: #e5b9ad;
    --section-bg: var(--paper);
    --section-from: var(--section-bg);
    --section-color: var(--section-bg);
    --section-to: var(--section-bg);
    --section-ink: var(--black);

    --margin: clamp(1.25rem, 4vw, 4rem);
    /* --width: 92rem; */
    --radius: 2.25rem;
    --line: 1px solid color-mix(in srgb, var(--black), transparent 82%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--black);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.05rem, 1vw + .8rem, 1.35rem);
    line-height: 1.18;
    letter-spacing: 0;
}

::selection {
    background: var(--pink);
    color: var(--black);
}

body > a {
    position: fixed;
    top: -2rem;
    left: 0rem;
    text-decoration: none;
}

body > a:focus {
    transform: translateY(0);
}

header {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;

    min-height: 86vh;
    display: grid;
    align-content: center;
    padding: clamp(5rem, 10vw, 10rem) var(--margin);
}

header h1 {
    width: fit-content;
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    background: linear-gradient(to top, var(--pink) 0 .38em, transparent .38em);
}

header > hgroup {
    min-height: 86vh;
    display: grid;
    align-content: center;
}

header > hgroup h2 {
    margin: 0;
    font-size: clamp(3.2rem, 9vw, 12rem);
    font-weight: 680;
    line-height: .84;
    letter-spacing: 0;
}

header > hgroup p:last-child {
    margin-top: clamp(2rem, 2vw, 5rem);
    color: var(--ink-soft);
    font-size: clamp(1.4rem, 2.4vw, 3rem);
    font-weight: 620;
    line-height: .98;
    letter-spacing: 0;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 3;
    width: 1.5rem;
    height: 2.5rem;
    transform: translateX(-50%);
    opacity: var(--scroll-indicator-opacity, 1);
    filter: blur(var(--scroll-indicator-blur, 0));
    color: rgb(0 0 0 / .62);
    pointer-events: none;
    will-change: opacity, filter;
}

.scroll-indicator path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

main {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

section {
    position: relative;
    z-index: 0;
    isolation: isolate;
    /* max-width: var(--width); */
    margin-inline: auto;
    padding: clamp(5rem, 10vw, 10rem) var(--margin);
    gap: 1em;
    color: var(--section-ink);

    background: var(--section-bg);
}

section[data-tone="sunrise"] {
    --section-bg: linear-gradient(
        180deg,
        transparent 0,
        transparent 54vh,
        var(--bubblegum) 76%,
        var(--sky) 100%
    );
}

section[data-tone="sky"] {
    --section-color: var(--sky);
    --section-to: var(--lavender);
    --section-bg: linear-gradient(
        180deg,
        var(--section-color) 0,
        var(--section-color) 68%,
        var(--section-to) 100%
    );
}

section[data-tone="lavender"] {
    --section-color: var(--lavender);
    --section-to: var(--sage);
    --section-bg: linear-gradient(
        180deg,
        var(--section-color) 0,
        var(--section-color) 68%,
        var(--section-to) 100%
    );
}

section[data-tone="sage"] {
    --section-color: var(--sage);
    --section-to: var(--bubblegum);
    --section-bg: linear-gradient(
        180deg,
        var(--section-color) 0,
        var(--section-color) 68%,
        var(--section-to) 100%
    );
}

section[data-tone="bubblegum"] {
    --section-color: var(--bubblegum);
    --section-bg: linear-gradient(
        180deg,
        var(--section-color) 0,
        var(--section-color) 100%
    );
}

h2,
h3,
p {
    margin: 0;
}

p + p {
    margin-top: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 9rem);
    font-weight: 650;
    line-height: .86;
    letter-spacing: 0;
}

h3 {
    font-size: clamp(1.7rem, 3vw, 3.4rem);
    font-weight: 560;
    line-height: .94;
    letter-spacing: 0;
}

strong {
    font-weight: 700;
}

main strong {
    width: fit-content;
    color: var(--black);
    background: linear-gradient(to top, var(--pink) 0 .38em, transparent .38em);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-style: normal;
}

header > nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: clamp(.95rem, .5vw + .85rem, 1.1rem);
}

/* Footer */

footer {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 4rem) var(--margin);
    border-top: var(--line);
    background: var(--black);
    color: var(--white);
}

footer p + p {
    margin-top: .35rem;
    color: rgb(255 255 255 / .62);
}

footer nav {
    display: flex;
    gap: .75rem;
    align-items: start;
}

a {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--pink), transparent 18%);
    text-decoration-thickness: .08em;
    text-underline-offset: .1em;
    color: inherit;
}

footer a {
    color: inherit;
    /* text-decoration: none; */
    padding: .15rem 0;
}

footer a:hover,
footer a:focus {
    color: var(--pink);
}

@media (max-width: 800px) {
    footer {
        display: block;
    }

    footer nav {
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    header {
        min-height: 76vh;
    }

    header h2 {
        max-width: none;
    }

    header p:last-child {
        margin-left: 0;
    }

    main {
        display: block;
    }

    main article + article {
        margin-top: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    header {
        height: 70vh;
        min-height: 70vh;
    }
    main {
        margin-top: 0;
        border-radius: 0;
    }
}
