/* status.peak.inc. Tokens from the console (app/(console)/theme.css,
   design-system.css); layout from its status page (app/status/status.css). */
@font-face {
  font-family: 'Peak Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f5f5f6;
  --panel: #ffffff;
  --foreground: #1b1b1f;
  --muted: #6e6e77;
  --border: #e6e6e9;
  --divider: #efeff1;
  --focus: #087f83;
  --operational: #22a05a;
  --degraded: #e79d13;
  --outage: #e5484d;
  --degraded-ink: #a15c00;
  --outage-ink: #c4382d;
  --operational-soft: #ebf6ef;
  --degraded-soft: #fdf4e4;
  --outage-soft: #fdf1f0;
  --shadow: 0 1px 2px #0f0f1408, 0 4px 12px -4px #0f0f140d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c0c0e;
    --panel: #131315;
    --foreground: #ececef;
    --muted: #93939d;
    --border: #252529;
    --divider: #1e1e22;
    --focus: #4fc4c0;
    --operational: #3fc97a;
    --degraded: #f5b33b;
    --outage: #f2555a;
    --degraded-ink: #f0b45b;
    --outage-ink: #ff8478;
    --operational-soft: #13261b;
    --degraded-soft: #2a2010;
    --outage-soft: #2a1614;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 14px/1.5 'Peak Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
time { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
.header { margin-bottom: 40px; }
.logo { display: inline-flex; align-items: center; gap: 4px; font-size: 26px; }
/* The console's teal mountain. */
.logo img { width: 1.235em; height: 1.235em; filter: hue-rotate(-25deg) saturate(1.7); }
/* The wordmark as public/og.svg draws it. */
.wordmark { font-family: Georgia, 'Times New Roman', Times, serif; font-weight: 400; line-height: 1; letter-spacing: -0.075em; }
.wordmark-p { margin-right: -0.085em; }

h1 { margin: 0 0 16px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h2 { margin: 0; font-size: 14px; font-weight: 560; letter-spacing: -0.01em; }
h3 { margin: 0; font-size: 14px; font-weight: 560; }
.muted { color: var(--muted); font-size: 12.5px; }

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--operational-soft);
}
.banner p { flex: 1; margin: 0; font-size: 16px; font-weight: 560; letter-spacing: -0.01em; }
.banner time { color: var(--muted); font-size: 12.5px; }
.banner-degraded { background: var(--degraded-soft); }
.banner-outage { background: var(--outage-soft); }

.card {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.icon { flex: none; }
.icon-operational { color: var(--operational); }
.icon-degraded { color: var(--degraded); }
.icon-outage { color: var(--outage); }
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.text-degraded { color: var(--degraded-ink); }
.text-outage { color: var(--outage-ink); }
.text-resolved { color: var(--muted); }

.components { margin: 18px 0 0; padding: 0; list-style: none; }
.component + .component { margin-top: 22px; }
.component-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.component-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.component-name .label { margin-left: 4px; }
.uptime { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 2px; height: 24px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 3px; background: var(--operational); }
.bar:hover { opacity: 0.75; }
.bar-degraded { background: var(--degraded); }
.bar-outage { background: var(--outage); }
.range-short { display: none; }

.empty { margin: 8px 0 0; }
.incidents { margin: 14px 0 0; padding: 0; list-style: none; }
.incident { padding: 14px 0; }
.incident + .incident { border-top: 1px solid var(--divider); }
.incident:first-child { padding-top: 0; }
.incident:last-child { padding-bottom: 0; }
.incident-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.incident-meta { margin: 2px 0 12px; }
.updates { margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); list-style: none; font-size: 13.5px; }
.updates li + li { margin-top: 10px; }
.updates p { margin: 0; }
.update-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.updates strong { font-weight: 560; }

@media (max-width: 640px) {
  .page { padding: 20px 16px 56px; }
  .header { margin-bottom: 28px; }
  h1 { font-size: 22px; }
  .card { padding: 16px; }
  /* SHORT_HISTORY_DAYS (lib/model.js): the last 30 days. */
  .bar-old { display: none; }
  .range-long { display: none; }
  .range-short { display: inline; }
  .banner { flex-wrap: wrap; padding: 14px 16px; }
  .banner time { flex-basis: 100%; padding-left: 30px; }
}
