:root {
    color-scheme: dark;
    --background: #10141c;
    --paper: #f6f1e8;
    --muted: #c4c0b9;
    --brass: #e2bf8b;
    --gutter: clamp(1.5rem, 7.2vw, 8rem);
    font-family: system-ui, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--paper);
}

.page {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
}

.backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--background);
}

.backdrop img,
.backdrop::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.backdrop img {
    object-fit: cover;
    object-position: 67% 50%;
    animation: settle 1.5s ease-out both;
}

.backdrop::after {
    content: "";
    background:
        linear-gradient(90deg, #10141c 0%, #10141cf5 18%, #10141cb8 40%, #10141c0f 71%),
        linear-gradient(0deg, #10141ceb 0%, #10141c00 34%);
}

.hero {
    align-self: center;
    padding: clamp(3.5rem, 11vh, 9rem) var(--gutter);
    animation: reveal 700ms ease-out both;
}

.status {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 clamp(1rem, 3vw, 2rem);
    color: var(--brass);
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .23em;
}

.status::before {
    content: "";
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: currentColor;
}

.wordmark {
    width: min(100%, 34rem);
    margin: 0;
}

.wordmark img {
    display: block;
    width: 100%;
    height: auto;
}

.service-line {
    margin: 1.15rem 0 0;
    color: var(--paper);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.countdown {
    width: fit-content;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    padding-top: 1.2rem;
    border-top: 1px solid #e2bf8b50;
    animation: reveal 700ms 120ms ease-out both;
}

.clock-label {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    font-size: .65rem;
    font-weight: 630;
    letter-spacing: .13em;
}

.clock {
    display: grid;
    grid-template-columns: auto .6em auto .6em auto;
    align-items: start;
    margin-top: .62rem;
    font-size: clamp(2.15rem, 4.45vw, 4rem);
    font-variant-numeric: tabular-nums;
}

.clock-unit {
    display: grid;
    gap: .4rem;
    justify-items: center;
}

.clock-value,
.clock-divider {
    line-height: 1;
    font-weight: 390;
    letter-spacing: -.055em;
}

.clock-value {
    min-width: 2ch;
    text-align: center;
}

.clock-divider {
    color: var(--brass);
    text-align: center;
}

.credit {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .2rem .46rem;
    margin-inline: var(--gutter);
    padding: .75rem 0;
    min-height: 3.5rem;
    border-top: 1px solid #f6f1e830;
    color: var(--muted);
    font-size: .75rem;
}

.credit a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding-block: .45rem;
    color: var(--paper);
    text-underline-offset: .24em;
    text-decoration-color: #f6f1e861;
    transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

.credit a:hover,
.credit a:focus-visible {
    color: var(--brass);
    text-decoration-color: currentColor;
}

.credit a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 4px;
}

.credit a span {
    transition: transform 160ms ease-out;
}

.credit a:hover span,
.credit a:focus-visible span {
    transform: translate(.12em, -.12em);
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(.6rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes settle {
    from { opacity: .65; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 42rem) {
    .backdrop img {
        top: auto;
        height: 69%;
        object-position: 78% 50%;
    }

    .backdrop::after {
        background:
            linear-gradient(180deg, #10141c 33%, #10141c25 61%, #10141ceb 100%),
            linear-gradient(90deg, #10141c44 0%, #10141c00 68%);
    }

    .hero {
        align-self: start;
        padding-block: clamp(3.25rem, 12svh, 7rem) 3.2rem;
    }

    .clock {
        font-size: clamp(2rem, 9vw, 3.25rem);
    }

    .credit {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
