/* status.acriva.de (ADR-0223): the landing page's tokens (site/assets/site.css, web/ui's tokens.css), light by default and
   dark by the viewer's setting. The fonts are copied from site/assets/fonts/ when the page is built. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: hsl(0 0% 100%);
  --bg-subtle: hsl(0 0% 98%);
  --fg: hsl(0 0% 9%);
  --muted: hsl(0 0% 40%);
  --border: hsl(0 0% 0% / 0.08);
  --accent: hsl(212 100% 46%);
  --ring: hsl(212 100% 47%);
  --success: hsl(131 41% 36%);
  --warning: hsl(39 100% 32%);
  --destructive: hsl(358 75% 50%);
  --neutral: hsl(0 0% 66%);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(0 0% 4%);
    --bg-subtle: hsl(0 0% 7%);
    --fg: hsl(0 0% 93%);
    --muted: hsl(0 0% 63%);
    --border: hsl(0 0% 100% / 0.1);
    --accent: hsl(212 70% 64%);
    --ring: hsl(212 100% 60%);
    --success: hsl(131 41% 46%);
    --warning: hsl(39 100% 50%);
    --destructive: hsl(358 75% 62%);
    --neutral: hsl(0 0% 45%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/20px var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}
p {
  margin: 0;
}

/* ---------- header ---------- */
.top {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 64px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg);
}
.brand:hover {
  text-decoration: none;
}
.brand__word {
  font: 600 20px/1 var(--font);
  letter-spacing: -0.055em;
}
.mark__paper {
  fill: var(--bg);
  stroke: var(--fg);
}
.mark__ink {
  fill: var(--fg);
}
.mark__cut {
  stroke: var(--bg);
}
.top__label {
  font: 500 11px/16px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.top__space {
  flex: 1;
}
.top__app {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  font-weight: 500;
}
.lang {
  display: inline-flex;
  gap: 6px;
  font: 500 12px/16px var(--font);
  color: var(--muted);
}
.lang a,
.lang span {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang a {
  color: var(--muted);
}
.lang [aria-current] {
  color: var(--fg);
}

/* ---------- main ---------- */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.summary {
  --tone: var(--neutral);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone) 8%, var(--bg));
}
.summary--operational {
  --tone: var(--success);
}
.summary--maintenance {
  --tone: var(--accent);
}
.summary--degraded {
  --tone: var(--warning);
}
.summary--outage {
  --tone: var(--destructive);
}
.summary__dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 9999px;
  background: var(--tone);
}
.summary__title {
  margin: 0;
  font: 600 24px/1.25 var(--font);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.summary__note {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.notice {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.services {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.services__title {
  margin: 0;
  padding: 12px 16px;
  font: 600 16px/24px var(--font);
  border-bottom: 1px solid var(--border);
}
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}
.service + .service {
  border-top: 1px solid var(--border);
}
.service__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.service__name {
  flex: 1;
  margin: 0;
  font: 500 14px/20px var(--font);
}
.bars {
  display: flex;
  gap: 2px;
  height: 24px;
}
.bar {
  flex: 1;
  border-radius: 2px;
  background: color-mix(in srgb, var(--success) 70%, transparent);
}
.bar--maintenance {
  background: color-mix(in srgb, var(--accent) 60%, transparent);
}
.bar--degraded {
  background: color-mix(in srgb, var(--warning) 70%, transparent);
}
.bar--outage {
  background: var(--destructive);
}
.service__scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 400 12px/16px var(--font);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scale-30 {
  display: none;
}
.services__note {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

/* ---------- badges ---------- */
.badge {
  --tone: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: 9999px;
  font: 500 12px/16px var(--font);
  color: var(--fg);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--tone);
}
.badge--maintenance {
  --tone: var(--accent);
}
.badge--degraded {
  --tone: var(--warning);
}
.badge--outage {
  --tone: var(--destructive);
}
.badge--resolved {
  --tone: var(--neutral);
}

/* ---------- incidents ---------- */
.incidents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.incidents[hidden] {
  display: none;
}
.section-title {
  margin: 0;
  font: 600 18px/28px var(--font);
}
.incident {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.incident__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.incident__title {
  flex: 1;
  margin: 0;
  font: 600 16px/24px var(--font);
}
.incident__meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.timeline__item {
  position: relative;
  padding: 0 0 16px 28px;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--neutral);
}
.timeline__item::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 19px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__item:last-child::after {
  display: none;
}
.timeline__item:first-child::before {
  background: var(--fg);
}
.timeline__item--resolved::before,
.timeline__item--resolved:first-child::before {
  background: var(--success);
}
.timeline__when {
  display: block;
  font: 500 12px/16px var(--font);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline__text {
  text-wrap: pretty;
}

/* ---------- support ---------- */
.support {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
}
.support > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.support__icon {
  flex: none;
  color: var(--muted);
}
.support__title {
  margin: 0;
  font: 600 16px/24px var(--font);
}
.support__sub {
  color: var(--muted);
}

.foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.foot a {
  color: var(--muted);
}

/* ---------- phones: 30 days of bars, a narrower gutter ---------- */
@media (max-width: 640px) {
  .top {
    padding: 0 16px;
  }
  .top__app {
    display: none;
  }
  .page {
    padding: 24px 16px 48px;
  }
  .summary__title {
    font-size: 20px;
  }
  .bar:nth-child(-n + 60) {
    display: none;
  }
  .scale-90 {
    display: none;
  }
  .scale-30 {
    display: inline;
  }
  .foot {
    padding: 0 16px 32px;
  }
}
