:root {
  color-scheme: dark;
  --ink: #111214;
  --paper: #f4f2e8;
  --red: #d7192d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.landing {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 32%, rgb(255 255 255 / 7%), transparent 28rem),
    linear-gradient(128deg, #191a1d 0%, var(--ink) 52%, #090a0b 100%);
}

.landing__texture {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.landing__slash {
  position: absolute;
  z-index: -1;
  top: -20vh;
  bottom: -20vh;
  left: 64%;
  width: clamp(7rem, 13vw, 14rem);
  background: var(--red);
  transform: rotate(11deg);
  box-shadow: 0 0 80px rgb(215 25 45 / 18%);
}

.marks {
  display: grid;
  grid-template-columns: minmax(19rem, 1.05fr) minmax(17rem, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 9rem);
  width: min(91vw, 92rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.crest-wrap,
.monogram-wrap {
  animation: arrive 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.crest-wrap {
  filter: drop-shadow(0 2.3rem 3.5rem rgb(0 0 0 / 48%));
}

.crest {
  width: min(100%, 45rem);
  max-height: calc(100svh - clamp(4rem, 10vw, 10rem));
  margin-inline: auto;
  object-fit: contain;
}

.monogram-wrap {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.6rem);
  background: var(--paper);
  box-shadow:
    0 2rem 4rem rgb(0 0 0 / 38%),
    0 0 0 1px rgb(255 255 255 / 10%);
  transform: rotate(-2deg);
  animation-delay: 160ms;
}

.monogram-wrap__rule {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 0.42rem;
  background: var(--red);
}

.monogram {
  width: 100%;
}

.footer {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  animation: arrive 700ms 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.affiliation {
  max-width: 31rem;
  margin: 0;
  color: rgb(244 242 232 / 62%);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.affiliation span {
  margin-inline: 0.35em;
  color: var(--red);
}

.socials {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.socials__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(244 242 232 / 28%);
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.socials__link:hover,
.socials__link:focus-visible {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transform: translateY(-2px);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .landing__slash {
    top: 48%;
    bottom: auto;
    left: -10vw;
    width: 120vw;
    height: 3.5rem;
    transform: rotate(-5deg);
  }

  .marks {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    width: min(88vw, 34rem);
    padding-block: 1.5rem;
  }

  .crest {
    max-height: 61svh;
    width: auto;
  }

  .monogram-wrap {
    width: min(82%, 26rem);
    margin-inline: auto;
    padding: clamp(0.8rem, 3vw, 1.25rem);
  }

  .footer {
    right: 1rem;
    bottom: 1.25rem;
    left: 1rem;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .affiliation {
    max-width: none;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .socials__link {
    min-height: 2.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crest-wrap,
  .monogram-wrap,
  .footer {
    animation: none;
  }
}
