/* status.blpworkbench.com: the look of blpworkbench.com (site/src/styles/site.css). */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --wash: #f1f5f9;
  --brand: #1d4ed8;
  --dark: #0b0f12;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* The footer sits at the bottom of the window when the page is shorter than it. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1;
  padding-bottom: 32px;
}

a {
  color: var(--brand);
}

h1,
h2 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  font-weight: 700;
  color: var(--ink);
}

header.top img {
  width: 28px;
  height: 28px;
}

header.top .sub {
  color: var(--muted);
  font-weight: 500;
}

header.top .release {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

/* The overall state, on the dark band of the site's hero. */
.hero {
  background: var(--dark);
  color: #cbd5e1;
  padding: 32px 0 36px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 12px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin: 0 0 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero.up .kicker {
  color: #86efac;
}
.hero.up .dot {
  background: #22c55e;
}
.hero.degraded .kicker {
  color: #fcd34d;
}
.hero.degraded .dot {
  background: #f59e0b;
}
.hero.down .kicker {
  color: #fca5a5;
}
.hero.down .dot {
  background: #ef4444;
}

.lead {
  margin: 0;
  font-size: 1rem;
}

.card {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.card h2 {
  margin: 0;
  padding: 11px 20px;
  font-size: 1.05rem;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  grid-template-areas: 'name details pill';
  align-items: center;
  gap: 4px 16px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
}

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

.row .name {
  grid-area: name;
  color: var(--ink);
  font-weight: 600;
}

.row .details {
  grid-area: details;
  color: var(--muted);
  font-size: 15px;
}

.row .pill {
  grid-area: pill;
  justify-self: end;
}

/* Phones: name and state on one line, the details under them. */
@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'name pill'
      'details details';
  }
}

.pill {
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
  font-weight: 600;
}

.pill.up {
  background: #dcfce7;
  color: var(--ok);
}
.pill.degraded {
  background: #fef3c7;
  color: var(--warn);
}
.pill.down {
  background: #fee2e2;
  color: var(--bad);
}

footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
