* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #4F704E;
  --secondary-color: #3c3c3c;
  --accent-color: #911416;
  --background: #feffef;
  --shadow-color: #00000060;
  --primary-font: "Brygada 1918", serif;
  --title-font: "Stardos Stencil", system-ui;
  --ja-font: "WDXL Lubrifont JP N", system-ui;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px;
  background: var(--primary-color);
  color: var(--secondary-color);
}

header, section, footer {
  width: 100%;
  max-width: 1300px;
  margin: 0;
  margin-bottom: 24px;
  padding: 24px;
  text-align: center;
  background: var(--background);
  box-shadow: 2px 4px 4px var(--shadow-color);
  border-radius: 16px;
}

figure {
  width: 100%;
  max-width: 1300px;
  margin: 0;
  margin-bottom: 24px;
  background: var(--background);
  border-radius: 16px;
  box-shadow: 2px 4px 4px var(--shadow-color);
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  object-position: center;
}

figcaption {
  font-family: var(--primary-font);
  font-size: 22px;
  font-style: italic;
  text-align: center;
  padding: 12px 24px;
}

:lang(ja) {
  display: block;
  font-family: var(--ja-font);
  font-size: 80px;
  color: var(--secondary-color);
  text-shadow: 2px 4px 4px var(--shadow-color);
}

:lang(ja-Latn) {
  display: block;
  font-family: var(--ja-font);
  font-size: 52px;
  font-weight: 100;
  color: var(--primary-color);
}

.main-title {
  display: block;
  color: var(--accent-color);
  font-size: 60px;
  text-shadow: 3px 6px 6px var(--shadow-color);
  transform: rotate(-5deg);

  margin: 0 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--title-font);
  font-style: normal;
  margin: 0;
}

h2, h3 {
  color: var(--primary-color);
  text-shadow: 2px 4px 4px var(--shadow-color);
}

h2 {
  font-size: 48px;
  margin: 24px;
}

h3 {
  font-size: 32px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
  font-style: italic;
  margin: 0;
}

p, dd {
  font-family: var(--primary-font);
  font-size: 20px;
  line-height: 1.5;
}

dl {
  width: 100%;
  margin: 0;
  padding: 0;
}

dt {
  margin: 0;
  font-size: 28px;
  color: var(--primary-color);
  font-family: var(--title-font);
}

dt::before {
  content: "\2740";
  color: var(--primary-color);
  font-size: 1.25em;
  margin-right: 0.5em;
}

dd {
  margin: 0;
}

a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.5s ease;
}

a:visited {
  color: var(--primary-color);
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
}

.info-block {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  margin-bottom: 16px;
}

.portrait-hero, .portrait-villain {
  width: 150px;
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 2px 4px 4px var(--shadow-color);
  border-radius: 55px;
  overflow: hidden;
}

.portrait-hero {
  background:
  radial-gradient(50% 50% at 50% 50%, #91e074 0%, #729963 100%);
  margin-bottom: 24px;
}

.portrait-villain {
  background:
  radial-gradient(50% 50% at 50% 50%, #911416 0%, #6e3334 100%);
  margin-bottom: 24px;
}

.portrait-hero img, .portrait-villain img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.antagonist-text {
  color: var(--accent-color);
}

.nav-button {
  width: 300px;
  max-width: 100%;
  min-height: 60px;
  padding: 0 16px;
  background: var(--primary-color);
  border-radius: 24px;
  font-family: var(--title-font);
  font-size: 48px;
  text-align: center;
  transition: background-color 0.5s ease;
  box-shadow: 2px 4px 4px var(--shadow-color);
  text-shadow: 2px 4px 4px var(--shadow-color);
}

.nav-button:link, .nav-button:visited {
  color: #FEFFEF;
}

.nav-button:hover {
  background: var(--accent-color);
  text-decoration: none;
}

@media (max-width: 600px) {
  :lang(ja) {
    font-size: 40px;
  }

  :lang(ja-Latn) {
    font-size: 28px;
  }

  .main-title {
    font-size: 30px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
  font-size: 28px;
  }

  .nav-button {
    font-size: 36px;
  }
}