:root {
  --bg: #f7f4ee;
  --fg: #2a2724;
  --strong: #16130f;
  --dim: #8a8279;
  --label: #6b6459;
  --link: #ed3f3f;
  --curve: #e6cece;
  --panel: #f6f3ed;
  --tab: #f0ede6;
  --edge: rgba(0, 0, 0, 0.08);
  --slide: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --column: 720px;
  --title-lead: 20px;
  --gutter: 36px;
  --face-size: 34px;
  --face-lap: 12px;
  --sans:
    Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: Karla;
  src: url("/static/fonts/karla-latin.woff2?v=3b1eb09a53") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

::selection {
  background: color-mix(in srgb, var(--link) 75%, transparent);
  color: var(--bg);
}

html {
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 64px var(--gutter) 40px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.75 var(--sans);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

#curve {
  position: fixed;
  bottom: 10%;
  right: 10%;
  margin: 0;
  z-index: 0;
  transform: translateX(50%) translateY(50%);
  color: var(--curve);
  font: 16px/1 var(--mono);
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: var(--column);
  margin: 0 auto;
}

p {
  margin: 0 0 24px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: break-word;
}

.name {
  margin: var(--title-lead) 0 30px;
  color: var(--strong);
  font-weight: 700;
}

.status {
  color: var(--dim);
  font-size: 16px;
  margin-bottom: 4px;
}

#presence {
  margin-left: 0.35em;
}

.lanyard {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  pointer-events: auto;
  user-select: none;
}

.lanyard[hidden] {
  display: none;
}

.lanyard-art {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
}

.lanyard-art > img:first-child {
  position: relative;
  z-index: 1;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.lanyard-art-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.lanyard-art-next {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--bg);
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms ease;
}

.lanyard-art-next.is-in {
  opacity: 1;
}

.lanyard-copy {
  display: flex;
  width: 240px;
  flex-direction: column;
  margin-left: 10px;
  color: var(--fg);
  font: 12px/1.2 var(--sans);
  letter-spacing: 0;
  transition: opacity 150ms ease;
}

.lanyard.is-swapping .lanyard-copy {
  opacity: 0;
}

.lanyard-copy strong,
.lanyard-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lanyard-copy strong {
  color: var(--strong);
}

.lanyard-copy span {
  margin-top: 3px;
  color: var(--dim);
}

#clock {
  font-variant-numeric: tabular-nums;
}

#clock .tick {
  display: inline-block;
  white-space: pre;
}

.dim {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.label {
  margin: 24px 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--label);
}

.work {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.work svg {
  flex: none;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.work > div {
  min-width: 0;
}

.work-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.4em;
}

.work-desc::before,
.work-year::before {
  content: "·";
  margin-right: 0.3em;
}

.gap {
  flex: 1;
  min-height: 90px;
}

.square {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.qed {
  position: relative;
  width: 10px;
  height: 10px;
  background: var(--strong);
  cursor: help;
}

.qed-note,
.face-note,
.keypath-note,
.username-note,
.email-note,
.badpath-note {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 12px 32px rgba(0, 0, 0, 0.12);
  background: var(--fg);
  color: var(--bg);
  font: 12px/1.2 var(--sans);
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transform: translate(-50%, 4px) scale(0.95);
  transform-origin: center bottom;
  transition:
    transform 0.15s ease,
    opacity 0.1s ease;
  z-index: 10;
}

.qed:hover .qed-note,
.qed:focus-visible .qed-note,
.face:hover .face-note,
.face:focus-visible .face-note,
.keypath:hover .keypath-note,
.keypath:focus-visible .keypath-note,
.username:hover .username-note,
.username:focus-visible .username-note,
.email:hover .email-note,
.email:focus-visible .email-note,
.badpath:hover .badpath-note,
.badpath:focus-visible .badpath-note {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.15s ease;
}

footer {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--dim);
}

footer > * {
  min-width: 0;
}

.signature {
  flex: none;
  width: 180px;
  height: 64px;
  margin-left: auto;
  overflow: visible;
}

.signature polyline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.signature.is-drawn polyline {
  animation: signature-draw 2s ease-in-out forwards;
}

.signature.is-drawn polyline + polyline {
  animation-delay: 1.5s;
}

@keyframes signature-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.email {
  position: relative;
  cursor: help;
}

.email-note,
.badpath-note {
  letter-spacing: 0.04em;
}

.badpath {
  position: relative;
  cursor: help;
  overflow-wrap: anywhere;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

footer a {
  color: var(--dim);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.polaroid-link {
  position: relative;
}

.polaroid {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 12px 32px rgba(0, 0, 0, 0.12);
  background: var(--bg);
  font: 12px/1.2 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(0.95);
  transform-origin: center bottom;
  transition:
    transform 0.15s ease,
    opacity 0.1s ease;
  z-index: 10;
}

.polaroid-link.is-previewing .polaroid,
.polaroid:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -100%) scale(1);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.15s ease;
}

.github-graph {
  display: block;
  padding: 8px 12px 12px;
}

.github-month-labels {
  display: flex;
  margin-bottom: 4px;
}

.github-month-labels span {
  flex: 1;
  color: #94a3b8;
  font-size: 8px;
  letter-spacing: 0.03em;
}

.contribution-grid {
  display: flex;
  gap: 3px;
}

.contribution-week {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.contribution-week > span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2.5px;
  background: #e0e3e8;
  opacity: 0;
  transform: translateY(4px);
}

.polaroid-link.is-previewing .contribution-week > span {
  animation: github-cell-in 0.1s cubic-bezier(0.48, 0.15, 0.25, 0.96)
    var(--cell-delay) forwards;
}

@keyframes github-cell-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.polaroid-profile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px 4px;
}

.polaroid-profile img {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.polaroid-profile > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.polaroid-profile strong {
  color: var(--strong);
  font-size: 11px;
  line-height: 1.2;
}

.polaroid-profile small,
.polaroid-profile em {
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
}

.polaroid-banner {
  display: block;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d8d0bf, #879f9b 48%, #c46c3c);
}

.polaroid-twitter .polaroid-profile {
  padding-bottom: 8px;
}

.polaroid-twitter .polaroid-profile em {
  max-width: 150px;
  line-height: 1.4;
}

.discord-avatar-wrap {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
}

.discord-avatar-wrap img {
  display: block;
}

.discord-status-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #8a8279;
}

.discord-status-online {
  background: #43a047;
}
.discord-status-idle {
  background: #d99a27;
}
.discord-status-dnd {
  background: #c44c3c;
}

@media (max-width: 44rem) {
  :root {
    --gutter: 16px;
    --face-size: 38px;
    --face-lap: 8px;
  }

  body {
    padding: 40px var(--gutter) 28px;
    font-size: 16px;
  }

  .polaroid {
    display: none;
  }

  #curve {
    right: -50%;
    bottom: 0;
  }

  .name {
    margin: var(--title-lead) 0 24px;
  }

  .label {
    margin: 22px 0 16px;
    letter-spacing: 0.1em;
  }

  .lanyard {
    position: static;
    width: 100%;
    margin: 0 0 26px;
  }

  .lanyard-copy {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .work {
    gap: 5px;
  }

  .work svg {
    width: 13px;
    height: 13px;
  }

  .work-body {
    flex-wrap: nowrap;
  }

  .work-body > a {
    flex: none;
    font-size: clamp(12px, calc(4.7vw - 2.4px), 17px);
  }

  .work-year {
    display: none;
  }

  .work-desc {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: clamp(10.5px, calc(4.08vw - 2.04px), 16px);
  }

  .gap {
    min-height: 56px;
  }

  .recipe {
    overflow-x: auto;
    font-size: 11.5px;
    overscroll-behavior-x: contain;
  }


  .faces {
    margin-top: 16px;
  }

  .face {
    margin-bottom: 10px;
  }

  .qed-note,
  .face-note,
  .keypath-note,
  .username-note,
  .email-note,
  .badpath-note {
    width: max-content;
    max-width: min(66vw, 240px);
    white-space: normal;
  }

  .faces {
    position: relative;
  }

  .face {
    position: static;
  }

  .face-note {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    text-align: center;
    transform: translateY(4px) scale(0.98);
    transform-origin: center bottom;
  }

  .face:hover .face-note,
  .face:focus-visible .face-note {
    transform: translateY(0) scale(1);
  }

  footer {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 0.7em;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.4;
  }

  footer > * {
    white-space: nowrap;
  }

  .footer-name {
    display: none;
  }

  .signature {
    flex: 0 0 100%;
    width: 100%;
    height: 52px;
    margin: 6px 0 0;
  }
}

@media (max-width: 24rem) {
  :root {
    --gutter: 16px;
    --face-size: 34px;
  }

  body {
    padding: 32px var(--gutter) 24px;
  }

  .recipe {
    font-size: 11px;
  }

  footer {
    gap: 8px 0.7em;
  }

  .signature {
    height: 46px;
  }
}

.snippet {
  position: relative;
  margin: 0;
  padding: 15px 16px 13px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel);
  transition: border-radius var(--slide);
}

.copy {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--panel);
  color: var(--dim);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.copy[hidden] {
  display: none;
}

.copy svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 15px;
  height: 15px;
  margin: auto;
  transition:
    opacity 130ms ease,
    transform 260ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

.copy .copy-done,
.copy.is-copied .copy-icon {
  opacity: 0;
  transform: scale(0.55);
}

.copy.is-copied .copy-done {
  opacity: 1;
  transform: none;
}

.copy:hover,
.copy:focus-visible {
  background: var(--tab);
  color: var(--strong);
}

.copy.is-copied {
  color: var(--strong);
}

.recipe {
  margin: 0;
  padding: 0;
  padding-right: 22px;
  color: var(--dim);
  font: 12px/1.8 var(--mono);
  letter-spacing: 0;
  white-space: pre;
}

.lit {
  color: var(--fg);
  font: 0.92em var(--mono);
}

.recipe[hidden] {
  display: none;
}

.shells {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: -1px 0 8px;
}

.shells[hidden] {
  display: none;
}

.tabs {
  position: relative;
  display: flex;
  min-width: 0;
}

.shell {
  position: relative;
  z-index: 1;
  padding: 8px 14px 9px;
  border: 0;
  background: none;
  color: var(--dim);
  font: 500 13px/1 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.18s ease;
}

.ghost,
.glide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--w, 0);
  translate: var(--x, 0) 0;
  pointer-events: none;
  transition:
    translate var(--slide),
    width var(--slide),
    opacity 0.16s ease;
}

.ghost {
  z-index: 0;
  top: 3px;
  height: calc(100% - 6px);
  width: calc(var(--w, 0) - 8px);
  translate: calc(var(--x, 0) + 4px) 0;
  border-radius: 8px;
  background: var(--tab);
  opacity: 0;
}

.tabs.is-hovering .ghost {
  opacity: 1;
}

.tabs.is-settling .ghost,
.tabs.is-settling .glide {
  transition: none;
}

.glide {
  z-index: 0;
  border: 1px solid var(--edge);
  border-top-color: var(--panel);
  border-radius: 0 0 12px 12px;
  background: var(--panel);
}

.glide::before,
.glide::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 11px;
  height: 10px;
  pointer-events: none;
}

.glide::before {
  left: -11px;
  visibility: visible;
  transition: visibility 0s linear 0.24s;
  background:
    linear-gradient(var(--panel), var(--panel)) 100% 0 / 1px 100% no-repeat,
    radial-gradient(
        circle at 0 100%,
        transparent 9px,
        var(--edge) 9px 10px,
        var(--panel) 10px
      )
      0 0 / 10px 100% no-repeat;
}

.glide::after {
  right: -11px;
  background:
    linear-gradient(var(--panel), var(--panel)) 0 0 / 1px 100% no-repeat,
    radial-gradient(
        circle at 100% 100%,
        transparent 9px,
        var(--edge) 9px 10px,
        var(--panel) 10px
      )
      100% 0 / 10px 100% no-repeat;
}

.tabs.at-start .glide::before {
  visibility: hidden;
  transition: visibility 0s linear 0s;
}

.shell[aria-selected="true"] {
  color: var(--strong);
}

.snippet.is-joined {
  border-bottom-left-radius: 0;
}

.faces {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-left: var(--face-lap);
}

.face {
  position: relative;
  margin: 0 0 12px calc(var(--face-lap) * -1);
  border-bottom: 0;
  border-radius: 50%;
  transition:
    translate 190ms cubic-bezier(0.22, 0.61, 0.36, 1),
    z-index 0s 190ms;
  animation: face-in 360ms cubic-bezier(0.34, 1.2, 0.64, 1)
    calc(min(var(--face, 0) * 55ms, 660ms)) backwards;
}

@keyframes face-in {
  from {
    transform: translateY(8px) scale(0.85);
  }
}

.face img {
  display: block;
  width: var(--face-size);
  height: var(--face-size);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--bg);
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 420ms ease,
    filter 420ms ease;
  transition-delay: calc(min(var(--face, 0) * 55ms, 660ms));
}

.face img.is-loaded {
  opacity: 1;
  filter: blur(0);
}

.face-date {
  display: block;
  margin-top: 3px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.face:hover,
.face:focus-visible {
  z-index: 5;
  translate: 0 -4px;
  transition:
    translate 180ms cubic-bezier(0.34, 1.2, 0.64, 1),
    z-index 0s;
}

.keypath {
  color: var(--fg);
  text-decoration: underline dashed 1px;
  text-underline-offset: 3px;
}

.keypath:has(.keypath-note) {
  position: relative;
  cursor: help;
}

.keypath-note,
.username-note {
  letter-spacing: 0.04em;
}

.username {
  text-decoration: underline dashed 1px;
  text-underline-offset: 3px;
}

.username:has(.username-note) {
  position: relative;
  cursor: help;
}

.masthead {
  align-self: flex-start;
  display: block;
  color: var(--strong);
  font-weight: 700;
  line-height: var(--title-lead);
  text-decoration: none;
}

.masthead:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.masthead-ink {
  display: inline-block;
  width: 30px;
  height: 17px;
  margin-left: 7px;
  vertical-align: -2px;
  overflow: visible;
  fill: none;
  stroke: #e34646;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead-ink path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ink-draw 0.5s ease-out 0.15s both;
}

.masthead-ink path + path {
  animation-delay: 0.5s;
}

@keyframes ink-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.name.sub {
  margin-top: 0;
  color: var(--dim);
  font-weight: 500;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 7px 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.09);
  background: var(--bg);
  color: var(--fg);
  font: 500 13.5px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.back::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.back:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 3px 9px rgba(0, 0, 0, 0.07);
}

.back:active {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .signature polyline,
  .signature.is-drawn polyline,
  .signature.is-drawn polyline + polyline {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .lanyard-copy,
  .lanyard-art-next {
    transition: none;
  }

  .masthead-ink path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .contribution-week span,
  .face {
    animation: none;
    opacity: 1;
  }

  .face img {
    opacity: 1;
    filter: none;
    transition: none;
  }

  .copy svg {
    transition: none;
  }

  .qed-note,
  .face-note,
  .keypath-note,
  .username-note,
  .email-note,
  .badpath-note,
  .badpath:hover .badpath-note,
  .badpath:focus-visible .badpath-note,
  .email:hover .email-note,
  .email:focus-visible .email-note,
  .qed:hover .qed-note,
  .qed:focus-visible .qed-note,
  .face:hover .face-note,
  .face:focus-visible .face-note,
  .keypath:hover .keypath-note,
  .keypath:focus-visible .keypath-note,
  .username:hover .username-note,
  .username:focus-visible .username-note,
  .face,
  .polaroid,
  .polaroid-link.is-previewing .polaroid,
  .polaroid:hover {
    transition: none;
  }

  .shell,
  .ghost,
  .glide,
  .glide::before,
  .glide::after,
  .snippet {
    transition: none;
  }
}
