:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #6c746f;
  --line: #dfe4e1;
  --paper: #f5f5f0;
  --white: #fff;
  --green: #247253;
  --green-soft: #dcecdf;
  --red: #b24336;
  --red-soft: #f6dfdb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(36, 114, 83, .09), transparent 28rem),
    var(--paper);
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

header,
footer,
.section-heading,
.hero {
  display: flex;
  align-items: center;
}

header {
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 21px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 17px;
  font-style: italic;
}

.eyebrow,
.kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  gap: 28px;
  min-height: 260px;
  padding: 58px 6%;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.history-section h2 {
  margin: 5px 0 8px;
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.035em;
}

.summary {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.status-icon {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: #e6e8e6;
}

.status-icon span {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #919793;
  box-shadow: 0 0 0 7px rgba(145, 151, 147, .16);
}

.status-icon.operational { background: var(--green-soft); }
.status-icon.operational span { background: var(--green); box-shadow: 0 0 0 7px rgba(36, 114, 83, .14); }
.status-icon.partial_outage,
.status-icon.major_outage { background: var(--red-soft); }
.status-icon.partial_outage span,
.status-icon.major_outage span { background: var(--red); box-shadow: 0 0 0 7px rgba(178, 67, 54, .14); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.metrics article {
  padding: 5px 30px;
  border-right: 1px solid var(--line);
}

.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border: 0; }
.metrics span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.metrics strong { font-size: 16px; font-weight: 600; }

.history-section,
.services-section {
  margin-top: 54px;
  padding: 30px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  display: flex;
  min-height: 138px;
  padding: 24px;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
}

.service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.service-group,
.service-result span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card h3 { margin: 7px 0 4px; font: 400 21px Georgia, serif; }
.service-card a { color: var(--muted); font-size: 12px; text-decoration: none; }
.service-card a:hover { text-decoration: underline; }
.service-result { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; text-align: right; }
.service-result strong { white-space: nowrap; color: var(--green); font-size: 12px; font-weight: 650; }
.service-result strong i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.service-down .service-result strong { color: var(--red); }

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.history-section h2 { font-size: 30px; }
.legend { color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); }

.history {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 48px;
}

.history > span {
  flex: 1;
  min-width: 3px;
  border-radius: 2px;
  background: var(--green);
}

.history > span.down { background: var(--red); }
.empty { margin: auto; color: var(--muted); font-size: 13px; }
.history-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

footer {
  justify-content: space-between;
  padding-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  main { width: min(100% - 28px, 920px); padding-top: 24px; }
  .hero { align-items: flex-start; flex-direction: column; padding: 44px 0; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article, .metrics article:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-section { margin-top: 34px; padding: 22px 18px; }
  .services-section { margin-top: 34px; padding: 22px 18px; }
  .services { grid-template-columns: 1fr; }
  .service-card:last-child:nth-child(odd) { grid-column: auto; }
  .service-card { min-height: 126px; padding: 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
