@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #222127;
  --muted: #68626d;
  --paper: #fffaf7;
  --pink: #f5a9c5;
  --pink-dark: #dc6f99;
  --yellow: #f5dc79;
  --lavender: #c9b8f4;
  --mint: #bde4cf;
  --line: #29262d;
  --shadow: 5px 5px 0 var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 22%, rgba(245, 169, 197, .25), transparent 19rem),
    radial-gradient(circle at 90% 8%, rgba(201, 184, 244, .28), transparent 21rem),
    var(--paper);
  font-family: Manrope, system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
}

.wordmark-dot {
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--line);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 9px 12px;
  border-radius: 5px;
  font: 500 12px DM Mono, monospace;
  text-decoration: none;
}

nav a:hover {
  background: #f1e9e4;
}

nav .nav-featured {
  margin-left: 6px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

nav .nav-featured:hover {
  background: #ffe991;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: 8vw;
  padding: 70px 5%;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--pink-dark);
  font: 500 12px DM Mono, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(66px, 9vw, 126px);
  line-height: .87;
  letter-spacing: -.085em;
}

h1 span {
  position: relative;
  color: var(--pink-dark);
}

h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3%;
  right: -5%;
  bottom: 5%;
  height: 20%;
  background: var(--yellow);
  transform: rotate(-2deg);
}

.intro {
  max-width: 570px;
  margin: 32px 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  padding: 13px 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  font: 600 12px DM Mono, monospace;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--line);
  transition: .15s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.button.primary {
  background: var(--pink);
}

.button.secondary {
  background: white;
}

.button.stratum-button {
  background: #f3cab6;
}

.button.nimbus-button {
  background: #c7daf4;
}

.hero-art {
  width: min(470px, 100%);
  height: auto;
  justify-self: center;
  display: block;
  filter: drop-shadow(8px 10px 0 rgba(34, 33, 39, .16));
  transform: rotate(1.5deg);
}

.projects-section {
  padding: 95px 4% 120px;
  border-top: 2px solid var(--line);
}

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

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -.07em;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  min-height: 420px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: .18s ease;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--line);
}

.project-card.recipe {
  background: var(--mint);
}

.project-card.stratum {
  background: #f3cab6;
}

.project-card.nimbus {
  background: #c7daf4;
}

.project-card.blockbench {
  background: #e2d5f7;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number,
.project-tag {
  font: 500 11px DM Mono, monospace;
  text-transform: uppercase;
}

.project-arrow {
  font-size: 30px;
}

.project-image {
  width: 126px;
  height: 126px;
  align-self: center;
  display: grid;
  place-items: center;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
  transform: rotate(-3deg);
}

img.project-image {
  padding: 10px;
}

.pixel-art {
  image-rendering: pixelated;
}

.image-placeholder {
  color: #7653b5;
  font: 800 30px DM Mono, monospace;
  line-height: 122px;
  text-align: center;
}

.project-tag {
  color: #4c5260;
}

.project-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.project-card p {
  max-width: 560px;
  margin: 0;
  color: #514c54;
  line-height: 1.65;
}

footer {
  width: min(1160px, calc(100% - 40px));
  min-height: 90px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid var(--line);
  font: 500 11px DM Mono, monospace;
}

footer p span {
  color: var(--pink-dark);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .site-header {
    min-height: 72px;
  }

  nav a:not(.nav-featured) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 70px 0 90px;
  }

  .hero-art {
    width: min(380px, 92vw);
    margin-top: 35px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

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

  .project-card {
    min-height: 400px;
  }
}

@media (max-width: 500px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1160px);
  }

  .wordmark {
    font-size: 19px;
  }

  .site-header nav {
    display: none;
  }

  .hero-art {
    width: min(310px, 80vw);
    transform: none;
  }

  h1 {
    font-size: 64px;
  }

  .hero {
    gap: 25px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    text-align: center;
  }

  .projects-section {
    padding-left: 0;
    padding-right: 0;
  }

  .project-card {
    min-height: 390px;
    padding: 21px;
  }

  footer {
    padding: 20px 0;
    flex-wrap: wrap;
  }

  footer .footer-mark {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
