@font-face {
  font-family: Yantramanav;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./yantramanav-light.ttf") format("truetype");
}

@font-face {
  font-family: Yantramanav;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./yantramanav-regular.ttf") format("truetype");
}

@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./quicksand-regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  font-family: Yantramanav, Arial, sans-serif;
  color: #2e2425;
  background: #f4f3f1;
}

* { box-sizing: border-box; }

body { margin: 0; }

.transition {
  width: min(1100px, 100%);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 65px);
}

.logo-track {
  position: relative;
  height: 150px;
  margin-top: clamp(30px, 9vh, 100px);
}

.logo {
  position: absolute;
  left: 0;
  animation: roll 1.5s ease-in 0.5s both;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 30px 0 0;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
  color: #a10e34;
}

.becomes { animation: zoom-in 0.7s ease 0.4s both; }

.new-name {
  font-family: Quicksand, Arial, sans-serif;
  font-size: 75px;
  text-shadow: 0 0 10px #0003;
  animation: rubber-band 0.8s ease 1.3s both;
}

.message {
  margin-top: 85px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
}

a { color: inherit; text-underline-offset: 0.15em; }
a:hover { color: #a10e34; }
a:focus-visible { outline: 3px solid #a10e34; outline-offset: 5px; }
.continue { font-size: 22px; }

@keyframes roll {
  from { left: 0; transform: rotate(0deg); }
  to { left: calc(100% - 150px); transform: rotate(360deg); }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rubber-band {
  from, to { transform: scale(1); }
  30% { transform: scale(1.25, 0.75); }
  40% { transform: scale(0.75, 1.25); }
  50% { transform: scale(1.15, 0.85); }
  65% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.05, 0.95); }
}

@media (max-width: 767px) {
  .logo-track { height: 120px; margin-top: 12px; }
  .logo { position: static; display: block; width: 120px; height: 120px; margin: auto; animation: none; }
  .title { flex-direction: column; align-items: center; gap: 12px; font-size: 50px; }
  .new-name { font-size: 65px; }
  .message { margin-top: 40px; font-size: 31px; text-align: center; }
  .continue { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .becomes, .new-name { animation: none; }
  .logo { left: calc(100% - 150px); }
}
