/* Shared design tokens and base styles for the physics pages. */

:root {
  --bg: #0a0d14;
  --panel: #111725;
  --line: #1e2739;
  --text: #e8eefc;
  --muted: #8d9ab4;
  --accent: #7aa2e0;
  --warm: #e8b06a;
  --cool: #6fc8c2;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Site navigation ---------- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.site-nav a {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0e1420;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--text); border-color: #2e3c56; }

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: #3d5b8f;
  background: #182539;
}

/* Keyboard focus stays visible everywhere, in the site's own colour. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  /* Five destinations in one swipeable row instead of three stacked rows.
     The faded right edge is the cue that the strip continues. */
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav a { padding: 9px 13px; }
}

/* Touch targets are sized for fingers, not only for the look. */
@media (pointer: coarse) {
  .site-nav a,
  .chip,
  .preset {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .drawer-close,
  .hamburger-btn {
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .chip,
  .preset,
  .stage,
  .live,
  .el {
    transition: none !important;
  }
}
