:root {
  color-scheme: light;
  --paper: #fcfaf5;
  --ink: #1d2032;
  --muted: #4a4b60;
  --purple: #542dc2;
  --lime: #e0fb77;
  --line: #dedbe3;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
.frame { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { margin-right: 9px; }
.brand span { color: var(--purple); }
nav { display: flex; gap: clamp(18px, 4vw, 38px); }
nav a { font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .3em; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 34px; align-items: center; padding-block: 61px; }
.label, .section-title {
  font: 700 .875rem/1.5 "Cascadia Mono", Consolas, monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.label { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--purple); }
.label span { width: 10px; height: 10px; background: var(--purple); }
h1 {
  font-size: clamp(3rem, 6.65vw, 5.85rem);
  font-weight: 900;
  line-height: .87;
  letter-spacing: -.09em;
  margin: 0;
}
h1 em { font-style: normal; color: var(--purple); }
.intro { max-width: 29ch; margin: 26px 0; color: var(--muted); font-size: 1.2rem; line-height: 1.5; }
.button {
  display: inline-block;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 4px var(--ink);
  padding: 11px 17px;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: #d3ef63; }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 2px var(--ink); }
.playfield {
  aspect-ratio: 1.08;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 23px;
  box-shadow: 6px 6px var(--ink);
  background-color: #c7b5fa;
  background-image: linear-gradient(#1d203219 1px, transparent 1px), linear-gradient(90deg, #1d203219 1px, transparent 1px);
  background-size: 26px 26px;
}
.orbit { position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed #675596; }
.sticker {
  width: 66%;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  transform: translateY(-4%) rotate(-10deg);
  filter: drop-shadow(7px 8px #2b20434c);
}
.sticker img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.shadow { width: 37%; height: 6%; border-radius: 50%; background: #271b4f35; position: absolute; top: 79%; }
.spark, .dot { position: absolute; }
.spark { color: var(--ink); font-size: clamp(1.7rem, 5vw, 3.9rem); line-height: 1; }
.spark-top { top: 12%; right: 12%; }
.spark-bottom { bottom: 17%; left: 12%; color: #fff; text-shadow: 2px 2px var(--ink); }
.dot { width: 13px; height: 13px; background: var(--lime); border: 2px solid var(--ink); }
.dot-top { left: 15%; top: 20%; transform: rotate(12deg); }
.dot-bottom { right: 18%; bottom: 16%; transform: rotate(-12deg); }
.work, .studio { border-top: 1px solid var(--line); padding-block: 28px 34px; scroll-margin-top: 12px; }
.section-title { color: var(--purple); margin: 0 0 14px; }
.project {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  border-radius: 16px;
  background: #e9e1ff;
  padding: clamp(17px, 3vw, 28px);
}
.project-icon { flex: 0 0 auto; display: flex; padding-inline: 5px; }
.project-icon span {
  display: grid;
  place-items: center;
  width: clamp(30px, 6vw, 49px);
  aspect-ratio: 1;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px var(--ink);
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.7rem);
  transform: rotate(-11deg);
}
.project-icon span + span { background: #fbb6c9; transform: translateY(3px) rotate(9deg); }
.project h3 { margin: 0 0 4px; font-size: clamp(1.2rem, 3vw, 1.75rem); letter-spacing: -.035em; }
.project p, .studio p { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.55; }
.studio p { max-width: 58ch; }
.footer { min-height: 76px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 1.25rem; }
.footer > span { color: var(--muted); font-size: .9rem; text-align: right; }

@media (max-width: 760px) {
  .frame { width: calc(100% - 40px); }
  .header { min-height: 69px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 39px; gap: 28px; }
  h1 { font-size: clamp(2.4rem, 10.1vw, 5.2rem); }
  .label { margin-bottom: 16px; }
  .intro { margin-block: 19px; }
  .playfield { max-height: 430px; }
  .sticker { width: min(66%, 290px); }
  .orbit { width: min(68%, 310px); }
}
