@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #252724;
  --muted: #6c7069;
  --line: #dddfd5;
  --accent: #6550cb;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: auto;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #dad2ff; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20; padding: 14px;
  background: var(--ink); color: white; transform: translateY(-160%); border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.header {
  min-height: 96px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -.7px; }
.brand-mark {
  width: 36px; height: 39px; border-radius: 10px 10px 10px 3px; background: var(--ink);
  color: white; text-align: center; font: italic 700 35px/39px Georgia, serif; letter-spacing: -4px; padding-right: 4px;
}
.brand-mark span { color: #c5b6ff; }
.brand-suffix { color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 28px; align-items: center; }
nav a { display: inline-flex; align-items: center; gap: 7px; padding-block: 12px; font-size: 13px; white-space: nowrap; }
nav a:hover { color: var(--accent); }
nav a > span[aria-hidden] { color: var(--muted); }
main { padding-block: 40px 64px; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.4; margin: 0 0 28px; letter-spacing: -.7px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.project {
  --spring: cubic-bezier(.22, 1.35, .36, 1);
  --project-tint: #f0ebff;
  --project-outline: #d9cff5;
  --playful-tilt: .8deg;
  position: relative; isolation: isolate; min-width: 0;
  transform: translateY(var(--lift, 0px)) scale(var(--press, 1));
  transition: transform .45s var(--spring);
}
#project-fart { --project-tint: #edf3df; --project-outline: #cddcb5; --playful-tilt: -.8deg; }
#project-rubduck { --project-tint: #fff4d7; --project-outline: #ead8a7; }
.project::before {
  content: ""; position: absolute; inset: -12px; z-index: -1; pointer-events: none;
  border: 1px solid var(--project-outline); border-radius: 24px;
  background: linear-gradient(145deg, #fff 30%, var(--project-tint));
  box-shadow: 0 20px 32px -24px #38372e55;
  opacity: var(--highlight, 0); transform: scale(var(--panel-scale, .985));
  transition: opacity .25s ease, transform .45s var(--spring);
}
.project-visual {
  display: block; aspect-ratio: 1.5; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: #efefe8;
}
.project-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: scale(var(--zoom, 1)) rotate(var(--tilt, 0deg));
  transition: transform .6s var(--spring);
}
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
h2 { font-size: 22px; font-weight: 650; line-height: 1.4; letter-spacing: -.5px; margin: 0; }
.category-label {
  font-size: 11px; color: var(--muted); border-radius: 20px; padding: 4px 8px;
  background: var(--detail-background, transparent);
  transform: translateY(var(--badge-lift, 0px)) rotate(var(--tilt, 0deg));
  transition: background .25s ease, transform .45s var(--spring);
}
.description { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 10px 0 0; }
.project-links { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.launch-link { display: inline-flex; align-items: center; gap: 15px; padding: 8px 0; color: var(--accent); font-size: 13px; font-weight: 600; }
.launch-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.launch-link > span[aria-hidden] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--detail-background, transparent);
  transform: translate(var(--arrow-x, 0px), var(--arrow-y, 0px));
  transition: transform .45s var(--spring), background .25s ease;
}
/* Hover is reserved for a mouse/trackpad so touch has no sticky hover state. */
@media (hover: hover) and (pointer: fine) {
  .project:hover {
    --lift: -8px; --zoom: 1.045; --tilt: var(--playful-tilt);
    --highlight: 1; --panel-scale: 1; --detail-background: var(--project-tint);
    --badge-lift: -2px; --arrow-x: 4px; --arrow-y: -3px;
  }
}
/* Keyboard selection has the same feedback, without retaining mouse focus. */
.project:has(a:focus-visible) {
  --lift: -8px; --zoom: 1.045; --tilt: var(--playful-tilt);
  --highlight: 1; --panel-scale: 1; --detail-background: var(--project-tint);
  --badge-lift: -2px; --arrow-x: 4px; --arrow-y: -3px;
}
/* Only actual links depress the card; releasing springs back to its state. */
.project:has(a:active) {
  --lift: -1px; --press: .98; --zoom: 1.018; --tilt: 0deg;
  --highlight: 1; --panel-scale: 1; --detail-background: var(--project-tint);
  --badge-lift: 0px; --arrow-x: 1px; --arrow-y: 0px;
  transition-duration: .1s;
}
.project:has(a:active) .project-visual img,
.project:has(a:active) .category-label,
.project:has(a:active) .launch-link > span[aria-hidden] { transition-duration: .1s; }
.source-link { font-size: 12px; padding: 8px 0; color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 22px 14px; }
  .brand { font-size: 20px; }
  nav { width: 100%; gap: 25px; }
  nav a { font-size: 13px; }
  main { padding-block: 28px 40px; }
  h1 { font-size: 24px; margin-bottom: 22px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .project-visual { aspect-ratio: 1.5; }
  .project-head { margin-top: 17px; }
  h2 { font-size: 21px; }
}
@media (max-width: 360px) {
  nav { gap: 21px; }
  nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .project,
  .project::before,
  .project-visual img,
  .category-label,
  .launch-link > span[aria-hidden] {
    transition: none;
    transform: none;
  }
}
