@import url("https://www.nerdfonts.com/assets/fonts/Meslo/MesloLGS-NF.css");

:root {
  --bg: #eff1f5;
  --card-bg: #e6e9ef;
  --accent: #8839ef;
  --text-main: #4c4f69;
  --text-muted: #6c6f85;
  --border: #ccd0da;
}

body[data-theme='dark'] {
  --bg: #24273a;
  --card-bg: #1e2030;
  --accent: #c6a0f6;
  --text-main: #cad3f5;
  --text-muted: #a5adcb;
  --border: #414559;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.5rem;
  font-family: "MesloLGS NF", "MesloLGS Nerd Font", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.page {
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.name-title h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.name-title p {
  margin: 0.2rem 0 0;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  justify-content: flex-end;
}

.pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin: 1.4rem 0 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.summary {
  font-size: 0.95rem;
  line-height: 1.5;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-chip {
  font-size: 0.8rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.item {
  margin-bottom: 1rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.item-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.item-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

li {
  margin-bottom: 0.2rem;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
  gap: 0.5rem;
}

.btn {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  body {
    padding: 0.75rem;
  }

  header {
    flex-direction: column;
  }

  .contact {
    text-align: left;
  }

  .item-header {
    flex-direction: column;
  }

  .item-meta {
    text-align: left;
  }
}

@media print {
  body {
    padding: 0;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .page {
    box-shadow: none;
    border-radius: 0;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .toolbar {
    display: none;
  }

  a {
    color: #000000 !important;
    text-decoration: none;
  }
}
