* { box-sizing: border-box; }

:root {
  --paper: #ede7d9;
  --ink: #231d19;
  --red: #ad281c;
  --page-width: min(1160px, 87vw);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 system-ui, sans-serif;
}

/* The paper texture sits behind the design, never over the letters. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.45' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { color: var(--paper); background: var(--red); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.poster {
  width: var(--page-width);
  align-self: center;
  margin-inline: auto;
  padding-block: 48px;
  container-type: inline-size;
}

.wordmark {
  width: fit-content;
  margin: 0 0 0 -.047em;
  white-space: nowrap;
  color: var(--red);
  font: 900 min(19.575vw, 261px)/.98 "Helvetica Neue", Arial, sans-serif;
  font-size: 22.5cqw;
  letter-spacing: -.074em;
  transform: rotate(-1.8deg);
  transform-origin: left bottom;
}

.wordmark span {
  display: inline-block;
  /* Leave room for the last glyph to overhang the tight tracking. */
  padding-inline-end: .09em;
}

.terminal-mark {
  display: inline-block;
  width: .13em;
  height: .13em;
  margin-inline-start: .008em;
  vertical-align: baseline;
}

.products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px clamp(12px, 4cqw, 52px);
  margin-top: clamp(13px, 2.2cqw, 27px);
  padding-top: 10px;
}

.products::before {
  content: "";
  position: absolute;
  top: 0;
  left: -.2%;
  width: 100.3%;
  height: 4px;
  background: var(--ink);
  clip-path: polygon(0 32%, 7% 9%, 25% 16%, 43% 5%, 70% 20%, 98% 0, 100% 28%, 99% 77%, 72% 67%, 53% 96%, 20% 71%, 1% 98%);
}

.product { padding-block: 6px; }
.product a {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font: 650 .875rem/1.4 var(--mono);
  text-decoration: none;
}
.product a span { color: var(--red); }
.product a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .2em; }
.product p { margin: 0; max-width: 26ch; color: #54473e; font-size: .875rem; line-height: 1.45; }

footer {
  width: var(--page-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  padding-bottom: max(23px, env(safe-area-inset-bottom));
  font: 500 .75rem/1.4 var(--mono);
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; gap: 4px; }
  .product { position: relative; padding: 0 0 6px; }
  .product p { max-width: none; }
  .product a::after { content: ""; position: absolute; inset: 0; }
}

@media (prefers-contrast: more) {
  body::before { display: none; }
}
