/* Current Cycle – shared look: near-black, hairlines, one ice accent, living dot field (bg.js). */
:root {
  --bg: #050608;
  --fg: #eef1f5;
  --dim: #8b929e;          /* secondary text, 6.4:1 on --bg */
  --faint: #767d89;        /* tertiary text, 4.6:1 on --bg */
  --line: rgba(238, 241, 245, .08);
  --line-2: rgba(238, 241, 245, .16);
  --ice: #8fe3ff;
  --ice-soft: rgba(143, 227, 255, .12);
  --warn: #ffc978;
  --err: #ff8f9c;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { color: var(--fg); font: 400 13px/1.55 var(--sans); min-height: 100vh; min-height: 100dvh;
  background: transparent; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ice); color: #041016; }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
a { color: inherit; text-underline-offset: 3px; }
input, textarea, button { font: inherit; color: inherit; caret-color: var(--ice); }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* Soft vignette so content always sits on calm black */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(5,6,8,.55) 70%, var(--bg) 100%); }

/* Top bar: wordmark left, segmented nav right */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 440px; margin: 0 auto; padding: 18px 16px 0; }
.mark { display: flex; align-items: center; gap: 10px; font: 500 13px var(--sans); letter-spacing: -.01em; text-decoration: none; }
.mark svg { width: 15px; height: 15px; }
.nav { position: relative; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(5,6,8,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { position: relative; z-index: 1; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; color: var(--dim);
  text-decoration: none; transition: color .3s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--fg); background: rgba(238,241,245,.08); box-shadow: inset 0 0 0 1px var(--line-2); }

.page { max-width: 440px; margin: 0 auto; padding: 32px 16px 64px; }
.head { margin-bottom: 36px; }
.head h1 { font: 500 30px/1.1 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.head p { margin-top: 10px; color: var(--dim); max-width: 46ch; }

/* Page entrance: one quiet rise, then still */
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.page > * { animation: rise .9s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .08s; }
.page > *:nth-child(3) { animation-delay: .16s; }

@media (max-width: 480px) {
  .page { padding-top: 40px; }
  .head h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
