:root {
    color-scheme: dark;
    --ink: #0b0c0c;
    --paper: #efede7;
    --paper-muted: #b8b5ad;
    --line: rgba(239, 237, 231, 0.24);
    --accent: #d32d23;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--paper);
    background: var(--ink);
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 28px clamp(22px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
}

.wordmark-mark {
    margin-left: 7px;
    color: var(--paper-muted);
    font-size: 11px;
    font-weight: 500;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: rgba(239, 237, 231, 0.78);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(211, 45, 35, 0.16);
}

.hero {
    position: relative;
    min-height: min(86svh, 880px);
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(5, 6, 6, 0.14);
    pointer-events: none;
}

.hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("/assets/hero.webp");
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
}

.hero-copy {
    position: absolute;
    left: clamp(22px, 6vw, 96px);
    bottom: clamp(54px, 10vh, 118px);
    max-width: min(720px, calc(100vw - 44px));
}

.eyebrow,
.section-index {
    margin: 0 0 20px;
    color: rgba(239, 237, 231, 0.62);
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 11px;
    line-height: 1.5;
}

h1,
h2,
p {
    letter-spacing: 0;
}

h1 {
    margin: 0;
    max-width: 680px;
    font-size: 118px;
    font-weight: 500;
    line-height: 0.98;
    text-wrap: balance;
}

.hero-note {
    margin: 30px 0 0;
    color: rgba(239, 237, 231, 0.76);
    font-size: 15px;
    line-height: 1.85;
}

.edition {
    position: absolute;
    right: clamp(22px, 4vw, 64px);
    bottom: 40px;
    color: rgba(239, 237, 231, 0.46);
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 10px;
    line-height: 1.55;
    text-align: right;
}

.status-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(64px, 10vw, 180px);
    align-items: end;
    min-height: 62vh;
    padding: clamp(82px, 12vw, 170px) clamp(22px, 6vw, 96px);
    color: #171817;
    background: var(--paper);
}

.status-section .section-index {
    color: #77756f;
}

.status-intro h2 {
    margin: 0;
    max-width: 760px;
    font-size: 72px;
    font-weight: 500;
    line-height: 1.12;
}

.status-list {
    margin: 0;
    border-top: 1px solid #aaa79f;
}

.status-list div {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #c5c2ba;
}

.status-list dt {
    color: #77756f;
    font-size: 12px;
}

.status-list dd {
    margin: 0;
    font-size: 14px;
}

.site-footer {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 30px clamp(22px, 6vw, 96px) 26px;
    color: rgba(239, 237, 231, 0.54);
    font-size: 11px;
}

.footer-meta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.icp-record {
    align-self: center;
    color: rgba(239, 237, 231, 0.62);
    text-decoration: none;
}

.icp-record:hover,
.icp-record:focus-visible {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1100px) {
    h1 {
        font-size: 88px;
    }

    .status-intro h2 {
        font-size: 56px;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .hero {
        min-height: 84svh;
    }

    .hero-image {
        background-position: 58% center;
    }

    .hero::after {
        background: rgba(5, 6, 6, 0.34);
    }

    .hero-copy {
        bottom: 54px;
    }

    h1 {
        font-size: 56px;
        line-height: 1.03;
    }

    .hero-note {
        margin-top: 24px;
        font-size: 14px;
    }

    .edition {
        display: none;
    }

    .status-section {
        grid-template-columns: 1fr;
        gap: 64px;
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .status-intro h2 {
        font-size: 40px;
    }

    .site-footer {
        min-height: 120px;
        gap: 16px;
    }

    .footer-meta {
        gap: 16px;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 48px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .status-dot {
        animation: breathe 2.8s ease-in-out infinite;
    }

    .hero-copy > * {
        animation: reveal 720ms both;
    }

    .hero-copy h1 {
        animation-delay: 80ms;
    }

    .hero-note {
        animation-delay: 160ms;
    }
}

@keyframes breathe {
    50% {
        box-shadow: 0 0 0 7px rgba(211, 45, 35, 0.08);
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
