@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #55575d;
  --ink-3: #8b8d93;
  --line: #e7e7ea;
  --field: #f6f6f7;
  --up: #1f9d55;
  --slow: #c98a04;
  --down: #d93025;
  --none: #e4e4e7;
  --font: 'Inter', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { display: block; }

.top-label {
  color: var(--ink-3);
  font-size: 15px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  line-height: 16px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--none);
  flex: none;
}

[data-state='up'] .dot { background: var(--up); }
[data-state='slow'] .dot { background: var(--slow); }
[data-state='down'] .dot { background: var(--down); }

.now {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.now h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.now .dot { width: 12px; height: 12px; }

.now p {
  margin-top: 8px;
  padding-left: 26px;
  color: var(--ink-2);
}

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-content: start;
  gap: 56px;
  padding: 28px 0;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.scale {
  display: flex;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
}

.scale span + span::before { content: '–'; margin-right: 8px; }

.services {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.service {
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.service:last-child { border-bottom: 1px solid var(--line); }

.service-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.service-name {
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.service-uptime {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 112px;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--ink-2);
}

.service[data-state='slow'] .service-state { color: var(--slow); }
.service[data-state='down'] .service-state { color: var(--down); }

.bars {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 2px;
  height: 22px;
  margin-top: 10px;
}

.bars i {
  display: block;
  border-radius: 1.5px;
  background: var(--none);
}

.bars i[data-state='up'] { background: var(--up); }
.bars i[data-state='slow'] { background: var(--slow); }
.bars i[data-state='down'] { background: var(--down); }
.bars i:hover { opacity: 0.6; }

.side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field > span {
  font-size: 13px;
  color: var(--ink-2);
}

.field em {
  font-style: normal;
  color: var(--ink-3);
}

select, textarea, input {
  font: inherit;
  color: var(--ink);
  width: 100%;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

textarea { resize: vertical; min-height: 76px; }

textarea::placeholder { color: var(--ink-3); }

select:focus, textarea:focus, input:focus {
  background-color: var(--paper);
  border-color: var(--ink);
}

button {
  font: inherit;
  font-weight: 500;
  align-self: flex-start;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
}

button:hover { background: #2a2a2d; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: var(--down); font-size: 13px; }

.sent {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
}

.sent-title { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.sent a { display: inline-block; margin-top: 10px; color: var(--ink); }

.incidents {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.incident { padding: 10px 0; border-top: 1px solid var(--line); }
.incident:first-child { border-top: 0; padding-top: 0; }

.incident-title { font-weight: 500; }
.incident[data-open='true'] .incident-title { color: var(--down); }

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.incident-body { margin-top: 6px; color: var(--ink-2); font-size: 13px; }

.muted { margin-top: 8px; color: var(--ink-3); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .page { padding: 0 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .now h1 { font-size: 26px; gap: 12px; }
  .now p { padding-left: 24px; }
  .bars { gap: 1px; height: 20px; }
  .service-uptime { display: none; }
  .scale { display: none; }
  .foot { flex-direction: column; gap: 8px; }
}

@media (min-width: 861px) and (max-height: 760px) {
  .now { padding: 18px 0 22px; }
  .now h1 { font-size: 28px; }
  .grid { padding: 20px 0; }
  .service { padding: 10px 0 12px; }
  .bars { height: 18px; margin-top: 8px; }
  .side { gap: 24px; }
}

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