:root {
  --primary: #6750A4;
  --link: #7856d4;

  --bg: #ffffff;
  --surface: #f6f6f8;
  --surface-2: #ededf1;

  --on-primary: var(--surface-2);
  --text: #1c1b1f;
  --paragraph: #2d2d30;
  --muted: #5c5b62;

  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #aa8aff;
    --bg: #0f0f12;
    --surface: #17171c;
    --surface-2: #202028;

    --on-primary: var(--text);
    --text: #e6e1e5;
    --paragraph: #bfbfc5;
    --muted: #a0a0a8;

    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  margin: auto;
  max-width: 44rem;
}

/* ===== Layout ===== */
.container {
  margin: 0 auto;
  padding: 32px 18px;
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 9px 18px;
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border);
}

.title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  display: flex;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.nav a:hover {
  color: var(--primary);
}

.nav .contact {
  color: var(--on-primary);
  background: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.nav .contact:hover {
  color: var(--on-primary);
  filter: brightness(1.1)
}

/* ===== Section ===== */
hr {
  border-color: var(--border);
  margin: 32px;
}

.container > section + section {
  margin-top: 24px;
}

.projects > article + article {
  margin-top: 20px;
}

section h2,
section h3 {
  color: var(--text)
}

.container > section:first-child h2 {
  margin-block-start: 0;
}

section h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

section h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

section em {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

section p,
section li {
  color: var(--paragraph)
}

section ul {
  margin-top: 8px;
  padding-left: 1.4rem;
}

section li {
  margin-bottom: 6px;
}

section a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--border)
}

section a:hover {
  color: var(--primary);
}

section a.active {
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  margin: 0 auto;
  padding: 26px 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  border-top: 1px solid var(--border);
  color: var(--muted);
}

.copyright {
  margin-block: 0;
  font-size: 0.75rem;
  color: var(--muted);
}