@font-face {
  font-family: "Montserrat";
  src: url("montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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";
  src: url("montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: #0f1923;
  --card: #18222f;
  --line: #2a3a4c;
  --text: #d8dee9;
  --muted: #7d8794;
  --green: #00e676;
  --yellow: #ffc83d;
  --red: #ff4f6e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 24px 16px;
}

.logo {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto 56px;
}

.card {
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.mirrors {
  width: 100%;
  border-collapse: collapse;
}

.mirrors th,
.mirrors td {
  padding: 14px 0;
  text-align: left;
}

.mirrors th {
  padding-top: 0;
  font-size: 18px;
  font-weight: 600;
}

.mirrors td a {
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mirrors .status {
  width: 40%;
  text-align: center;
}

/* the status lights */

.light {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
}

.light--up {
  background: var(--green);
}

.light--down {
  background: var(--red);
}

.light--checking {
  background: var(--yellow);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* the Discord invite card */

.invite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.invite:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.invite__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--panel);
}

.invite__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.invite__label {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite__name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite__cta {
  flex: none;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--green);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
}

/* short windows: the page never scrolls, so it has to fit */

@media (max-height: 560px) {
  .page {
    padding: 12px 16px;
  }

  .logo {
    width: 160px;
    margin-bottom: 20px;
  }

  .card {
    padding: 18px 24px;
  }

  h1 {
    margin-bottom: 14px;
  }

  .mirrors th,
  .mirrors td {
    padding: 10px 0;
  }

  .mirrors th {
    padding-top: 0;
  }

  .mirrors td a,
  .mirrors th {
    font-size: 16px;
  }
}

/* phones */

@media (max-width: 480px) {
  .logo {
    width: 200px;
    margin-bottom: 36px;
  }

  .card {
    padding: 22px 18px 24px;
  }

  .mirrors th,
  .mirrors td a {
    font-size: 16px;
  }
}
