:root {
    --primary: #0E6B58;
    --primary-dark: #005141;
    --accent-yellow: #fcde05;
    --accent-yellow-dark: #E6C804;
    --bg: #f3f7f6;
    --surface: #ffffff;
    --text: #10211c;
    --muted: #4d645c;
    --line: #d7e4df;
    --accent: var(--primary);
    --header: #fafafa;
    --header-text: var(--primary-dark);
    --ink: var(--primary-dark);
    --pill: #e5f2ed;
    --table-head: #e8f3ef;
    --row-hover: #f4faf8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1613;
        --surface: #13211c;
        --text: #e7f3ee;
        --muted: #9bb3aa;
        --line: #234038;
        --accent: var(--accent-yellow);
        --header: #fafafa;
        --header-text: #005141;
        --ink: var(--accent-yellow);
        --pill: #1a332c;
        --table-head: #173029;
        --row-hover: #1a332c;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--accent);
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--header);
    color: var(--header-text);
    border-bottom: 1px solid #e6e6e6;
}

.top a {
    color: var(--header-text);
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.logo {
    display: block;
    height: 32px;
    width: auto;
}

.top nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.top nav a {
    opacity: 0.85;
}

.top nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

main {
    max-width: 46rem;
    margin: 1.75rem auto 3rem;
    padding: 0 1.25rem;
}

main.wide {
    max-width: 54rem;
}

.lede {
    color: var(--muted);
    margin-top: 0;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
}

.pill,
.http {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: nowrap;
}

.http-col {
    width: 1%;
    white-space: nowrap;
}

.pill {
    background: var(--pill);
    color: var(--ink);
    font-family: ui-monospace, Consolas, monospace;
}

.http-4xx {
    background: var(--pill);
    color: var(--ink);
}

.http-429 {
    background: #fff6c2;
    color: #6b5600;
}

.http-5xx {
    background: #fde8e8;
    color: #b42318;
}

.http-other {
    background: var(--pill);
    color: var(--ink);
}

h1 {
    font-size: 1.65rem;
    font-weight: 650;
    margin: 0 0 1.15rem;
    letter-spacing: -0.02em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.85rem;
}

.card h2 {
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 0.45rem;
}

.card p {
    margin: 0.4rem 0 0;
}

.card p:first-of-type {
    margin-top: 0;
}

.hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    background: var(--table-head);
}

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

tbody tr:hover {
    background: var(--row-hover);
}

code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9em;
}

@media (max-width: 640px) {
    .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .top nav {
        gap: 0.75rem;
    }
}
