:root {
  --red: #c8102e;
  --red-dark: #8f0019;
  --ink: #080808;
  --muted: #565b60;
  --line: #d9dce0;
  --paper: #ffffff;
  --wash: #f6f7f8;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
}

.portal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100svh - 4.5rem);
}

.destination {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 3.5rem 3rem 2.25rem;
  color: inherit;
  text-decoration: none;
  background: var(--paper);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.destination + .destination {
  border-left: 1px solid var(--ink);
}

.destination__inner {
  display: grid;
  justify-items: center;
  width: min(100%, 42rem);
  text-align: center;
}

.destination__inner--profile-text {
  width: min(100%, 44rem);
}

.destination__inner--mosaic {
  place-items: center;
}

.destination__emblem {
  display: block;
  width: 21rem;
  height: 21rem;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 260ms ease;
}

.destination__emblem--mosaic {
  width: min(31rem, 90%);
  height: auto;
  aspect-ratio: 1;
}

.destination__link--mosaic {
  margin-top: 0.75rem;
  padding-top: 0;
}

.destination__copy {
  display: grid;
  justify-items: center;
  min-height: 14.75rem;
}

.destination__inner--profile-text .destination__copy {
  align-content: center;
  min-height: 26rem;
}

.destination__invitation {
  max-width: 28rem;
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.destination__inner--profile-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.75rem, 5.5vw, 5rem);
}

.destination h1,
.destination h2 {
  max-width: 100%;
  margin: 1rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.destination__description {
  max-width: 34rem;
  min-height: 3rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: balance;
}

.destination__parent {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.destination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 2.25rem;
  border-bottom: 1px solid currentColor;
  color: var(--red);
  font-size: 1rem;
  line-height: 1.35;
}

.destination__link svg {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.destination:hover,
.destination:focus-visible {
  background: var(--wash);
  box-shadow: inset 0 -0.4rem 0 var(--red);
  outline: none;
}

.destination:hover .destination__emblem,
.destination:focus-visible .destination__emblem {
  transform: translateY(-0.4rem);
}

.destination:hover .destination__link svg,
.destination:focus-visible .destination__link svg {
  transform: translateX(0.3rem);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 4.5rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .destination {
    padding-inline: 2rem;
  }

  .destination__emblem {
    width: 18rem;
    height: 18rem;
  }

  .destination h1,
  .destination h2 {
    font-size: 3rem;
  }
}

@media (max-width: 760px) {
  body {
    height: 100svh;
    overflow: hidden;
  }

  .portal {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: calc(100svh - 2.75rem);
    min-height: 0;
  }

  .destination {
    min-height: 0;
    padding: 0.75rem 1rem;
  }

  .destination + .destination {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .destination--profile .destination__copy {
    justify-items: center;
    min-height: 0;
    text-align: center;
  }

  .destination__invitation {
    max-width: 18rem;
    margin-bottom: 0.55rem;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    line-height: 1.15;
  }

  .destination__inner--profile-text h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1;
  }

  .destination__description {
    min-height: 0;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .destination__link {
    margin-top: 0.85rem;
    padding-top: 0;
    font-size: 0.875rem;
  }

  .destination__link svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .destination__emblem--mosaic {
    width: min(17rem, 70vw, 34svh);
    height: auto;
  }

  .destination__link--mosaic {
    margin-top: 0.25rem;
  }

  footer {
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
  }
}

@media (max-width: 400px) {
  .destination__inner--profile-text h1 {
    font-size: 2.25rem;
  }
}

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