:root{
  --accent: #7c4dff;
  --bg: #ffffff;
  --panel: #f5f6fa;
  --text: #111;
  --muted: #555;
  --border: #ddd;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html[data-theme="dark"]{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.7);
  --border: rgba(255,255,255,.14);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}

.cv-wrapper{
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* TOP ACTIONS */
.cv-top-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
}

.cv-btn{
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.cv-btn.ghost{
  background: var(--panel);
  color: var(--text);
}

/* HEADER */
.cv-header{
  margin-bottom: 32px;
}

.cv-header h1{
  margin: 0;
  font-size: 34px;
  color: var(--accent);
}

.cv-subtitle{
  margin: 6px 0 10px;
  font-weight: 600;
}

.cv-contact{
  font-size: 13px;
  color: var(--muted);
}

.cv-contact a{
  color: inherit;
  text-decoration: none;
}

/* SECTIONS */
section{
  margin-top: 28px;
}

h2{
  font-size: 18px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

h3{
  margin: 10px 0 2px;
  font-size: 15px;
}

.cv-meta{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* CONTENT */
article{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

ul{
  padding-left: 18px;
}

li{
  margin-bottom: 4px;
}
.cv-header--with-photo{
  display: flex;
  align-items: center;
  gap: 20px;
}

.cv-photo{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border);
}

/* COLUMNS */
.columns{
  columns: 2;
  column-gap: 40px;
}

/* PRINT */
@media print{
  body{
    background: white;
    color: black;
  }
  .cv-top-actions{
    display: none;
  }
  article{
    border: none;
    padding: 0;
  }
}
