*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e0e0e0;
  --accent: #1a1a1a;
}

html {
  font-size: 19.5px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Canvas ──────────────────────────────────────────────────── */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ──────────────────────────────────────────────────── */

main {
  max-width: 580px;
  margin: 0 auto;
  padding: 88px 28px 6px;
  position: relative;
  z-index: 1;
}

header {
  position: relative;
  z-index: 1;
}


/* ─── Header ──────────────────────────────────────────────────── */

header {
  margin-bottom: 52px;
  animation: fadeUp 0.5s ease both;
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
}

.tagline {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.025em;
  font-weight: 400;
}

/* ─── Sections ────────────────────────────────────────────────── */

section {
  margin-bottom: 52px;
  animation: fadeUp 0.5s ease both;
}

section:nth-child(2) { animation-delay: 0.08s; }
section:nth-child(3) { animation-delay: 0.16s; }
section:nth-child(4) { animation-delay: 0.24s; }

h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ─── About ───────────────────────────────────────────────────── */

.about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 460px;
  margin-bottom: 12px;
}

.about p:last-child {
  margin-bottom: 0;
}

.about a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Projects ────────────────────────────────────────────────── */

.projects ul {
  list-style: none;
}

.projects li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.projects li:first-child {
  border-top: 1px solid var(--border);
}

.project-link,
.project-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  border-bottom-color: var(--text);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.wip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ─── Contact ─────────────────────────────────────────────────── */

.contact {
  margin-bottom: 6px;
}

.contact ul {
  list-style: none;
}

.contact li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact li:first-child {
  border-top: 1px solid var(--border);
}

.contact li:last-child {
  border-bottom: none;
}

.contact a {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact a:hover {
  border-bottom-color: var(--text);
}

/* ─── Imprint ─────────────────────────────────────────────────── */

.imprint {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 28px 72px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.imprint h2 {
  margin-bottom: 16px;
  padding-top: 40px;
}

.imprint p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.imprint p:last-child {
  margin-bottom: 0;
}

.imprint a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Lang switch ─────────────────────────────────────────────── */

.lang-switch {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-switch::before {
  content: '🌐';
  font-size: 0.75rem;
  margin-right: 8px;
  opacity: 0.6;
}

.lang-switch a {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  margin-right: 14px;
}

.lang-switch a:hover {
  border-bottom-color: var(--muted);
}

/* ─── Copyright ───────────────────────────────────────────────── */

.copyright {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Animation ───────────────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem;
  }

  main {
    padding: 64px 22px 52px;
  }

  footer {
    padding: 0 22px 52px;
  }

  .projects li {
    flex-direction: column;
    gap: 4px;
  }
}
