@font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/plex-sans.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/plex-mono.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/plex-sans-ext.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/plex-mono-ext.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    --ink: #000033;
    --blue: #336699;
    --paper: #f3efe8;
    --muted: #4d4d70;
    --line: #ccccd6;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--ink);
    background: var(--paper);
    font: 400 100%/1.5 "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2, h3 { font-weight: 600; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(60rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead-inner, .footer, .footer nav { display: flex; align-items: center; }
.masthead-inner { min-height: 5.25rem; justify-content: space-between; gap: 1.5rem; }
.brand { width: 7.5rem; height: auto; display: block; }
.refresh { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.refresh:hover, .footer a:hover { text-decoration: underline; }
main { flex: 1; padding-block: clamp(2.5rem, 5vw, 4.5rem) 3.75rem; }
h1 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; font-weight: 300; letter-spacing: -.055em; }
h1 span { font-weight: 600; }
.eyebrow { color: var(--blue); font: 500 .75rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.notice, .summary { border: 1px solid var(--line); border-radius: .75rem; background: white; }
.notice { margin-bottom: 1rem; padding: 1.5rem clamp(1.25rem, 3.5vw, 2.25rem); border-left: .3rem solid #7a4a00; }
.notice .eyebrow { color: #7a4a00; }
.notice h2 { margin-top: .55rem; font-size: 1.5rem; line-height: 1.2; }
.notice-text { margin-top: .5rem; white-space: pre-line; overflow-wrap: anywhere; }
#refresh-feedback:not(:empty) { margin-bottom: 1rem; padding: .8rem 1rem; border-left: .3rem solid #7a4a00; background: white; color: #7a4a00; font-weight: 600; }
.notice-times { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.notice time, .last-check time, .last-check span { font: 500 .875rem/1.5 var(--mono); }
.summary { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: flex-start; padding: clamp(1.35rem, 4vw, 2.75rem); }
.state-ok { --state: #1d5b2d; --tint: #eaf3eb; }
.state-issue { --state: #8a1d1d; --tint: #f8ecea; }
.state-unknown { --state: #4d4d70; --tint: #eeeef2; }
.symbol { width: 3.6rem; height: 3.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--state); background: var(--tint); }
.symbol span { position: relative; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 2px solid currentColor; border-radius: 50%; }
.state-ok .symbol span::after { content: ""; width: .73rem; height: .4rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-.1rem) rotate(-45deg); }
.state-issue .symbol span::after { content: "!"; font: 600 1.2rem/1 "IBM Plex Sans", sans-serif; }
.state-unknown .symbol span::after { content: "?"; font: 600 1.15rem/1 "IBM Plex Sans", sans-serif; }
.summary-copy { min-width: 0; }
.summary h2 { margin-top: .55rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.14; letter-spacing: -.028em; }
.summary h2 + p { margin-top: .55rem; color: var(--muted); }
.last-check { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.last-check time, .last-check span { color: var(--ink); }
.services { margin-top: clamp(2rem, 5vw, 3.75rem); }
.services > h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); letter-spacing: -.025em; }
.service-list { padding: 0; margin: .85rem 0 0; list-style: none; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 1.5rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.service-copy { overflow-wrap: anywhere; }
.service-copy h3 { font-size: 1.1rem; line-height: 1.4; }
.service-copy p, .scope, .empty { color: var(--muted); }
.service-copy p { margin-top: .2rem; }
.badge { display: inline-flex; align-items: center; gap: .45rem; color: var(--state); font-weight: 600; line-height: 1.5; }
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.state-unknown.badge::before { background: transparent; border: 1.5px solid currentColor; }
.scope, .empty { margin-top: 1rem; font-size: .9rem; }
.footer { justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; }
.footer > span { font-weight: 600; }
.footer nav { flex-wrap: wrap; gap: 1.25rem; }
.footer a { color: var(--muted); padding-block: .4rem; }
.language-picker { position: relative; }
.language-picker summary { cursor: pointer; color: var(--blue); padding: .5rem 0; }
.language-picker summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.language-picker ul { position: absolute; inset: auto 0 100% auto; width: max-content; min-width: 10rem; margin: 0; padding: .4rem; list-style: none; background: white; border: 1px solid var(--line); border-radius: .5rem; }
.language-picker a { display: block; padding: .45rem .8rem; }
.language-picker a[aria-current] { color: var(--ink); font-weight: 600; }

@media (max-width: 38rem) {
    .wrap { width: calc(100% - 2.5rem); }
    .masthead-inner { min-height: 4.5rem; }
    .brand { width: 6.65rem; }
    .summary { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .9rem; }
    .symbol { width: 2.5rem; height: 2.5rem; grid-row: 1; }
    .symbol span { width: 1.45rem; height: 1.45rem; }
    .summary-copy { display: contents; }
    .summary-copy .eyebrow { grid-area: 1 / 2; }
    .summary h2, .summary h2 + p, .last-check { grid-column: 1 / -1; margin: 0; }
    .last-check { padding-top: .4rem; }
    .service-list li { gap: .45rem .75rem; }
    .service-copy { display: contents; }
    .service-copy h3 { grid-area: 1 / 1; }
    .service-copy p { grid-column: 1 / -1; margin: 0; }
    .badge { grid-area: 1 / 2; font-size: .875rem; }
    .language-picker { width: 100%; }
    .language-picker ul { position: static; width: 100%; margin-top: .25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
