:root {
  --primary: #3b1f61;
  --bg-light: #f7f6f8;
  --bg-dark: #18141e;
  --paper: #ffffff;
  --paper-dark: #231f2a;
  --text: #141019;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lexend", sans-serif;
  background: var(--bg-light);
  color: var(--text);
  min-height: 100vh;
}

html.dark body {
  background: var(--bg-dark);
  color: #f4f4f5;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #ddd;
  backdrop-filter: blur(6px);
}

html.dark .site-header {
  background: rgba(24,20,30,.95);
  border-color: #333;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: none;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.nav a.active {
  font-weight: 700;
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

/* Layout */

.page {
  max-width: 95%;
  margin: auto;
  padding: 32px 16px;
}

.cv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.btn.primary {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
}

/* CV Paper */

.cv-iframe {
  width: 100%;
  height: 800px;
  border: none;
  margin-bottom: 40px;
}

/* .cv-paper {
  background: var(--paper);
  padding: 64px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

html.dark .cv-paper {
  background: var(--paper-dark);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid currentColor;
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.cv-role {
  font-size: 1.2rem;
  color: var(--muted);
}

.cv-contact {
  text-align: right;
  font-size: 0.9rem;
}

.cv-section {
  margin-bottom: 40px;
}

.cv-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 16px;
}

.cv-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.cv-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.cv-org {
  font-style: italic;
  color: var(--muted);
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.awards {
  list-style: none;
  padding: 0;
}
 */

/* Responsive */

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Print */

@media print {
  header, footer, .cv-toolbar { display: none; }
  body { background: white; }
  .cv-paper {
    box-shadow: none;
    padding: 0;
  }
}
