/* sample stylesheet - final site will compile this from Tailwind/daisyUI at deploy */
:root{
  --bg:#101014; --panel:#17171c; --line:#2a2a32;
  --text:#e8e8ec; --muted:#9a9aa4; --accent:#d4a373;
}
body.accent-tech{--accent:#8fce9a}
body.accent-journal{--accent:#e3a8b0}
body.accent-gallery{--accent:#b9a7e6}
body.accent-reachout{--accent:#9fc3e8}
body.accent-projects{--accent:#e0b872}
*{box-sizing:border-box; margin:0; padding:0}
body{background:var(--bg); color:var(--text); font-family:Inter,system-ui,sans-serif;
     font-size:16px; line-height:1.7; -webkit-font-smoothing:antialiased}
.wrap{max-width:760px; margin:0 auto; padding:0 24px}
.wrap-wide{max-width:1060px; margin:0 auto; padding:0 24px}
a{color:inherit; text-decoration:none}
.mono{font-family:'JetBrains Mono',monospace}

nav{border-bottom:1px solid var(--line)}
nav .row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 24px}
.logo{font-family:Fraunces,serif; font-size:19px}
.logo span{color:var(--accent)}
.nav-right{display:flex; align-items:center; gap:22px}
.nav-links{display:flex; gap:24px; font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--muted)}
.nav-links a{position:relative; padding:4px 0; transition:color .2s}
.nav-links a:hover{color:var(--text)}
.nav-links a.active{color:var(--accent)}
.nav-links a.active::after{content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px; background:var(--accent)}
.nav-search input{background:var(--panel); border:1px solid var(--line); border-radius:99px;
  padding:7px 15px; color:var(--text); font-family:'JetBrains Mono',monospace; font-size:12px;
  width:120px; transition:width .3s, border-color .2s}
.nav-search input:focus{width:180px; border-color:var(--accent); outline:none}
.nav-search input::placeholder{color:var(--muted)}

.hero{padding:80px 0 56px}
.hero .eyebrow{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--accent);
  letter-spacing:.16em; text-transform:uppercase; margin-bottom:20px}
.hero h1{font-family:Fraunces,serif; font-weight:600; font-size:clamp(40px,7vw,62px);
  line-height:1.12; letter-spacing:-.01em}
.hero h1 em{font-style:italic; font-weight:400; color:var(--accent)}
.hero p{margin-top:26px; color:var(--muted); max-width:560px; font-size:17px}
.hero p b{color:var(--text); font-weight:500}

section{padding:40px 0}
.sec-head{display:flex; align-items:baseline; justify-content:space-between;
  border-top:1px solid var(--line); padding-top:18px; margin-bottom:24px}
.sec-head h2{font-family:Fraunces,serif; font-weight:600; font-size:22px}
.sec-head a{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--muted)}
.sec-head a:hover{color:var(--accent)}

.currently{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:24px 26px}
.currently .label{font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--accent); margin-bottom:14px}
.currently ul{list-style:none}
.currently li{display:flex; gap:14px; padding:7px 0; font-size:15px; color:var(--muted)}
.currently li .k{font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--text); min-width:118px}
.currently li i{color:var(--text); font-style:normal}

.page-head{padding:64px 0 40px}
.page-head .kicker{font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--accent); margin-bottom:16px}
.page-head h1{font-family:Fraunces,serif; font-weight:600; font-size:clamp(36px,6vw,52px)}
.page-head p{margin-top:14px; color:var(--muted); font-size:16px}
.page-head .rule{margin-top:28px; height:1px; background:var(--line); width:38%}

.post{display:flex; align-items:baseline; gap:18px; padding:15px 14px; margin:0 -14px;
  border-radius:10px; transition:background .2s}
.post:hover{background:var(--panel)}
.post .tag{font-family:'JetBrains Mono',monospace; font-size:11px; padding:3px 9px; border-radius:99px;
  flex-shrink:0; min-width:64px; text-align:center}
.tag.tech{color:#8fce9a; background:rgba(76,166,96,.12)}
.tag.journal{color:#e3a8b0; background:rgba(214,110,130,.12)}
.tag.project{color:#e0b872; background:rgba(224,184,114,.12)}
.post .title{font-weight:500; font-size:16px}
.post:hover .title{color:var(--accent)}
.post .date{margin-left:auto; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--muted); flex-shrink:0}

.proj{display:block; border:1px solid var(--line); border-radius:14px; background:var(--panel);
  padding:26px 28px; margin-bottom:16px; transition:transform .25s, border-color .25s, box-shadow .25s}
.proj:hover{transform:translateY(-3px); border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(224,184,114,.12), 0 10px 34px rgba(224,184,114,.07)}
.proj .meta{display:flex; gap:12px; font-family:'JetBrains Mono',monospace; font-size:11px; margin-bottom:10px}
.proj .meta .stack{color:var(--muted)}
.proj .meta .status{color:var(--accent)}
.proj h3{font-family:Fraunces,serif; font-weight:600; font-size:22px}
.proj h3 span{color:var(--muted); font-weight:400; font-size:15px; margin-left:10px}
.proj p{color:var(--muted); font-size:15px; margin-top:8px; max-width:620px}
.proj .go{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--accent); margin-top:14px; display:inline-block}

.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.shot{position:relative; border-radius:12px; overflow:hidden; aspect-ratio:4/5}
.shot img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s}
.shot:hover img{transform:scale(1.04)}
.shot .cap{position:absolute; inset:auto 0 0 0; padding:26px 12px 10px; font-size:12px; color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.65)); opacity:0; transition:opacity .25s}
.shot:hover .cap{opacity:1}

.masonry{column-count:3; column-gap:14px}
.masonry .item{break-inside:avoid; margin-bottom:14px; border-radius:12px; overflow:hidden;
  background:var(--panel); border:1px solid var(--line)}
.masonry img{width:100%; display:block; transition:opacity .25s}
.masonry .item:hover img{opacity:.88}
.masonry .item .cap{padding:10px 12px; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--muted);
  display:flex; justify-content:space-between}

.prose{font-size:17px; line-height:1.85; color:#d6d6dd}
.prose p{margin:22px 0}
.prose h2{font-family:Fraunces,serif; font-weight:600; font-size:26px; margin:44px 0 8px; color:var(--text)}
.prose blockquote{border-left:2px solid var(--accent); padding:4px 0 4px 20px; margin:26px 0;
  color:var(--muted); font-style:italic; font-family:Fraunces,serif; font-size:19px}
.prose pre{background:#0c0c10; border:1px solid var(--line); border-radius:10px; padding:18px 20px;
  overflow-x:auto; font-family:'JetBrains Mono',monospace; font-size:13.5px; line-height:1.6;
  color:#8fce9a; margin:26px 0}
.prose code{font-family:'JetBrains Mono',monospace; font-size:.9em; color:#8fce9a}
.prose .ascii{font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--muted);
  background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:18px;
  white-space:pre; overflow-x:auto; margin:26px 0; line-height:1.5}

.back{display:inline-block; margin:44px 0 60px; font-family:'JetBrains Mono',monospace;
  font-size:13px; color:var(--muted)}
.back:hover{color:var(--accent)}

footer{border-top:1px solid var(--line); margin-top:40px; padding:34px 0 48px;
  color:var(--muted); font-size:14px}
footer .row{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px}
footer a{color:var(--text)}
footer a:hover{color:var(--accent)}
footer .note{font-family:'JetBrains Mono',monospace; font-size:12px}

.card{background:var(--panel); border:1px solid var(--line); border-radius:14px;
  padding:56px 40px; text-align:center; margin-top:8px; position:relative; overflow:hidden}
.card h1{font-family:Fraunces,serif; font-weight:600; font-size:42px; position:relative}
.card p{color:var(--muted); margin-top:18px; max-width:440px; margin-left:auto; margin-right:auto; position:relative}
.card .mail{display:inline-block; margin-top:30px; font-family:'JetBrains Mono',monospace;
  font-size:16px; color:var(--accent); border:1px solid var(--accent); border-radius:99px;
  padding:12px 28px; position:relative; transition:background .2s}
.card .mail:hover{background:rgba(159,195,232,.08)}
.card .small{font-size:13px; margin-top:22px; position:relative}

/* ---------- animations, one style per tab ---------- */
@keyframes rise{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
@keyframes glow{0%,100%{text-shadow:0 0 0 rgba(212,163,115,0)} 50%{text-shadow:0 0 26px rgba(212,163,115,.45)}}
@keyframes blink{0%,49%{opacity:1} 50%,100%{opacity:0}}
@keyframes kenburns{from{transform:scale(1.09)} to{transform:scale(1)}}
@keyframes pulsering{0%{box-shadow:0 0 0 0 rgba(159,195,232,.30)} 70%{box-shadow:0 0 0 16px rgba(159,195,232,0)} 100%{box-shadow:0 0 0 0 rgba(159,195,232,0)}}
@keyframes drift{0%,100%{transform:translate(0,0)} 50%{transform:translate(6px,-16px)}}
@keyframes twinkle{0%,100%{opacity:.15} 50%{opacity:.85}}
@keyframes breathe{0%,100%{opacity:.5} 50%{opacity:.9}}

/* home: warm glow breathing on the name + sections rise in */
body.accent-home .hero h1 em{animation:glow 5s ease-in-out infinite}
body.accent-home::before{content:''; position:fixed; top:-160px; right:-160px; width:560px; height:560px;
  border-radius:50%; background:radial-gradient(circle, rgba(212,163,115,.07), transparent 70%);
  pointer-events:none; animation:breathe 7s ease-in-out infinite}
body .hero{animation:rise .7s ease-out both}
body section{animation:rise .7s ease-out both}
body section:nth-of-type(2){animation-delay:.12s}
body section:nth-of-type(3){animation-delay:.22s}
body section:nth-of-type(4){animation-delay:.32s}

/* tech: terminal cursor blinking after the heading */
body.accent-tech .page-head h1::after{content:'▮'; color:var(--accent); margin-left:10px;
  animation:blink 1.1s step-end infinite}

/* journal: entries appear one by one, like ink settling */
body.accent-journal .post{animation:rise .6s ease-out both}
body.accent-journal .post:nth-child(1){animation-delay:.05s}
body.accent-journal .post:nth-child(2){animation-delay:.1s}
body.accent-journal .post:nth-child(3){animation-delay:.15s}
body.accent-journal .post:nth-child(4){animation-delay:.2s}
body.accent-journal .post:nth-child(5){animation-delay:.25s}
body.accent-journal .post:nth-child(n+6){animation-delay:.3s}

/* gallery: photos settle from a slight zoom (ken burns) on load */
body.accent-gallery .masonry img{animation:kenburns 1.6s ease-out both}

/* reach out: mail button pulses a soft ring, fireflies drift */
body.accent-reachout .card .mail{animation:pulsering 3.2s ease-out infinite}
.ff{position:absolute; width:3px; height:3px; border-radius:50%; background:#9fc3e8;
  animation:drift 8s ease-in-out infinite, twinkle 8s ease-in-out infinite}
.ff:nth-of-type(1){left:12%; top:20%; animation-delay:0s}
.ff:nth-of-type(2){left:28%; top:64%; animation-delay:1.2s}
.ff:nth-of-type(3){left:55%; top:16%; animation-delay:2.4s}
.ff:nth-of-type(4){left:72%; top:58%; animation-delay:.7s}
.ff:nth-of-type(5){left:86%; top:28%; animation-delay:3.1s}
.ff:nth-of-type(6){left:40%; top:80%; animation-delay:1.8s}

/* projects: cards rise in staggered, lift on hover (hover glow in .proj rules) */
body.accent-projects .proj{animation:rise .6s ease-out both}
body.accent-projects .proj:nth-of-type(1){animation-delay:.05s}
body.accent-projects .proj:nth-of-type(2){animation-delay:.14s}
body.accent-projects .proj:nth-of-type(3){animation-delay:.23s}
body.accent-projects .proj:nth-of-type(4){animation-delay:.32s}
body.accent-projects .proj:nth-of-type(5){animation-delay:.41s}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important}
}

@media (max-width:820px){
  .nav-search{display:none}
  .nav-links{gap:16px; font-size:12px}
}
@media (max-width:640px){
  .hero{padding:52px 0 36px}
  nav .row{padding:18px 20px}
  .nav-links{gap:12px; font-size:11px}
  .post{flex-wrap:wrap}
  .post .date{margin-left:0; width:100%; padding-left:88px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .masonry{column-count:2}
  .card{padding:40px 22px}
  .currently li .k{min-width:96px}
  .proj{padding:20px 20px}
}

/* ---------- global ambient fireflies (faint, warm, all pages) ---------- */
.ambient{position:fixed; inset:0; z-index:-1; pointer-events:none}
.ambient i{position:absolute; width:3px; height:3px; border-radius:50%; background:#d4a373; opacity:0;
  animation:gdrift 12s ease-in-out infinite, gtwinkle 12s ease-in-out infinite}
@keyframes gdrift{0%,100%{transform:translate(0,0)} 50%{transform:translate(12px,-24px)}}
@keyframes gtwinkle{0%,100%{opacity:0} 50%{opacity:.30}}
.ambient i:nth-of-type(1){left:8%;  top:18%; animation-delay:0s}
.ambient i:nth-of-type(2){left:22%; top:70%; animation-delay:2s}
.ambient i:nth-of-type(3){left:38%; top:34%; animation-delay:5s}
.ambient i:nth-of-type(4){left:52%; top:80%; animation-delay:3s}
.ambient i:nth-of-type(5){left:64%; top:14%; animation-delay:7s}
.ambient i:nth-of-type(6){left:76%; top:56%; animation-delay:1.4s}
.ambient i:nth-of-type(7){left:88%; top:38%; animation-delay:4.4s}
.ambient i:nth-of-type(8){left:30%; top:8%;  animation-delay:6.2s}
.ambient i:nth-of-type(9){left:70%; top:90%; animation-delay:8s}

/* ---------- journal: falling leaves (its own signature) ---------- */
.leaves{position:fixed; inset:0; z-index:-1; pointer-events:none}
.leaves i{position:absolute; top:-24px; width:6px; height:9px;
  border-radius:62% 38% 62% 38%; background:rgba(227,168,176,.45);
  animation:fall linear infinite}
@keyframes fall{0%{transform:translateY(-24px) rotate(0deg)}
  100%{transform:translateY(112vh) rotate(320deg)}}
.leaves i:nth-of-type(1){left:10%; animation-duration:16s; animation-delay:0s}
.leaves i:nth-of-type(2){left:26%; animation-duration:21s; animation-delay:6s}
.leaves i:nth-of-type(3){left:41%; animation-duration:14s; animation-delay:3s}
.leaves i:nth-of-type(4){left:57%; animation-duration:19s; animation-delay:9s}
.leaves i:nth-of-type(5){left:70%; animation-duration:15s; animation-delay:1.5s}
.leaves i:nth-of-type(6){left:83%; animation-duration:23s; animation-delay:7.5s}
.leaves i:nth-of-type(7){left:92%; animation-duration:18s; animation-delay:11s}

/* ---------- the letter (subscribe box) ---------- */
.letter{padding:8px 0 64px}
.letterbox{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:34px 32px}
.letterbox .label{font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--accent)}
.letterbox h2{font-family:Fraunces,serif; font-weight:600; font-size:26px; margin-top:10px}
.letterbox p{color:var(--muted); font-size:15px; margin-top:8px}
.letterbox form{display:flex; gap:10px; margin-top:22px; max-width:440px}
.letterbox input{flex:1; background:#0c0c10; border:1px solid var(--line); border-radius:99px;
  padding:12px 18px; color:var(--text); font-family:'JetBrains Mono',monospace; font-size:14px; min-width:0}
.letterbox input:focus{border-color:var(--accent); outline:none}
.letterbox button{background:var(--accent); color:#101014; border:0; border-radius:99px;
  padding:12px 26px; font-weight:600; font-size:14px; cursor:pointer; font-family:Inter,sans-serif}
.letterbox button:hover{filter:brightness(1.1)}
.sub-ok{color:var(--accent); font-size:13px; margin-top:14px}
@media (max-width:640px){.letterbox{padding:26px 20px}}

/* ---------- markdown article extras ---------- */
.prose h1{font-family:Fraunces,serif; font-weight:600; font-size:30px; margin:40px 0 10px; color:var(--text)}
.prose h3{font-family:Fraunces,serif; font-weight:600; font-size:21px; margin:32px 0 6px; color:var(--text)}
.prose a{color:var(--accent); text-decoration:underline; text-underline-offset:3px}
.prose ul,.prose ol{margin:20px 0 20px 26px}
.prose li{margin:6px 0}
.prose img{max-width:100%; border-radius:10px; margin:20px 0}
.prose hr{border:0; border-top:1px solid var(--line); margin:34px 0}
.prose table{border-collapse:collapse; margin:22px 0}
.prose th,.prose td{border:1px solid var(--line); padding:8px 12px; font-size:15px}
.empty{text-align:center; padding:70px 0; color:var(--muted)}
.empty .big{font-family:Fraunces,serif; font-size:28px; color:var(--text); margin-bottom:10px}
