@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200..900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-weight: normal;
}

html {
  font-size: clamp(16px, 1.5vw, 20px);
  scroll-behavior: smooth;
}

body {
  position: relative;
  height: 100svh;
  font-family: "Noto Serif KR", serif;
  font-variant-east-asian: halt;
  font-feature-settings: "halt" 1, "palt" 1;
  font-size: 1rem;
  line-height: 1.5;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 6rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.title {
  text-align: center;
}

.form {
  position: sticky;
  top: 1.5rem;
  z-index: 999;
  background-color: white;
  border-radius: .5rem;
  border: 1px solid rgba(0, 0, 0, .125);
  transition: box-shadow .5s ease;
}

.form:has(.textarea:focus) {
  box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .125);
}

.textarea {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: .75rem 1rem;
  font: inherit;
  font-weight: 500;
  line-height: 1.75;
  text-align: justify;
  word-break: break-all;
  color: black;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: .75rem 1rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: inherit;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  opacity: .5;
  cursor: pointer;
  transition: opacity .5s ease;
}

.button:hover {
  opacity: 1;
}

.content {
  line-height: 1.75;
  text-align: justify;
  word-break: break-all;
}

.content > *:not(:last-child) {
  margin-bottom: 1.5rem;
}

.content p {
  position: relative;
}

.content p.preview {
  opacity: .5;
}