:root {
    --night: #061022;
    --silver: #e9edf1;
    --blue: #185cff;
    --dim: #8994a8;
    font-family: Arial, Helvetica, sans-serif;
    color-scheme: dark
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--night);
    color: var(--silver);
    overflow-x: hidden;
    background-image: radial-gradient(#e9edf133 1px, transparent 1px);
    background-size: 33px 33px
}

button,
a {
    font: inherit
}

header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

header>a {
    color: var(--silver);
    text-decoration: none;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em
}

.lang {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e9edf166;
    background: #061022c7;
    color: var(--silver);
    font-weight: 800
}

.languages {
    position: fixed;
    z-index: 30;
    inset: auto 10px 10px;
    background: #0a1730;
    border: 1px solid #e9edf166;
    padding: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
}

.languages[hidden] {
    display: none
}

.languages button {
    min-height: 52px;
    border: 1px solid #e9edf133;
    background: transparent;
    color: var(--silver);
    text-align: left;
    padding: 0 11px
}

.languages button.active {
    background: var(--blue);
    border-color: var(--blue)
}

.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    overflow: hidden
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, #06102205 42%, #061022 98%)
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: 100px 20px 70px
}

.hero-copy p,
.chart-copy p,
.run p,
.vow>p {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase
}

.hero h1,
.chart h2,
.run h2,
.vow h2 {
    font-size: clamp(3.2rem, 15vw, 7.5rem);
    line-height: .88;
    letter-spacing: -.065em;
    text-transform: uppercase;
    margin: .5rem 0 1rem
}

.hero-copy>span,
.chart-copy>span,
.run div>span {
    display: block;
    max-width: 34rem;
    line-height: 1.65;
    color: #c2c9d5
}

.hero-copy a,
.vow a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    background: var(--silver);
    color: var(--night);
    text-decoration: none;
    font-weight: 900;
    margin-top: 18px;
    white-space: nowrap
}

.orbit {
    position: absolute;
    z-index: 2;
    border: 1px solid #e9edf14d;
    border-radius: 50%;
    pointer-events: none;
    animation: turn 24s linear infinite
}

.orbit:after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    top: 20%;
    left: 4%
}

.orbit-a {
    width: 72vw;
    aspect-ratio: 1;
    right: -35vw;
    top: 12%
}

.orbit-b {
    width: 38vw;
    aspect-ratio: 1;
    right: -8vw;
    top: 24%;
    animation-direction: reverse
}

.chart {
    min-height: 100dvh;
    padding: 100px 18px;
    position: relative
}

.chart h2 {
    max-width: 9ch
}

.chart-copy>span {
    line-height: 1.65
}

.constellation {
    height: 370px;
    position: relative;
    margin: 45px 0 20px
}

.constellation svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible
}

.constellation path {
    stroke: #e9edf166;
    stroke-width: .5;
    fill: none
}

.constellation button {
    position: absolute;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--silver);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.constellation button:nth-child(1) {
    left: 8%;
    top: 65%
}

.constellation button:nth-child(2) {
    left: 35%;
    top: 15%
}

.constellation button:nth-child(3) {
    right: 5%;
    top: 48%
}

.constellation i {
    width: 18px;
    height: 18px;
    border: 1px solid var(--silver);
    border-radius: 50%;
    box-shadow: 0 0 0 8px #e9edf10d
}

.constellation b {
    font-size: .75rem
}

.constellation button.active i {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 12px #185cff20, 0 0 30px var(--blue)
}

.reading {
    color: var(--dim);
    line-height: 1.6;
    border-top: 1px solid #e9edf133;
    padding-top: 18px
}

.run {
    position: relative
}

.run img {
    display: block;
    width: 100%;
    height: 75vw;
    min-height: 310px;
    object-fit: cover
}

.run div {
    padding: 38px 18px 100px
}

.run h2 {
    max-width: 10ch
}

.vow {
    min-height: 85dvh;
    position: relative;
    padding: 110px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid #e9edf133
}

.vow h2 {
    max-width: 8ch;
    position: relative;
    z-index: 2
}

.moon {
    position: absolute;
    right: -25vw;
    top: 12%;
    width: 68vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--silver);
    box-shadow: 0 0 80px #e9edf133
}

.moon:after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid var(--night);
    border-radius: 50%
}

.vow a {
    align-self: flex-start;
    background: var(--blue);
    color: #fff;
    position: relative;
    z-index: 2
}

footer {
    padding: 24px 18px;
    border-top: 1px solid #e9edf133;
    display: flex;
    justify-content: space-between;
    color: var(--dim);
    font-size: .62rem
}

@keyframes turn {
    to {
        transform: rotate(360deg)
    }
}

@media(min-width: 800px) {
    header {
        padding: 0 5vw
    }

    .languages {
        left: auto;
        right: 5vw;
        top: 70px;
        bottom: auto;
        width: 430px
    }

    .hero-copy {
        padding: 120px 6vw
    }

    .chart {
        padding: 130px 8vw;
        display: grid;
        grid-template-columns: .75fr 1.25fr;
        gap: 8vw;
        align-items: center
    }

    .constellation {
        height: 70vh
    }

    .reading {
        grid-column: 2
    }

    .run img {
        height: 78vh
    }

    .run div {
        position: absolute;
        left: 6vw;
        bottom: 5vw;
        width: 42%;
        padding: 38px;
        background: #061022e8
    }

    .vow {
        padding: 10vw
    }

    .moon {
        width: 38vw;
        right: 5vw
    }

    footer {
        padding: 28px 5vw
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .orbit {
        animation: none
    }
}