/* StreamGate landing page. System fonts only: nothing is loaded from other sites. */
:root {
  --ink: #000000;
  --paper: #f4f4f6;
  --muted: #a7a7b1;
  --amber: #ffb347;
  --line: #2c2c33;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top { padding: 0.5rem 0 3rem; }

.mark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

main { flex: 1; }

/* The one memorable element: a live signal that marks the status. The dot is decorative; the words carry the meaning. */
.status {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  margin: 1rem 0 3.25rem 2rem;
  max-width: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
}

.signal {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}
.signal span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
}
.signal::before,
.signal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
  animation: ring 3.2s ease-out infinite;
}
.signal::after { animation-delay: 1.6s; }

@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(4.2); opacity: 0; }
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 span { display: block; }

/* Keeps the second sentence breaking after "music" on wide screens. */
h1 .second { max-width: 10.5em; }

h2 {
  margin: 2.75rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0 0 1rem; max-width: 36rem; text-wrap: pretty; }

.lead { font-size: 1.25rem; color: var(--paper); }
.quiet { color: var(--muted); }

a {
  color: var(--amber);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}
a:hover { text-decoration-thickness: 3px; }

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

.mark:focus-visible { outline-offset: 4px; }

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--muted);
}
footer p { margin: 0; }
footer nav { display: flex; gap: 1.5rem; }

/* Policy pages */
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 0.5rem; }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; max-width: 36rem; }
.doc li { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .signal::before,
  .signal::after { animation: none; }
}
