:root{
  --bg: #0b0c10;
  --panel: #11131a;
  --panel2:#0f1016;
  --text:#eef0f6;
  --muted:#a9afc3;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 16px 40px rgba(0,0,0,0.35);

  --accent: #d7b44c;   /* gold */
  --accent2:#4bd2a6;   /* green */
  --radius: 18px;

  --max: 1120px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

:root[data-theme="light"]{
  --bg:#ffffff;
  --panel:#ffffff;
  --panel2:#fafafa;
  --text:#121212;
  --muted:#586074;
  --border: rgba(0,0,0,0.10);
  --shadow: 0 16px 40px rgba(0,0,0,0.08);
  --accent:#b08d2a;
  --accent2:#1f6f5b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{ margin:0; }

.container{ max-width: var(--max); margin:0 auto; padding: 0 18px; }

a{ color: inherit; text-decoration: none; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:0.95em; }

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.logo{
  width:40px; height:40px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 30%, transparent),
                                     color-mix(in oklab, var(--accent2) 22%, transparent));
  border:1px solid var(--border);
  letter-spacing:0.5px;
}
.brandText{ display:flex; flex-direction:column; line-height:1.05; }
.brandName{ font-size:15px; }
.brandSub{ font-size:12px; color: var(--muted); font-weight:650; }

.links{
  display:flex; align-items:center; gap: 8px;
  flex-wrap:wrap; justify-content:flex-end;
}
.links a{
  padding:8px 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.links a:hover{
  color: var(--text);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  border-color: var(--border);
}
.links a.active{
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
}
.pill{
  border:1px solid var(--border) !important;
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  color: var(--text) !important;
}
.iconBtn{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  color: var(--text);
  width:40px; height:40px;
  border-radius: 14px;
  cursor:pointer;
}
.iconBtn:hover{ transform: translateY(-1px); }

.hero{
  padding: 28px 0 10px 0;
  background:
    radial-gradient(900px 350px at 15% 10%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 60%),
    radial-gradient(900px 350px at 85% 0%,  color-mix(in oklab, var(--accent2) 18%, transparent), transparent 60%);
}

.heroGrid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: stretch;
}

.heroCard, .sideCard{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  padding: 18px;
}

.kicker{
  display:inline-block;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  padding:6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight:700;
}

h1, h2, h3{ margin: 10px 0 8px 0; letter-spacing: -0.3px; }
h1{ font-size: 40px; line-height: 1.07; }
.h1{ font-size: 40px; line-height: 1.07; margin:0 0 8px 0; }

.lede{
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
  max-width: 68ch;
}

.heroActions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px; }
.btn{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 25%, transparent),
    color-mix(in oklab, var(--panel2) 80%, transparent)
  );
}
.btn.danger{
  border-color: color-mix(in oklab, #ff5d5d 60%, var(--border));
  background: color-mix(in oklab, #ff5d5d 12%, var(--panel2));
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sideTitle{ font-weight: 850; margin-bottom: 8px; }
.sideList{ display:grid; gap:10px; }
.sideLink{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 750;
}
.sideLink:hover{ transform: translateY(-1px); }
.divider{ height:1px; background: var(--border); margin: 12px 0; }

.section{ padding: 18px 0; }
.section.alt{ background: color-mix(in oklab, var(--panel2) 70%, transparent); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.sectionHead{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 12px; flex-wrap:wrap;
  margin-bottom: 12px;
}

.sectionFoot{ margin-top: 12px; }
.muted{ color: var(--muted); }
.link{ text-decoration: underline; text-underline-offset: 3px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.grid2{ grid-template-columns: repeat(2, 1fr); }
.grid3{ grid-template-columns: repeat(3, 1fr); }

.card{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: none;
}
.card h3{ margin-top:0; }
.card p{ margin:0; line-height:1.45; }

.projectTop{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.projectTitle{ font-weight: 900; margin:0; }
.projectMeta{ display:flex; gap:6px; flex-wrap:wrap; margin-top: 10px; }
.tag{
  font-size: 12px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.projectLinks{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }
.mini{
  padding: 8px 10px;
  font-size: 13px;
}
.star{ color: var(--accent); font-weight: 900; }

.controls{
  display:grid;
  gap: 10px;
  margin-bottom: 12px;
}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--panel2) 80%, transparent);
  color: var(--text);
  outline:none;
}
.filterRow{ display:flex; gap:8px; flex-wrap:wrap; }

.empty{
  border:1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
}

.prose{ max-width: 920px; }
.list{ margin:0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

.form{ display:grid; gap:10px; margin-top: 10px; }
.label{ font-size: 13px; color: var(--muted); font-weight: 700; }
.note{
  border:1px solid color-mix(in oklab, var(--accent2) 45%, var(--border));
  background: color-mix(in oklab, var(--accent2) 10%, var(--panel2));
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
}

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.footer{
  border-top:1px solid var(--border);
  padding: 18px 0;
}
.footRow{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  h1, .h1{ font-size: 34px; }
}
