:root {
    color-scheme: dark;
    --ink: #0d211b;
    --ink-deep: #071510;
    --ivory: #f3efe7;
    --ivory-muted: #c6c5b9;
    --brass: #b89c5a;
    --sage: #879b91;
    --line: rgb(243 239 231 / 16%);
    --line-soft: rgb(243 239 231 / 8%);
    --font-display: Georgia, Cambria, "Times New Roman", Times, serif;
    --font-sans: Arial, Helvetica, sans-serif;
}

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

html {
    min-width: 320px;
    background: var(--ink-deep);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--ivory);
    background:
        radial-gradient(circle at 76% 40%, rgb(184 156 90 / 8%), transparent 29rem),
        linear-gradient(135deg, var(--ink) 0%, #0a1b16 62%, var(--ink-deep) 100%);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

.page-shell::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    opacity: 0.65;
    background-image:
        linear-gradient(to right, transparent calc(100% - 1px), var(--line-soft) 1px),
        linear-gradient(to bottom, transparent calc(100% - 1px), var(--line-soft) 1px);
    background-size: min(8vw, 7.5rem) min(8vw, 7.5rem);
    mask-image: linear-gradient(to right, transparent 0%, #000 38%, #000 100%);
}

.page-shell::after {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: clamp(1.5rem, 5vw, 5rem);
    width: 1px;
    content: "";
    background: var(--line);
}

.site-header,
.site-footer,
.hero {
    width: min(100%, 100rem);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: clamp(1.5rem, 4.5vh, 3.75rem);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.wordmark__seal {
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    place-items: center;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--brass);
}

.wordmark__seal svg {
    width: 1.45rem;
    fill: currentColor;
}

.wordmark__text {
    display: grid;
    gap: 0.18rem;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ivory-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.status__pulse {
    position: relative;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 0.28rem rgb(184 156 90 / 14%);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 8rem);
    padding-block: clamp(4rem, 10vh, 8rem);
}

.hero__copy {
    position: relative;
    z-index: 2;
}

h1 {
    max-width: 9ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4.3rem, 9.3vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.78;
}

h1 em {
    color: var(--ivory-muted);
    font-weight: 400;
}

.intro {
    display: grid;
    grid-template-columns: auto minmax(0, 22rem);
    gap: 1.15rem;
    align-items: start;
    width: fit-content;
    margin-top: clamp(3rem, 7vh, 5.75rem);
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}

.intro__index {
    color: var(--brass);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.intro p {
    margin: 0;
    color: var(--ivory-muted);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.65vw, 1.55rem);
    line-height: 1.45;
}

.instrument {
    position: relative;
    justify-self: end;
    width: min(42vw, 35rem);
    aspect-ratio: 1;
}

.instrument__ring,
.instrument__orbit,
.instrument__axis,
.instrument__core,
.instrument__coordinate {
    position: absolute;
}

.instrument__ring,
.instrument__orbit {
    inset: 50% auto auto 50%;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.instrument__ring--outer {
    width: 100%;
    height: 100%;
}

.instrument__ring--middle {
    width: 70%;
    height: 70%;
    border-color: rgb(184 156 90 / 36%);
}

.instrument__ring--inner {
    width: 34%;
    height: 34%;
}

.instrument__ring--outer::before,
.instrument__ring--outer::after,
.instrument__ring--middle::before,
.instrument__ring--middle::after {
    position: absolute;
    width: 0.45rem;
    height: 0.45rem;
    border: 1px solid var(--brass);
    content: "";
    transform: rotate(45deg);
}

.instrument__ring--outer::before {
    top: 14%;
    right: 14%;
}

.instrument__ring--outer::after {
    bottom: 14%;
    left: 14%;
}

.instrument__ring--middle::before {
    top: 49%;
    left: -0.25rem;
}

.instrument__ring--middle::after {
    top: 49%;
    right: -0.25rem;
}

.instrument__axis--horizontal {
    top: 50%;
    left: -8%;
    width: 116%;
    height: 1px;
    background: var(--line);
}

.instrument__axis--vertical {
    top: -8%;
    left: 50%;
    width: 1px;
    height: 116%;
    background: var(--line);
}

.instrument__orbit {
    width: 86%;
    height: 86%;
    border-color: transparent;
    animation: orbit 24s linear infinite;
}

.instrument__point {
    position: absolute;
    top: 50%;
    right: -0.27rem;
    width: 0.54rem;
    height: 0.54rem;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 1.5rem rgb(184 156 90 / 70%);
}

.instrument__core {
    inset: 50% auto auto 50%;
    display: grid;
    width: 9.4rem;
    height: 9.4rem;
    place-content: center;
    border-radius: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.instrument__core span,
.instrument__core small {
    color: var(--sage);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.instrument__core strong {
    margin-block: 0.35rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
}

.instrument__coordinate {
    color: var(--sage);
    font-size: 0.54rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.instrument__coordinate--north {
    top: -1.5rem;
    left: calc(50% + 0.8rem);
}

.instrument__coordinate--east {
    top: calc(50% + 0.75rem);
    right: -3.5rem;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: clamp(1.5rem, 4.5vh, 3.75rem);
    color: var(--sage);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
}

.site-footer p:last-child {
    justify-self: end;
}

.site-footer__note {
    color: var(--ivory-muted);
}

@keyframes orbit {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 900px) {
    .page-shell::before {
        mask-image: none;
    }

    .hero {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 3.5rem;
    }

    .instrument {
        position: absolute;
        z-index: 0;
        right: -15rem;
        bottom: 3rem;
        width: 34rem;
        opacity: 0.48;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .site-footer__note {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
    }

    .wordmark__seal {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 1.25rem;
    }

    .wordmark__text {
        font-size: 0.68rem;
    }

    .status {
        max-width: 5.5rem;
        align-items: flex-start;
        line-height: 1.45;
    }

    .status__pulse {
        flex: 0 0 auto;
        margin-top: 0.25rem;
    }

    .hero {
        padding-block: 4.5rem;
    }

    h1 {
        font-size: clamp(4rem, 21vw, 6.5rem);
    }

    .intro {
        margin-top: 3.25rem;
    }

    .instrument {
        right: -16rem;
        bottom: 2rem;
        width: 30rem;
        opacity: 0.34;
    }

    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.11em;
    }
}

@media (max-width: 360px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer p:last-child {
        align-self: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .instrument__orbit {
        animation: none;
    }
}
