@font-face {
  font-family: "Inter";
  src: url("./inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1d2939;
  --text-strong: #101828;
  --muted: #667085;
  --border: #e4e7ec;
  --soft-border: #f2f4f7;
  --up: #12b76a;
  --down: #f04438;
  --warn: #f79009;
  --pending: #98a2b3;
  --bar-up: #22c55e;
  --bar-warn: #f59e0b;
  --bar-down: #ef4444;
  --bar-empty: #eaecf0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #111827;
    --surface-soft: #0f172a;
    --text: #e5e7eb;
    --text-strong: #f9fafb;
    --muted: #98a2b3;
    --border: #1f2937;
    --soft-border: #1b2537;
    --bar-empty: #1f2937;
    --shadow: none;
  }
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--up) 45%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1080px);
  min-height: 76px;
  margin: 0 auto;
}

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

.brand img {
  display: block;
  width: 144px;
  height: auto;
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-strong);
}

.page {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 0 38px;
}

.status-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 2px solid var(--pending);
  border-radius: 50%;
  color: var(--pending);
  background: transparent;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.status-orb.is-up {
  color: var(--up);
  border-color: var(--up);
}

.status-orb.is-down {
  color: var(--down);
  border-color: var(--down);
}

.status-orb.is-warn {
  color: var(--warn);
  border-color: var(--warn);
}

.status-orb.is-pending {
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-banner {
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
  color: var(--text);
  font-size: 0.84rem;
}

.error-banner a {
  font-weight: 600;
}

.status-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.monitor {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.monitor-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
}

.status-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 19px;
  height: 19px;
  border: 2px solid var(--pending);
  border-radius: 50%;
  color: var(--pending);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.status-check.is-up {
  color: var(--up);
  border-color: var(--up);
}

.status-check.is-down {
  color: var(--down);
  border-color: var(--down);
}

.status-check.is-warn {
  color: var(--warn);
  border-color: var(--warn);
}

.monitor h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--text-strong);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.monitor h2 a {
  text-decoration: none;
}

.monitor h2 a:hover {
  text-decoration: underline;
}

.overall {
  flex: none;
  margin-left: auto;
  color: var(--up);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.overall.is-down {
  color: var(--down);
}

.overall.is-warn {
  color: var(--warn);
}

.overall.is-pending {
  color: var(--pending);
}

.bars {
  display: flex;
  align-items: stretch;
  gap: 1px;
  width: 100%;
  height: 15px;
  margin: 10px 0 0;
}

.bar {
  flex: 1;
  min-width: 1px;
  border-radius: 1px;
  background: var(--bar-empty);
}

.bar.is-up {
  background: var(--bar-up);
}

.bar.is-warn {
  background: var(--bar-warn);
}

.bar.is-down {
  background: var(--bar-down);
}

.monitor-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--soft-border);
  color: var(--muted);
  font-size: 0.68rem;
}

.monitor-stats strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.monitor-url-slot {
  min-height: 18px;
  margin-top: 10px;
  overflow: hidden;
}

.monitor-url {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-url:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.skeleton {
  height: 170px;
  margin: 8px 0 20px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--surface-soft) 0%, var(--surface) 50%, var(--surface-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.noscript {
  width: min(100% - 40px, 1080px);
  margin: 20px auto;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 900px) {
  .status-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 28px, 950px);
    min-height: 68px;
  }

  .brand img {
    width: 126px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .page {
    width: min(100% - 28px, 1080px);
  }

  .hero {
    padding: 44px 0 28px;
  }

  .status-orb {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .status-card {
    padding: 0;
  }

  .monitor h2 {
    font-size: 0.95rem;
  }

  .overall {
    font-size: 0.8rem;
  }


  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
