/* Scoped styles for /sky. Tokens per moondoge.md §9 — the main site has no
   separate style.css to import from (everything is inlined in its
   index.html), so the tokens are duplicated here rather than imported. */

:root {
  --void: #070912;
  --navy: #0B0E1A;
  --gold: #F2B33D;
  --cyan: #4FE3E0;
  --bone: #EDE9E0;
  --dim: #5C6478;
  --font-display: 'Orbitron', 'Arial Black', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sky-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1rem 3rem;
  max-width: 480px;
  margin: 0 auto;
}

.sky-back {
  display: inline-block;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 1.2rem;
}
.sky-back:hover { color: var(--cyan); }

.sky-eyebrow {
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

h1.sky-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  text-align: center;
  color: #fff;
  margin-bottom: 1.6rem;
}

.dial-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 1.6rem;
}

#dial {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.sky-card {
  background: var(--navy);
  border: 1px solid #1c2036;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
}

.sky-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sky-detail {
  color: var(--bone);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.sky-detail b { color: var(--gold); font-family: var(--font-mono); font-weight: 700; }

.sky-sub {
  color: var(--dim);
  font-size: 0.92rem;
  margin-top: 0.6rem;
}

.sky-flavor {
  color: var(--cyan);
  font-style: italic;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

/* Text equivalent for the dial, for screen readers and anyone who wants
   the numbers without the graphic — a real list, not just an aria-label. */
.sky-readout {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
}
.sky-readout dt { color: var(--dim); }
.sky-readout dd { text-align: right; }

.sky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.sky-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}
.sky-btn:hover { box-shadow: 0 0 16px rgba(95,216,255,0.25); }
.sky-btn.primary {
  background: linear-gradient(135deg, var(--gold), #ff9e2c);
  border-color: transparent;
  color: #1a1300;
}

.sky-city-picker { margin-top: 1rem; }
.sky-city-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #232748;
  background: var(--void);
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.sky-city-input:focus { outline: 2px solid var(--cyan); }

.sky-city-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #1c2036;
  border-radius: 10px;
}
.sky-city-list li + li { border-top: 1px solid #1c2036; }
.sky-city-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}
.sky-city-list button:hover,
.sky-city-list button:focus {
  background: rgba(95,216,255,0.08);
  color: var(--cyan);
  outline: none;
}

.sky-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 340px) {
  .sky-content { padding: 1rem 0.75rem 2rem; }
  .sky-card { padding: 1.1rem 0.9rem; }
}
