:root {
    color: #15211c;
    background: #e7e2d7;
    font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    background:
        linear-gradient(90deg, rgb(21 33 28 / 4%) 1px, transparent 1px),
        linear-gradient(rgb(21 33 28 / 4%) 1px, transparent 1px), #e7e2d7;
    background-size: 24px 24px;
}

.shell {
    width: min(100% - 40px, 980px);
    margin: 0 auto;
    padding: 76px 0 40px;
}

.masthead {
    max-width: 680px;
    animation: rise 520ms ease-out both;
}

.eyebrow,
.section-label,
.surface-kind,
.environment {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow,
.section-label {
    margin: 0 0 12px;
    color: #5e6f64;
}

.heading-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 10vw, 6.8rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: 0;
}

.environment {
    padding: 5px 8px;
    color: #f7f2e8;
    background: #244f3e;
}

.lede {
    max-width: 560px;
    margin: 28px 0 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.health {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 64px 0 28px;
    padding: 16px 0;
    border-top: 1px solid #97a399;
    border-bottom: 1px solid #97a399;
}

.health .section-label {
    margin-bottom: 4px;
}

.health-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ac9d67;
}

.status-dot.healthy {
    background: #2d7e5b;
    box-shadow: 0 0 0 5px rgb(45 126 91 / 14%);
}

.status-dot.unhealthy {
    background: #a24035;
    box-shadow: 0 0 0 5px rgb(162 64 53 / 14%);
}

.surface-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #97a399;
    background: #97a399;
}

.surface {
    display: grid;
    gap: 12px;
    min-height: 166px;
    padding: 23px;
    color: inherit;
    background: #f7f2e8;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.surface:hover,
.surface:focus-visible {
    color: #f7f2e8;
    background: #244f3e;
    outline: none;
}

.surface strong {
    align-self: end;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.surface span:last-child {
    color: #5e6f64;
    font-size: 0.88rem;
}

.surface:hover span:last-child,
.surface:focus-visible span:last-child {
    color: #d8e4dc;
}

footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
    color: #5e6f64;
    font-size: 0.82rem;
}

footer a {
    color: #244f3e;
    font-weight: 700;
}

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

@media (max-width: 620px) {
    .shell {
        width: min(100% - 28px, 980px);
        padding-top: 48px;
    }

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