:root {
  color-scheme: light dark;

  --bg: #fbf7f0;
  --text: #111111;
  --muted: #444444;
  --muted-2: #666666;

  --divider: rgba(17, 17, 17, 0.12);
  --border: rgba(17, 17, 17, 0.16);
  --ring: rgba(17, 17, 17, 0.35);
}

[data-theme="dark"] {
  --bg: #0f0f0e;
  --text: #f4f1ea;
  --muted: #cfc7bb;
  --muted-2: #a69f94;

  --divider: rgba(244, 241, 234, 0.14);
  --border: rgba(244, 241, 234, 0.18);
  --ring: rgba(244, 241, 234, 0.35);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0.1px;
  transition: background 250ms ease, color 250ms ease;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 56px;
  display: grid;
  gap: 18px;
}

.wrap > * {
  opacity: 0;
  transform: translateY(10px);
  animation: enter 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wrap > *:nth-child(1) { animation-delay: 60ms; }
.wrap > *:nth-child(2) { animation-delay: 140ms; }
.wrap > *:nth-child(3) { animation-delay: 220ms; }
.wrap > *:nth-child(4) { animation-delay: 300ms; }
.wrap > *:nth-child(5) { animation-delay: 380ms; }
.wrap > *:nth-child(6) { animation-delay: 460ms; }
.wrap > *:nth-child(7) { animation-delay: 540ms; }
.wrap > *:nth-child(8) { animation-delay: 620ms; }

.hero {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
}

.hero-top {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--bg);
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.about {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.about + .about {
  margin-top: 10px;
}

.section {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
}

.section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-2);
}

.entry {
  display: grid;
  gap: 3px;
}

.entry-title {
  justify-self: start;
  font-size: 15px;
  font-weight: 600;
}

.entry-desc {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact {
  margin: 0;
}

.disclaimer {
  color: var(--muted-2);
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider);
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  border-bottom-color: rgba(17, 17, 17, 0.45);
}

[data-theme="dark"] a {
  border-bottom-color: rgba(244, 241, 234, 0.45);
}

a:hover { opacity: 0.78; }

.theme-toggle {
  justify-self: start;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.theme-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.footer {
  color: var(--muted-2);
  font-size: 13px;
  padding-top: 6px;
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .wrap > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
