* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

html {
  font-size: 16px;
}

body {
  display: flex;
  position: relative;
  font-family: Pretendard, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
  color: dimgray;
  background-color: white;
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-gap: .5rem;
  flex: 1 1 100%;
  padding: .5rem;
}

@media screen and (min-width: 900px) {
  .plan {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: calc(100% / 1.5) auto;
  }
}

.notes {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: whitesmoke;
  border: .1rem solid gainsboro;
  border-radius: .5rem;
}

.notes:focus-within {
  background-color: gainsboro;
}

.notes[aria-current] {
  color: snow;
  background-color: cornflowerblue;
  border: .1rem solid cornflowerblue;
}

.notes.month {
  grid-column: span 3;
}

.heading {
  display: flex;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .5rem .75rem 0;
  font-size: .75rem;
  letter-spacing: .05em;
}

.textarea {
  flex: 1 1 0;
  padding: .5rem .75rem;
  font: inherit;
  line-height: 1.5;
  color: inherit;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  resize: none;
}

.textarea:focus {
  outline: 0;
}