/* =========================================
   PORTFOLIO TEMPLATE — shared styles
   Fonts: Pixelify Sans (headings) + Epilogue (body)
   Edit the :root variables to make it yours.
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Epilogue:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* -----------------------------------------
   TOKENS — change these to retheme the site
   ----------------------------------------- */
:root {
  --pink:          #f7b8d2;
  --pink-light:    #fce8f1;
  --pink-dark:     #9e2a5c;

  --lavender:      #c9b8f5;
  --lavender-light:#ede8fd;
  --lavender-dark: #3d2480;

  --mint:          #b8ecd7;
  --mint-light:    #e5f9ef;
  --mint-dark:     #1a5c3e;

  --sky:           #b8def7;
  --sky-light:     #e6f4fd;
  --sky-dark:      #0c3d66;

  --cream:         #fdf8f0;
  --text:          #1a1a2e;
  --text-muted:    #4a3f6b;
  --border:        #d4b8e8;
  --focus:         #6b38c8;
  --surface:       #ffffff;
}

/* -----------------------------------------
   RESET
   ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Epilogue', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23f7b8d2' stroke='%235a1035' stroke-width='2'/%3E%3C/svg%3E") 6 6, auto;
}

/* -----------------------------------------
   REDUCED MOTION
   ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------
   FOCUS
   ----------------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -----------------------------------------
   SKIP LINK
   ----------------------------------------- */
.skip-link {
  position: absolute;
  top: -48px; left: 8px;
  background: var(--lavender-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* -----------------------------------------
   SCREEN READER ONLY
   ----------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -----------------------------------------
   BACKGROUND TEXTURE
   ----------------------------------------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 15% 15%, #fce8f144 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, #ede8fd44 0%, transparent 45%),
    radial-gradient(circle at 55% 40%, #e5f9ef33 0%, transparent 35%);
}

/* -----------------------------------------
   NAV
   ----------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,240,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: 'Pixelify Sans', monospace;
  font-size: 20px; color: var(--lavender-dark);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .star {
  display: inline-block;
  animation: spin-star 10s linear infinite;
}
@keyframes spin-star { to { transform: rotate(360deg); } }

.nav-links {
  display: flex; gap: 4px; list-style: none; flex-wrap: wrap;
}
.nav-links a {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 5px 14px; border-radius: 20px;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--lavender-light);
  border-color: var(--lavender);
  color: var(--lavender-dark);
}

/* -----------------------------------------
   MARQUEE
   ----------------------------------------- */
.marquee-wrap {
  background: var(--lavender-dark);
  overflow: hidden; padding: 10px 0;
  border-top: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px; color: #fff;
  padding: 0 40px 0 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.marquee-sep { color: var(--pink); opacity: 0.8; }

/* -----------------------------------------
   PAGE WRAPPER
   ----------------------------------------- */
.page-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 52px 28px 96px;
}

/* -----------------------------------------
   SECTION HEADINGS
   ----------------------------------------- */
.section-header { margin-bottom: 32px; }
h1, h2, h3 { font-family: 'Pixelify Sans', monospace; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 {
  font-size: 28px; color: var(--text);
  display: flex; align-items: center; gap: 12px;
}
h2::after {
  content: '';
  flex: 1; height: 2px; margin-top: 3px;
  background: repeating-linear-gradient(
    90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px
  );
}
.section-sub {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px; font-style: italic;
  color: var(--text-muted); margin-top: 6px;
}

/* -----------------------------------------
   TAGS
   ----------------------------------------- */
.tag {
  font-family: 'Epilogue', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 12px;
  border: 1.5px solid transparent;
  display: inline-block;
}
.tag-pink     { background: var(--pink-light);     color: var(--pink-dark);     border-color: var(--pink); }
.tag-lavender { background: var(--lavender-light); color: var(--lavender-dark); border-color: var(--lavender); }
.tag-mint     { background: var(--mint-light);     color: var(--mint-dark);     border-color: var(--mint); }
.tag-sky      { background: var(--sky-light);      color: var(--sky-dark);      border-color: var(--sky); }

/* -----------------------------------------
   BUTTONS
   ----------------------------------------- */
.btn-primary {
  background: var(--lavender-dark); color: #fff;
  padding: 11px 24px; border-radius: 24px;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--lavender-dark);
  display: inline-block; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--lavender-dark);
  padding: 11px 24px; border-radius: 24px;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--lavender);
  display: inline-block; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-outline:hover { background: var(--lavender-light); transform: translateY(-2px); }

/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
footer {
  border-top: 2px dashed var(--border);
  padding: 28px; text-align: center;
  font-family: 'Epilogue', sans-serif;
  font-size: 12px; color: var(--text-muted);
}
footer a { color: var(--pink-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-chips {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.footer-chip {
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
  background: var(--lavender-light);
  color: var(--lavender-dark);
  border: 1px solid var(--lavender);
}

/* -----------------------------------------
   SPARKLE CURSOR
   ----------------------------------------- */
#sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.spark {
  position: absolute; font-size: 16px; line-height: 1;
  animation: spark-fly 2.5s ease-out forwards;
  pointer-events: none; user-select: none;
  font-weight: 700;
}
@keyframes spark-fly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}