/* planetlan status page. Tokens follow planetlan.de (charcoal, cyan, Bebas Neue, Poppins). */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-400.woff2") format("woff2");
}

:root {
  --color-background: #222222;
  --color-primary: #0099db;
  --color-secondary: #05dce1;
  --color-success: #78a532;
  --color-danger: #b41e19;
  --color-warning: #db8700;
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.74);
  --color-line: rgba(255, 255, 255, 0.15);
  --glass-background: rgba(0, 0, 0, 0.2);
  --font-body: "Poppins", Helvetica, sans-serif;
  --font-display: "Bebas Neue", "Poppins", Helvetica, sans-serif;
  --frame: min(84rem, calc(100% - 2 * clamp(1.1rem, 3vw, 2rem)));
  --shadow-color: rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 18px;
  color-scheme: dark;
  scrollbar-color: var(--color-primary) var(--color-background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(170deg, rgba(0, 153, 219, 0.22) 0%, rgba(0, 153, 219, 0) 34%),
    radial-gradient(ellipse 42% 38% at 84% 42%, rgba(5, 220, 225, 0.12), transparent 70%);
}

.StatusPage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

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

a:hover,
a:focus-visible {
  color: var(--color-secondary);
  text-decoration: underline dotted var(--color-secondary) 1px;
  text-underline-offset: 0.22em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.SkipLink {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0.2rem;
}

.SkipLink:focus {
  top: 1rem;
  color: #fff;
  text-decoration: none;
}

.Frame {
  width: var(--frame);
  margin-inline: auto;
}

.Topper {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1.15rem 0 0;
}

.TopperInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.25rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem 0.8rem 1.15rem;
  border-radius: 0.2rem;
  border: 1px solid var(--color-line);
  background: var(--glass-background);
  backdrop-filter: blur(1em) saturate(70%);
}

.TopperLink {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.TopperLink:hover,
.TopperLink:focus-visible {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.StatusPill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.StatusDot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(120, 165, 50, 0.65);
  animation: Pulse 2.2s ease-out infinite;
}

.Layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.4vw, 2rem);
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(1rem, 2.2vw, 1.7rem);
}

.Hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.Kicker {
  margin: 0 0 0.45rem;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.HeroCopy {
  min-width: 0;
}

.Headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.02em;
}

.Lead {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  padding-left: 1.15rem;
  border-left: 3px solid #fff;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.45;
}

.TextLink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  color: var(--color-text);
  font-weight: 400;
}

.TextLink svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--color-primary);
}

.TextLink:hover svg,
.TextLink:focus-visible svg {
  color: var(--color-secondary);
}

.Mark {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 23rem);
  aspect-ratio: 1;
}

.MarkOrbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: Spin 56s linear infinite;
  /* Keep the rings outside the wordmark. */
  -webkit-mask-image: radial-gradient(ellipse 86% 42% at 50% 50%, transparent 0 68%, #000 84%);
  mask-image: radial-gradient(ellipse 86% 42% at 50% 50%, transparent 0 68%, #000 84%);
}

.MarkLogo {
  position: relative;
  width: 72%;
  height: auto;
}

.StatusGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.StatusCard:last-child {
  grid-column: 1 / -1;
}

.StatusCard {
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 0.2rem;
  border: 1px solid var(--color-line);
  background: var(--glass-background);
  backdrop-filter: blur(1em) saturate(70%);
  box-shadow: 0 0.167rem 0.333rem -0.1rem var(--shadow-color);
}

.CardLabel {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.CardValue {
  min-height: 1em;
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.CardNote {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 300;
}

.ServerFacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 300;
}

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

.Footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.1rem 2rem;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line);
}

.Tagline {
  max-width: 28rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.Address {
  margin: 0;
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: right;
}

.Address a {
  color: inherit;
}

.NoscriptNote {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 300;
}

.IsFault .Lead {
  border-left-color: var(--color-warning);
}

.IsFault .StatusDot {
  background: var(--color-warning);
  box-shadow: none;
  animation: none;
}

.IsOffline .Lead {
  border-left-color: var(--color-danger);
}

.IsOffline .StatusDot {
  background: var(--color-danger);
  box-shadow: none;
  animation: none;
}

[hidden] {
  display: none !important;
}

@keyframes Pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 165, 50, 0.55);
  }

  70% {
    box-shadow: 0 0 0 0.55rem rgba(120, 165, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(120, 165, 50, 0);
  }
}

@keyframes Spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  html {
    font-size: 16px;
  }

  .Hero {
    grid-template-columns: 1fr;
  }

  .Mark {
    order: -1;
    justify-self: center;
    width: min(100%, 14.5rem);
  }

  .StatusGrid,
  .StatusCard:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .Address {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .StatusDot,
  .MarkOrbit {
    animation: none;
  }
}
