/* ============================================================
   dradityax — shared styles v2
   Deep near-black + a single warm signature-gold accent.
   Glass "bento" cards, a subtle floating wireframe background,
   and a persistent corner cat mascot tie every page together.
   ============================================================ */

:root{
  --bg: #060809;
  --bg-elevated: #101318;
  --bg-raised: #14181e;
  --text: #f5f5f7;
  --text-muted: #97a3af;
  --text-faint: #5c6773;
  --accent: #e3b15c;
  --accent-soft: rgba(227,177,92,.14);
  --line: rgba(255,255,255,.09);
  --radius: 22px;
  --max-w: 920px;
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
  #cube-canvas{ display:none; }
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  position:relative;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:'Fraunces',serif;
  font-weight:560;
  letter-spacing:-.01em;
  margin:0 0 .4em;
  color:var(--text);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--max-w); margin:0 auto; padding:0 24px; }

/* ---------- wireframe cube background (subtle, all pages) ---------- */
#cube-canvas{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none;
}

/* ---------- intro splash (plays briefly on every page load) ---------- */
#intro{
  position:fixed; inset:0; z-index:9999;
  background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  animation:exitIntro .6s var(--ease) forwards 1.5s;
}
#intro .signature{
  font-family:'Parisienne',cursive;
  font-size:clamp(38px,7vw,58px);
  color:var(--accent);
  opacity:0; transform:translateY(8px);
  animation:introIn .7s var(--ease) forwards .15s;
}
#intro .sub{
  font-size:12px; letter-spacing:.28em; text-transform:uppercase;
  color:var(--text-faint); margin-top:10px;
  opacity:0;
  animation:introIn .6s var(--ease) forwards .6s;
}
@keyframes introIn{ to{ opacity:1; transform:none; } }
@keyframes exitIntro{ to{ opacity:0; visibility:hidden; pointer-events:none; } }

/* ---------- page content ---------- */
#app{
  position:relative; z-index:10;
  opacity:0;
  animation:showApp .8s var(--ease) forwards 1.7s;
}
@keyframes showApp{ to{ opacity:1; } }

/* ---------- nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:40;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  background:rgba(6,8,9,.6);
  border-bottom:1px solid var(--line);
}
.site-nav .wrap{
  max-width:var(--max-w);
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
}
.brand{ font-family:'Parisienne',cursive; font-size:26px; color:var(--accent); }
.nav-links{ display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.nav-links a{ font-size:14px; color:var(--text-muted); transition:color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--text); }

/* ---------- hero ---------- */
.hero{ max-width:var(--max-w); margin:0 auto; padding:64px 24px 8px; }
.hero h1{ font-size:clamp(32px,5vw,46px); }
.hero .lede{ font-size:17px; color:var(--text-muted); max-width:56ch; }

/* ---------- bento grid of glass cards ---------- */
.bento{
  max-width:var(--max-w); margin:32px auto; padding:0 24px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:18px;
}
.card{
  background:rgba(20,24,30,.55);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  transition:transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card.wide{ grid-column:span 2; }
.card.link-card{ cursor:pointer; }
.card.link-card:hover{ border-color:rgba(227,177,92,.35); background:rgba(24,28,35,.7); transform:translateY(-2px); }
.card-tag{ font-size:12px; color:var(--text-faint); margin-bottom:8px; }
.card-title{ font-family:'Fraunces',serif; font-size:22px; font-weight:560; }
.card-desc{ font-size:14.5px; color:var(--text-muted); margin-top:8px; line-height:1.6; }
.card-arrow{ display:inline-block; margin-top:14px; font-size:13px; color:var(--accent); }

@media (max-width:640px){
  .bento{ grid-template-columns:1fr; }
  .card.wide{ grid-column:span 1; }
}

.links-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.links-row a{
  font-size:13.5px; color:var(--text-muted);
  border:1px solid var(--line); border-radius:999px;
  padding:8px 15px;
  transition:border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.links-row a:hover{ border-color:var(--accent); color:var(--text); transform:translateY(-1px); }

/* ---------- generic sections / dividers (cv + journal pages) ---------- */
section{ position:relative; z-index:10; max-width:var(--max-w); margin:0 auto; padding:28px 24px; }
.section-title{ font-size:22px; margin-bottom:14px; }
.divider{ max-width:var(--max-w); margin:12px auto; padding:0 24px; position:relative; z-index:10; }
.divider svg{ width:100%; height:18px; display:block; }
.divider path{ fill:none; stroke:var(--line); stroke-width:1.5; }
.pulse-path.animate{
  stroke:var(--accent);
  stroke-dasharray:900; stroke-dashoffset:900;
  animation:draw-pulse 1.8s var(--ease) forwards;
  filter:drop-shadow(0 0 5px var(--accent-soft));
}
@keyframes draw-pulse{ to{ stroke-dashoffset:0; } }

.stack{ display:flex; flex-direction:column; gap:14px; }

footer{ position:relative; z-index:10; max-width:var(--max-w); margin:40px auto 130px; padding:24px; color:var(--text-faint); font-size:13px; }

/* ---------- CV / timeline ---------- */
.timeline{ list-style:none; margin:0; padding:0; border-left:1.5px solid var(--line); }
.timeline li{ position:relative; padding:2px 0 26px 26px; }
.timeline li::before{
  content:''; position:absolute; left:-5.5px; top:6px;
  width:9px; height:9px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);
}
.timeline .when{ font-size:13px; color:var(--text-faint); }
.timeline h3{ font-size:18px; margin:2px 0 4px; }
.timeline p{ color:var(--text-muted); margin:0; }
.edit-note{
  font-size:12.5px; color:var(--text-faint); border-left:2px solid var(--accent-soft);
  padding-left:10px; margin-top:6px;
}

/* ---------- journal ---------- */
.entry{ padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid var(--line); }
.entry:last-child{ border-bottom:none; }
.entry .when{ font-size:13px; color:var(--text-faint); }
.entry h2{ font-size:22px; margin:4px 0 8px; }
.entry .body{ color:var(--text-muted); white-space:pre-line; }
.empty-state{ color:var(--text-faint); font-style:italic; }

/* ---------- persistent cat mascot (Lottie, every page) ---------- */
#cat-mascot{
  position:fixed; bottom:18px; right:18px;
  width:150px; height:150px; z-index:45;
  pointer-events:none;
  background:radial-gradient(circle, rgba(227,177,92,.14) 0%, rgba(227,177,92,.04) 50%, transparent 72%);
  border-radius:50%;
}
@media (max-width:640px){ #cat-mascot{ width:110px; height:110px; bottom:12px; right:8px; } }

/* ---------- floating music player ---------- */
.player{
  position:fixed; left:18px; bottom:18px; z-index:50;
  background:var(--bg-raised); border:1px solid var(--line);
  border-radius:999px; padding:8px 10px 8px 8px;
  display:flex; align-items:center; gap:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  backdrop-filter:blur(10px);
}
.player button{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line); background:var(--bg-elevated); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:14px;
  transition:border-color .2s var(--ease);
}
.player button:hover{ border-color:var(--accent); }
.player .meta{ font-size:12.5px; color:var(--text-muted); max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player.playing .bars span{ animation:eq 1s ease-in-out infinite; }
.player .bars{ display:flex; gap:2px; align-items:flex-end; height:14px; }
.player .bars span{ width:2.5px; background:var(--accent); height:4px; animation-play-state:paused; }
.player .bars span:nth-child(2){ animation-delay:.15s; }
.player .bars span:nth-child(3){ animation-delay:.3s; }
@keyframes eq{ 0%,100%{ height:4px; } 50%{ height:14px; } }

::view-transition-old(root), ::view-transition-new(root){ animation-duration:.35s; }
