:root {
  color-scheme: light dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(248, 180, 0, 0.08), transparent 30%),
    #0c1424;
  color: #e8edf5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  background: rgba(12, 20, 36, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #38bdf8;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-right: auto;
}

.site-nav a {
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-color 0.15s ease;
}

.site-nav a:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.12);
}

.site-nav a.active {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.2);
  font-weight: 600;
}

.ticker-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.55);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.ticker-form input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.9rem;
  width: 8.5rem;
}

.ticker-form input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.ticker-form button {
  padding: 0.3rem 0.75rem;
  background: linear-gradient(120deg, #38bdf8, #2563eb);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ticker-form button:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
}

.page-content {
  padding: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
  }

  .ticker-form {
    width: 100%;
    justify-content: space-between;
  }

  .ticker-form input {
    flex: 1;
    min-width: 0;
  }
}
