:root {
    --ink: #2c2d2f;
    --ink-dark: #191a1c;
    --paper: #f1f2f3;
    --paper-light: #ffffff;
    --signal: #d14d32;
    --muted: #66686b;
    --line: rgba(44, 45, 47, 0.24);
    --gutter: clamp(1.25rem, 4vw, 4.75rem);
    --sans: "Segoe UI", Helvetica, Arial, sans-serif;
    --display: Bahnschrift, "DIN Alternate", "Arial Narrow", Arial, sans-serif;
    --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-dark);
    background: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: var(--paper-light);
    background: var(--ink-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page {
    min-height: 100vh;
    background: var(--ink);
}

.canvas {
    min-height: 100vh;
    min-height: 100svh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter);
    background: var(--paper);
}

.site-header {
    min-height: 6.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header p {
    margin: 0;
}

.site-label {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 1vw, 0.85rem);
}

.site-label__logo {
    width: clamp(3.375rem, 4.5vw, 3.9375rem);
    height: auto;
    display: block;
    flex: 0 0 auto;
    clip-path: circle(42% at center);
}

.site-label__text {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.site-label strong {
    display: block;
    font-family: var(--display);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-label__description {
    color: var(--muted);
    white-space: nowrap;
}

.build-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.build-status span {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--signal);
}

main {
    width: min(100%, 94rem);
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 5rem);
    padding: clamp(3rem, 6vw, 6.5rem) 0;
}

.archive-image {
    grid-column: 1 / span 6;
    position: relative;
    width: min(100%, 34rem);
    align-self: center;
    margin: 0;
    overflow: hidden;
}

.archive-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 52% center;
    border-bottom: 0.65rem solid var(--signal);
    filter: contrast(1.04);
}

.archive-image figcaption {
    position: absolute;
    right: 0;
    bottom: 0.65rem;
    left: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    color: var(--paper-light);
    background: rgba(25, 26, 28, 0.84);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-image figcaption span:last-child {
    color: rgba(247, 245, 239, 0.7);
}

.intro__text {
    grid-column: 7 / -1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: clamp(0.9rem, 1.2vw, 1.25rem);
    border-top: 0.65rem solid var(--ink);
}

.section-code {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1 {
    margin: clamp(3rem, 7vw, 6.5rem) 0 0;
    font-family: var(--display);
    font-size: clamp(4.75rem, 8.2vw, 8.75rem);
    font-stretch: condensed;
    font-weight: 650;
    letter-spacing: -0.07em;
    line-height: 0.82;
}

h1 span {
    display: block;
    color: var(--signal);
}

.intro__copy {
    max-width: 30rem;
    margin: 2.5rem 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
}

.contact-list {
    margin-top: auto;
    border-top: 1px solid var(--line);
}

.contact-list a {
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.contact-list a > span:first-child {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.57rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.88rem;
}

.contact-list a > span:last-child {
    color: var(--signal);
    font-size: 1.2rem;
    transition: transform 160ms ease;
}

.contact-list a:hover strong {
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-underline-offset: 0.25rem;
}

.contact-list a:hover > span:last-child {
    transform: translateX(0.25rem);
}

.contact-list__mark {
    width: 2.8rem;
    height: 2.8rem;
    overflow: hidden;
    background: var(--paper-light);
}

.contact-list__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.updates {
    display: grid;
    grid-template-columns: 1.05fr repeat(3, minmax(0, 0.95fr)) minmax(0, 1.65fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.updates > * {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.updates > *:first-child {
    padding-left: 0;
}

.updates > * + * {
    border-left: 1px solid var(--line);
}

.updates__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.updates h2 {
    margin: 0.7rem 0;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    font-stretch: condensed;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.update {
    display: grid;
    align-content: space-between;
    gap: 1rem;
}

.update time {
    display: grid;
    color: var(--signal);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.update time span,
.update__label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.update h3 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 600;
    hyphens: auto;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.update p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: clamp(0.67rem, 0.9vw, 0.78rem);
    line-height: 1.35;
}

.update--support {
    color: var(--paper-light);
    background: var(--ink);
}

.update--support .update__label,
.update--support p {
    color: rgba(247, 245, 239, 0.7);
}

.update--support h3 {
    margin-top: auto;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.site-footer {
    width: auto;
    min-height: 5rem;
    margin: auto calc(-1 * var(--gutter)) 0;
    background: var(--ink);
}

@media (min-width: 900px) and (min-height: 640px) {
    .site-header {
        min-height: clamp(4.25rem, 8vh, 4.75rem);
    }

    .intro {
        padding: clamp(0.35rem, 0.75vh, 0.5rem) 0 0;
    }

    h1 {
        margin-top: clamp(1.75rem, 4.5vh, 3.5rem);
        font-size: clamp(4.25rem, 8.5vh, 7.1rem);
    }

    .intro__copy {
        margin: clamp(1.2rem, 3.2vh, 2.25rem) 0;
        font-size: clamp(0.9rem, 1.6vh, 1.1rem);
    }

    .contact-list a {
        min-height: clamp(3.125rem, 6.25vh, 4.125rem);
    }

    .updates {
        margin-top: clamp(0.5rem, 1vh, 0.75rem);
    }

    .updates > * {
        padding: clamp(0.5rem, 1vh, 0.75rem);
    }

    .updates h2 {
        margin: 0.45rem 0;
    }

    .update {
        gap: 0.4rem;
    }

    .update p {
        font-size: clamp(0.62rem, 0.8vw, 0.72rem);
        line-height: 1.3;
    }

    .site-footer {
        min-height: clamp(1.5rem, 3vh, 2rem);
    }
}

@media (min-width: 900px) {
    main {
        --content-size: min(
            94rem,
            calc(100vw - var(--gutter) - var(--gutter))
        );
        --right-size: clamp(23rem, 32vw, 31rem);
        --hero-gap: clamp(2rem, 3vw, 4.75rem);
        --hero-size: min(
            max(
                22rem,
                calc(
                    100svh -
                    clamp(
                        14.25rem,
                        calc(6.75rem + 15vh),
                        15.75rem
                    ) -
                    0.125rem
                )
            ),
            calc(
                var(--content-size) -
                var(--right-size) -
                var(--hero-gap)
            )
        );
        --hero-layout-size: calc(
            var(--hero-size) +
            var(--right-size) +
            var(--hero-gap)
        );
    }

    .intro {
        width: min(100%, var(--hero-layout-size));
        grid-template-columns: var(--hero-size) var(--right-size);
        grid-template-rows: var(--hero-size);
        gap: var(--hero-gap);
        align-items: stretch;
        margin-inline: auto;
    }

    .updates {
        width: min(100%, var(--hero-layout-size));
        margin-inline: auto;
    }

    .archive-image {
        grid-column: 1;
        width: 100%;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1;
        align-self: stretch;
        justify-self: start;
    }

    .archive-image img {
        height: 100%;
    }

    .intro__text {
        grid-column: 2;
        height: 100%;
        align-self: stretch;
    }
}

@media (max-width: 1080px) {
    h1 {
        font-size: clamp(4.5rem, 10vw, 7rem);
    }
}

@media (max-width: 899px) {
    .site-header {
        min-height: 5rem;
    }

    .site-label__description {
        display: none;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2.5rem);
        padding: clamp(1.25rem, 3vw, 2rem) 0 1rem;
    }

    .intro__text {
        grid-column: 1;
        grid-row: 2;
    }

    .archive-image {
        grid-column: 1;
        grid-row: 1;
        width: min(100%, 34rem);
        height: auto;
        aspect-ratio: 1;
        justify-self: center;
    }

    h1 {
        margin-top: clamp(1.25rem, 4vw, 2rem);
        font-size: clamp(3.8rem, 14vw, 5.5rem);
    }

    .intro__copy {
        margin: 1.25rem 0;
    }

    .updates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .updates__header {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .updates__header h2 {
        margin: 0;
    }

    .updates > *:first-child {
        padding-left: 0;
    }

    .updates > * + * {
        border-top: 1px solid var(--line);
    }

    .update {
        min-height: 7rem;
        padding: 1rem;
    }

    .update:nth-of-type(1) {
        padding-left: 0;
        border-left: 0;
    }

    .update--support {
        grid-column: 1 / -1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr auto minmax(0, 2fr);
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-left: 0;
    }

    .update--support h3,
    .update--support p {
        margin: 0;
    }

    .site-footer {
        min-height: 3rem;
    }
}

@media (max-width: 520px) {
    .site-header {
        min-height: 4.5rem;
        gap: 1rem;
    }

    .build-status {
        font-size: 0.54rem;
        letter-spacing: 0.04em;
    }

    .build-status span {
        width: 0.45rem;
        height: 0.45rem;
    }

    h1 {
        margin-top: 1.25rem;
        font-size: clamp(3.65rem, 19vw, 5.25rem);
    }

    .intro {
        gap: 1.25rem;
        padding: 1.4rem 0 1rem;
    }

    .intro__copy {
        margin: 1.25rem 0;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .contact-list a {
        min-height: 3rem;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .contact-list a > span:first-child {
        display: none;
    }

    .contact-list strong {
        font-size: 0.8rem;
    }

    .contact-list__mark {
        width: 2.25rem;
        height: 2.25rem;
    }

    .updates {
        grid-template-columns: 1fr;
    }

    .updates__header {
        grid-column: 1;
        min-height: 2.8rem;
        padding: 0.5rem 0;
    }

    .updates__header .section-code {
        display: none;
    }

    .updates h2 {
        font-size: 1.35rem;
    }

    .update {
        min-height: 4.5rem;
        grid-template-columns: 4.6rem minmax(0, 1fr);
        align-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0.55rem;
        border-left: 0;
    }

    .update time {
        font-size: 1.15rem;
    }

    .update h3 {
        overflow-wrap: anywhere;
        font-size: 0.72rem;
    }

    .update p {
        font-size: 0.6rem;
    }

    .update--support {
        min-height: 4.25rem;
        grid-column: 1;
        grid-template-columns: 6rem minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.6rem 0.75rem;
    }

    .update--support .update__label {
        display: none;
    }

    .update--support h3 {
        font-size: 0.82rem;
    }

    .update--support p {
        font-size: 0.58rem;
    }

    .site-footer {
        min-height: 3.75rem;
    }
}

@media (max-width: 360px) {
    .site-label__logo {
        width: 3rem;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
