
:root {
  color-scheme: light;
  --green: #173d30;
  --cycle: 6s;
  color: var(--green);
  background: #fff;
  font-family: Georgia, 'Times New Roman', serif;
}

body { margin: 0; }
main { min-height: 100svh; display: grid; place-items: center; }
.sprig {
  width: 52px;
  height: 106px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The stem rises first; staggered leaves unfold from their attachment points. */
.stem { stroke-dasharray: 1; animation: stem-grow var(--cycle) cubic-bezier(.4, 0, .2, 1) infinite; }
.leaf { fill: var(--green); stroke: none; animation: var(--growth) var(--cycle) cubic-bezier(.45, 0, .25, 1) infinite; }
.leaf-left { transform-origin: 36px 62px; --growth: left-grow; --fold: 18deg; }
.leaf-right { transform-origin: 36px 74px; --growth: right-grow; --fold: -22deg; }

@keyframes stem-grow {
  0%, 100% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  38%, 78% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes left-grow {
  0%, 24%, 75%, 100% { transform: rotate(var(--fold)) scale(.02); opacity: 0; }
  45%, 60% { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes right-grow {
  0%, 14%, 82%, 100% { transform: rotate(var(--fold)) scale(.02); opacity: 0; }
  36%, 66% { transform: rotate(0) scale(1); opacity: 1; }
}

::selection { background: #dce7df; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
.project-grid { max-width: 640px; margin: 0 auto 64px; padding-inline: 24px; }
.project-card { margin-block: 40px; }
.project-link { text-decoration: none; }
.project-link:hover h3 { text-decoration: underline; }
.project-card h3 { font-size: 20px; font-weight: normal; }
.project-card p { line-height: 1.6; }
.project-image img { width: 100%; height: auto; }
.project-meta { display: flex; justify-content: space-between; font-size: 13px; }
.not-found { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .stem, .leaf { animation: none; }
}
