:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1, 'case' 1;
  font-optical-sizing: auto;
  font-synthesis: none;
  color-scheme: light;
  --text: #0f1114;
  --text-secondary: #555a66;
  --text-tertiary: #8a8f9a;
  --bg: #fff;
  --border: rgba(15, 17, 20, 0.08);
  --select: #fbff01;
  --select-text: var(--text);
}
@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

h1,
.subtitle,
section {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
}

.appear {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
}

.appear.in {
  animation: appearIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appearIn {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

#shaderCanvas {
  display: block;
  position: absolute;
  top: -140px;
  left: 0;
  width: 100vw;
  height: 600px;
  pointer-events: none;
  z-index: -1;
}
::selection {
  background: var(--select);
  color: var(--select-text);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding: 380px 24px 80px;
  max-width: 560px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
  hanging-punctuation: first;
}

h1, h2, .item-title, .item-meta, .item-desc, .subtitle, .skills, .contact {
  text-box-trim: both;
  text-box-edge: cap alphabetic;
}

.item > * + * {
  margin-top: 2px;
}

.item > .item-title + .item-desc {
  margin-top: 6px;
}

h1 {
  font-size: 15px;
  font-weight: 500;
  text-wrap: pretty;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 48px;
}


section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.subtitle + section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.item { margin-bottom: 20px; }
.item:last-child { margin-bottom: 0; }

a {
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 2px;
  border-radius: 2px;
}

a.item {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.item-title {
  font-size: 15px;
  font-weight: 500;
  text-wrap: pretty;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
  white-space: nowrap;
}

a.item:hover .item-title {
  text-decoration-color: var(--text-tertiary);
}

.contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
  text-decoration-color: transparent;
}

.contact a:hover {
  text-decoration-color: var(--text-tertiary);
}

.arrow {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 2px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  overflow: visible;
}

.arrow .arrow-path {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.item:hover .arrow .arrow-path, .contact a:hover .arrow .arrow-path {
  transform: translate(1.5px, -1.5px);
}

.item-meta {
  font-size: 14px;
  color: var(--text-secondary);

}

.item-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  text-wrap: pretty;
  hanging-punctuation: first;
}

.skills {
  font-size: 14px;
  color: var(--text);
}

.skills span { margin-right: 20px; }

.contact a {
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

.contact span { margin-right: 20px; }

