/* Shared by Sayori, Aubrey, and Persona 3 Reload.
   rem values use the same responsive base size as the original Carrd export.
   Change --character-width to adjust all three page widths (homepage: 50rem). */
.character-page {
  --character-width: 40rem;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--character-text);
}

.character-shell {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  max-width: var(--character-width);
  margin: 0.25rem auto;
  text-align: center;
}

/* Toolbar proportions follow the original site's controls. */
.character-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.75rem;
  border: 3px solid var(--toolbar-border);
  background: var(--toolbar-background);
}
.character-toolbar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1.25rem;
}
.character-toolbar-controls a {
  display: flex;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--toolbar-icons);
}
.character-toolbar svg { width: 100%; height: 100%; fill: currentColor; }
.character-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 13.5rem;
  min-width: 0;
  max-width: 46%;
  height: 1.5rem;
  gap: 0.5rem;
  padding: 0 0.75rem;
  border-radius: 1rem;
  color: #fff;
  background: var(--toolbar-pill);
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.character-home-link svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.character-home-link span { white-space: nowrap; }
.character-toolbar a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Carrd container: vertical padding .875, horizontal padding .75, gutters 1. */
.character-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.875rem 0.75rem;
  border: 3px solid var(--panel-border);
  background: linear-gradient(var(--panel-top), var(--panel-bottom));
}
.character-column { min-width: 0; }

/* Text sizes, weights, and line spacing from the supplied Carrd settings. */
.character-heading h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.125; }
.character-japanese { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 900; line-height: 1.125; }
.character-subtitle { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; line-height: 1.125; }
.character-quotes { font-size: 0.75rem; font-weight: 300; line-height: 1.125; }
.character-text { font-size: 0.75rem; font-weight: 500; line-height: 1.25; }
.character-text p + p { margin-top: 1rem; }

/* Match Carrd's 1rem divider box, 2px line, and .5rem outside margins. */
.character-divider {
  display: flex;
  align-items: center;
  min-height: 1rem;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0.5rem 0;
  color: inherit;
}
.character-divider::before { content: ""; width: 100%; border-top: 2px dashed currentColor; }
.character-artwork { display: block; width: 100%; height: auto; border-radius: 0.25rem; }
.character-artwork-small { width: 80%; margin: 0 auto; }
.character-text + .character-artwork { margin-top: 1rem; }

@media (max-width: 736px) {
  .character-shell { width: calc(100% - 20px); }
  .character-panel { grid-template-columns: 1fr; gap: 1rem; }
  .character-toolbar { gap: 0.5rem; padding-inline: 0.5rem; }
  .character-toolbar-controls { justify-content: flex-start; gap: 0.75rem; }
  .character-home-link { flex-basis: 10rem; padding-inline: 0.5rem; }
}
@media (max-width: 360px) {
  .character-toolbar-controls { gap: 0.5rem; }
  .character-home-link { gap: 0.25rem; }
}
