:root {
  --text: #1f2328;
  --muted: #59636e;
  --accent: #1f6f78;
  --surface: #f6f8fa;
  --border: #d1d9e0;
  --max-width: 42rem;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--accent);
}

.site-footer {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.nyan {
  --cat-width: 4.5rem;
  --cat-height: calc(var(--cat-width) * 21 / 34);
  display: flex;
  align-items: flex-start;
  width: 33.333%;
  height: calc(var(--cat-height) + 0.5rem);
  margin: 0 auto 0.5rem;
  overflow: hidden;
}

.nyan-rainbow {
  flex: 1;
  height: calc(var(--cat-height) * 14 / 21);
  margin-top: calc(var(--cat-height) * 2 / 21);
  margin-right: calc(var(--cat-width) * -6 / 34);
  margin-left: calc(var(--cat-width) * -6 / 34);
  background:
    linear-gradient(
      to bottom,
      #ff0000 0 16.66%,
      #ff9900 16.66% 33.33%,
      #ffff00 33.33% 50%,
      #33ff00 50% 66.66%,
      #0099ff 66.66% 83.33%,
      #6633ff 83.33% 100%
    );
  animation: nyan-bob 0.4s steps(1) infinite reverse;
}

.nyan-cat {
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--cat-width);
  height: var(--cat-height);
  animation: nyan-bob 0.4s steps(1) infinite;
}

@keyframes nyan-bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nyan-rainbow,
  .nyan-cat {
    animation: none;
  }
}

.profile {
  text-align: center;
}

.profile h1 {
  margin-bottom: 0;
}

.profile-label {
  margin-top: 0;
  color: var(--muted);
}

.profile-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.button {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-list {
  padding: 0;
  list-style: none;
}
