:root {
  --bg: #09090b;
  --panel: #18181b80;
  --line: #27272a;
  --line-strong: #3f3f46;
  --muted: #71717a;
  --soft: #a1a1aa;
  --text: #d4d4d8;
  --bright: #fafafa;
  --accent: #34d399;
  --accent-soft: #6ee7b7;
  --accent-bg: #34d3991a;
  --sans: ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --width: 64rem;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #34d3994d;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

main,
nav {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  scroll-margin-top: 5rem;
}

.site {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #27272acc;
  background: #09090bcc;
  backdrop-filter: blur(8px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
  font-size: 0.875rem;
}

nav ul {
  display: none;
  gap: 1.25rem;
  color: var(--soft);
}

nav ul a {
  padding-bottom: 0.125rem;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

nav ul a:hover {
  color: #f4f4f5;
}

nav ul a[aria-current] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  color: #f4f4f5;
}

h2 {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0.5rem 0 2.5rem;
  color: #f4f4f5;
  font-size: 1.5rem;
  font-weight: 600;
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  padding-block: 5rem;
}

.disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 33%, #ffffff0f 33.5% 34.5%, transparent 35%)
      padding-box,
    radial-gradient(circle at 32% 26%, #ffffff14, transparent 50%) padding-box,
    linear-gradient(#111113, #111113) padding-box,
    linear-gradient(#09090b80, #09090b80) border-box,
    conic-gradient(from 210deg, #6ee7b7, #93c5fd, #c4b5fd, #f9a8d4, #fde68a, #6ee7b7) border-box;
  box-shadow: inset 0 -0.75rem 2rem #00000080;
  font: 600 2.5rem var(--mono);
  letter-spacing: 0.04em;
  user-select: none;
}

.disc::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 20deg,
    transparent,
    #6ee7b7,
    #93c5fd,
    #c4b5fd,
    #f9a8d4,
    #fde68a,
    #6ee7b7,
    transparent 70deg 180deg,
    #6ee7b7,
    #93c5fd,
    #c4b5fd,
    #f9a8d4,
    #fde68a,
    #6ee7b7,
    transparent 250deg
  );
  opacity: 0.28;
  filter: blur(10px);
}

.disc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #6ee7b7, #93c5fd, #c4b5fd, #f9a8d4, #fde68a, #6ee7b7);
  mask: radial-gradient(closest-side, transparent 10%, black 25% 37%, transparent 52%);
  filter: blur(4px);
  opacity: 0;
  animation: smear 2.4s 0.8s linear both;
}

.writing {
  position: relative;
  animation:
    spin 2.4s 0.8s both,
    blur 2.4s 0.8s linear both;
}

.initials {
  background: linear-gradient(120deg, #a7f3d0, #e0f2fe 35%, #f5d0fe 65%, #fde68a);
  background-clip: text;
  color: transparent;
}

.label {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0.2em;
  rotate: -7deg;
  color: #1e40af;
  opacity: 0.85;
  font:
    700 0.36em 'Marker Felt',
    'Bradley Hand',
    'Segoe Print',
    'Comic Sans MS',
    cursive;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.kicker {
  color: var(--accent);
  font: 0.875rem var(--mono);
}

h1 {
  margin-top: 0.75rem;
  color: var(--bright);
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lead {
  margin-top: 1rem;
  color: #e4e4e7;
  font-size: 1.25rem;
}

.intro {
  max-width: 42rem;
  margin-top: 1.5rem;
  line-height: 1.625;
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #34d3994d;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-soft);
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  color: #f4f4f5;
}

.btn:hover {
  border-color: var(--muted);
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn.primary:hover {
  background: var(--accent-soft);
}

.prose p:first-of-type {
  margin-top: 1.5rem;
}

.prose p {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
}

.card + .card {
  margin-top: 2rem;
}

.card > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.card h3 {
  color: var(--bright);
  font-size: 1.5rem;
  font-weight: 600;
}

.card h3 a:hover {
  color: var(--accent-soft);
}

.card > header span {
  color: var(--soft);
  font-size: 0.875rem;
}

.role {
  margin: 0.25rem 0 1rem;
  color: var(--accent);
  font-size: 0.875rem;
}

article p {
  line-height: 1.625;
}

.bullets {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 0.875rem;
}

.bullets li + li {
  margin-top: 0.375rem;
}

.bullets ::marker {
  color: #52525b;
}

.stacks {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

h4 {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tags li {
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.tags.mono li {
  background: var(--line);
  font: 0.75rem/1rem var(--mono);
}

.tags.accent li {
  background: var(--accent-bg);
  color: var(--accent-soft);
}

.tags.outline li {
  border: 1px solid var(--line);
}

.impact {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.impact div {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.impact dt {
  color: var(--bright);
  font-size: 1.875rem;
  font-weight: 700;
}

.impact dd {
  margin-top: 0.5rem;
  color: var(--soft);
  font-size: 0.875rem;
}

.skills {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.skills h3 {
  margin-bottom: 0.75rem;
  color: #f4f4f5;
  font-weight: 600;
}

.timeline {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
}

.timeline li + li {
  margin-top: 1.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: -29px;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #52525b;
}

.timeline header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.timeline h3 {
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 600;
}

.timeline h3 span {
  color: var(--soft);
  font-weight: 400;
}

.timeline time {
  color: var(--muted);
  font: 0.75rem var(--mono);
}

.timeline p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.contact {
  margin: 4rem 0 5rem;
  padding: 2rem;
  text-align: center;
}

.contact h2 {
  margin-bottom: 0;
  color: var(--bright);
  font-size: 1.5rem;
  letter-spacing: normal;
  text-transform: none;
}

.contact p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

.contact .actions {
  justify-content: center;
  margin-top: 1.5rem;
}

body footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  nav ul {
    display: flex;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 7rem;
  }

  .disc {
    width: 12rem;
    height: 12rem;
    font-size: 3.75rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  .lead {
    font-size: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .stacks,
  .impact,
  .skills {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .impact {
    grid-template-columns: repeat(4, 1fr);
  }
}

@keyframes spin {
  0% {
    rotate: 0deg;
    animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.5);
  }
  29.167% {
    rotate: 1512deg;
    animation-timing-function: linear;
  }
  54.167% {
    rotate: 4104deg;
    animation-timing-function: cubic-bezier(0.25, 0.5, 0.5, 1);
  }
  100% {
    rotate: 6480deg;
  }
}

@keyframes blur {
  0%,
  12.153%,
  82.008%,
  100% {
    opacity: 1;
    filter: blur(0);
  }
  19.444%,
  73.194% {
    opacity: 0;
    filter: blur(0.1em);
  }
}

@keyframes smear {
  0%,
  12.153%,
  82.008%,
  100% {
    opacity: 0;
  }
  19.444%,
  73.194% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .writing,
  .disc::after {
    animation: none;
  }
}
