* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  font: 1em/1.45 "Archivo", sans-serif;
  color: #1a120c;
  background-color: #f3ead6;
  background-image: url("../images/paper.svg");
  background-size: 180px 180px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("../images/paper.svg");
  background-size: 240px 240px;
}

a {
  color: inherit;
}

.row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 37.5rem;
  margin: auto;
}

.col {
  padding: 1rem;
  width: 100%;
}

.site-header {
  width: 100%;
}

.brand {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}

.brand p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.stamp {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15em 0.45em 0.05em;
  border: 2px solid #c43b2e;
  color: #c43b2e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.grid {
  width: 100%;
  aspect-ratio: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.14rem;
  border: 0.18rem solid #1a120c;
  background-color: #1a120c;
  counter-reset: guy;
}

.grid > li {
  aspect-ratio: 1;
  display: grid;
  background-color: #6b2d44;
  counter-increment: guy;
}

.grid > li:nth-child(3n-1) {
  background-color: #3d5a3a;
}

.grid > li:nth-child(3n) {
  background-color: #2c4a6e;
}

.grid > li::before {
  content: counter(guy);
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Anton", sans-serif;
  font-size: clamp(3.2rem, 14vw, 6.5rem);
  line-height: 1;
}

.grid a {
  grid-area: 1 / 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.4em;
  color: #fff;
  font-size: clamp(0.7rem, 2.6vw, 1.05rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}

.grid a:hover {
  background-color: rgba(0, 0, 0, 0.28);
}

.grid li:last-child a {
  font-size: clamp(0.62rem, 2.2vw, 0.95rem);
}

.credit {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  counter-increment: type;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.type h2 {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.type h2::before {
  content: "#" counter(type) ": ";
  color: #c43b2e;
}

.bubbles {
  display: flex;
  gap: 0.55em;
  align-items: flex-start;
  max-width: 28.75rem;
  margin: 1.6rem 0 1.4rem;
}

.bubbles img {
  position: sticky;
  top: 0.5rem;
  flex: 0 0 3.35rem;
  width: 3.35rem;
  height: 3.35rem;
  border: 2px solid #1a120c;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(0.95);
}

.face-1 { object-position: 50% 22%; }
.face-2 { object-position: 50% 22%; }
.face-3 { object-position: 50% 28%; }
.face-4 { object-position: 50% 18%; }
.face-5 { object-position: 50% 32%; }
.face-6 { object-position: 42% 36%; }
.face-7 { object-position: 50% 16%; }
.face-8 { object-position: 50% 14%; }
.face-9 { object-position: 32% 22%; }

.thread {
  min-width: 0;
}

.bubbles p {
  position: relative;
  max-width: fit-content;
  margin-bottom: 0.5em;
  padding: 0.5em 0.8em 0.55em;
  border: 1px solid rgba(26, 18, 12, 0.1);
  border-radius: 0.28em 1.15em 1.15em 1.15em;
  color: #111;
  font-family: system-ui, sans-serif;
  font-size: 0.9375em;
  line-height: 1.35;
  background-color: #fffef8;
  box-shadow: 0 1px 0 rgba(26, 18, 12, 0.06);
}

.bubbles p::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 11px;
  width: 8px;
  height: 10px;
  background: #fffef8;
  clip-path: polygon(100% 0, 0 40%, 100% 100%);
}

.bubbles p:nth-child(3n) {
  transform: rotate(-0.35deg);
}

.bubbles p:nth-child(4n) {
  transform: rotate(0.4deg);
}

.sheet p {
  margin-bottom: 0.35rem;
}

.sheet strong {
  text-transform: lowercase;
}

@media only screen and (min-width: 80rem) {
  .row {
    flex-direction: row;
    width: 100%;
    max-width: 75rem;
  }

  .col {
    width: 50%;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-items: flex-end;
    justify-content: center;
  }

  .type {
    min-height: 100vh;
  }

  .grid {
    font-size: 1rem;
  }

  .grid a {
    font-size: 1.05rem;
  }

  .grid > li::before {
    font-size: 6.2rem;
  }
}
