/* Keep the paper ruling on the same rhythm as the text. */
.journal-writing {
  --journal-rule: calc(var(--line-height-body) * 1em);
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: clamp(10rem, 26svh, 17.5rem);
  min-height: 8rem;
  max-height: 18rem;
  padding: .45rem .25rem;
  border: 0;
  border-bottom: 1px solid rgba(94, 67, 35, .55);
  outline: none;
  overflow: auto;
  resize: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--journal-rule) - 1px),
    rgba(112, 78, 42, .18) calc(var(--journal-rule) - 1px) var(--journal-rule)
  );
  background-origin: content-box;
  color: #3d2b1d;
  font-size: var(--text-body-large);
  line-height: var(--line-height-body);
  cursor: text;
}

.journal-writing::placeholder { color: #604327; opacity: 1; }

.journal-writing:focus-visible {
  outline: 2px solid #53684a;
  outline-offset: 1px;
  border-bottom-color: #53684a;
  background-color: rgba(255, 249, 222, .2);
}

@media (max-width: 700px) {
  .journal-writing { height: 11.5rem; font-size: var(--text-body); }
}
