:root {
  color-scheme: dark;
  --purple: #21132f;
  --purple-light: #352044;
  --gold: #ebcb80;
  --green: #b6d3ad;
  --cream: #faf4eb;
  --muted: #d6c9df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--purple);
  color: var(--cream);
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-underline-offset: 0.3em;
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem;
  background: var(--purple);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  max-width: 1120px;
  margin: auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--cream);
}

main {
  max-width: 1120px;
  margin: auto;
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 7rem 1rem;
  text-align: center;
  background: radial-gradient(
    ellipse at center,
    #583366 0%,
    transparent 70%
  );
}

.eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  margin: 1rem 0;
  color: var(--gold);
  font-size: clamp(2.8rem, 7vw, 5rem);
}

h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.6rem;
}

.intro {
  max-width: 560px;
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--green);
}

.butterfly {
  position: absolute;
  z-index: -1;
  font-size: 2.5rem;
  animation: float 6s ease-in-out infinite;
}

.butterfly-one {
  top: 12%;
  left: 8%;
}

.butterfly-two {
  top: 24%;
  right: 8%;
  animation-delay: -2s;
}

.butterfly-three {
  bottom: 8%;
  left: 20%;
  font-size: 1.8rem;
  animation-delay: -4s;
}

.panel {
  max-width: 800px;
  margin: 1rem auto 5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #745582;
  border-radius: 1.5rem;
  background: var(--purple-light);
}

.panel p:not(.eyebrow),
.project-card p {
  color: var(--muted);
}

.work-section {
  padding-bottom: 5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 2rem;
  border-top: 3px solid var(--green);
  border-radius: 0.5rem 0.5rem 1rem 1rem;
  background: var(--purple-light);
}

.tag {
  color: var(--green);
  font-size: 0.85rem;
}

footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid #745582;
  color: var(--muted);
  text-align: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-15px) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .butterfly {
    animation: none;
  }
}