html, body {
  margin: 0;
  padding: 0;
  background-color: #efece4;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #2a2a2a;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem 0.2rem;
}

header img {
  width: 54px;
  height: 54px;
  display: block;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.sub-header {
  text-align: center;
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #8a8378;
}

main {
  flex: 1;
  padding: 3rem 1.5rem 1rem;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: #f8f2e6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-shadow:
    6px 7px 0 rgba(90, 70, 40, 0.08),
    0 1px 2px rgba(90, 70, 40, 0.06),
    0 16px 28px -14px rgba(90, 70, 40, 0.22);
  padding: 1.75rem 2rem;
  margin: 0 0 2rem;
  isolation: isolate;
}

.card-stack > .card:last-child {
  margin-bottom: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: #6b6862;
}

.card p,
.card li {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3a352e;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li + li {
  margin-top: 0.9rem;
}

.project a {
  display: inline-block;
  font-weight: 500;
  color: #2a2a2a;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.project a:hover {
  color: #55504a;
  border-bottom-color: rgba(0, 0, 0, 0.4);
}

.project .tagline {
  display: block;
  margin-top: 0.15rem;
  color: #6b6862;
}

.role {
  display: block;
  margin: 0.3rem 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #8a8378;
}

.about-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: #2a2a2a;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.more-toggle {
  position: absolute;
  width: 88px;
  height: 88px;
  background: none;
  background-repeat: no-repeat;
  background-size: 600% 400%;
  background-position: 0% 0%;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  transform: rotate(var(--tilt, 0deg)) scale(1);
  transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1);
}

.more-toggle:hover {
  transform: rotate(var(--tilt, 0deg)) scale(1.08);
}

.more-toggle.open {
  transform: rotate(calc(var(--tilt, 0deg) + 6deg)) scale(1);
}

.more-toggle--hero {
  top: -34px;
  right: 4px;
  --tilt: -10deg;
  background-image: url('origami-flower-opening-star-stars-6x4-256px.png');
}

.more-toggle--projects {
  bottom: -46px;
  left: 16%;
  --tilt: 12deg;
  background-image: url('origami-flower-opening-antenna-arabesque-6x4-256px.png');
}

.more-toggle--about {
  bottom: -34px;
  right: -34px;
  --tilt: -25deg;
  background-image: url('origami-flower-opening-spider-dipped-6x4-256px.png');
}

.more-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(.22, 1, .36, 1);
}

.more-wrap.open {
  grid-template-rows: 1fr;
}

.more-inner {
  overflow: hidden;
}

.more-text {
  margin: 0;
  padding-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3a352e;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.more-wrap.open .more-text {
  opacity: 1;
  transition: opacity 0.35s ease 0.15s;
}

.card--hero {
  max-width: 440px;
  z-index: 3;
}

.card--projects {
  max-width: 460px;
  margin-left: auto;
  margin-right: 4%;
  transform: translate(10px, -14px);
  z-index: 2;
}

.card--about {
  max-width: 460px;
  margin-right: auto;
  margin-left: 4%;
  transform: translate(-10px, -14px);
  z-index: 1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #6b6862;
}

.egg-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('origami-flower-opening-star-chevron-6x4-256px.png');
  background-repeat: no-repeat;
  background-size: 600% 400%;
  background-position: 0% 0%;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.egg-link:hover,
.egg-link:focus-visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .card--projects,
  .card--about {
    transform: none;
    margin-left: 0;
    margin-right: 0;
  }
}
