.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  margin-top: clamp(16px, 2vw, 28px);
  gap: clamp(16px, 2vw, 28px);
}
.repo {
  box-shadow:
    inset 0 1px 1px #ffffff6b,
    0 3px 0 #ccd0c6;
  display: grid;
  grid-template-columns: minmax(130px, 32%) 1fr;
  padding: 0;
  overflow: hidden;
  color: var(--cream);
  background: #242625;
}
.repo-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.repo-copy {
  align-self: center;
  padding: clamp(22px, 2.2vw, 34px);
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.repo-meta .plain-link {
  margin-top: 0;
}
.repo-meta img {
  filter: invert(1);
}

.repo h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.5vw, 42px);
}
.repo p[lang] {
  color: #d4e0db;
}
.language {
  display: inline-block;
  font-size: 12px;
  color: #e9c8a3;
}
.activity {
  background: #f8f6ed;
  color: #273a37;
  padding: clamp(23px, 2.4vw, 38px);
  box-shadow:
    inset 0 1px #fff,
    0 3px 0 #d2d2c9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.activity h2 {
  font-size: clamp(23px, 2.15vw, 34px);
}
.period {
  color: #5b655f;
  font-size: 13px;
  margin-top: 4px;
}
.contributions {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 16px;
  margin: 16px 0 8px;
}
.contributions strong {
  font-weight: 670;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.07em;
}
.calendar {
  --gap: 3px;
  table-layout: fixed;
  width: 100%;
  border-spacing: var(--gap);
  margin-left: calc(-1 * var(--gap));
}
.calendar th {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: #53615d;
  text-align: left;
}
.calendar thead td {
  width: 19px;
}
.calendar thead th {
  padding-bottom: 4px;
}
.calendar .day {
  height: clamp(11px, 1.12vw, 18px);
  border-radius: 3px;
  background: #e1e5d9;
}
.calendar .level-1 {
  background: #acbfa5;
}
.calendar .level-2 {
  background: #719a80;
}
.calendar .level-3 {
  background: #467861;
}
.calendar .level-4 {
  background: #315d4d;
}
@media (max-width: 1020px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    align-content: center;
  }
  .activity h2,
  .activity .period,
  .contributions {
    grid-column: 1;
  }
  .calendar {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
  }
}

@media (max-width: 660px) {
  .activity {
    display: block;
  }
  .calendar .day {
    height: 15px;
  }
  .repo {
    grid-template-columns: 1fr;
  }
  .repo-art {
    height: auto;
    aspect-ratio: 2.4;
  }
}
@font-face {
  font-family: Manrope;
  src: url(manrope.ttf) format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --page: #eae7df;
  --ink: #232726;
  --dark: #182123;
  --muted: #5b625e;
  --paper: #f9f7f0;
  --cream: #faf6e9;
  --orange: #ffad79;
  --radius: 38px;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    500 16px/1.55 Manrope,
    Arial,
    sans-serif;
}
h1,
h2,
h3,
p,
dl,
dd,
figure,
pre {
  margin: 0;
}
button,
input,
summary {
  color: inherit;
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #d47238;
  outline-offset: 4px;
}
::selection {
  background: var(--orange);
  color: #212726;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 12;
}
.wrap {
  width: min(calc(100% - 64px), 1380px);
  margin: auto;
  padding-bottom: 32px;
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  object-fit: contain;
  flex: none;
}
.top,
.brand,
.button,
.actions,
.plain-link,
summary {
  display: flex;
  align-items: center;
}
.top {
  min-height: 78px;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 12px;
}
.brand {
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.065em;
}
.brand .icon {
  width: 29px;
  height: 29px;
}

.round {
  height: 40px;
  border-radius: 24px;
  border: 1px solid #bdbfb6;
  background: #f5f3eb;
}

.round {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
}
.round .icon {
  width: 18px;
  height: 18px;
}
.surface {
  border-radius: var(--radius);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  min-height: clamp(450px, 39vw, 620px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: clamp(36px, 4.7vw, 76px);
  background: radial-gradient(ellipse at 78% 24%, #577073 0, transparent 45%),
    linear-gradient(115deg, #182123 4%, #263a3e 62%, #40575a);
  box-shadow:
    inset 0 1px 1px #ffffff5c,
    inset 0 -2px 2px #080e0f99,
    0 14px 28px -21px #172425;
}
.identity {
  position: relative;
  z-index: 2;
}
.role {
  font-size: 14px;
  font-weight: 650;
}
.role {
  color: #f0c8a8;
}
h1 {
  font-size: clamp(54px, 6.55vw, 103px);
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -0.076em;
  margin: 14px 0 16px;
}
.intro {
  max-width: 410px;
  color: #d5dfdc;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.actions {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.button {
  min-height: 46px;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 750;
}
.button.primary {
  color: #352418;
  background: linear-gradient(#ffc498, var(--orange));
  box-shadow:
    inset 0 1px 1px #ffe8c9,
    0 3px 5px #080d0d38;
}
.glass {
  color: #f8f5ed;
  border: 1px solid #ffffff40;
  background: #ffffff0f;
}
.glass .icon {
  filter: invert(1);
}
.studio {
  position: relative;
  width: 100%;
  aspect-ratio: 1.17;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.tilt {
  width: 75%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 270ms ease-out;
}
.medal {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}
.rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  padding: 3.5%;
  background: conic-gradient(
    from 25deg,
    #f2f1e1,
    #748988 9%,
    #344443 17%,
    #c9d0c6 23%,
    #fcf8df 31%,
    #565f5b 47%,
    #a5aca2 56%,
    #eceee2 62%,
    #7e8980 70%,
    #374746 79%,
    #e6eddc 93%,
    #f2f1e1
  );
  box-shadow:
    inset 0 1px 2px #fff,
    2px 4px 0 #4d605e,
    4px 8px 0 #263737,
    11px 22px 30px #06101062;
}
.lens {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 23% 28%,
    #ffdbad,
    #dfa679 49%,
    #9e6648 90%
  );
  box-shadow:
    0 0 0 2px #2a3736,
    inset 8px 10px 18px #48322466;
}
.portrait {
  width: 125%;
  height: 125%;
  position: absolute;
  max-width: none;
  object-fit: contain;
  left: -12.5%;
  bottom: -27%;
}
.lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 2px 2px 9px #130f0c77,
    inset -1px -3px 4px #ffe9ca66;
  pointer-events: none;
}
.rail {
  pointer-events: none;
  position: absolute;
  width: 130%;
  height: 45%;
  left: -15%;
  top: 39%;
  border: 2px solid #cfcfc1;
  border-right-color: #687a7a;
  border-bottom-color: #a69a83;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.back-rail {
  z-index: 0;
}
.front-rail {
  z-index: 2;
  clip-path: inset(50% -40% -100%);
}
.bead {
  position: absolute;
  left: 0;
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 29% 23%,
    #fff1d4 1%,
    #ffcb96 12%,
    #f3a366 38%,
    #a35a36 72%,
    #4c3026
  );
  box-shadow:
    inset -2px -3px 6px #27130944,
    0 3px 4px #13191655;
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  animation: orbit 8s linear infinite;
}
.bead.silver {
  width: 18px;
  height: 18px;
  background: radial-gradient(
    circle at 28% 18%,
    #fffdf0,
    #a6b9b4 37%,
    #384c4a 78%
  );
  animation-delay: -4s;
}
.orb-shadow {
  position: absolute;
  width: 68%;
  height: 10%;
  bottom: 1%;
  border-radius: 50%;
  background: #111b1dbb;
  filter: blur(15px);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes orbit {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(4px) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}
@keyframes shadow {
  0%,
  100% {
    opacity: 0.75;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.45;
    transform: scaleX(0.87);
  }
}

h2 {
  font-size: clamp(28px, 3.1vw, 50px);
  line-height: 1.15;
  font-weight: 710;
  letter-spacing: -0.058em;
}

.plain-link {
  gap: 7px;
  margin-top: 19px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

code,
pre {
  font-family: var(--mono);
}

summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .round {
    transition:
      transform 0.2s,
      box-shadow 0.2s,
      background-color 0.25s;
  }
  .button:hover,
  .round:hover {
    transform: translateY(-2px);
  }
  .button:active,
  .round:active {
    transform: scale(0.97);
  }
  .identity {
    animation: arrive 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes switch-in {
    from {
      opacity: 0.35;
      transform: translateY(9px) scale(0.988);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @view-transition {
    navigation: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .medal,
  .bead,
  .orb-shadow {
    animation: none;
  }
  .bead {
    offset-distance: 38%;
  }
  .bead.silver {
    offset-distance: 88%;
  }
  .tilt {
    transition: none;
  }
}
.studio.away .medal,
.studio.away .bead,
.studio.away .orb-shadow {
  animation-play-state: paused;
}

.bio-dialog {
  width: min(800px, calc(100% - 28px));
  max-height: calc(100svh - 30px);
  color: var(--ink);
  position: fixed;
  background: var(--paper);
  padding: 14px;
  border: 0;
  border-radius: 32px;
  box-shadow: 0 30px 100px #06101066;
  overflow: auto;
}
.bio-dialog[open] {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: 22px;
}
.bio-dialog::backdrop {
  background: #0a1418af;
  backdrop-filter: blur(9px);
}
body:has(.bio-dialog[open]) {
  overflow: hidden;
}
.bio-dialog form {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}
.full-portrait {
  width: 100%;
  border-radius: 23px;
}
.bio-story {
  padding: 26px 17px 15px 0;
}
.bio-story p {
  font-size: 15px;
  margin-top: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .bio-dialog[open] {
    animation: switch-in 0.36s ease-out;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .bloom {
    animation: section-in 0.7s cubic-bezier(0.2, 0.78, 0.2, 1);
  }
  @keyframes section-in {
    from {
      opacity: 0.5;
      transform: translateY(21px) scale(0.975);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 575px;
  }
}
@media (max-width: 950px) {
  :root {
    --radius: 30px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .hero {
    padding: 32px;
    min-height: 395px;
  }
  .tilt {
    width: 79%;
  }
  h1 {
    font-size: clamp(47px, 7.2vw, 70px);
  }
}
@media (max-width: 660px) {
  :root {
    --radius: 28px;
  }
  .wrap {
    width: calc(100% - 24px);
    padding-bottom: 16px;
  }
  .top {
    min-height: 60px;
    padding-inline: 5px;
  }
  .brand {
    font-size: 16px;
  }
  .brand .icon {
    width: 25px;
  }

  .round {
    height: 35px;
  }
  .round {
    width: 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 19px 23px 28px;
  }
  .studio {
    grid-row: 1;
    width: min(100%, 360px);
    aspect-ratio: 1.35;
    margin: auto;
  }
  .tilt {
    width: 60%;
  }

  .bio-dialog[open] {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .full-portrait {
    max-height: 33svh;
    object-fit: cover;
    object-position: center 25%;
  }
  .bio-story {
    padding: 17px 5px 6px;
  }
  .bead {
    width: 21px;
    height: 21px;
  }
  .bead.silver {
    width: 13px;
    height: 13px;
  }
  .identity {
    text-align: center;
  }
  .role {
    font-size: 12px;
  }
  h1 {
    font-size: clamp(43px, 10.8vw, 65px);
    margin: 3px 0 9px;
  }
  .intro {
    margin-inline: auto;
    max-width: 32ch;
    font-size: 14px;
    line-height: 1.55;
  }
  .actions {
    justify-content: center;
    margin-top: 17px;
  }
  .button {
    min-height: 42px;
    font-size: 12px;
    padding: 9px 12px;
  }
  .button .icon {
    width: 18px;
  }
}
