/* Alternative themes, selected with ?theme=paper|terminal|dusk|blueprint
   (set as data-theme on <html> by the inline script in index.html).
   No data-theme = the default theme in style.css. */

/* ---------- shared: drop the gradient/aurora look ---------- */
[data-theme] .aurora{display:none}
[data-theme] h1 .grad{background:none;color:var(--a);animation:word 1.2s var(--ease) both;animation-delay:calc(var(--i)*110ms + 120ms)}
[data-theme] .progress{background:var(--a)}
[data-theme] .ind{background:var(--a);box-shadow:none}
[data-theme] .panel{background:var(--bg2)}
[data-theme] .card{background:var(--bg2)}
[data-theme] .card::before{background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(var(--ar),.7),transparent 45%)}
[data-theme] .mt .cat::before{box-shadow:none}
[data-theme] .bar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* ---------- Paper & Ink (light, editorial) ---------- */
[data-theme=paper]{
  color-scheme:light;
  --bg:#f4f1ea; --bg2:#fbf9f4; --fg:#1a1a18; --mut:#5c5a52; --dim:#8c897e;
  --line:rgba(26,26,24,.14); --line2:rgba(26,26,24,.32);
  --a:#d9381e; --b:#d9381e; --c:#1a1a18;
  --tint:26,26,24; --glass:251,249,244; --ar:217,56,30; --pulse:217,56,30;
  --gold:#b4530a; --ona:#fff; --opt:#fbf9f4; --thumb:#e9e5da; --barbg:rgba(251,249,244,.9);
  --r:6px;
  --head:Fraunces,Georgia,"Times New Roman",serif;
}
[data-theme=paper] .dots,[data-theme=paper] .noise{display:none}
[data-theme=paper] h1{font-weight:600;letter-spacing:-.025em}
[data-theme=paper] h1 .grad{font-style:italic}
[data-theme=paper] .works-head h2,[data-theme=paper] .card h3,[data-theme=paper] .panel h2{letter-spacing:-.01em}
[data-theme=paper] .bar{box-shadow:0 8px 24px -18px rgba(0,0,0,.35)}
[data-theme=paper] .card:hover{box-shadow:0 22px 40px -26px rgba(0,0,0,.35)}
[data-theme=paper] .card::after{display:none}
[data-theme=paper] .thumb{border-bottom:1px solid var(--line)}
[data-theme=paper] .card.featured .thumb{border-bottom:0;border-right:1px solid var(--line)}
[data-theme=paper] .thumb img.ok{filter:none}
[data-theme=paper] .bar,[data-theme=paper] .panel{border-radius:8px}
[data-theme=paper] .chip,[data-theme=paper] .ind,[data-theme=paper] input,[data-theme=paper] select,[data-theme=paper] .links a{border-radius:5px}
[data-theme=paper] .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--fg)}
[data-theme=paper] .avatar.lg{box-shadow:0 0 0 3px var(--bg2),0 0 0 4px var(--fg)}

/* ---------- Terminal (black, one phosphor accent, monospace) ---------- */
[data-theme=terminal]{
  --bg:#0a0a0a; --bg2:#111; --fg:#e8e6e1; --mut:#9a978f; --dim:#69665f;
  --a:#3ddc84; --b:#3ddc84; --c:#ffb000;
  --glass:10,10,10; --ar:61,220,132; --pulse:61,220,132;
  --gold:#ffb000; --ona:#0a0a0a; --opt:#111; --thumb:#111; --barbg:rgba(17,17,17,.9);
  --r:4px;
  --head:"JetBrains Mono",ui-monospace,"Cascadia Code",Consolas,monospace;
}
[data-theme=terminal] .noise{display:none}
[data-theme=terminal] h1{font-size:clamp(2rem,6.2vw,4rem);letter-spacing:-.05em}
[data-theme=terminal] h1::after{content:"_";color:var(--a);animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
[data-theme=terminal] .tagline::before{content:"> ";color:var(--a)}
[data-theme=terminal] .eyebrow,[data-theme=terminal] .mt,[data-theme=terminal] .chip,[data-theme=terminal] .tags span,
[data-theme=terminal] .count,[data-theme=terminal] .kicker,[data-theme=terminal] .soon-tag{font-family:var(--head)}
[data-theme=terminal] .chip{font-size:.8rem}
[data-theme=terminal] .card h3{font-size:1.05rem;letter-spacing:-.03em}
[data-theme=terminal] .card.featured h3{font-size:1.4rem}
[data-theme=terminal] .panel h2{letter-spacing:-.05em}
[data-theme=terminal] .bar,[data-theme=terminal] .panel,[data-theme=terminal] .chip,[data-theme=terminal] .ind,
[data-theme=terminal] input,[data-theme=terminal] select,[data-theme=terminal] .links a,[data-theme=terminal] .tags span,
[data-theme=terminal] .eyebrow,[data-theme=terminal] .soon-tag{border-radius:4px}
[data-theme=terminal] .card:hover{box-shadow:0 0 0 1px var(--a)}
[data-theme=terminal] .avatar,[data-theme=terminal] .avatar.lg{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--a)}

/* ---------- Dhaka Dusk (bottle green, cream, terracotta, mustard) ---------- */
[data-theme=dusk]{
  --bg:#0f2a22; --bg2:#143329; --fg:#f3ead7; --mut:#a9b8a6; --dim:#768a7c;
  --a:#e0613a; --b:#e2b23c; --c:#e0613a;
  --tint:243,234,215; --glass:15,42,34; --ar:224,97,58; --pulse:226,178,60;
  --gold:#e2b23c; --ona:#fff8ea; --opt:#143329; --thumb:#0c221c; --barbg:rgba(20,51,41,.88);
  --r:18px;
  --head:"Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif;
}
[data-theme=dusk] .dots{display:none}
[data-theme=dusk] h1{letter-spacing:-.035em}
[data-theme=dusk] h1 .grad{color:var(--b)}
[data-theme=dusk] .card:hover{box-shadow:0 28px 60px -30px rgba(0,0,0,.8)}
[data-theme=dusk] .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--b)}
[data-theme=dusk] .avatar.lg{box-shadow:0 0 0 3px var(--bg2),0 0 0 4px var(--b)}
[data-theme=dusk] .kicker{color:var(--b)}

/* ---------- Blueprint (cobalt, drawing grid, pale lines, yellow marker) ---------- */
[data-theme=blueprint]{
  --bg:#0b2a5b; --bg2:#0e3168; --fg:#fff; --mut:#b9cff0; --dim:#84a3d4;
  --line:rgba(159,208,255,.26); --line2:rgba(159,208,255,.55);
  --a:#ffd84a; --b:#9fd0ff; --c:#ffd84a;
  --glass:11,42,91; --ar:255,216,74; --pulse:255,216,74;
  --gold:#ffd84a; --ona:#0b2a5b; --opt:#0e3168; --thumb:#0a2550; --barbg:rgba(14,49,104,.92);
  --r:2px;
  --head:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
}
[data-theme=blueprint] .noise{display:none}
[data-theme=blueprint] .dots{
  background:
    linear-gradient(rgba(159,208,255,.10) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg,rgba(159,208,255,.10) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(rgba(159,208,255,.07) 1px,transparent 1px) 0 0/160px 160px,
    linear-gradient(90deg,rgba(159,208,255,.07) 1px,transparent 1px) 0 0/160px 160px;
  -webkit-mask-image:none;mask-image:none}
[data-theme=blueprint] h1{text-transform:uppercase;letter-spacing:0;font-size:clamp(3rem,9vw,6rem);line-height:.92}
[data-theme=blueprint] .works-head h2{text-transform:uppercase;letter-spacing:.04em;font-size:1.7rem}
[data-theme=blueprint] .card h3{font-size:1.5rem;letter-spacing:.01em;line-height:1.15}
[data-theme=blueprint] .card.featured h3{font-size:2.1rem}
[data-theme=blueprint] .panel h2{letter-spacing:0;text-transform:uppercase}
[data-theme=blueprint] .brand{letter-spacing:.02em;font-size:1.4rem}
[data-theme=blueprint] .bar,[data-theme=blueprint] .panel,[data-theme=blueprint] .chip,[data-theme=blueprint] .ind,
[data-theme=blueprint] input,[data-theme=blueprint] select,[data-theme=blueprint] .links a,[data-theme=blueprint] .tags span,
[data-theme=blueprint] .eyebrow,[data-theme=blueprint] .soon-tag{border-radius:2px}
[data-theme=blueprint] .card:hover{box-shadow:6px 6px 0 rgba(159,208,255,.25)}
[data-theme=blueprint] .avatar,[data-theme=blueprint] .avatar.lg{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--b)}
