/* Base */
:root{
  --bg: #eef2f7; /* light grey for neumorphism */
  --fg: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --primary: #0ea5e9; /* sky-500 */
  --shadow-dark: rgba(0,0,0,0.12);
  --shadow-light: rgba(255,255,255,0.9);
  --radius: 18px;
  --gap: 1rem;
}
/* Dark theme variables */
[data-theme="dark"]{
  --bg: #333333; /* grey base */
  --fg: #e6e6e6; /* light grey text */
  --muted: #b0b0b0; /* muted grey */
  --primary: #a78bfa; /* purple accent */
  --shadow-dark: rgba(0,0,0,0.55);
  --shadow-light: rgba(255,255,255,0.08);
}
*{ box-sizing: border-box }
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{flex:1}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 1rem}

/* Neumorphism helpers */
.neu-surface{
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.neu-inset{
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: inset 10px 10px 18px var(--shadow-dark), inset -10px -10px 18px var(--shadow-light);
}

/* Header */
.site-header{position:sticky;top:0;z-index:10;background:transparent;backdrop-filter:saturate(180%) blur(8px)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 0}
.brand{display:flex;align-items:center;gap:0.6rem;padding:0.3rem 0.6rem;border-radius:12px}
.brand img{width:28px;height:28px;border-radius:8px;box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light)}
.brand span{font-weight:600}
.nav-toggle{display:none;border:0;background:var(--bg);padding:0.5rem 0.75rem;border-radius:12px;box-shadow:4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light)}
.nav-links{display:flex;gap:1rem;list-style:none}
.nav-links a{padding:0.5rem 0.75rem;border-radius:12px;box-shadow:4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);transition: filter .2s ease, box-shadow .2s ease}
.nav-links a:hover{filter:brightness(0.95)}
.nav-actions{display:flex;align-items:center;gap:0.5rem}
.theme-toggle{display:inline-block;padding:0.5rem 0.75rem;border-radius:12px;background:var(--bg);color:var(--fg);box-shadow:4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);border:0;font-weight:600;cursor:pointer}
.theme-toggle:active{box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light)}
@media (prefers-color-scheme: dark){
  [data-theme="dark"] .theme-toggle{background:#f4f4f5;color:#111}
}

/* Hero */
.hero{padding:5rem 0 3rem}
.hero-inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1rem}
.hero-logo{width:120px;height:120px;display:grid;place-items:center;padding:1rem}
.hero-logo img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(2px 4px 6px rgba(0,0,0,0.15))}
.title{font-size:clamp(1.8rem, 4vw, 3rem);margin:0.5rem 0 0}
.tagline{color:var(--muted);margin:0}
.hero-cta{display:flex;gap:0.75rem;margin-top:0.5rem}
.hero-cta .btn{font-size:1.1rem;padding:1rem 1.4rem}

/* Buttons */
.btn{display:inline-block;padding:0.7rem 1rem;border-radius:14px;font-weight:600;color:var(--fg);background:var(--bg);box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);border:0;-webkit-tap-highlight-color:transparent}
.btn:hover{transform:translateY(-1px)}
.btn{display:inline-block;padding:0.7rem 1rem;border-radius:14px;font-weight:600;color:var(--fg);background:var(--bg);box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;border:0;-webkit-tap-highlight-color:transparent}
.btn:focus,.btn:focus-visible{outline:none}
.btn::-moz-focus-inner{border:0}
button.btn{border:0}
.btn:hover{transform:translateY(-1px);filter:brightness(0.96)}
.btn:active{transform:translateY(0);box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light)}
.btn.alt{background:linear-gradient(145deg, #f2f6fb, #e2e8f0)}
.btn.primary{color:white;background:var(--primary);box-shadow:none}
[data-theme="dark"] .btn.alt{background:linear-gradient(145deg, #383838, #2e2e2e)}

/* Sections */
.section{padding:3rem 0}
.section.alt{background:linear-gradient(145deg, #f2f6fb, #e2e8f0)}
[data-theme="dark"] .section.alt{background:linear-gradient(145deg, #3a3a3f, #2f2f35)}
.section-title{margin:0 0 0.25rem;font-size:clamp(1.4rem,3vw,2rem)}
.section-subtitle{margin:0 0 1.5rem;color:var(--muted)}

/* Grid & Cards */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:1rem}
.card{grid-column: span 12; padding:1rem; border-radius:var(--radius); background:var(--bg); box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light)}
.card:hover{filter:brightness(0.98)}
.card .card-title{margin:0 0 0.25rem;font-weight:600}
.card .card-desc{margin:0 0 0.75rem;color:var(--muted)}
.card .actions{display:flex;flex-wrap:wrap;gap:0.5rem}
.badge{display:inline-block;font-size:0.8rem;color:#075985;background:#e0f2fe;padding:0.1rem 0.5rem;border-radius:999px}
.badge.wc{background:#e9eefc;color:#1e3a8a}
.badge.files{background:#f1f5f9;color:#334155}
.badge.module{color:#fff}
.badge.module.ma{background:#7c3aed}
.badge.module.eh{background:#fb923c;color:#111}
.badge.module.ai{background:#22c55e;color:#0a0a0a}
@media (prefers-color-scheme: dark){
  [data-theme="dark"] .badge{color:#e9d5ff;background:#2f2942}
}
/* Current week highlighting */
.card.current-week{outline: 3px solid #22c55e; outline-offset: 0}
.badge.current-week{color:#14532d;background:#dcfce7}

/* Inputs */
.input{width:100%;padding:0.7rem 0.9rem;border:none;outline:none;border-radius:14px;background:var(--bg);box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);}
.input:focus{box-shadow: inset 10px 10px 18px var(--shadow-dark), inset -10px -10px 18px var(--shadow-light), 0 0 0 2px rgba(167,139,250,0.35)}
.inline-form{display:flex;gap:0.5rem;align-items:center}
.inline-form .input{flex:1}

/* Helper */
.helper{margin-top:2rem}
.helper-inner{padding:1rem;border-radius:var(--radius)}
.hash-tool{display:flex;gap:0.5rem;margin:0.5rem 0}
.code{white-space:pre-wrap;word-break:break-all;background:var(--bg);padding:0.75rem;border-radius:12px;box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light)}

/* Footer */
.site-footer{padding:2rem 0}
.foot-inner{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;text-align:center}
.to-top{padding:0.5rem 0.75rem;border-radius:12px;box-shadow:4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light)}
.footer-links{display:inline-flex;align-items:center;gap:0.75rem}

/* Slim section for bottom link strip */
.section.slim{padding:1.25rem 0}

/* Accordions */
details.accordion{margin:0.75rem 0; padding:0.75rem; border-radius:var(--radius); background:var(--bg); box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light)}
details.accordion > summary{cursor:pointer; list-style:none; outline:none}
details.accordion > summary::-webkit-details-marker{display:none}
details.accordion > summary{display:flex; align-items:center; gap:.5rem}
details.accordion[open]{filter:brightness(0.995)}
/* removed pop outline */
/* duplicate cleared */

/* Responsive */
@media (min-width: 640px){
  .card{grid-column: span 6}
}
@media (min-width: 980px){
  .card{grid-column: span 4}
  .nav-toggle{display:none}
}
@media (max-width: 979px){
  .nav-toggle{display:inline-block}
  .nav-links{position:absolute;right:1rem;top:56px;background:var(--bg);padding:0.5rem;border-radius:12px;flex-direction:column;box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);display:none}
  .nav-links.open{display:flex}
}
