:root {
    color-scheme: light;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--navy);
    background: #f3f7fb;
    --muted: color-mix(in srgb, var(--navy) 76%, white);
    --border: color-mix(in srgb, var(--navy) 12%, white);
    --sky-tint: color-mix(in srgb, var(--sky) 32%, white);
    --magenta-tint: color-mix(in srgb, var(--magenta) 8%, white);
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100vh; line-height: 1.5; }
.container { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand-logo { display: block; width: clamp(7rem, 22vw, 11rem); height: auto; fill: currentColor; }
.brand-name { border-inline-start: 1px solid var(--border); padding-inline-start: 1rem; font-size: 0.9375rem; font-weight: 700; }
main { flex: 1; padding-block: 2.25rem 3.5rem; }
h1, h2, p { margin: 0; }

.overview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    overflow: hidden;
    min-height: 10.5rem;
    margin-bottom: 1.75rem;
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(112deg, var(--navy) 46%, color-mix(in srgb, var(--navy) 83%, var(--sky)));
}

.overview::before {
    position: absolute;
    inset: -8rem 10% auto auto;
    width: 21rem;
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 50%;
    box-shadow: 0 0 0 2.75rem rgb(255 255 255 / 5%), 0 0 0 5.5rem rgb(255 255 255 / 4%);
    content: '';
    pointer-events: none;
}

.overview > * { position: relative; }
h1 { font-size: clamp(2rem, 5.5vw, 3.45rem); line-height: 1.04; letter-spacing: -0.055em; }
.stats { display: flex; flex: none; gap: 0.7rem; margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 0.35rem; min-width: 7.75rem; padding: 0.7rem 0.95rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: 0.65rem; background: var(--sky); color: var(--navy); }
.stats dt { font-size: 0.875rem; font-weight: 600; }
.stats dd { margin: 0; font-size: 1.75rem; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; }
.stats .stats-new { background: var(--magenta); color: #fff; }

.source { overflow: hidden; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 0.85rem; background: #fff; box-shadow: 0 5px 18px rgb(20 40 77 / 5%); }
.source-header { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; padding: 1.25rem 1.55rem; }
.source-header h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.02em; }
.source-header p { margin-top: 0.3rem; font-size: 0.875rem; }
.source-link { flex: none; padding: 0.48rem 0.85rem; border-radius: 0.42rem; background: var(--sky); color: var(--navy); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.source-link:hover { background: var(--navy); color: #fff; }
.source-link:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.muted, .detail { color: var(--muted); }
.detail { display: block; margin-top: 0.25rem; font-size: 0.875rem; font-weight: 400; }
.message { padding: 1rem 1.55rem; border-top: 1px solid var(--border); }
.warning { background: var(--magenta-tint); border-inline-start: 0.22rem solid var(--magenta); }

table { border-collapse: collapse; table-layout: fixed; width: 100%; text-align: left; }
th, td { border-top: 1px solid var(--border); padding: 0.85rem 1.55rem; vertical-align: top; overflow-wrap: anywhere; }
thead { background: var(--sky); font-size: 0.875rem; }
thead th:first-child { width: 42%; }
thead th:nth-child(2) { width: 30%; }
tbody th { font-weight: 700; }
tbody tr:nth-child(even) { background: var(--sky-tint); }
tbody tr.has-update { background: var(--magenta-tint); }
.has-update th { box-shadow: inset 0.22rem 0 var(--magenta); }
.versions { margin: 0; padding: 0; list-style: none; }
.versions li + li { margin-top: 0.35rem; }
.version { font-family: 'Cascadia Mono', 'Consolas', monospace; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.version-new { color: var(--magenta); font-weight: 700; }
.badge { display: inline-block; margin-inline-start: 0.25rem; padding: 0.06rem 0.45rem; border-radius: 0.35rem; background: var(--magenta); color: #fff; font-size: 0.875rem; font-weight: 700; }
.footer { padding-block: 1.15rem; border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 48rem) {
    .overview { flex-wrap: wrap; gap: 1rem; min-height: auto; }
}

@media (max-width: 36rem) {
    .container { width: calc(100% - 1.25rem); }
    main { padding-block: 1rem 2rem; }
    .overview { margin-bottom: 1rem; padding: 1.05rem; }
    .source-header, .message { padding-inline: 0.8rem; }
    th, td { padding-inline: 0.55rem; }
    thead th:first-child { width: 39%; }
    thead th:nth-child(2) { width: 29%; }
}
