:root {
  --milk: #ffd0de;      /* strawberry milk, the page */
  --rose: #ff9dbb;
  --hot: #ff5c93;       /* the sticker pink */
  --deep: #d93d77;
  --cream: #fff8ef;
  --paper: #fffdf8;
  --line: #f6c6d4;
  --ink: #5a2a3c;       /* plum, for text and outlines */
  --soft: #8a5a6b;
  --mint: #bfead0;
  --butter: #ffe59a;
  --term: #46202f;
  --round: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 500 17px/1.6 var(--round);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--milk);
  background-image:
    linear-gradient(rgba(255, 255, 255, .34) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, .34) 50%, transparent 50%);
  background-size: 52px 52px;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 6px;
  font: 500 16px var(--mono);
  text-decoration: none;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
}
.brand img { display: block; border-radius: 50%; }
.nav nav { display: flex; gap: 4px; }
.nav nav a {
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.nav nav a:hover { background: rgba(255, 255, 255, .7); }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petal { position: absolute; width: 44px; height: 44px; animation: bob 6s ease-in-out infinite; }
.p1 { top: 15%; left: 6%; width: 54px; height: 54px; }
.p2 { top: 58%; right: 5%; width: 62px; height: 62px; animation-delay: -2s; }
.p3 { top: 30%; right: 11%; width: 34px; height: 34px; animation-delay: -1s; }
.p4 { bottom: 9%; left: 9%; width: 40px; height: 40px; animation-delay: -3.500s; }
.p5 { top: 64%; left: 4%; width: 26px; height: 26px; animation-delay: -4s; }
.p6 { top: 11%; right: 28%; width: 22px; height: 22px; animation-delay: -2.500s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}

.stage {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 150px 20px 76px;
}
.window-wrap { position: relative; }

/* the cat looks over the top of the window */
.cat {
  position: absolute;
  z-index: 1;
  top: -121px;
  right: 9%;
  width: 190px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
  -webkit-tap-highlight-color: transparent;
}
.cat svg { display: block; width: 100%; height: auto; }
.cat:hover { transform: translateY(-8px); }
.cat:active { transform: translateY(4px); }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5.500s infinite; }
@keyframes blink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(.1); }
}
.bubble {
  position: absolute;
  top: -8px;
  left: -62px;
  padding: 3px 13px 4px;
  font: 800 17px var(--round);
  white-space: nowrap;
  color: var(--ink);
  background: var(--paper);
  border: 2.500px solid var(--ink);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 0 var(--ink);
  animation: pop .35s cubic-bezier(.3, 1.7, .5, 1);
}
@keyframes pop { from { transform: scale(.4) rotate(-10deg); opacity: 0; } }

.window {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 9px 0 var(--ink), 0 26px 40px rgba(217, 61, 119, .22);
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--rose);
  border-bottom: 3px solid var(--ink);
  border-radius: 18px 18px 0 0;
}
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i {
  width: 13px; height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--hot);
}
.dots i:nth-child(2) { background: var(--butter); }
.dots i:nth-child(3) { background: var(--mint); }
.url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 0 1 300px;
  padding: 4px 14px;
  font: 500 15px var(--mono);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.url svg { flex: none; color: var(--soft); }
.caret {
  width: 2px; height: 1.050em;
  margin-left: -5px;
  background: var(--hot);
  animation: caret 1.100s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* paws on the top edge, lined up under the cat */
.paws {
  position: absolute;
  top: -15px;
  right: calc(9% + 34px);
  display: flex;
  gap: 62px;
  pointer-events: none;
}
.paws i {
  width: 34px; height: 24px;
  background: #fffaf2;
  border: 3px solid var(--ink);
  border-radius: 14px 14px 12px 12px;
}

.page { padding: 44px 44px 50px; text-align: center; }
.kicker { font: 500 17px var(--mono); color: var(--soft); }

h1 { position: relative; margin: 2px 0 30px; line-height: 1; }
.nya {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: clamp(96px, 20vw, 200px);
  padding: 1px 10px 2px;
  font: 800 clamp(12px, 1.700vw, 15px) var(--round);
  color: var(--deep);
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transform: rotate(8deg);
}
.sticker {
  display: inline-flex;
  font: 800 clamp(58px, 14.500vw, 132px)/1.050 var(--round);
  letter-spacing: -.035em;
  color: var(--hot);
  -webkit-text-stroke: clamp(9px, 1.900vw, 16px) #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 clamp(4px, .800vw, 7px) 0 var(--deep));
}
.sticker b { display: inline-block; font-weight: 800; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); }
.sticker b:nth-child(odd) { transform: rotate(-4deg) translateY(2px); }
.sticker b:nth-child(even) { transform: rotate(3.500deg) translateY(-3px); }
.sticker b:nth-child(3n) { color: #ff7aa6; }
.sticker b:hover { transform: translateY(-10px) rotate(0deg) scale(1.060); }

.lede {
  max-width: 30em;
  margin: 0 auto;
  font-size: clamp(17px, 2.100vw, 20px);
  line-height: 1.550;
  text-wrap: balance;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-block;
  padding: 9px 20px 10px;
  font-weight: 800;
  text-decoration: none;
  border: 2.500px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn.pink { background: var(--rose); }
.btn.mint { background: var(--mint); }
.btn.butter { background: var(--butter); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }

/* terminal and the name tag, tucked under the window */
.under {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin: -22px 20px 0;
}
.term {
  flex: 0 1 430px;
  padding: 16px 20px 18px;
  font: 400 14px/1.550 var(--mono);
  overflow: hidden;
  color: #ffe9f0;
  background: var(--term);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-1.500deg);
}
.term p { white-space: pre; }
.term b { font-weight: 500; color: #fff; text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 3px; }
.term .dim { color: #c995aa; }
.term .hot { color: #ff8fb5; }
.term .ok { color: #9be3bb; }
.tag {
  flex: 0 1 270px;
  margin-top: 34px;
  padding: 14px 18px 16px;
  font-size: 15px;
  line-height: 1.500;
  background: var(--butter);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(2deg);
}
.spell { margin-bottom: 6px; font: 500 19px var(--mono); color: var(--soft); letter-spacing: -.01em; }
.spell b { font-weight: 500; color: var(--ink); background: var(--paper); border-radius: 5px; padding: 0 3px; box-shadow: 0 2px 0 var(--hot); }

.scallop {
  position: relative;
  z-index: 1;
  height: 26px;
  background: radial-gradient(circle at 22px 30px, var(--cream) 22px, transparent 23px) repeat-x;
  background-size: 44px 26px;
}

/* ---------- projects ---------- */

.projects { max-width: 1040px; margin: 0 auto; padding: 54px 20px 30px; text-align: center; }
.title {
  margin: 0;
  font: 800 clamp(30px, 5vw, 44px)/1.150 var(--round);
  letter-spacing: -.02em;
}
.sub { margin-top: 6px; color: var(--soft); }
.sub code, footer code {
  padding: 1px 7px 2px;
  font-size: .9em;
  color: var(--ink);
  background: #ffe3ec;
  border-radius: 7px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 26px 22px;
  margin-top: 38px;
  text-align: left;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2.500px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s;
}
.card:hover { transform: translateY(-5px) rotate(-.600deg); box-shadow: 0 11px 0 var(--ink); }
.card:nth-child(even):hover { transform: translateY(-5px) rotate(.600deg); }
.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--tint);
  border-bottom: 2.500px solid var(--ink);
  border-radius: 15px 15px 0 0;
}
.mini .dots i { width: 10px; height: 10px; border-width: 1.500px; }
.mini-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 12.500px var(--mono);
  color: var(--ink);
  opacity: .8;
}
.body { display: flex; gap: 14px; padding: 18px 18px 6px; flex: 1; }
.icon {
  flex: none;
  width: 60px; height: 60px;
  border: 2.500px solid var(--ink);
  border-radius: 16px;
  background: var(--tint);
}
img.icon { display: block; }
.icon.glyph, .icon.doodle { display: grid; place-items: center; overflow: hidden; }
.icon.glyph svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.400; stroke-linecap: round; stroke-linejoin: round; }
.icon.doodle { background: #fff; }
.icon.doodle img { width: auto; height: 50px; }
.card h3 { margin: 0 0 3px; font: 800 21px/1.200 var(--round); letter-spacing: -.01em; }
.card p { font-size: 15.500px; line-height: 1.500; color: #6f4252; }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 18px 16px; }
.chip {
  padding: 1px 9px 2px;
  font: 500 12px var(--mono);
  background: var(--cream);
  border: 1.500px solid var(--line);
  border-radius: 999px;
}
.chip.star { background: var(--butter); border-color: #eccf6c; }
.links { display: flex; gap: 14px; margin-left: auto; }
.links a { font-weight: 800; font-size: 15px; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2.500px; text-underline-offset: 4px; }
.links a:hover { text-decoration-color: var(--hot); }
.more { margin-top: 36px; font-weight: 700; }
.more a { text-decoration-color: var(--rose); text-decoration-thickness: 2.500px; text-underline-offset: 4px; }

footer {
  margin-top: 40px;
  padding: 34px 20px 44px;
  text-align: center;
  font-size: 15px;
  color: var(--soft);
  border-top: 2.500px dashed var(--line);
}
footer .port { margin-bottom: 8px; font-weight: 700; color: var(--ink); }
footer a { font-weight: 700; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .stage { padding: 124px 16px 60px; }
  .cat { width: 150px; top: -96px; right: 7%; }
  .paws { top: -13px; right: calc(7% + 26px); gap: 48px; }
  .paws i { width: 28px; height: 20px; }
  .page { padding: 34px 18px 44px; }
  .under { flex-direction: column; align-items: center; gap: 16px; margin: -18px 6px 0; }
  .term { flex: none; width: 100%; max-width: 430px; font-size: 12.500px; padding: 14px 14px 16px; }
  .tag { flex: none; width: min(100%, 300px); margin-top: 0; }
  .petal.p3, .petal.p4, .petal.p6 { display: none; }
  .nav nav a { padding: 6px 9px; }
  .nya { top: -12px; left: auto; right: -4px; margin-left: 0; }
}
@media (max-width: 380px) {
  .nav { padding: 16px 14px 0; }
  .nav nav a[href^="#"] { display: none; }
  .term { font-size: 11.300px; }
  .dots i { width: 11px; height: 11px; }
  .bar { gap: 10px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
