@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400&family=Inter:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: #e0e0e0;
  --green: #078547;
  --orange: #ab8f00;
  --red: #c62832;
  --gray: #6b7280;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(204, 204, 204, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 204, 204, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 112px) 0;
}

.hero {
  min-height: min(42vh, 430px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(30px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

h1,
h2,
p { margin: 0; }

h1,
h2 {
  font-family: "Funnel Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(64px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
}

.board {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  background: #ffffff;
}

.footer-link-bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  height: clamp(40px, 4vw, 56px);
  margin-top: 0;
  padding: 0 clamp(16px, 2vw, 32px);
  border: 1.5px solid var(--line);
  border-top: 0;
  background: #ffffff;
}

.footer-separator {
  display: none;
}

.footer-link-bar a {
  color: var(--ink);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.6;
  text-decoration: none;
  white-space: nowrap;
}

.footer-link-bar a:hover {
  opacity: 1;
}

.board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border-bottom: 1.5px solid var(--line);
}

.board-title p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.component-list { display: grid; }

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  min-width: 0;
  min-height: 56px;
  border-bottom: 1.5px solid var(--line);
  background: #ffffff;
}

.component-row:last-child { border-bottom: 1.5px solid var(--line); }

.component-name,
.component-status {
  display: flex;
  align-items: center;
  min-width: 0;
}

.component-name {
  padding: 20px clamp(20px, 2.6vw, 34px) 6px;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 400;
}

.component-status {
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 6px;
}

.status-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.last-check {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

[data-status="operational"] { color: var(--green); }
[data-status="degraded"] { color: var(--orange); }
[data-status="outage"] { color: var(--red); }
[data-status="unknown"] { color: var(--gray); }

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .board-title { align-items: flex-start; flex-direction: column; }
  .component-row { grid-template-columns: 1fr; }
  .component-name { min-height: 48px; }
  .component-status {
    min-height: 36px;
    border-top: 1.5px solid var(--line);
  }

  .footer-link-bar {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    overflow-x: hidden;
  }

  .footer-link-note {
    display: none;
  }
}


.box-title {
  font-family: "Funnel Display", "Inter", ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(64px, 14vw, 180px) !important;
  font-weight: 400 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.04em !important;
  text-transform: lowercase;
}

.history-wrap {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 clamp(20px, 2.6vw, 34px) 20px;
}

.history-bar {
  display: flex;
  min-width: 0;
  gap: clamp(3px, 0.7vw, 8px);
}

.history-day {
  flex: 1 1 0;
  min-width: 0;
}

.history-day-cells {
  display: flex;
  gap: 1px;
}

.history-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  border-radius: 1px;
  cursor: default;
}

.history-cell[data-day="green"] { background: var(--green); }
.history-cell[data-day="orange"] { background: var(--orange); }
.history-cell[data-day="red"] { background: var(--red); }
.history-cell[data-day="nodata"] { background: #e4e6e8; }
.history-cell:hover { outline: 1.5px solid var(--ink); outline-offset: 0; }

.history-day-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.history-uptime {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.legend {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend i[data-k="green"] { background: var(--green); }
.legend i[data-k="orange"] { background: var(--orange); }
.legend i[data-k="red"] { background: var(--red); }
.legend i[data-k="nodata"] { background: #e4e6e8; }
.legend i[data-k="ink"] { background: var(--ink); }

.metrics-board { margin-top: 24px; }

.metrics-list { display: grid; }

.metric-row {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 6px 20px;
  align-items: center;
  padding: 16px clamp(20px, 2.6vw, 34px);
  border-bottom: 1.5px solid var(--line);
}

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

.metric-label { font-size: 13px; }

.metric-latest {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.metric-chart {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: stretch;
}

.metric-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.metric-plot { position: relative; }

.metric-plot svg {
  display: block;
  width: 100%;
  height: 48px;
}

.metric-xaxis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.metric-hover {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.metric-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.metric-dot.avg { background: var(--ink); }
.metric-dot.p99 { background: var(--orange); }

.metric-tooltip {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  pointer-events: none;
}

.board-tools {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.pager button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button:disabled { opacity: 0.35; cursor: default; }

.pager-range {
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .history-day-label { font-size: 8px; }
  .legend { flex-wrap: wrap; row-gap: 4px; font-size: 11px; }
  .board-tools { flex-wrap: wrap; row-gap: 8px; }
  .metric-row { grid-template-columns: 1fr; }
}
