/* status.snoopout.com: www's paper palette and type (Geist text, Bricolage
   Grotesque headings, Ubuntu Medium for the wordmark, Noto Sans Mono labels). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Mono";
  src: url("/fonts/noto-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("/fonts/ubuntu-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fcfbf9;
  --surface: #f4f2ee;
  --card: #ffffff;
  --line: #e6e3dc;
  --ink: #17161a;
  --ink-soft: #45424b;
  --ink-muted: #6e6b76;
  --brand: #6366f1;
  --ok: #16a34a;
  --ok-ink: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #f59e0b;
  --warn-ink: #b45309;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --bad-ink: #b91c1c;
  --bad-soft: #fef2f2;
  --info: #3b82f6;
  --info-ink: #1d4ed8;
  --info-soft: #eff6ff;
  --radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 15px/1.55 "Geist",
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Geist", ui-sans-serif, sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}
.wordmark {
  font:
    500 21px/1 "Ubuntu",
    ui-sans-serif,
    sans-serif;
  letter-spacing: -0.02em;
}
.logo__tag {
  font:
    500 11px/1 "Noto Sans Mono",
    ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
}
.top__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.top__links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.top__links a:hover {
  color: var(--ink);
}
.top__links .button {
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
  white-space: nowrap;
}
.top__links .button:hover {
  color: #fff;
  background: #2b2a31;
}

main.wrap {
  padding-top: 40px;
  padding-bottom: 24px;
}

/* Banner */
.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 44px;
}
.banner h1 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.banner p {
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 4px;
}
.banner__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
}
.banner__icon svg {
  width: 22px;
  height: 22px;
}
.banner--operational {
  background: var(--ok-soft);
  border-color: #bbf7d0;
}
.banner--operational .banner__icon {
  background: var(--ok);
}
.banner--degraded {
  background: var(--warn-soft);
  border-color: #fde68a;
}
.banner--degraded .banner__icon {
  background: var(--warn);
}
.banner--outage {
  background: var(--bad-soft);
  border-color: #fecaca;
}
.banner--outage .banner__icon {
  background: var(--bad);
}
.banner--maintenance {
  background: var(--info-soft);
  border-color: #bfdbfe;
}
.banner--maintenance .banner__icon {
  background: var(--info);
}

/* Sections */
section {
  margin-bottom: 44px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 600;
}
.legend {
  display: flex;
  gap: 14px;
  font:
    400 11px/1 "Noto Sans Mono",
    ui-monospace,
    monospace;
  color: var(--ink-muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend .bar {
  display: inline-block;
  width: 6px;
  height: 12px;
}

/* Components */
.components {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.component {
  padding: 18px 20px 16px;
}
.component + .component {
  border-top: 1px solid var(--line);
}
.component__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.component__name h3 {
  font-size: 15px;
  font-weight: 600;
}
.component__name p {
  font-size: 13px;
  color: var(--ink-muted);
}
.component__uptime {
  font:
    500 12px/1 "Noto Sans Mono",
    ui-monospace,
    monospace;
  color: var(--ink-muted);
}
.component__state {
  font-size: 13px;
  font-weight: 500;
  min-width: 84px;
  text-align: right;
}
.state--operational {
  color: var(--ok-ink);
}
.state--degraded {
  color: var(--warn-ink);
}
.state--outage {
  color: var(--bad-ink);
}
.state--maintenance {
  color: var(--info-ink);
}
.dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
}
.dot svg {
  width: 13px;
  height: 13px;
}
.dot--operational {
  background: var(--ok);
}
.dot--degraded {
  background: var(--warn);
}
.dot--outage {
  background: var(--bad);
}
.dot--maintenance {
  background: var(--info);
}

.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  height: 32px;
}
.bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: var(--ok);
}
.bars .bar:hover {
  opacity: 0.7;
}
.bar--degraded {
  background: var(--warn);
}
.bar--outage {
  background: var(--bad);
}
.bar--maintenance {
  background: var(--info);
}
.bars__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font:
    400 11px/1 "Noto Sans Mono",
    ui-monospace,
    monospace;
  color: var(--ink-muted);
}
.axis--short {
  display: none;
}

/* Incidents */
.empty {
  padding: 22px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  background: var(--card);
}
.incidents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.incident {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--card);
}
.incident--resolved {
  border-left-color: var(--ok);
}
.incident--degraded {
  border-left-color: var(--warn);
}
.incident--outage {
  border-left-color: var(--bad);
}
.incident--maintenance {
  border-left-color: var(--info);
}
.incident__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.incident__head h3 {
  font-size: 16px;
  font-weight: 600;
}
.incident__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}
.pill {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 9px;
}
.pill--resolved {
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.pill--degraded {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.pill--outage {
  background: var(--bad-soft);
  color: var(--bad-ink);
}
.pill--maintenance {
  background: var(--info-soft);
  color: var(--info-ink);
}
.updates {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.update__status {
  font:
    500 11px/1.4 "Noto Sans Mono",
    ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.updates time {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Footer */
.foot::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.foot {
  padding-top: 24px;
  padding-bottom: 48px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

.notfound {
  padding: 96px 20px;
  text-align: center;
  display: grid;
  gap: 12px;
}

/* Phones: the last 30 days, and the state under the name. */
@media (max-width: 640px) {
  .top__links a:not(.button) {
    display: none;
  }
  .top__links .button {
    padding: 7px 12px;
    font-size: 13px;
  }
  .banner {
    padding: 18px;
    margin-bottom: 32px;
  }
  .banner h1 {
    font-size: 20px;
  }
  .legend {
    display: none;
  }
  .component {
    padding: 16px;
  }
  .component__head {
    grid-template-columns: auto 1fr auto;
  }
  .component__state {
    grid-column: 2 / 4;
    grid-row: 2;
    text-align: left;
    min-width: 0;
  }
  .component__uptime {
    grid-column: 3;
    grid-row: 1;
  }
  .bars .bar:nth-child(-n + 60) {
    display: none;
  }
  .axis--long {
    display: none;
  }
  .axis--short {
    display: inline;
  }
}
