:root {
  color-scheme: light;
  --forest: #1f3a2e;
  --ink: #1d2d24;
  --muted: #53645a;
  --paper: #f4f2ed;
  --card: #fbfaf7;
  --line: #dedfd5;
  --green: #9dbda8;
  --amber: #c6832f;
  --red: #af5450;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 system-ui, sans-serif;
}
a { color: var(--forest); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.wrap { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap, .foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .wrap { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.mark {
  display: grid; align-content: center; gap: 3px;
  width: 30px; height: 30px; padding: 6px;
  border-radius: 7px; background: var(--forest);
}
.mark i { height: 3px; border-radius: 2px; background: var(--paper); }
.mark i:nth-child(2) { width: 61%; background: var(--green); }
.mark i:last-child { opacity: .5; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px;
  border: 1px solid #ccd4ca; border-radius: 7px; text-decoration: none; font-weight: 600;
}
.button:hover { background: #edf0e9; }
main { padding: 48px 0 56px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(36px, 6vw, 57px); line-height: 1.06; letter-spacing: -.05em; }
.intro { margin-top: 12px; color: var(--muted); font-size: 16px; }
.overview {
  display: flex; align-items: center; gap: 16px; margin: 28px 0 35px;
  padding: 19px 21px; border: 1px solid #d1d8cd; border-radius: 12px; background: #e9ebe3;
}
.overview[data-tone="good"] { background: #e6eee4; border-color: #c9d9cc; }
.overview[data-tone="notice"] { background: #f4ebdb; border-color: #e4d2b2; }
.check {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--forest); color: white; font-size: 21px;
}
.overview h2 { font-size: 19px; letter-spacing: -.02em; }
.overview p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; margin-bottom: 14px; }
.section-top h2 { font-size: 26px; letter-spacing: -.045em; }
.section-top p { font-size: 13px; color: var(--muted); }
.service-group { margin-bottom: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.service-group h3 { padding: 12px 19px; background: #e9ebe3; font-size: 14px; }
.service { padding: 13px 19px 11px; border-top: 1px solid var(--line); }
.service-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.service-name { font-weight: 650; }
.service-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.service-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #858d84; }
.service-state[data-state="reachable"] { color: #365944; }
.service-state[data-state="reachable"]::before { background: #497e5a; }
.service-state[data-state="degraded"], .service-state[data-state="check-failed"] { color: #784b13; }
.service-state[data-state="degraded"]::before, .service-state[data-state="check-failed"]::before { background: var(--amber); }
.service-state[data-state="partial"], .service-state[data-state="major"] { color: #8f3532; }
.service-state[data-state="partial"]::before, .service-state[data-state="major"]::before { background: var(--red); }
.service-desc { color: var(--muted); font-size: 12px; }
.bars {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: clamp(1px, .28vw, 3px); margin: 8px 0 4px;
}
.bar { height: 13px; border-radius: 2px; background: #dce1d8; }
.no-incidents { background: var(--green); }
.degraded { background: var(--amber); }
.partial { background: var(--red); }
.major { background: #773735; }
.history-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 17px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .bar { width: 9px; height: 9px; }
.incidents { margin-top: 37px; scroll-margin-top: 16px; }
.incident { border-bottom: 1px solid var(--line); background: var(--card); }
.incident-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.incident:last-child { border-bottom: 0; }
.incident summary {
  display: grid; grid-template-columns: 82px 1fr auto; align-items: center;
  gap: 8px 14px; padding: 15px 19px; list-style: none; cursor: pointer;
}
.incident summary::-webkit-details-marker { display: none; }
.incident summary:hover { background: #f0f2eb; }
.incident summary:focus-visible { outline-offset: -3px; }
.incident summary::after { content: "+"; color: var(--forest); font-size: 18px; line-height: 1; }
.incident[open] summary::after { content: "−"; }
.incident-empty { padding: 15px 19px; color: var(--muted); }
.incident-title { font-weight: 650; }
.date, .history-scale, .kicker {
  color: var(--muted); font: 600 11px/1.5 ui-monospace, monospace; letter-spacing: .035em;
}
.incident-body { padding: 0 36px 16px 115px; color: var(--muted); font-size: 14px; }
.incident-body p + p { margin-top: 8px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .wrap { min-height: 69px; flex-wrap: wrap; padding-block: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 530px) {
  .wrap { width: calc(100% - 32px); }
  .top .wrap { min-height: 60px; }
  .brand { font-size: 18px; }
  .button { font-size: 12px; }
  main { padding-top: 32px; }
  .overview { padding: 14px; gap: 11px; }
  .check { width: 34px; height: 34px; }
  .service-group h3, .service { padding-inline: 13px; }
  .service-head { gap: 8px; }
  .service-name { font-size: 14px; }
  .service-state { font-size: 11px; }
  .incident summary { grid-template-columns: 1fr auto; padding: 13px; gap: 1px 10px; }
  .incident summary::after { grid-area: 1 / 2 / 3 / 3; }
  .incident-body { padding: 0 13px 13px; }
}
