/* The parts of Nomo's screens.css the portal uses: the hero and the error pages. */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-1) var(--space-1);
}

.hero > :not(.character) {
  grid-column: 1;
}

.hero h1 {
  /* Shrinks on narrow phones so an 8-character Japanese line still fits beside the character. */
  font-size: clamp(1.25rem, 6.4vw, 1.75rem);
}

/* Japanese has no spaces, so without this a line breaks mid-phrase; English wraps at words. */
:lang(ja) .hero-line {
  white-space: nowrap;
}

.hero p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.done-head {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2) var(--space-1);
  text-align: center;
}

.done-head p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* .done-head p would otherwise shrink the digits to body text. */
.done-head .error-code {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-primary);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

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

.hero-character {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(104px, 28vw, 152px);
}

/* Height-bound: the source images range from square to tall portrait. */
.done-character {
  width: auto;
  height: 136px;
}
