:root {
  color-scheme: light;
  --ink: #071a35;
  --muted: #4b5c6e;
  --line: #d8e1e6;
  --green: #14513a;
  --paper: #f4f7f8;
  --white: #fff;
  --state-bg: #e9eff4;
  --state-ink: #344861;
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: .17rem solid #126046; outline-offset: .24rem; }

.skip-link {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 2;
  transform: translateY(-180%);
  background: var(--white);
  padding: .7rem 1rem;
  border-radius: .3rem;
}
.skip-link:focus { transform: none; }
.frame { width: min(100% - 2rem, 65rem); margin-inline: auto; }
.site-header { background: var(--white); border-top: .32rem solid var(--ink); border-bottom: 1px solid var(--line); }
.topbar, .footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.topbar { min-height: 5.5rem; padding-block: .7rem; }
.brand { display: inline-flex; max-width: 100%; }
.brand img { display: block; width: 8.75rem; max-width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
nav a { font-size: .9375rem; font-weight: 650; text-decoration: none; padding-block: .65rem; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
main { padding-block: clamp(2.25rem, 6vw, 4.5rem) 4.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); line-height: 1.06; letter-spacing: -.045em; }
.coverage { color: var(--muted); margin: .6rem 0 1.5rem; }
h2 { font-size: clamp(1.4rem, 4vw, 1.78rem); line-height: 1.25; letter-spacing: -.022em; margin-bottom: 1rem; }
h3 { font-size: 1.125rem; line-height: 1.3; }

[data-state="operational"] { --state-bg: #ddf4e8; --state-ink: #174932; }
[data-state="degraded"] { --state-bg: #fff1cc; --state-ink: #66410b; }
[data-state="outage"] { --state-bg: #fbe2e1; --state-ink: #7d2121; }
[data-state="maintenance"] { --state-bg: #e0ebfb; --state-ink: #234674; }
.overview {
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: .35rem solid var(--state-ink);
  border-radius: .875rem;
  padding: clamp(1.15rem, 4vw, 1.9rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
}
#overall-message { font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.24; letter-spacing: -.02em; font-weight: 750; color: var(--state-ink); }
#check-time { color: var(--muted); margin-top: .5rem; }
#refresh { background: var(--white); color: var(--green); border: 1px solid #a8bdb4; border-radius: .5rem; padding: .62rem 1rem; font-weight: 700; cursor: pointer; }
#refresh:hover { background: #edf7f1; }
.services, .incidents { margin-top: clamp(2rem, 5vw, 3.5rem); scroll-margin-top: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .9rem; }
.service, .incident-note, .incident { background: var(--white); border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; }
.service-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.service p, .incident-meta, .incident-note { color: var(--muted); }
.service p { margin-top: .55rem; }
.state { background: var(--state-bg); color: var(--state-ink); border-radius: 100vmax; padding: .23rem .65rem; font-size: .875rem; font-weight: 700; }
.incident + .incident { margin-top: .75rem; }
.incident summary { cursor: pointer; font-size: 1.06rem; font-weight: 700; }
.incident summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.incident-meta { margin-top: .55rem; font-size: .9375rem; }
.incident ol { margin: 1rem 0 0; list-style: none; padding: 0; }
.incident li { padding: .8rem 0 .8rem 1rem; border-inline-start: 2px solid var(--line); }
.incident li > p { margin-top: .2rem; overflow-wrap: anywhere; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-content { color: var(--muted); padding-block: 1.3rem; font-size: .9375rem; }
.footer-content a { font-weight: 650; }
