* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-family: "Work Sans", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

@media screen and (min-width: 500px) and (min-height: 500px) {
  html,
  body {
    font-size: 20px;
  }
}

@media screen and (min-width: 1000px) and (min-height: 800px) {
  html,
  body {
    font-size: 22px;
  }
}

:root {
  --font-color: #241f31;
  --darker-font-color: #5e5e5e;
  --background-color: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --font-color: #e8e8e8;
    --darker-font-color: #b7b7b7;
    --background-color: #241f31;
  }

  .subtitle,
  .title {
    color: #241f31;
  }
}

body {
  color: var(--font-color);
  background-color: var(--background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  font-weight: 900;
  line-height: 1.25;
}

a {
  font-weight: 600;
  text-decoration: none;
  color: #d63384;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

b {
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

small {
  color: var(--darker-font-color);
}

/* Layout */
.container {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

/* Hero */
.intro {
  background-color: #e8609c;
  margin: 0 0 2rem;
  padding: 6rem 0 3rem;
  text-align: center;
}

.intro-icon {
  margin: 0 auto 1rem;
  display: block;
  transform: scaleX(-1) scaleY(-1);
}

.intro .container {
  max-width: 560px;
}

.title {
  font-size: 2em;
  line-height: 1.15;
}

@media screen and (min-width: 400px) {
  .title {
    font-size: 2.5em;
    line-height: 1.3;
  }
}

.subtitle {
  margin-top: 2em;
  font-size: 1em;
  font-weight: 600;
}

.point > p {
  margin: 0.4rem 0 2rem;
}

.badge-image {
  display: block;
  width: 100%;
  max-width: 463px;
  height: auto;
  margin: 0 auto 2rem;
}

.join {
  background-color: #3d3846;
  color: white;
  margin: 5rem 0 0;
  padding: 2rem 0 6rem;
}

.join h2 {
  margin-top: 3rem;
}

.join a,
footer a {
  color: #f791c4;
}

.code-block {
  padding: 0.8rem;
  font-size: 0.8rem;
  border-radius: 0.3rem;
  background-color: #241f31;
  overflow-x: auto;
}

/* Footer */
footer {
  color: white;
  background-color: #241f31;
  text-align: center;
  padding: 5em 0 3em;
  font-size: 1em;
}
