@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --red: #dc2626;
  --red-deep: #a3191b;
  --white: #ffffff;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--red);
  color: var(--white);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
p {
  margin: 0;
}

.top,
main,
.bottom {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.top {
  padding-top: clamp(20px, 4vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--white);
  color: var(--red);
  font-family: var(--text);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
}

.brand-name {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

main {
  flex: 1;
}

.intro {
  padding-top: clamp(56px, 10vw, 120px);
}

h1 {
  max-width: 11ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 10.5vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro p {
  max-width: 34rem;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

.shelf {
  list-style: none;
  margin: clamp(64px, 9vw, 120px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.icon {
  display: block;
  width: min(100%, 200px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow: 0 10px 0 var(--red-deep);
  animation: pop 560ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.item:nth-child(2) .icon {
  animation-delay: 90ms;
}

.item:nth-child(3) .icon {
  animation-delay: 180ms;
}

@keyframes pop {
  from {
    transform: translateY(24px) scale(0.6);
    opacity: 0;
  }
}

.item h2 {
  margin-top: 32px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.kind {
  display: inline-block;
  margin-top: 10px;
  padding: 1px 10px 2px;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.item p:last-child {
  max-width: 30ch;
  margin-top: 14px;
}

.bottom {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.hello {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.hello a {
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}

.small {
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .shelf {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .item {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 20px;
    align-items: start;
  }

  .icon {
    grid-row: span 3;
    width: 96px;
    box-shadow: 0 6px 0 var(--red-deep);
  }

  .item h2 {
    margin-top: 2px;
  }

  .kind {
    justify-self: start;
    margin-top: 8px;
  }

  .item p:last-child {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon {
    animation: none;
  }
}
