:root {
  --bg: #f3ede2;
  --bg-2: #ebe3d4;
  --surface: #faf6ef;
  --ink: #16181d;
  --ink-2: #4b4c52;
  --ink-3: #7c7a74;
  --line: rgba(22, 24, 29, 0.14);
  --sea: #0b6e77;
  --sea-soft: rgba(11, 110, 119, 0.1);
  --sun: #ff5b22;
  --sun-2: #ffb347;
  --sun-ink: #c2410c;
  
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-serif: 'Fraunces', serif;
  --f-sans: 'Instrument Sans', sans-serif;
}

.dark {
  --bg: #0f1115;
  --bg-2: #15181e;
  --surface: #1a1d24;
  --ink: #ede7dc;
  --ink-2: #b3afa6;
  --ink-3: #85827b;
  --line: rgba(237, 231, 220, 0.12);
  --sea: #45c3cc;
  --sea-soft: rgba(69, 195, 204, 0.1);
  --sun: #ff6a33;
  --sun-ink: #ff8f61;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Texture overlay like the main site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark body::before { mix-blend-mode: screen; opacity: 0.25; }

/* Animated Logo */
.logo__mark {
  border-radius: 50%;
  box-shadow: 0 2px 10px -3px rgba(22, 24, 29, 0.45);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.05); }
.logo__cursor {
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Brutalist Button Links */
.link-btn {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--sun);
}
.link-btn:active { 
  transform: translate(2px, 2px); 
  box-shadow: 1px 1px 0 var(--sun); 
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
