@font-face {
  font-family: "DM-Sans";
  src: url("../assets/fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf");
}
html {
  font-size: 62.5%;
  font-family: "DM-Sans", sans-serif;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
html {
  font-size: 62.5%;
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  font-family: "DM-Sans", sans-serif;
  background-image: url("../assets/images/bg-light-theme.png");
}
html[data-theme=dark] body {
  background: url("../assets/images/bg-dark-theme.png");
  color: #e4e4ef;
}
body {
  color: #12131a;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

.wrapper {
  width: 90%;
  max-width: 99rem;
  margin-inline: auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  margin-block-end: 4rem;
  padding-block: 1.6rem;
}
@media (min-width: 90rem) {
  .navbar {
    margin-block-end: 4.8rem;
  }
}
.navbar__logo {
  content: url("../assets/images/logo-light-theme.svg");
  width: clamp(18rem, 16.286rem + 8.571vw, 24rem);
}
html[data-theme=dark] .navbar__logo {
  content: url("../assets/images/logo-dark-theme.svg");
}
.navbar__theme-button {
  width: clamp(3.2rem, 2.857rem + 1.714vw, 4.4rem);
  background-color: #f2f2f7;
  border: none;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
html[data-theme=dark] .navbar__theme-button {
  background-color: #2a2b37;
}
.navbar__button-logo {
  content: url("../assets/images/icon-moon.svg");
}
html[data-theme=dark] .navbar__button-logo {
  content: url("../assets/images/icon-sun.svg");
}

.title {
  font-size: clamp(4rem, 3.127rem + 2.727vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.01rem;
  font-weight: bold;
  margin: auto;
  max-width: 51rem;
  margin-block-end: 4rem;
  text-align: center;
}
html[data-theme=dark] .title {
  color: #f2f2f7;
}
@media (min-width: 90rem) {
  .title {
    margin-block-end: 4.8rem;
  }
}

.input-container {
  resize: none;
  background-color: #f2f2f7;
  border: 2px solid #e4e4ef;
  color: #2a2b37;
  border-radius: 12px;
  padding: 1.2rem;
  width: 100%;
  height: 20rem;
  margin-block-end: 1.6rem;
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: -0.06rem;
}
.input-container:hover {
  background-color: #e4e4ef;
}
.input-container:focus {
  -webkit-box-shadow: 0px 0px 10px 0px #d3a0fa;
  -moz-box-shadow: 0px 0px 10px 0px #d3a0fa;
  box-shadow: 0px 0px 10px 0px #d3a0fa;
  outline: none;
}
html[data-theme=dark] .input-container {
  background-color: #21222c;
  border: 2px solid #2a2b37;
  color: #e4e4ef;
}
html[data-theme=dark] .input-container:hover {
  background-color: #2a2b37;
}
.input-container--error {
  border: 1px solid #fe8159;
  box-shadow: 0 0 8px 0 #fe8159;
  display: flex;
  flex-direction: column;
}

.error-msg {
  color: #fe8159;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.06rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.error-msg--hidden {
  display: none;
}

.options {
  margin-block-end: 4rem;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.06rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
@media (min-width: 90rem) {
  .options {
    margin-block-end: 4.8rem;
  }
}
@media (min-width: 48rem) {
  .options {
    flex-direction: row;
    justify-content: space-between;
  }
}
.options__container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
@media (min-width: 48rem) {
  .options__container {
    flex-direction: row;
    gap: 2.4rem;
  }
}
.options__checkbox-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}
.options__max-characters {
  position: absolute;
  inset-inline-start: 18rem;
  display: none;
  border-radius: 6px;
  padding: 0.4rem;
  background-color: transparent;
  width: 6rem;
  color: #12131a;
  border: 1px solid #12131a;
}
.options__checkbox:checked ~ .options__max-characters {
  display: inline-block;
}
html[data-theme=dark] .options__max-characters {
  color: #fff;
  border: 1px solid #fff;
}
.options__checkbox {
  appearance: none;
  width: 1.6rem;
  aspect-ratio: 1/1;
  border-radius: 4px;
  border: 1px solid #12131a;
}
html[data-theme=dark] .options__checkbox {
  border: 1px solid #e4e4ef;
}
.options__checkbox:checked {
  background: #d3a0fa url("../assets/images/icon-check.svg") center center;
  border: none;
}
.options__checkbox:focus {
  outline: 2px solid #d3a0fa;
  outline-offset: 2px;
  border: 1px solid #e4e4ef;
}
html[data-theme=dark] .options__checkbox:focus {
  background-color: #fff;
}

.cards {
  display: flex;
  flex-direction: column;
  margin-block-end: 2.4rem;
  gap: 1.6rem;
}
@media (min-width: 48rem) {
  .cards {
    flex-direction: row;
  }
}
html[data-theme=dark] .cards {
  color: #12131a;
}
.cards__card-container {
  padding: 1.2rem;
  border-radius: 12px;
  flex: 1;
}
.cards__card-container--purple {
  background: #d3a0fa url("../assets/images/pattern-character-count.svg") calc(100% + 5rem) center no-repeat;
}
.cards__card-container--yellow {
  background: #ff9f00 url("../assets/images/pattern-word-count.svg") calc(100% + 5rem) center no-repeat;
}
.cards__card-container--orange {
  background: #fe8159 url("../assets/images/pattern-sentence-count.svg") calc(100% + 5rem) center no-repeat;
}
.cards__card-number {
  font-size: clamp(4rem, 3.127rem + 2.727vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.01rem;
  font-weight: bold;
}
.cards__card-label {
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: -0.06rem;
}

.letter-density {
  margin-block-end: 2.4rem;
}
.letter-density__bars-container {
  display: grid;
  margin-block-end: 2rem;
  gap: 1.2rem;
}
.letter-density__bar {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.letter-density__title {
  font-size: 2.4rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01rem;
  margin-block-end: 2rem;
}
.letter-density__bar-title, .letter-density__bar-percentage {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.06rem;
}
.letter-density__bar-percentage {
  width: 12ch;
  text-align: end;
}
.letter-density__bar-max {
  background-color: #f2f2f7;
  border-radius: 999px;
  width: 100%;
  height: 1.2rem;
  position: relative;
}
html[data-theme=dark] .letter-density__bar-max {
  background-color: #21222c;
}
.letter-density__bar-progress {
  background-color: #d3a0fa;
  position: absolute;
  height: 1.2rem;
  border-radius: 999px;
}
.letter-density__button {
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: -0.06rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: transparent;
  border: none;
}
html[data-theme=dark] .letter-density__button {
  color: #e4e4ef;
}
.letter-density__button-dropdown {
  content: url("../assets/images/dropdown-light.svg");
}
html[data-theme=dark] .letter-density__button-dropdown {
  content: url("../assets/images/dropdown-dark.svg");
}

/*# sourceMappingURL=style.css.map */
