/* A port of the landing page's modern theme (packages/landingpage/src/styles/modern-theme.css):
   the same tokens, type scale and zero radius, with the few components a status page needs. The
   status colours are the fixed good / warning / critical set, used only where a state is shown and
   always next to an icon and a word. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter.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;
}

.theme-modern {
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --bg-footer: #f9f9fb;
  --ink: #1f2329;
  --ink-2: #5d6474;
  --ink-3: #8a90a0;
  --line: #e8eaef;
  --tile: #f3f4f7;
  --brand: #675dff;
  --brand-hover: #7a71ff;
  --brand-deep: #4f45e0;
  --brand-soft: #ecebff;
  --sans: 'Inter Variable', 'Inter', system-ui, sans-serif;
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 5px 10px -4px rgba(0, 0, 0, 0.17);
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --none: #d9dce3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.col {
  max-width: 960px;
}
.band {
  padding-block: 56px;
}
.band-soft {
  background-color: var(--bg-soft);
}
@media (min-width: 810px) {
  .wrap {
    padding-inline: 44px;
  }
  .band {
    padding-block: 80px;
  }
}

/* ---- type ---- */
.h-section {
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.07;
  text-wrap: balance;
}
.h-card {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.eyebrow {
  color: var(--brand);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.lead {
  color: var(--ink-2);
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.6;
  margin-top: 16px;
  text-wrap: pretty;
}
.body-2 {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---- header ---- */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
@media (min-width: 810px) {
  .top-row {
    padding-block: 24px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.brand-sep {
  color: var(--ink-3);
  font-weight: 400;
}
.brand-page {
  color: var(--ink-2);
  font-weight: 500;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-nav a {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  transition: color 0.15s;
}
.top-nav a:hover {
  color: var(--ink-2);
}
@media (max-width: 809px) {
  .top-nav a {
    display: none;
  }
}

/* ---- hero ---- */
.env-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.headline {
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.headline-mark {
  flex: none;
  width: 0.8em;
  height: 0.8em;
}
.headline-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- state marks: icon plus word ---- */
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.state-small {
  font-size: 13px;
  color: var(--ink-2);
}
.state-small svg {
  width: 16px;
  height: 16px;
}
.state-good svg,
.headline-mark.state-good {
  color: var(--good);
}
.state-warning svg,
.headline-mark.state-warning {
  color: #b97d00;
}
.state-critical svg,
.headline-mark.state-critical {
  color: var(--critical);
}
.state-none svg,
.headline-mark.state-none {
  color: var(--ink-3);
}

/* ---- checks ---- */
.group + .group {
  margin-top: 56px;
}
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.check {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.check:last-child {
  border-bottom: 1px solid var(--line);
}
.check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.check-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.check-now {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-top: 2px;
}
.latency {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.check-note {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

/* The ninety-day strip: one cell per UTC day, oldest left. A 2px gap in the page colour separates
   the cells; nothing is drawn around them. The title of a cell carries the exact counts. */
.strip {
  display: flex;
  gap: 2px;
  height: 28px;
  margin-top: 16px;
}
.cell {
  flex: 1 1 0;
  min-width: 0;
  background: var(--none);
}
.cell.is-good,
.swatch.is-good {
  background: var(--good);
}
.cell.is-warning,
.swatch.is-warning {
  background: var(--warning);
}
.cell.is-critical,
.swatch.is-critical {
  background: var(--critical);
}
.cell:hover {
  filter: brightness(1.08);
}
.strip-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.uptime {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.only-phone {
  display: none;
}
@media (max-width: 809px) {
  .cell:nth-child(-n + 60) {
    display: none;
  }
  .only-phone {
    display: inline;
  }
  .only-desktop {
    display: none;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 13px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 12px;
  height: 12px;
  background: var(--none);
}

/* ---- announcements and incidents ---- */
.announcement-list,
.incident-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.announcement,
.incident {
  padding: 20px 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.announcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.announcement-body {
  margin-top: 8px;
}
.announcement-body p + p {
  margin-top: 8px;
}
.incident {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.incident .state {
  padding-top: 3px;
}
.incident-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.incident-group {
  color: var(--ink-3);
  font-weight: 400;
}
.incident-detail {
  margin-top: 4px;
  color: var(--ink-3);
}
.past-title {
  margin-top: 48px;
}
.method {
  margin-top: 40px;
  max-width: 64ch;
}

/* ---- footer ---- */
.foot {
  background: var(--bg-footer);
  padding-block: 32px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}
.foot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot a {
  color: var(--ink-2);
}
.foot a:hover {
  text-decoration: underline;
}
@media (min-width: 810px) {
  .foot-row {
    flex-direction: row;
    justify-content: space-between;
  }
}
