/* ============================================================
   anna_le — site stylesheet
   Shared across index.html, about.html, cv.html, research.html,
   art-process.html, project1–4.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=VT323&family=Space+Grotesk:wght@400;500;700&display=swap');

:root{
  /* palette */
  --bg:        #131b24;
  --bg-dot:    #1c2733;
  --green:     #9dff9e;
  --green-dim: #5fae6a;
  --pink:      #ff3d9a;
  --purple:    #8a5cf6;
  --purple-deep:#2a1750;
  --orange:    #ff9f4d;
  --sky:       #7fd4ff;
  --yellow:    #ffd23f;
  --teal:      #43e0c9;
  --bark:      #6b4a8a;
  --cream:     #eef4ee;

  /* type */
  --mono:    'VT323', monospace;
  --display: 'Bungee', system-ui;
  --body:    'Space Grotesk', system-ui;

  /* layout */
  --max-w: 1100px;
  --gap:   28px;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  background-color:var(--bg);
  background-image:radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size:14px 14px;
  color:var(--cream);
  font-family:var(--body);
  line-height:1.55;
}

/* cursor:none is opt-in — main.js adds this class only once it has
   successfully built the custom cursor, so a script/image failure
   falls back to the normal cursor instead of hiding it entirely */
html.custom-cursor-active body{ cursor:none; }

@media (max-width:820px){
  html.custom-cursor-active body{ cursor:auto; }
}

a{ color:inherit; }
img{ max-width:100%; display:block; }

/* ------------------------------------------------------------
   custom cursor (uses cursor.png — place it next to the HTML files)
   ------------------------------------------------------------ */
#cursor{
  position:fixed; top:0; left:0;
  width:28px; height:28px;
  background-image:url('cursor.png');
  background-size:contain;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .15s ease, height .15s ease, opacity .15s ease;
  mix-blend-mode:normal;
}
#cursor.active{ width:42px; height:42px; }

@media (max-width:820px){
  #cursor{ display:none; }
}

/* ------------------------------------------------------------
   ticker marquee — reusable ambient strip
   ------------------------------------------------------------ */
.ticker-wrap{
  width:100%;
  background:repeating-linear-gradient(135deg, var(--green) 0 10px, var(--pink) 10px 20px);
  padding:2px 0;
}
.ticker{
  background:var(--purple-deep);
  color:var(--green);
  font-family:var(--mono);
  font-size:1.15rem;
  letter-spacing:.08em;
  white-space:nowrap;
  overflow:hidden;
  padding:6px 0;
  border-top:2px solid var(--bg);
  border-bottom:2px solid var(--bg);
}
.ticker span{
  display:inline-block;
  padding-left:100%;
  animation:ticker-scroll 24s linear infinite;
}
@keyframes ticker-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ------------------------------------------------------------
   site header / nav
   ------------------------------------------------------------ */
header.nav{
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 40px;
  flex-wrap:wrap; gap:14px;
}
.logo{
  font-family:var(--display); font-size:1.1rem;
  color:var(--green); letter-spacing:.03em;
  text-decoration:none;
}
.logo span{ color:var(--pink); }

nav.links{
  font-family:var(--mono); font-size:1.2rem;
  display:flex; gap:26px; flex-wrap:wrap;
}
nav.links a{
  text-decoration:none; color:var(--cream);
  position:relative; padding-bottom:2px;
  cursor:none;
}
nav.links a:hover,
nav.links a[aria-current="page"]{ color:var(--green); }
nav.links a[aria-current="page"]::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px;
  height:2px; background:var(--pink);
}

@media (max-width:820px){
  nav.links a{ cursor:auto; }
}

/* ------------------------------------------------------------
   page shell / sections
   ------------------------------------------------------------ */
.page{
  max-width:var(--max-w);
  margin:0 auto;
  padding:20px 40px 100px;
}

.eyebrow{
  display:flex; align-items:baseline; gap:14px;
  margin-bottom:10px;
}
.eyebrow h1, .eyebrow h2{
  font-family:var(--display);
  font-size:1.5rem;
  margin:0;
}
.eyebrow .path{
  font-family:var(--mono); font-size:1.3rem; color:var(--green-dim);
}

.section{
  margin-top:64px;
  padding-top:36px;
  border-top:2px dashed rgba(255,255,255,.12);
}
.section:first-of-type{ border-top:none; margin-top:24px; padding-top:0; }

h1, h2, h3{ font-family:var(--display); font-weight:400; line-height:1.3; }
h1{ font-size:2rem; }
h2{ font-size:1.4rem; color:var(--pink); }
h3{ font-size:1.1rem; color:var(--sky); }

p{ max-width:65ch; color:#dfeee1; }
p.lede{ font-size:1.2rem; color:var(--cream); }

.tag{
  display:inline-block;
  font-family:var(--mono); font-size:1.1rem;
  color:var(--green-dim); letter-spacing:.04em;
  margin-bottom:6px;
}

/* ------------------------------------------------------------
   buttons / links
   ------------------------------------------------------------ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:1.1rem;
  color:var(--bg); background:var(--green);
  padding:8px 18px;
  text-decoration:none;
  border:2px solid var(--bg);
  box-shadow:4px 4px 0 rgba(0,0,0,.4);
  transition:transform .12s ease;
  cursor:none;
}
.btn:hover{ transform:translate(-2px,-2px); }
.btn.btn-outline{
  background:transparent; color:var(--cream);
  border-color:var(--green-dim);
  box-shadow:none;
}

@media (max-width:820px){
  .btn{ cursor:auto; }
}

/* ------------------------------------------------------------
   cards — project / file-browser style
   ------------------------------------------------------------ */
.files{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:26px;
  margin-top:26px;
}
.file-card{
  background:#1a2531;
  border:2px solid var(--green-dim);
  padding:14px 14px 16px;
  text-decoration:none;
  color:inherit;
  display:block;
  transform:rotate(var(--r,0deg));
  box-shadow:5px 5px 0 rgba(0,0,0,.35);
  transition:transform .18s ease, border-color .18s ease;
  cursor:none;
}
.file-card:nth-child(4n+1){ --r:-2deg; }
.file-card:nth-child(4n+2){ --r:1.5deg; }
.file-card:nth-child(4n+3){ --r:-1deg; }
.file-card:nth-child(4n+4){ --r:2deg; }
.file-card:hover{ transform:rotate(0deg) translateY(-4px); border-color:var(--green); }

.file-thumb{
  aspect-ratio:1/1;
  background:linear-gradient(135deg, var(--purple), var(--purple-deep));
  margin-bottom:10px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); color:var(--green); font-size:2.2rem;
  overflow:hidden;
}
.file-thumb img{ width:100%; height:100%; object-fit:cover; }
.file-name{ font-family:var(--mono); font-size:1.1rem; color:var(--cream); }
.file-meta{ font-family:var(--mono); font-size:.9rem; color:var(--green-dim); }

@media (max-width:820px){
  .file-card{ cursor:auto; }
}

/* ------------------------------------------------------------
   sticky note callout (reused from the video-player motif)
   ------------------------------------------------------------ */
.sticky-note{
  display:inline-block;
  background:var(--pink); color:#2a0016;
  font-family:var(--mono); font-size:1rem; line-height:1.2;
  padding:10px 14px;
  transform:rotate(-2deg);
  box-shadow:3px 3px 0 rgba(0,0,0,.4);
}

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */
footer.site-footer{
  text-align:center; font-family:var(--mono); color:var(--green-dim);
  padding:30px 0 50px; font-size:1.1rem;
}

/* ------------------------------------------------------------
   ambient falling petals (opt-in via <body data-petals>)
   ------------------------------------------------------------ */
.petal-fall{
  position:fixed; top:-20px; font-size:14px;
  animation:petal-fall-anim linear infinite;
  z-index:1; opacity:.7; pointer-events:none;
}
@keyframes petal-fall-anim{
  0%{ transform:translateY(0) rotate(0deg); }
  100%{ transform:translateY(110vh) rotate(360deg); }
}

/* ------------------------------------------------------------
   focus visibility (accessibility floor)
   ------------------------------------------------------------ */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--green);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}