:root {
  --ink: #0a0a0b;
  --ink-soft: #1c1c20;
  --paper: #ffffff;
  --paper-deep: #f4f4f6;
  --rule: #1c1c20;
  --rule-soft: rgba(28, 28, 32, 0.1);
  --rule-medium: rgba(28, 28, 32, 0.18);
  --blue: #217ff1;
  --blue-deep: #0f4fb8;
  --blue-soft: rgba(33, 127, 241, 0.08);
  --muted: #6a6a72;
  --danger: #d9344a;
  --success: #22c55e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--blue); color: var(--paper); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 28, 32, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
}

.mono {
  font-family: "SF Mono", ui-monospace, "Menlo", "Roboto Mono", monospace;
}

/* ---------- NAV ---------- */
nav {
  position: relative;
  z-index: 10;
  padding: 24px clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-meta {
  font-family: "SF Mono", ui-monospace, "Menlo", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-button:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
