:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --ink: #161616;
  --muted: #777773;
  --hairline: #d8d7d1;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(22, 22, 22, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 9rem;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 1.5rem var(--gutter) 1.75rem;
  overflow: hidden;
}

.edition,
.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.edition {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  text-transform: lowercase;
  animation: reveal 700ms 100ms both;
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 26rem);
  align-items: end;
  gap: clamp(3rem, 10vw, 10rem);
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 11vh, 7rem);
}

.mark-wrap {
  align-self: center;
  width: fit-content;
  animation: reveal 900ms 180ms both;
}

.mark {
  margin: 0;
  width: clamp(14rem, 34vw, 32rem);
  line-height: 0;
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
}

.subtitle {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding-left: 0.28em;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: lowercase;
}

.contact {
  align-self: end;
  padding-bottom: 0.25rem;
  animation: reveal 800ms 360ms both;
}

.contact-label {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.contact-links {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.contact a {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35rem;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.contact a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact a:hover::after,
.contact a:focus-visible::after {
  transform: scaleX(1);
}

.contact a:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--ink);
  outline-offset: 0.45rem;
}

.contact .site-link {
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.04em;
}

.footer {
  align-items: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  animation: reveal 700ms 500ms both;
}

.platforms {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  cursor: default;
}

.platform svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .card {
    padding-top: 1.1rem;
    padding-bottom: 1.25rem;
  }

  .edition span:last-child {
    display: none;
  }

  .identity {
    grid-template-columns: 1fr;
    align-content: center;
    align-items: initial;
    gap: clamp(5rem, 16vh, 8rem);
    padding: 4rem 0;
  }

  .mark {
    width: clamp(13rem, 70vw, 20rem);
  }

  .subtitle {
    margin-top: 2rem;
  }

  .contact {
    justify-self: end;
    text-align: right;
  }

  .contact-links {
    justify-items: end;
  }

  .contact a::after {
    transform-origin: right;
  }

  .footer {
    justify-content: flex-start;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
