:root {
  --ink: #121419;
  --paper: #ddd5c5;
  --emerald: #00a86b;
  --coral: #ff5c48;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.versionChoice {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.versionButton {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 110px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.versionButton::before,
.versionButton::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.versionButton::before {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.versionButton::after {
  width: 42vw;
  height: 42vw;
  right: -22vw;
  bottom: -14vw;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(0, 0, 0, 0.025);
  opacity: 0.2;
  transition: transform 0.5s ease;
}

.modernChoice {
  background: radial-gradient(circle at 70% 30%, #2d333e, #101217 68%);
  color: #f4f2eb;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.paperChoice {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(49, 43, 33, 0.022) 0,
    rgba(49, 43, 33, 0.022) 1px,
    transparent 1px,
    transparent 5px
  );
  color: var(--ink);
}

.versionButton span,
.versionButton small {
  position: relative;
  width: max-content;
  font-family: monospace;
  letter-spacing: 0.13em;
}

.versionButton span {
  padding-bottom: 11px;
  border-bottom: 1px solid currentColor;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
}

.versionButton strong {
  max-width: 600px;
  margin-top: 34px;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.versionButton small {
  margin-top: 24px;
  color: var(--emerald);
  font-size: 9px;
  font-weight: 800;
}

.versionButton:hover::after,
.versionButton:focus-visible::after {
  transform: scale(1.08);
}

.versionButton:hover strong,
.versionButton:focus-visible strong {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}

.versionButton:focus-visible {
  z-index: 1;
  outline: 3px solid var(--emerald);
  outline-offset: -8px;
}

@media (max-width: 760px) {
  .versionChoice {
    grid-template-columns: 1fr;
  }

  .versionButton {
    min-height: 50svh;
    padding: 32px 24px;
  }

  .modernChoice {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .versionButton::after {
    width: 70vw;
    height: 70vw;
    right: -34vw;
    bottom: -32vw;
  }

  .versionButton strong {
    margin-top: 20px;
    font-size: clamp(34px, 11vw, 48px);
  }

  .versionButton small {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .versionButton::after {
    transition: none;
  }
}
