@font-face {
  font-family: 'Supreme';
  src: url('fonts/Supreme-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f8f8f6;       --bg: light-dark(#f8f8f6, #10121e);
  --text: #272521;     --text: light-dark(#272521, #c2c5d6);
  --heading: #1a1712;  --heading: light-dark(#1a1712, #e8eaf4);
  --muted: #514d44;    --muted: light-dark(#514d44, #9a9eb9);
  --surface: #e9e9e4;  --surface: light-dark(#e9e9e4, #191c2b);
  --purps: #6a2c91;   --purps: light-dark(#6a2c91, #e683b1);
  --col: 34rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purps);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Supreme', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 420;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  padding: 3.5rem 1.5rem;
}

.page {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.portrait {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  transform: rotate(-3deg);
  animation: portrait-drop 0.9s cubic-bezier(0.22, 1.5, 0.4, 1) backwards;
}

@keyframes portrait-drop {
  from { transform: rotate(7deg) translateY(-0.5rem) scale(0.85); }
}

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

.bio {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bio .name {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading);
}

.bio .role {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 430;
  color: var(--muted);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 33rem;
}

.intro p {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 33rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.about p {
  margin: 0;
  text-wrap: pretty;
}

.text-link {
  font-weight: 460;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  border-radius: 0.25em;
  padding: 0.04em 0.12em;
  margin: 0 -0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 0.2s ease, background-color 0.25s var(--ease), text-decoration-color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--purps);
  text-decoration-color: transparent;
  background-color: color-mix(in srgb, var(--purps) 14%, transparent);
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-item {
  padding: 0;
}

.work-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}

.work-role {
  font-size: 1.0625rem;
  font-weight: 540;
  color: var(--heading);
}

.work-co {
  font-size: 1.0625rem;
  font-weight: 430;
  color: var(--muted);
}

.work-meta {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  font-weight: 440;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.work-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 440;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-block: 0.35rem;
  font-weight: 460;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.link:hover,
.link:focus-visible {
  color: var(--purps);
}

.arrow {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0;
  transform: translate(-0.3em, 0.2em);
  transition: opacity 0.2s ease, transform 0.22s var(--ease), color 0.18s ease;
}

.link:hover .arrow,
.link:focus-visible .arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--purps);
}

.colophon {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 440;
  color: var(--muted);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(0.5rem); }
}

.profile,
.intro p,
.about p,
.work-item,
.contact {
  animation: fade-in 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.intro p { animation-delay: 0.06s; }
.about p { animation-delay: 0.16s; }
.work-item:nth-of-type(1) { animation-delay: 0.36s; }
.work-item:nth-of-type(2) { animation-delay: 0.42s; }
.work-item:nth-of-type(3) { animation-delay: 0.48s; }
.work-item:nth-of-type(4) { animation-delay: 0.54s; }
.contact { animation-delay: 0.60s; }

@media (max-width: 480px) {
  main { padding: 3rem 1.25rem; }
  .portrait { width: 3.75rem; height: 3.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  .portrait,
  .intro p,
  .about p,
  .work-item,
  .contact,
  .text-link,
  .link,
  .arrow {
    animation: none;
    transition: none;
  }
}
