* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: serif;
  background: #fafafa;
  color: #1a1a1a;
  min-height: 100dvh;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.centered ul {
  list-style: none;
}

.centered li + li {
  margin-top: 0.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #999;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: #1a1a1a;
}

.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  max-width: 640px;
  justify-self: end;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #2a2a2a;
  margin-bottom: 1rem;
}

.rotating-word {
  font-style: italic;
  font-weight: 600;
}

.retry-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0 0.15rem;
  vertical-align: middle;
  transition: color 0.2s;
  line-height: 1;
}

.retry-btn:hover {
  color: #1a1a1a;
}

.retry-btn svg {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
  transition: transform 0.3s ease;
}

.retry-btn:active svg {
  transform: rotate(180deg);
}

.image-side {
  overflow: hidden;
}

.image-side img {
  display: block;
  width: 100%;
  height: 100dvh;
  object-fit: cover;
}

@media (max-width: 768px) {
  .scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .content {
    padding: 2.5rem 1.75rem;
    max-width: none;
    justify-self: start;
    order: 1;
  }

  .image-side {
    order: 2;
  }

  .image-side img {
    height: 100%;
    min-height: 0;
    object-position: center bottom;
  }
}
