:root {
  color-scheme: light;
  --ink: #111529;
  --muted: #5f6472;
  --line: #e7e5e1;
  --orange: #ff570f;
  --violet: #7343db;
  --pink: #f43b78;
  --teal: #008d8c;
  --moss: #6a7616;
  --blue: #0d62ed;
  --warm: #fff9f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.cap-mark,
.hero-cap {
  display: inline-block;
  width: 46px;
  height: 24px;
  position: relative;
  border-radius: 22px 22px 8px 8px;
  background: var(--orange);
  transform: rotate(14deg);
}

.cap-mark::before,
.hero-cap::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 8px;
  left: 16px;
  top: -7px;
  border: 4px solid var(--orange);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.cap-mark::after,
.hero-cap::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 7px;
  left: -10px;
  bottom: -3px;
  border-radius: 50%;
  background: #cf4100;
  transform: rotate(-4deg);
}

nav {
  display: flex;
  gap: 45px;
}

nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
}

nav a:hover {
  color: var(--orange);
}

.hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 44px;
  padding: 52px 0 36px;
}

.hero h1 {
  max-width: 740px;
  margin: 0 0 23px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.hero-copy > p {
  max-width: 610px;
  margin: 0 0 31px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 25px rgba(255, 87, 15, 0.18);
  text-decoration: none;
  font-size: 17px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 87, 15, 0.25);
}

.hero-art {
  min-height: 360px;
  position: relative;
}

.art-blob {
  position: absolute;
  width: 370px;
  height: 280px;
  top: 42px;
  right: 8px;
  border-radius: 52% 48% 60% 40%;
  background: #fff3e6;
  transform: rotate(-8deg);
}

.hero-cap {
  width: 200px;
  height: 120px;
  position: absolute;
  z-index: 2;
  top: 100px;
  right: 96px;
  border-radius: 100px 100px 20px 20px;
  transform: rotate(2deg);
}

.hero-cap::before {
  width: 34px;
  height: 21px;
  left: 82px;
  top: -16px;
  border-width: 8px;
}

.hero-cap::after {
  width: 122px;
  height: 25px;
  left: -44px;
  bottom: -8px;
}

.spark,
.smile,
.squiggle {
  position: absolute;
  z-index: 3;
  font-weight: 900;
}

.spark-one {
  top: 28px;
  left: 30%;
  color: var(--violet);
  font-size: 46px;
}

.spark-two {
  top: 160px;
  right: 0;
  color: var(--ink);
  font-size: 48px;
}

.smile {
  left: 17%;
  bottom: 42px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 5px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 46px;
  line-height: 1;
}

.squiggle {
  right: 18px;
  top: 36px;
  color: var(--teal);
  font-size: 88px;
  transform: rotate(-25deg);
}

.hero-fruit {
  width: 54px;
  height: 54px;
  position: absolute;
  z-index: 4;
  object-fit: contain;
  animation: float 2.4s ease-in-out infinite alternate;
}

.fruit-one {
  left: 17%;
  top: 132px;
}

.fruit-two {
  right: 15%;
  bottom: 25px;
  animation-delay: -1s;
}

.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: 35px;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  background: linear-gradient(120deg, #fffdfb, #fff7ee);
}

.memory-preview {
  padding: 16px;
  border: 1px solid #e7e2dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(49, 35, 24, 0.08);
}

.preview-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 13px;
  font-weight: 800;
}

.preview-status span:first-child {
  color: var(--orange);
}

.preview-status span:last-child {
  color: #269743;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.preview-grid div {
  aspect-ratio: 1.22;
  display: grid;
  place-items: center;
  border: 1px solid #e9ddd2;
  border-radius: 7px;
  background: #fffdfb;
}

.preview-grid img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.preview-grid span {
  color: var(--orange);
  font-size: 28px;
  font-weight: 950;
}

.featured-copy {
  align-self: center;
}

.featured-copy h2 {
  margin: 7px 0 18px;
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.featured-copy > p:not(.category) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.featured-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 27px;
  padding: 0;
  list-style: none;
}

.featured-copy li {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 15px;
}

.featured-copy li span {
  color: var(--violet);
  font-weight: 900;
}

.category {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
}

.category-violet { color: var(--violet); }
.category-orange { color: var(--orange); }
.category-pink { color: var(--pink); }
.category-teal { color: var(--teal); }
.category-moss { color: var(--moss); }
.category-blue { color: var(--blue); }

.projects-section {
  padding: 65px 0 35px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 13px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: 41px;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 440px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.5;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 82px 250px minmax(220px, 1fr) 170px;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-icon {
  width: 72px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  font-size: 24px;
  font-weight: 950;
}

.project-icon img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.icon-orange { color: var(--orange); background: #fff0e2; }
.icon-pink { background: #ffe6ee; }
.icon-teal { color: var(--teal); background: #def6f5; }
.icon-moss { background: #eef0ce; }
.icon-blue { color: var(--blue); background: #e3efff; }

.project-name h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.project-row > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-action {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: background 150ms ease, color 150ms ease;
}

.action-orange { color: var(--orange); }
.action-pink { color: var(--pink); }
.action-teal { color: var(--teal); }
.action-moss { color: var(--moss); }
.action-blue { color: var(--blue); }

.project-action:hover {
  color: #fff;
  background: currentColor;
}

.about {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 50px;
  margin: 35px 0 65px;
  padding: 48px;
  border-radius: 16px;
  background: #f5f7fa;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

footer {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer > a:last-child {
  justify-self: end;
  color: var(--muted);
  text-decoration: none;
}

.footer-brand {
  font-size: 16px;
}

.footer-brand .cap-mark {
  width: 35px;
  height: 18px;
}

@keyframes float {
  to { transform: translateY(-10px) rotate(6deg); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 72px 1fr 145px;
  }

  .project-row > p {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .project-action {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 660px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 17px;
  }

  .cap-mark {
    width: 35px;
    height: 19px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .featured {
    gap: 28px;
    padding: 17px;
  }

  .preview-status {
    font-size: 11px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-row {
    grid-template-columns: 62px 1fr;
    gap: 12px 15px;
    padding: 22px 0;
  }

  .project-icon {
    width: 62px;
    height: 58px;
  }

  .project-row > p,
  .project-action {
    grid-column: 2;
    grid-row: auto;
  }

  .project-action {
    width: 145px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 28px 0;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

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