:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #101114;
  --muted: #6b7078;
  --line: #e7e8ea;
  --soft: #f5f6f7;
  --ok: #15803d;
  --ok-soft: #edf8f0;
  --warn: #a16207;
  --warn-soft: #fff8df;
  --down: #b42318;
  --down-soft: #fff0ee;
  --shadow: 0 18px 52px rgba(16, 17, 20, .14);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 30px 0 56px;
}

.header,
.section-heading,
.service-title,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header { min-height: 42px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.orb {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -7px 1px 15px rgba(213, 44, 255, .52), 8px -2px 16px rgba(0, 219, 239, .58);
}

.page-name,
#updated-at {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  margin: 56px 0 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(40px, 8vw, 78px);
  line-height: .95;
  font-weight: 900;
}

.summary {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  margin: 30px 0 0;
  padding: 18px 20px;
  border: 1px solid #cae8d2;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 16px;
}

.summary-dot,
.status-dot {
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.summary-dot { width: 10px; height: 10px; }
.status-dot { width: 8px; height: 8px; }

.summary.degraded {
  border-color: #eadba4;
  background: var(--warn-soft);
  color: var(--warn);
}

.summary.outage,
.summary.delayed {
  border-color: #f2c7c2;
  background: var(--down-soft);
  color: var(--down);
}

.section { margin-top: 38px; }

.subscribe {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.subscribe button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 12px 18px;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.subscribe button:hover { transform: translateY(-1px); }
.subscribe button:active { transform: translateY(0) scale(.98); }
.subscribe button[disabled] { cursor: default; opacity: .48; transform: none; }

#subscribe-status {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section h1,
.section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.services {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.service {
  padding: 19px 0 18px;
  border-bottom: 1px solid var(--line);
}

.service-name { font-size: 15px; font-weight: 750; }

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-size: 13px;
  font-weight: 750;
}

.service-state.degraded { color: var(--warn); }
.service-state.outage { color: var(--down); }

.uptime {
  display: grid;
  grid-template-columns: repeat(30, minmax(3px, 1fr));
  gap: 3px;
  height: 24px;
  margin-top: 13px;
}

.uptime-day {
  min-width: 0;
  border-radius: 2px;
  background: #d8f0de;
  cursor: default;
  transition: transform .12s ease, opacity .12s ease;
}

.uptime-day:hover,
.uptime-day:focus-visible,
.uptime-day.active {
  outline: 0;
  transform: scaleY(1.2);
}

.uptime-day.degraded { background: #f2d97e; }
.uptime-day.outage { background: #eda9a2; }
.uptime-day.unknown { background: var(--soft); }

.incident-empty,
.incident {
  margin-top: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.incident + .incident { margin-top: 0; border-top: 0; }
.incident strong { display: block; margin-bottom: 5px; color: var(--text); }

.day-tooltip {
  position: fixed;
  z-index: 20;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 28px));
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .12s ease, transform .12s ease;
  backdrop-filter: blur(18px);
}

.day-tooltip.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.day-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 850;
}

.day-tooltip span {
  display: block;
  color: var(--muted);
}

.skeleton {
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0, var(--soft) 45%, transparent 90%);
  background-size: 220% 100%;
  animation: loading 1.2s linear infinite;
}

footer {
  margin-top: 58px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { text-underline-offset: 3px; }

@keyframes loading { to { background-position: -220% 0; } }

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 720px); padding-top: 22px; }
  .hero { margin: 42px 0 40px; }
  .summary { width: 100%; }
  .subscribe { align-items: stretch; flex-direction: column; gap: 9px; }
  .subscribe button { width: 100%; }
  #subscribe-status { max-width: none; }
  .uptime { gap: 2px; }
  .service-state span:last-child { max-width: 112px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .subscribe button,
  .uptime-day,
  .day-tooltip {
    transition: none;
  }
}
