/* girlfriend girlfriend — shared primitives
   Page-specific styling still lives in each page's <style> block. */

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

/* ── custom cursor ──
   The fake cursor and cursor:none are opt-in: js/site.js adds
   .cursor-active to <html> only on non-touch devices where it actually
   runs. If the script is blocked or fails, the real cursor stays. */
#cur {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  background: var(--cur, #ffffff);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  /* js writes translate3d(x,y,0) translate3d(-50%,-50%,0) here */
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
}

html.cursor-active #cur {
  display: block;
}
html.cursor-active,
html.cursor-active * {
  cursor: none;
}

/* ── shared top nav ── */
.site-nav {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9000;
  display: flex;
  gap: 16px;
  font-family: "Gruppo", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: lowercase;
}
.site-nav a {
  color: #8a6a9a;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: #c084fc;
}
.site-nav a[aria-current="page"] {
  color: #f0e8ff;
}
@media (max-width: 480px) {
  .site-nav {
    top: 12px;
    right: 12px;
    gap: 10px;
    row-gap: 3px;
    font-size: 11px;
    letter-spacing: 2px;
    /* wrap instead of overflowing the viewport (it's position: fixed) */
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(64vw, 300px);
  }
}

/* ── keyboard focus ── */
:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* the shimmer headings animate a clipped gradient; freezing it can
     leave the text nearly invisible, so render them as solid instead */
  .shimmer,
  .year-shimmer {
    animation: none !important;
    background: none !important;
    color: #cbb7d6 !important;
    -webkit-text-fill-color: currentColor;
  }
}

/* ── shared footer credit ── */
.site-footer {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-family: "Gruppo", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b5b6b;
}
.site-footer a {
  color: #9a7fae;
  text-decoration: none;
}
.site-footer a:hover {
  color: #c084fc;
}
