@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

:root{
  --bg: #0b0d12;
  --text: #e9ecf4;
  --muted: #b3bad1;
  --border: rgba(255,255,255,0.10);
  --accent: #7aa2ff;
  --max: 980px;
  --radius: 12px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a{ color: inherit; }
a:hover{ opacity: 0.9; }

code, pre{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(11,13,18,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a{
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius);
}

.nav-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-links a[aria-current="page"]{
  color: var(--text);
  background: rgba(122,162,255,0.14);
  border: 1px solid rgba(122,162,255,0.22);
}

/* Index hero */
.hero{
  padding: 56px 0 40px;
}

.hero h1{
  margin: 0 0 10px 0;
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-weight: 500;
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Buttons */
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.button:hover{
  background: rgba(255,255,255,0.07);
}

.button.primary{
  background: rgba(122,162,255,0.16);
  border-color: rgba(122,162,255,0.32);
}

/* CV page (supports your existing cv.html) */
.cv{
  padding: 28px 0 46px;
}

.cv-header{
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.entry{
  margin-top: 16px;
}

.entry-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.entry h3{
  margin: 0;
  font-size: 1.05rem;
}

.meta{
  margin: 0;
  color: var(--muted);
}

.bullets{
  margin: 10px 0 0 18px;
  padding: 0;
}

.bullets li{
  margin: 6px 0;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: rgba(255,255,255,0.02);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover{
  color: var(--text);
}

/* Print (CV) */
@media print{
  :root{
    --bg:#fff; --text:#000; --muted:#222; --border:#ccc; --accent:#000;
  }
  body{ background:#fff; color:#000; }
  .site-header, .site-footer { display:none !important; }
  a{ color:#000; text-decoration:none; }
}

