:root {
    color-scheme: light;
    --ink: #16213a;
    --muted: #637083;
    --line: #dce4ed;
    --panel: #ffffff;
    --soft: #f4f7fb;
    --blue: #147ff3;
    --green: #16824b;
    --amber: #aa6300;
    --red: #c63434;
}

* {
    box-sizing: border-box;
}

html {
    background: #eaf0f7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
}

body {
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 36px rgb(23 43 77 / 10%);
}

a {
    color: #086cd9;
    text-underline-offset: 3px;
}

.app-header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(24px, 6vw, 88px);
    border-bottom: 1px solid var(--line);
}

.app-header nav {
    display: flex;
    gap: 24px;
}

.app-header nav a,
.brand {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand {
    font-size: 1.1rem;
}

.overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(36px, 6vw, 90px);
    padding: clamp(64px, 9vw, 118px) clamp(24px, 8vw, 120px) 72px;
    background: var(--soft);
}

.overview img {
    width: 100%;
    height: auto;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    font-weight: 750;
    text-decoration: none;
}

.button.primary {
    background: var(--blue);
    color: #fff;
}

.button.secondary {
    background: #fff;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line);
}

.metrics div {
    display: grid;
    gap: 6px;
    padding: 30px clamp(20px, 4vw, 54px);
    border-right: 1px solid var(--line);
}

.metrics div:last-child {
    border-right: 0;
}

.metrics strong {
    font-size: 2rem;
}

.metrics span {
    color: var(--muted);
}

.scenario-section,
.notes {
    padding: 72px clamp(24px, 8vw, 120px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 36px;
}

.section-heading > p,
.notes p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.96rem;
}

th,
td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    background: var(--soft);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-flex;
    min-width: 48px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 3px;
    background: #e9eef5;
    color: var(--ink);
    font-weight: 800;
}

.status-200 {
    background: #e2f5e9;
    color: var(--green);
}

.status-301,
.status-302,
.status-307,
.status-308,
.status-429 {
    background: #fff1d7;
    color: var(--amber);
}

.status-403,
.status-404,
.status-410,
.status-500,
.status-503 {
    background: #fde7e7;
    color: var(--red);
}

.notes {
    background: var(--soft);
}

.notes p {
    max-width: 920px;
    margin-top: 18px;
}

code {
    padding: 2px 6px;
    border-radius: 3px;
    background: #e7edf5;
}

.content-shell {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(72px, 11vw, 140px) 0;
}

.content-shell h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 42px 0 0;
    border-top: 1px solid var(--line);
}

.detail-list div {
    display: grid;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list div:nth-child(odd) {
    padding-right: 28px;
}

dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

dd {
    margin: 0;
    font-weight: 700;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
}

.error-code {
    display: block;
    margin-bottom: 16px;
    color: var(--red);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 850;
    line-height: 0.9;
}

footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--muted);
}

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

    .app-header nav {
        flex-wrap: wrap;
        gap: 10px 16px;
        justify-content: flex-end;
    }

    .overview,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .overview {
        padding-top: 48px;
    }

    .overview img {
        max-width: 520px;
    }

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

    .metrics div:nth-child(2) {
        border-right: 0;
    }

    .metrics div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list div:nth-child(odd) {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .app-header,
    footer {
        padding-inline: 18px;
    }

    .app-header nav {
        display: none;
    }

    .overview,
    .scenario-section,
    .notes {
        padding-inline: 20px;
    }

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

    .metrics div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metrics div:last-child {
        border-bottom: 0;
    }

    .actions .button {
        width: 100%;
    }
}
