/* Soft Focus — shared shell for beacon2 pages.
   The tiny-worlds *experiment* files (drift, gravity, …) deliberately use
   their own self-contained dark theme and do not link this stylesheet. */

:root {
  --amber-400: #F5A623;
  --amber-500: #E8930C;
  --amber-600: #C67A08;
  --cream: #FEFCF9;

  --ink: #2D2016;
  --ink-soft: #6B5D52;
  --ink-faint: #A89B91;
  --line: #EDE8E2;

  /* Blob gradient opacities — overridable per page.
     /kevin dims these for its dark-theme background. */
  --blob-1-a1: 0.12;
  --blob-1-a2: 0.04;
  --blob-2-a1: 0.1;
  --blob-2-a2: 0.03;
  --blob-3-a1: 0.08;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ---- Blobs ---- */
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(245, 166, 35, var(--blob-1-a1)) 0%, rgba(245, 166, 35, var(--blob-1-a2)) 40%, transparent 70%);
  top: -15vw;
  right: -10vw;
  animation: drift-1 25s ease-in-out infinite;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(232, 147, 12, var(--blob-2-a1)) 0%, rgba(232, 147, 12, var(--blob-2-a2)) 45%, transparent 70%);
  bottom: -12vw;
  left: -8vw;
  animation: drift-2 30s ease-in-out infinite;
}

.blob-3 {
  width: 35vw;
  height: 30vw;
  max-width: 500px;
  max-height: 420px;
  background: radial-gradient(ellipse, rgba(212, 165, 116, var(--blob-3-a1)) 0%, transparent 65%);
  top: 40%;
  left: 30%;
  border-radius: 45% 55% 60% 40%;
  animation: drift-3 20s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 10px) scale(1.03); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  animation: fade-down 0.8s ease both;
}

.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.wordmark-2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-500);
  margin-left: 1px;
  position: relative;
  top: -0.5px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 6px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(245, 166, 35, 0.08);
}

/* ---- Divider accent ---- */
.accent-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-400), var(--amber-500));
  border-radius: 2px;
  opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  nav { padding: 20px 24px; }
  .wordmark { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  nav { animation: none; }
}
