:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #617088;
  --paper: #fffaf0;
  --paper-alt: #effff6;
  --line: #20283a;
  --blue: #346df1;
  --blue-dark: #153a92;
  --green: #22a467;
  --yellow: #ffd45c;
  --pink: #ff76a6;
  --red: #f15b4a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 212, 92, .9) 0 4.5rem, transparent 4.6rem),
    radial-gradient(circle at 92% 20%, rgba(255, 118, 166, .32) 0 7rem, transparent 7.1rem),
    linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(135deg, #a7ddff 0%, #d3f6c9 55%, #fff0a6 100%);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 82%, var(--pink) 0 .45rem, transparent .5rem),
    radial-gradient(circle at 45% 18%, var(--green) 0 .38rem, transparent .43rem),
    radial-gradient(circle at 72% 78%, var(--blue) 0 .42rem, transparent .47rem),
    radial-gradient(circle at 86% 58%, var(--red) 0 .36rem, transparent .41rem);
  opacity: .55;
}

main {
  width: min(94vw, 1050px);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 0 7rem;
  position: relative;
  z-index: 1;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 .45rem;
  color: #146b45;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy,
.side-note {
  border: .25rem solid var(--line);
  border-radius: 8px;
  box-shadow: .45rem .45rem 0 rgba(32, 40, 58, .18);
}

.hero-copy {
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: rgba(255, 250, 240, .88);
}

.side-note {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, .9) 0 .7rem,
      rgba(255, 212, 92, .92) .7rem 1.4rem
    );
  transform: rotate(1.2deg);
}

.side-note strong {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: .95;
  text-transform: uppercase;
}

.side-note span {
  color: var(--ink);
  font-weight: 900;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border: .2rem solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: 0 .3rem 0 rgba(23, 32, 51, .2);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.intro {
  max-width: 43rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.5;
}

.shelf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
}

.shelf h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.count {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 .9rem;
  border: .2rem solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 900;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.15rem;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 19.5rem;
  padding: 1.1rem;
  border: .25rem solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: .45rem .45rem 0 rgba(23, 32, 51, .2);
  transform: rotate(-.6deg);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -.8rem;
  right: -.8rem;
  width: 5.4rem;
  aspect-ratio: 1;
  border: .25rem solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
}

.project-card::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  width: 1.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: -1.5rem 1.4rem 0 var(--green);
}

.project-card:hover {
  transform: translateY(-.25rem) rotate(0deg);
  box-shadow: .6rem .7rem 0 rgba(23, 32, 51, .18);
}

.project-card:nth-child(even) {
  transform: rotate(.7deg);
  background: var(--paper-alt);
}

.project-card:nth-child(even):hover {
  transform: translateY(-.25rem) rotate(0deg);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.category {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border: .2rem solid var(--line);
  border-radius: 50%;
  color: var(--line);
  background: white;
  font-weight: 900;
}

.badge {
  width: max-content;
  margin-bottom: .8rem;
  padding: .32rem .6rem;
  border: .16rem solid var(--line);
  border-radius: 999px;
  background: #dff8e8;
  color: #146b45;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.project-card p {
  margin: .8rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  border: .2rem solid var(--blue-dark);
  border-radius: 8px;
  color: white;
  background: var(--blue);
  box-shadow: 0 .35rem 0 var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.project-card a:active,
.home-link:active {
  transform: translateY(.22rem);
  box-shadow: 0 .13rem 0 rgba(23, 32, 51, .28);
}

.empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: .25rem dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-weight: 800;
}

.shapes {
  position: fixed;
  inset: auto 0 0;
  height: 7rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 60%, var(--red) 0 1.1rem, transparent 1.15rem),
    radial-gradient(circle at 34% 30%, var(--yellow) 0 1.3rem, transparent 1.35rem),
    radial-gradient(circle at 68% 70%, var(--green) 0 1rem, transparent 1.05rem),
    radial-gradient(circle at 88% 35%, var(--blue) 0 1.25rem, transparent 1.3rem);
  opacity: .9;
}

@media (max-width: 620px) {
  header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .side-note {
    transform: none;
  }

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