:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142039;
  background: #f7f9fc;
  font-synthesis: none;
  --border: #dce5f1;
  --muted: #687790;
  --blue: #2368f5;
  --green: #0c9a6a;
  --green-soft: #eafaf3;
  --amber: #b56a08;
  --amber-soft: #fff7e5;
  --red: #c23c43;
  --red-soft: #fff0f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 104, 245, 0.08), transparent 28rem),
    #f7f9fc;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-wordmark {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.brand-product {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.website-link,
.refresh-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #24314b;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  padding: 10px 14px;
  box-shadow: 0 2px 5px rgba(20, 32, 57, 0.04);
}

.refresh-button {
  cursor: pointer;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.website-link:hover,
.refresh-button:hover:not(:disabled) {
  border-color: #b9c9df;
  background: #f9fbff;
}

.website-link:focus-visible,
.refresh-button:focus-visible {
  outline: 3px solid rgba(35, 104, 245, 0.24);
  outline-offset: 2px;
}

.page-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 58px auto 64px;
}

.hero,
.status-card,
.history-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(33, 49, 79, 0.06);
}

.hero {
  padding: 42px 46px 30px;
  border-top: 4px solid var(--green);
}

.eyebrow {
  margin: 0 0 10px;
  color: #5d6e89;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.hero h1 {
  margin: 0;
  color: #101b33;
  font-size: clamp(31px, 5vw, 45px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.status-indicator {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 14px;
  border: 4px solid #d8e0eb;
  border-radius: 999px;
  background: #7d8aa0;
  box-shadow: 0 0 0 5px rgba(125, 138, 160, 0.12);
}

.status-indicator.operational {
  border-color: #b7efd8;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(12, 154, 106, 0.12);
}

.status-indicator.degraded {
  border-color: #ffe1ad;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(181, 106, 8, 0.12);
}

.status-indicator.outage {
  border-color: #ffd1d4;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(194, 60, 67, 0.12);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9eef5;
  color: var(--muted);
  font-size: 13px;
}

.status-card,
.history-card {
  margin-top: 24px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px 22px;
  border-bottom: 1px solid #e8eef5;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px 24px;
  padding: 24px 34px;
  border-bottom: 1px solid #e8eef5;
}

.service-row:last-child {
  border-bottom: 0;
}

.service-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2f7;
  color: #6f7d92;
  font-weight: 800;
}

.service-icon.operational {
  background: var(--green-soft);
  color: var(--green);
}

.service-icon.degraded {
  background: var(--amber-soft);
  color: var(--amber);
}

.service-icon.outage {
  background: var(--red-soft);
  color: var(--red);
}

.service-main h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.service-main p,
.service-status span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-source {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.service-source:hover {
  text-decoration: underline;
}

.service-source:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(35, 104, 245, 0.2);
  outline-offset: 2px;
}

.service-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  text-align: right;
}

.status-text {
  color: #6f7d92;
  font-size: 14px;
}

.status-text.operational {
  color: var(--green);
}

.status-text.degraded {
  color: var(--amber);
}

.status-text.outage {
  color: var(--red);
}

.history-bars {
  display: flex;
  grid-column: 1 / -1;
  gap: 3px;
  min-height: 7px;
  padding-left: 51px;
}

.history-bar {
  flex: 1 1 8px;
  max-width: 18px;
  height: 7px;
  border-radius: 2px;
  background: #d9e1ec;
}

.history-bar.operational {
  background: #38bf8f;
}

.history-bar.degraded {
  background: #efb654;
}

.history-bar.outage {
  background: #dc666d;
}

.loading-row {
  padding: 34px;
  color: var(--muted);
}

.loading-row.error {
  color: var(--red);
}

.empty-history {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 34px 34px;
}

.history-check {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.empty-history strong {
  display: block;
  margin: 1px 0 7px;
  font-size: 15px;
}

.empty-history p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 36px;
  color: #7d8aa0;
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 0 20px;
  }

  .brand-wordmark {
    font-size: 22px;
  }

  .website-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .page-shell {
    width: min(100% - 24px, 1040px);
    margin-top: 28px;
  }

  .hero {
    padding: 30px 24px 22px;
  }

  .status-indicator {
    margin-top: 10px;
  }

  .hero-meta,
  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading,
  .service-row,
  .empty-history {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-note {
    display: none;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-status {
    align-items: flex-start;
    padding-left: 51px;
    text-align: left;
  }

  .history-bars {
    padding-left: 51px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status-indicator.checking {
    animation: pulse 1.6s ease-in-out infinite;
  }

  @keyframes pulse {
    50% {
      opacity: 0.45;
    }
  }
}

nav { display: flex; align-items: center; gap: 14px; }
nav a { text-decoration: none; font-size: 13px; }
.hero { border-top-color: #8995a7; }
.hero[data-status="operational"] { border-top-color: var(--green); }
.hero[data-status="outage"] { border-top-color: var(--red); }
.hero[data-status="degraded"] { border-top-color: var(--amber); }
.incident { padding: 24px 34px; border-bottom: 1px solid var(--border); }
.incident > span { float: right; }
.incident p { color: var(--muted); font-size: 13px; }
.check-details { grid-column: 1 / -1; padding-left: 51px; font-size: 13px; overflow-wrap: anywhere; }
.check-details summary { cursor: pointer; color: var(--muted); }
.check-details p { line-height: 1.7; }
.access-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.access-form input { min-width: 0; flex: 1; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.summary-grid article { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 20px; overflow-wrap: anywhere; }
.summary-grid p { font-size: 13px; color: var(--muted); }
.summary-grid strong { font-size: 18px; }
[hidden] { display: none !important; }
@media (max-width: 680px) { nav { gap: 8px; } .brand { gap: 7px; } .brand-product { font-size: 13px; } .summary-grid { grid-template-columns: repeat(2, 1fr); } .access-form { flex-direction: column; align-items: stretch; } }
