:root {
  --paper: #eff3ff;
  --ink: #19234a;
  --blue: #2b45c6;
  --yellow: #ffdf5a;
  --pink: #ffadcb;
  --white: #fff;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(100% - 2rem, 67.5rem); margin-inline: auto; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 2px solid;
  border-radius: 50%;
  background: var(--yellow);
}

nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; font-weight: 700; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5rem);
  padding-block: clamp(2.8rem, 8vw, 6rem);
}

h1 {
  font-size: clamp(2.65rem, 7.5vw, 6.25rem);
  line-height: 0.93;
  font-weight: 900;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h1 span { color: var(--blue); }
.welcome p {
  max-width: 28ch;
  margin-block: 1.4rem 1.15rem;
  font-size: clamp(1.13rem, 2.4vw, 1.55rem);
  line-height: 1.4;
}
.jump { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; color: var(--blue); font-weight: 800; }
.jump span { font-size: 1.25em; }

.machine {
  padding: clamp(1rem, 3.5vw, 1.65rem);
  border: 2px solid var(--ink);
  border-radius: 1.8rem;
  color: var(--white);
  background-color: var(--blue);
  background-image: radial-gradient(circle, #a9b6ff55 1px, transparent 1.5px);
  background-size: 17px 17px;
  box-shadow: 5px 6px 0 var(--ink);
}
.machine h2 { font-size: clamp(1.45rem, 3vw, 2rem); text-align: center; }
.robot { display: block; width: min(100%, 18.75rem); height: auto; margin-inline: auto; }
.idea {
  display: grid;
  align-content: center;
  min-height: 5.5rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  color: var(--ink);
  background: var(--white);
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.3;
}
.idea-button {
  width: 100%;
  min-height: 2.9rem;
  margin-top: 0.7rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  color: var(--ink);
  background: var(--yellow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.idea-button:hover { background: var(--pink); }
.idea-button:focus-visible { outline-color: var(--white); }
.idea-button span { margin-left: 0.4rem; }

.projects { padding-block: 1.6rem 2.5rem; border-top: 2px solid var(--ink); }
.projects h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -0.04em; }
.projects ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.projects li {
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.85rem;
  background: var(--white);
}
.projects h3 { margin-block: 0.5rem 0.25rem; font-size: 1.28rem; }
.projects p { line-height: 1.45; }
.sticker {
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 2px solid;
  border-radius: 50%;
  font-size: 1.4rem;
}
.sticker-pink { background: var(--pink); }
.sticker-yellow { background: var(--yellow); }
.sticker-blue { background: var(--paper); }
footer { padding-block: 1rem 1.6rem; border-top: 2px solid var(--ink); font-weight: 700; }

@media (max-width: 42rem) {
  .hero { grid-template-columns: 1fr; }
  .projects ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .robot.spark { animation: hop 300ms ease-out; }
  @keyframes hop { 50% { transform: translateY(-0.35rem) rotate(2deg); } }
}
