@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/montserrat-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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/montserrat-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: #141414;
  --card: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #a8a8a8;
  --faint: #828282;
  --gold: #f1c232;
  --ok: #2fbf71;
  --warn: #f08c2e;
  --down: #e54b50;
  --none: #2a2a2a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

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

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--ok {
  background: var(--ok);
}
.dot--down {
  background: var(--down);
}
.dot--gold {
  background: var(--gold);
}
.dot--muted {
  background: var(--muted);
}

.banner {
  position: relative;
  height: 248px;
  overflow: hidden;
}

.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.2) 0%,
    rgba(20, 20, 20, 0.5) 42%,
    rgba(20, 20, 20, 0.86) 72%,
    var(--bg) 96%
  );
}

.banner__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.banner__row {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.banner__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner__logo {
  height: 54px;
  width: auto;
  display: block;
}

.banner__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.22);
}

.banner__title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #cfcfcf;
}

.banner__state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.banner__heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.state__checked {
  margin: 0;
  font-size: 13px;
  color: #8f8f8f;
  font-variant-numeric: tabular-nums;
}

.state__stale {
  margin: 0;
  font-size: 13px;
  color: var(--warn);
}

.layout {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(241, 194, 50, 0.06);
  border: 1px solid rgba(241, 194, 50, 0.18);
  font-size: 13px;
  line-height: 1.5;
  color: #d8d8d8;
}

.notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.notice strong {
  font-weight: 600;
  color: var(--text);
}

.featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.featured--DOWN {
  border-color: rgba(229, 72, 77, 0.4);
}

.featured__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px;
}

.featured__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 32px;
  border-left: 1px solid var(--line-soft);
}

.featured h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.featured__note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.featured__note--down {
  color: var(--down);
}

.featured__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat__value {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat__label {
  font-size: 15px;
  color: var(--muted);
}

.meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
}

.meter__fill--striped {
  background: repeating-linear-gradient(135deg, var(--gold) 0 8px, #c99f22 8px 16px);
}

.fill-0 {
  width: 0%;
}
.fill-5 {
  width: 5%;
}
.fill-10 {
  width: 10%;
}
.fill-15 {
  width: 15%;
}
.fill-20 {
  width: 20%;
}
.fill-25 {
  width: 25%;
}
.fill-30 {
  width: 30%;
}
.fill-35 {
  width: 35%;
}
.fill-40 {
  width: 40%;
}
.fill-45 {
  width: 45%;
}
.fill-50 {
  width: 50%;
}
.fill-55 {
  width: 55%;
}
.fill-60 {
  width: 60%;
}
.fill-65 {
  width: 65%;
}
.fill-70 {
  width: 70%;
}
.fill-75 {
  width: 75%;
}
.fill-80 {
  width: 80%;
}
.fill-85 {
  width: 85%;
}
.fill-90 {
  width: 90%;
}
.fill-95 {
  width: 95%;
}
.fill-100 {
  width: 100%;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1a1a;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button:not(.button--disabled):hover {
  background: #ffd24a;
  color: #1a1a1a;
}

.button:not(.button--disabled):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  color: #1a1a1a;
}

.button--disabled {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a8a8a;
}

.address {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.side__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}

.side__value {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}

.legend__short {
  display: none;
}

.bars {
  display: flex;
  gap: 2px;
}

.bars--history {
  height: 44px;
}

.bars--compact {
  height: 24px;
  flex-grow: 1;
}

.bar {
  flex: 1 1 0;
  min-width: 1px;
  border-radius: 2px;
}

.bar--ok {
  background: var(--ok);
}
.bar--warn {
  background: var(--warn);
}
.bar--down {
  background: var(--down);
}
.bar--maint {
  background: var(--gold);
}
.bar--none {
  background: var(--none);
}
.bar--past {
  opacity: 0.5;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 12px;
}

.tile--DOWN {
  border-color: rgba(229, 72, 77, 0.4);
}

.tile__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  flex-shrink: 0;
}

.tile__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.tile__name .dot {
  width: 8px;
  height: 8px;
}

.tile__meta {
  padding-left: 16px;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--faint);
}

.tile--DOWN .tile__meta {
  color: var(--down);
}

.tile__uptime {
  flex-shrink: 0;
  min-width: 56px;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.history h2 {
  margin: 12px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-wrap: balance;
}

.history__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 14px;
}

.incident__date {
  font-size: 12px;
  color: var(--faint);
}

.incident__title {
  font-size: 15px;
  font-weight: 600;
}

.incident__body,
.history__empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  width: min(1080px, calc(100% - 32px));
  margin: 8px auto 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8c8c8c;
}

.footer__heart {
  color: var(--down);
}

.footer__accent {
  color: var(--gold);
  font-weight: 600;
}

.footer__link {
  text-decoration: none;
}

.footer a {
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__nav {
  display: flex;
  gap: 20px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes meter-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes highlight-down {
  from {
    background-color: rgba(229, 72, 77, 0.16);
    border-color: rgba(229, 72, 77, 0.75);
  }
  to {
    background-color: var(--card);
    border-color: rgba(229, 72, 77, 0.4);
  }
}

@keyframes highlight-up {
  from {
    background-color: rgba(47, 191, 113, 0.16);
    border-color: rgba(47, 191, 113, 0.75);
  }
  to {
    background-color: var(--card);
    border-color: var(--line);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .enter {
    animation: enter 380ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }

  .enter--2 {
    animation-delay: 60ms;
  }

  .enter--3 {
    animation-delay: 120ms;
  }

  .meter__fill {
    transform-origin: left center;
    animation: meter-fill 700ms cubic-bezier(0.23, 1, 0.32, 1) 180ms both;
  }

  .bar--today {
    animation: breathe 3200ms ease-in-out infinite;
  }

  .is-changed--down {
    animation: highlight-down 1800ms ease-in-out 400ms both;
  }

  .is-changed--up {
    animation: highlight-up 1800ms ease-in-out 400ms both;
  }

  .button {
    transition:
      background-color 150ms ease-out,
      transform 100ms ease-out;
  }

  .button:not(.button--disabled):active {
    transform: scale(0.97);
  }

  html.is-refresh .enter,
  html.is-refresh .meter__fill {
    animation: none;
  }
}

@media (max-width: 720px) {
  .banner {
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .banner__content {
    position: relative;
    padding-top: 24px;
  }

  .banner__row {
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .banner__state {
    align-items: flex-start;
  }

  .layout {
    margin-top: 12px;
    gap: 12px;
  }

  .banner__heading {
    font-size: 18px;
  }

  .featured,
  .tiles,
  .history__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured__main,
  .featured__side {
    padding: 22px 20px;
  }

  .featured__side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .featured h2 {
    font-size: 24px;
  }

  .stat__value {
    font-size: 34px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .bars--history {
    height: 36px;
  }

  .bars--history .bar:nth-child(-n + 60) {
    display: none;
  }

  .legend__long {
    display: none;
  }

  .legend__short {
    display: inline;
  }

  .tile {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .tile__info {
    flex: 0 1 148px;
    min-width: 0;
  }

  .tile--DOWN .tile__info {
    flex-basis: auto;
  }

  .bars--compact {
    flex: 1 1 0;
    min-width: 64px;
    height: 22px;
    gap: 1px;
  }

  .tile__uptime {
    min-width: 44px;
  }

  .footer {
    justify-content: flex-start;
  }
}
