:root {
  color-scheme: dark;

  --background: #09090b;
  --surface: #111114;
  --surface-raised: #17171b;
  --foreground: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --brand: #05bde2;
  --brand-dark: #0095d8;
  --operational: #22c55e;
  --degraded: #eab308;
  --outage: #ef4444;
  --unavailable: #71717a;
  --content-width: 760px;

  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 50% -20%, rgba(5, 189, 226, 0.12), transparent 36rem),
    var(--background);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  color: var(--background);
  background: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 7.5rem;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-selector {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
}

.language-selector__summary {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

.language-selector__summary::-webkit-details-marker {
  display: none;
}

.language-selector__summary::marker {
  content: "";
}

.language-selector__summary:hover,
.language-selector[open] .language-selector__summary {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.07);
}

.language-selector__summary:focus-visible,
.language-selector__option:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.language-selector__flag {
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.language-selector__current {
  color: inherit;
  font-weight: 600;
}

.language-selector__caret {
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.2rem 0.08rem 0 0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.language-selector[open] .language-selector__caret {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.language-selector__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  width: 12rem;
  max-width: calc(100vw - 2rem);
  padding: 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.85rem;
  color: var(--foreground);
  background: var(--surface-raised);
  box-shadow:
    0 1rem 2.5rem rgba(0, 0, 0, 0.42),
    0 0.2rem 0.5rem rgba(0, 0, 0, 0.25);
}

.language-selector__menu-label {
  margin: 0;
  padding: 0.35rem 0.6rem 0.3rem;
  color: var(--subtle);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.language-selector__option {
  display: grid;
  width: 100%;
  min-height: 2.4rem;
  grid-template-columns: 1.2rem 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.55rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 550;
  text-align: start;
  cursor: pointer;
}

.language-selector__option:hover,
.language-selector__option.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.language-selector__check {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
}

.header-link,
.site-footer a {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 150ms ease;
}

.header-link:hover,
.site-footer a:hover {
  color: var(--foreground);
}

.header-link:focus-visible,
.site-footer a:focus-visible,
.brand:focus-visible {
  border-radius: 0.4rem;
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

main {
  padding-block: 5rem 7rem;
}

.intro {
  margin-bottom: 2.25rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 37rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.status-banner {
  --state-color: var(--unavailable);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 6.3rem;
  padding: 1.4rem 1.55rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--state-color) 30%, var(--border));
  border-radius: 1rem;
  background:
    linear-gradient(
      110deg,
      color-mix(in srgb, var(--state-color) 9%, transparent),
      rgba(255, 255, 255, 0.025) 55%
    ),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1.2rem 3rem rgba(0, 0, 0, 0.18);
}

[data-state="operational"] {
  --state-color: var(--operational);
}

[data-state="degraded"],
[data-state="maintenance"] {
  --state-color: var(--degraded);
}

[data-state="outage"] {
  --state-color: var(--outage);
}

[data-state="unavailable"] {
  --state-color: var(--unavailable);
}

.status-dot,
.service-state-dot {
  position: relative;
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--state-color);
}

.status-dot::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  content: "";
  animation: status-pulse 2.2s ease-out infinite;
}

.status-banner h2 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.status-banner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.last-reported {
  min-height: 1.25rem;
  margin: 0.7rem 0 2.1rem;
  color: var(--subtle);
  font-size: 0.72rem;
  text-align: right;
}

.service-panel,
.detail-panel,
.content-section {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(17, 17, 20, 0.72);
}

.service-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
}

.service-panel h2,
.content-heading h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.service-panel .section-kicker,
.content-heading .section-kicker,
.section-heading .section-kicker {
  margin-bottom: 0.3rem;
  color: var(--subtle);
  font-size: 0.62rem;
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.service-state-dot {
  width: 0.45rem;
  height: 0.45rem;
}

.detail-panel,
.content-section {
  margin-top: 1rem;
  padding: 1.35rem;
}

.detail-panel--incident {
  border-color: color-mix(in srgb, var(--outage) 34%, var(--border));
}

.detail-panel--maintenance {
  border-color: color-mix(in srgb, var(--degraded) 30%, var(--border));
}

.section-heading,
.content-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-impact {
  flex: 0 0 auto;
  padding: 0.35rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--outage) 35%, transparent);
  border-radius: 999px;
  color: #fca5a5;
  background: color-mix(in srgb, var(--outage) 10%, transparent);
  font-size: 0.65rem;
  font-weight: 650;
}

.detail-impact[data-impact="degraded"],
.detail-impact--maintenance {
  border-color: color-mix(in srgb, var(--degraded) 35%, transparent);
  color: #fde047;
  background: color-mix(in srgb, var(--degraded) 9%, transparent);
}

.detail-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.detail-time {
  margin: 0.6rem 0 0;
  color: var(--subtle);
  font-size: 0.72rem;
}

.timeline,
.item-list {
  padding: 0;
  list-style: none;
}

.timeline {
  margin: 1.25rem 0 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.timeline li:not(:last-child)::before {
  position: absolute;
  top: 0.55rem;
  bottom: -0.15rem;
  left: 0.27rem;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.25rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.timeline p,
.list-item p {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.timeline time,
.list-item time {
  color: var(--subtle);
  font-size: 0.68rem;
}

.empty-state {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px dashed var(--border);
  border-radius: 0.7rem;
  color: var(--subtle);
  font-size: 0.78rem;
  text-align: center;
}

.item-list {
  margin: 0;
}

.item-list:not(:empty) {
  margin-top: 0.9rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.list-item:first-child {
  border-top: 0;
}

.list-item h3 {
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
}

.list-item time {
  flex: 0 0 auto;
  max-width: 12rem;
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.72rem;
}

[hidden] {
  display: none !important;
}

@keyframes status-pulse {
  0% {
    opacity: 0.42;
    transform: scale(1);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 0.75rem;
    padding-block: 1.1rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .language-selector__current {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  main {
    padding-block: 3.5rem 5rem;
  }

  .status-banner,
  .service-panel,
  .detail-panel,
  .content-section {
    border-radius: 0.75rem;
  }

  .service-panel,
  .section-heading,
  .list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-item time {
    max-width: none;
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
