/* Mulmir Online: shared styles */

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

html, body { margin: 0; background: #000; }

body {
  color: #e8e6e1;
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #e8e6e1; text-decoration: none; }

/* Screen, vignette, grain */

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #000;
}

.vignette,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vignette {
  background: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.92) 100%);
}

.grain { opacity: 0.08; }
.grain svg { display: block; }

/* Homepage */

.home {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 40px;
  text-align: center;
}

/* Wordmark */

.wordmark {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.wordmark-light {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 150%;
  height: 240%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse closest-side, rgba(150,150,145,0.30) 0%, rgba(60,60,57,0.14) 50%, rgba(0,0,0,0) 100%);
  opacity: 0.55;
  animation: mulmir-breath 9s ease-in-out infinite;
}

@keyframes mulmir-breath {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.8; }
}

.wordmark-title {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  color: #ece9e2;
  text-shadow: 0 0 28px rgba(255,255,255,0.18), 0 2px 0 rgba(0,0,0,0.6);
}

.wordmark-sub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  color: #bdb9b0;
  text-shadow: 0 0 16px rgba(255,255,255,0.12);
}

.wordmark-sub .rule {
  display: block;
  width: 44px;
  height: 1px;
  background: #77746d;
}

/* Menu */

.menu { margin-top: clamp(56px, 10vh, 104px); }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 8px;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
  color: #9a968e;
  text-shadow: none;
}

.menu a:focus { outline: none; }

.menu .label { margin-right: -0.1em; }

.menu .orn { flex: none; opacity: 0; }
.menu .orn path { fill: none; stroke: #e8e6e1; stroke-width: 1; }
.menu .orn path + path { stroke-width: 1.2; }

.menu a.is-active {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255,255,255,0.45);
}

.menu a.is-active .orn { opacity: 1; }

.hint {
  margin: 24px 0 0;
  min-height: 1.6em;
  max-width: 34rem;
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: #a9a59c;
}

/* Bottom bar */

.bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  padding: 0 clamp(20px, 3vw, 40px) 24px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #8f8b83;
}

.bar p { margin: 0; }

.bar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-status .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8f8b83;
}

.bar-status[data-state="online"] .dot { background: #7fa37a; }
.bar-status[data-state="offline"] .dot { background: #a5584e; }
.bar-status[data-state="unreachable"] .dot { background: #b8955a; }

.bar-legal {
  flex: 1 1 320px;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-light { animation: none; }
}
