@font-face {
  font-family: "JetBrains Mono";
  src: url("static/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("static/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #2c2c2c;
  --heading-color: #1a1a1a;
  --text-color: #4a5568;
  --separator-color: #a0aec0;
  --bg-color: #f8f6f4;
  --hover-color: #2d3748;
  --email-hover-color: #4a5568;

  --font-family-mono: "JetBrains Mono", monospace;

  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
}

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

body {
  font-family: var(--font-family-mono);
  background: var(--bg-color);
  color: var(--primary-color);
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle,
      rgba(120, 119, 198, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(circle, rgba(180, 160, 140, 0.16) 0%, transparent 45%),
    radial-gradient(circle, rgba(160, 140, 120, 0.14) 0%, transparent 35%),
    radial-gradient(circle, rgba(140, 130, 160, 0.18) 0%, transparent 50%);
  background-size: 200% 200%, 220% 220%, 180% 180%, 200% 200%;
  background-position: 25% 75%, 75% 25%, 50% 50%, 80% 80%;
  animation: calmFlow 40s linear infinite;
  will-change: background-position;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      ellipse,
      rgba(200, 180, 160, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(ellipse, rgba(160, 140, 180, 0.12) 0%, transparent 55%);
  background-size: 250% 250%, 220% 220%;
  background-position: 30% 20%, 70% 70%;
  animation: gentleWave 60s linear infinite;
  will-change: background-position;
}

@keyframes calmFlow {
  0%,
  100% {
    background-position: 25% 75%, 75% 25%, 50% 50%, 80% 80%;
  }
  25% {
    background-position: 40% 60%, 60% 40%, 65% 35%, 65% 85%;
  }
  50% {
    background-position: 60% 40%, 40% 60%, 80% 20%, 20% 90%;
  }
  75% {
    background-position: 40% 60%, 60% 40%, 35% 65%, 85% 35%;
  }
}

@keyframes gentleWave {
  0%,
  100% {
    background-position: 30% 20%, 70% 70%;
  }
  25% {
    background-position: 45% 35%, 55% 60%;
  }
  50% {
    background-position: 70% 30%, 30% 80%;
  }
  75% {
    background-position: 55% 60%, 45% 40%;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-lg);
  gap: 2rem;
}

h1 {
  font-size: var(--space-xl);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--heading-color);
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
}

.links-container a,
.email a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.links-container a:hover,
.links-container a:focus {
  color: var(--hover-color);
  transform: translateY(-1.3px);
}

.separator {
  color: var(--separator-color);
  user-select: none;
}

.email {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
}

.email a:hover,
.email a:focus {
  color: var(--email-hover-color);
  transform: translateY(-1px);
}

.painting {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0.85;
  filter: sepia(10%) saturate(80%) hue-rotate(-15deg);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.painting:hover {
  opacity: 1;
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.painting-caption {
  font-size: 0.8rem;
  color: var(--text-color);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .links-container {
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.9rem;
  }

  .separator {
    display: none;
  }

  .email {
    font-size: 0.85rem;
  }

  .painting {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--space-md);
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .links-container {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .email {
    font-size: 0.8rem;
    overflow-wrap: break-word;
  }

  .painting {
    max-width: 280px;
  }
}
