:root {
  color-scheme: dark light;
  --bg: #1d1b18;
  --text: #f1eee8;
  --muted: #b4ada3;
  --link: #f7f1e7;
  --link-hover: #ffffff;
  --rule: rgba(241, 238, 232, 0.16);
  --selection-bg: #e7e0d4;
  --selection-text: #1d1b18;
  --bird-ink: #ffffff;
  --tooltip-bg: rgba(241, 238, 232, 0.94);
  --tooltip-text: #1d1b18;
  --tooltip-border: rgba(241, 238, 232, 0.24);
  --focus: rgba(241, 238, 232, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 520ms;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3eb;
  --text: #211f1b;
  --muted: #6c655b;
  --link: #171512;
  --link-hover: #000000;
  --rule: rgba(33, 31, 27, 0.18);
  --selection-bg: #2d2924;
  --selection-text: #f7f3eb;
  --bird-ink: #ffffff;
  --tooltip-bg: rgba(33, 31, 27, 0.92);
  --tooltip-text: #f7f3eb;
  --tooltip-border: rgba(33, 31, 27, 0.18);
  --focus: rgba(33, 31, 27, 0.72);
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--selection-text);
  background: var(--selection-bg);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 600px);
  margin: 0 auto;
  padding: 4.6rem 0 5rem;
}

.birds-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--bird-ink);
  mix-blend-mode: difference;
  transition:
    color var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
}

.bird-flight {
  position: absolute;
  top: var(--bird-top, 70dvh);
  left: 0;
  display: block;
  width: 3.9rem;
  height: 1.56rem;
  opacity: 0.76;
  will-change: transform;
  animation-name: bird-path;
  animation-duration: var(--bird-duration, 24s);
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

.bird-flight-a {
  animation-duration: var(--bird-duration, 24s);
}

.bird-flight-b {
  --bird-scale: 0.78;
  animation-duration: var(--bird-duration, 28s);
}

.bird-flight-c {
  --bird-scale: 0.62;
  animation-duration: var(--bird-duration, 32s);
}

.bird {
  position: absolute;
  display: block;
  top: var(--member-y, 0);
  left: var(--member-x, 0);
  width: 3rem;
  height: 4.26rem;
  transform-origin: center;
  transform: scale(var(--member-scale, 1)) scaleX(var(--bird-facing, 1));
}

.bird-sprite {
  position: absolute;
  inset: 0;
  display: block;
  background: currentColor;
  transition: background-color var(--duration) var(--ease);
  mask-image: url("assets/bird-cells-new.svg");
  mask-position: 0 0;
  mask-repeat: no-repeat;
  mask-size: 1000% 100%;
  -webkit-mask-image: url("assets/bird-cells-new.svg");
  -webkit-mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 1000% 100%;
  animation: bird-flap var(--bird-flap-duration, 1000ms) steps(10) infinite;
  animation-delay: var(--bird-flap-delay, 0s);
}

.bird-knock {
  position: fixed;
  top: var(--knock-start-y);
  left: var(--knock-start-x);
  z-index: 4;
  width: var(--knock-width, 3rem);
  height: var(--knock-height, 4.26rem);
  color: var(--bird-ink);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0.82;
  transform: translate3d(0, 0, 0);
  animation: bird-knock-x 1350ms linear forwards;
  will-change: transform;
}

.bird-knock-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  animation: bird-knock-y 1350ms cubic-bezier(0.28, 0.02, 0.76, 0.22) forwards;
  will-change: transform;
}

.bird-knock .bird-sprite {
  transform-origin: center;
  mask-size: 1000% 100%;
  -webkit-mask-size: 1000% 100%;
  animation:
    bird-knock-spin 620ms cubic-bezier(0.14, 0.72, 0.24, 1) infinite,
    bird-knock-fade 1350ms linear forwards;
}

@keyframes bird-knock-x {
  to {
    transform: translate3d(var(--knock-travel-x), 0, 0);
  }
}

@keyframes bird-knock-y {
  0% {
    transform: translate3d(0, 0, 0);
  }

  26% {
    transform: translate3d(0, calc(-1 * var(--knock-rise)), 0);
  }

  100% {
    transform: translate3d(0, var(--knock-fall), 0);
  }
}

@keyframes bird-knock-spin {
  to {
    transform: rotate(var(--knock-spin)) scaleX(var(--knock-facing, 1));
  }
}

@keyframes bird-knock-fade {
  0%,
  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes bird-path {
  from {
    transform: translate3d(var(--bird-from-x, -9vw), 0, 0) scale(var(--bird-scale, 1));
  }

  to {
    transform: translate3d(var(--bird-to-x, 109vw), var(--bird-end-y, 0.8rem), 0) scale(var(--bird-scale, 1));
  }
}

@keyframes bird-flap {
  to {
    mask-position: 111.111% 0;
    -webkit-mask-position: 111.111% 0;
  }
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 2.35rem;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: 2rem;
}

.site-header h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.42rem;
}

section {
  margin-top: 1.75rem;
}

.intro {
  margin-bottom: 2.1rem;
}

p {
  margin-bottom: 1.2rem;
}

ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

li {
  margin: 0.62rem 0;
  padding-left: 0.1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.13em;
  transition:
    color var(--duration) var(--ease),
    text-decoration-color var(--duration) var(--ease),
    opacity 180ms var(--ease);
}

a:hover {
  color: var(--link-hover);
}

a:active,
button:active {
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  body.has-target-cursor,
  body.has-target-cursor a,
  body.has-target-cursor button,
  body.has-target-cursor .theme-toggle {
    cursor: none;
  }
}

.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 0;
  color: #ffffff;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate3d(var(--cursor-x, 50vw), var(--cursor-y, 50vh), 0);
  transition:
    opacity 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.target-cursor-wrapper.is-visible {
  opacity: 1;
}

.target-cursor-inner {
  position: absolute;
  width: 0;
  height: 0;
  animation: target-cursor-spin 2.4s linear infinite;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.target-cursor-wrapper.is-targeting .target-cursor-inner {
  animation: none;
  transform: rotate(0deg);
}

.target-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(
      calc(-50% + var(--cursor-dot-x, 0px)),
      calc(-50% + var(--cursor-dot-y, 0px))
    )
    scale(var(--cursor-dot-scale, 1));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.target-cursor-wrapper.is-pressed {
  --cursor-dot-scale: 0.72;
}

.target-cursor-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  transform: translate3d(var(--corner-x), var(--corner-y), 0);
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--duration) var(--ease);
  will-change: transform;
}

.target-cursor-corner.corner-tl {
  --corner-x: -15px;
  --corner-y: -15px;
  border-right: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-tr {
  --corner-x: 5px;
  --corner-y: -15px;
  border-left: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-br {
  --corner-x: 5px;
  --corner-y: 5px;
  border-left: 0;
  border-top: 0;
}

.target-cursor-corner.corner-bl {
  --corner-x: -15px;
  --corner-y: 5px;
  border-right: 0;
  border-top: 0;
}

@keyframes target-cursor-spin {
  to {
    transform: rotate(360deg);
  }
}

.muted {
  color: var(--muted);
  font-size: 0.88em;
  transition: color var(--duration) var(--ease);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.84rem;
  align-items: center;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.icon-link {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  place-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  transition:
    color var(--duration) var(--ease),
    opacity 180ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.icon-link:hover {
  color: var(--link-hover);
}

.brand-icon {
  display: block;
  width: 1.66rem;
  height: 1.66rem;
  max-width: 1.66rem;
  max-height: 1.66rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  flex: none;
}

.fill-icon {
  fill: currentColor;
  stroke: none;
}

.fill-icon {
  transform: scale(0.93);
  transform-origin: center;
}

.x-icon {
  transform: scale(0.78);
  transform-origin: center;
}

.email-icon-link {
  position: relative;
  width: 1.66rem;
  height: 1.9rem;
  margin-left: 0;
  justify-content: start;
}

.email-tooltip {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 50%;
  display: grid;
  width: max-content;
  max-width: min(15rem, calc(100vw - 2rem));
  padding: 0.34rem 0.52rem 0.36rem;
  border: 1px solid var(--tooltip-border);
  border-radius: 0.28rem;
  color: var(--tooltip-text);
  background: var(--tooltip-bg);
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.email-tooltip-text {
  grid-area: 1 / 1;
  transition: opacity 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.email-tooltip-copied {
  opacity: 0;
}

.email-icon-link.is-copied .email-tooltip-default {
  opacity: 0;
}

.email-icon-link.is-copied .email-tooltip-copied {
  opacity: 1;
}

.email-tooltip::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--tooltip-bg);
  border-left: 7px solid transparent;
  content: "";
  transform: translateX(-50%);
  transition: border-bottom-color var(--duration) var(--ease);
}

.email-icon-link:hover .email-tooltip,
.email-icon-link:focus-visible .email-tooltip,
.email-icon-link.is-copied .email-tooltip {
  opacity: 1;
}

.resume-link {
  margin-left: 0.06rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.resume-link:hover {
  color: var(--link-hover);
}

.hidden-social {
  width: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: 0.58rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--duration) var(--ease),
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.theme-toggle:hover {
  color: var(--link-hover);
}

.theme-toggle:hover .theme-orb {
  transform: scale(1) rotate(10deg);
}

.theme-toggle:active {
  transform: scale(0.9);
  opacity: 1;
}

.theme-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-orb {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: currentColor;
  background: currentColor;
  box-shadow: none;
  isolation: isolate;
  transform: scale(1) rotate(-8deg);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    color var(--duration) var(--ease);
}

.theme-orb::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  z-index: 1;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--duration) var(--ease);
}

.theme-orb::before {
  background: var(--bg);
  transform: translate(0.34rem, -0.28rem) scale(0.92);
  opacity: 1;
}

.theme-rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  animation: theme-rays-orbit 28s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.theme-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translate3d(var(--ray-start-x), var(--ray-start-y), 0);
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--duration) var(--ease);
  will-change: transform, opacity;
}

@keyframes theme-rays-orbit {
  to {
    transform: rotate(360deg);
  }
}

.theme-ray-1 {
  --ray-start-x: 0;
  --ray-start-y: -5px;
  --ray-end-x: 0;
  --ray-end-y: -12px;
}

.theme-ray-2 {
  --ray-start-x: 3px;
  --ray-start-y: -4px;
  --ray-end-x: 8px;
  --ray-end-y: -9px;
}

.theme-ray-3 {
  --ray-start-x: 5px;
  --ray-start-y: -1px;
  --ray-end-x: 12px;
  --ray-end-y: -2px;
}

.theme-ray-4 {
  --ray-start-x: 4px;
  --ray-start-y: 3px;
  --ray-end-x: 10px;
  --ray-end-y: 6px;
}

.theme-ray-5 {
  --ray-start-x: 2px;
  --ray-start-y: 5px;
  --ray-end-x: 4px;
  --ray-end-y: 11px;
}

.theme-ray-6 {
  --ray-start-x: -2px;
  --ray-start-y: 5px;
  --ray-end-x: -4px;
  --ray-end-y: 11px;
}

.theme-ray-7 {
  --ray-start-x: -4px;
  --ray-start-y: 3px;
  --ray-end-x: -10px;
  --ray-end-y: 6px;
}

.theme-ray-8 {
  --ray-start-x: -5px;
  --ray-start-y: -1px;
  --ray-end-x: -12px;
  --ray-end-y: -2px;
}

.theme-ray-9 {
  --ray-start-x: -3px;
  --ray-start-y: -4px;
  --ray-end-x: -8px;
  --ray-end-y: -9px;
}

:root[data-theme="light"] .theme-orb {
  background: currentColor;
  box-shadow: none;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="light"] .theme-toggle:hover .theme-orb {
  transform: scale(1) rotate(0deg);
}

:root[data-theme="light"] .theme-orb::before {
  background: var(--bg);
  transform: translate(0, 0) scale(0);
  opacity: 0;
}

:root[data-theme="light"] .theme-ray {
  transform: translate3d(var(--ray-end-x), var(--ray-end-y), 0);
  opacity: 1;
}

.resume-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.not-found-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 2rem;
}

.not-found-content {
  width: min(100%, 600px);
  text-align: center;
}

.not-found-content h1 {
  margin-bottom: 1.15rem;
  font-size: 2.8rem;
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .page {
    width: min(100% - 1.45rem, 600px);
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .brand-icon {
    width: 1.42rem;
    height: 1.42rem;
  }

  .theme-toggle {
    margin-top: 0.44rem;
  }

  .bird-flight-a {
    top: var(--bird-top, 74dvh);
  }

  .bird-flight-b {
    top: var(--bird-top, 78dvh);
  }

  .bird-flight-c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bird-flight,
  .bird,
  .bird::before,
  .bird::after,
  .theme-rays,
  .theme-orb {
    animation: none;
  }
}
