/* Shared letter-paper look for the public article and the beheer editor */
.letter-sheet,
.editor.letter-paper {
  position: relative;
  background-color: #F4EBDA;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.72) 0%,
      rgba(244, 235, 218, 0.2) 28%,
      rgba(228, 208, 172, 0.22) 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 4px
    );
  border: 1px solid rgba(138, 90, 52, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 18px 48px rgba(31, 51, 38, 0.12),
    0 2px 10px rgba(138, 90, 52, 0.1);
  color: #2C3228;
}

.letter-sheet {
  padding: 52px 56px 64px;
  margin: 0 auto;
  max-width: 720px;
  outline: 1px solid rgba(138, 90, 52, 0.12);
  outline-offset: 7px;
}

.letter-kicker {
  margin: 0 0 18px;
  font-family: Karla, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #9C9382;
}

.letter-sheet h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: #1F3326;
}

.letter-read {
  margin: 0 0 28px;
  font-family: Karla, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9C9382;
}

.letter-body,
.editor.letter-paper {
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.72;
  color: #3A4338;
}

.letter-body p,
.editor.letter-paper p {
  margin: 0 0 1.1em;
}

/* Illuminated-letter drop cap on the opening line, right after the greeting */
.letter-greeting + p::first-letter,
.editor.letter-paper .letter-greeting + p::first-letter {
  font-family: "Great Vibes", "Allura", cursive;
  font-style: normal;
  font-size: 3.4em;
  line-height: 0.6;
  font-weight: 400;
  float: left;
  padding: 0.06em 0.09em 0 0;
  color: #8A5A34;
}

.letter-body h2,
.editor.letter-paper h2 {
  margin: 1.5em 0 0.6em;
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  font-style: normal;
  font-size: 1.28em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #1F3326;
}

.letter-place,
.editor.letter-paper .letter-place {
  font-family: "Great Vibes", "Allura", cursive;
  font-style: normal;
  font-size: 24px;
  line-height: 1.1;
  color: #8A9A8F;
  margin-bottom: 1.3em;
  text-align: right;
}

.letter-greeting,
.editor.letter-paper .letter-greeting {
  font-family: "Great Vibes", "Allura", cursive;
  font-size: 38px;
  line-height: 1.2;
  font-style: normal;
  color: #5C6B5E;
  margin: 0 0 0.55em;
}

.letter-lead,
.editor.letter-paper .letter-lead {
  font-weight: 700;
  color: #1F3326;
}

.letter-inner,
.editor.letter-paper .letter-inner {
  margin: 1.6em 0 1.8em;
  padding: 22px 24px 8px;
  background: rgba(255, 252, 246, 0.45);
  border-left: 2px solid rgba(138, 90, 52, 0.45);
}

.letter-inner-title,
.editor.letter-paper .letter-inner-title {
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  font-style: normal;
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8A5A34;
  margin: 0 0 0.8em;
}

.letter-quote,
.editor.letter-paper blockquote,
.editor.letter-paper .letter-quote {
  margin: 1.6em 1.2em;
  padding: 0;
  border: 0;
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.7;
  color: #8A5A34;
  text-align: center;
}

.letter-question,
.editor.letter-paper .letter-question {
  margin: 1.4em 0;
  padding: 18px 20px;
  font-style: italic;
  color: #1F3326;
  background: rgba(255, 252, 246, 0.55);
  border: 1px solid rgba(138, 90, 52, 0.18);
  text-align: center;
}

.letter-close,
.editor.letter-paper .letter-close {
  margin-top: 2em;
  font-style: italic;
  color: #5C6B5E;
}

.letter-sign,
.editor.letter-paper .letter-sign {
  font-family: "Great Vibes", "Allura", cursive;
  font-size: 42px;
  line-height: 1.1;
  font-style: normal;
  color: #5C6B5E;
  margin: 0.15em 0 0.15em;
}

.letter-brand,
.editor.letter-paper .letter-brand {
  font-family: Newsreader, "Libre Baskerville", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: #5C6B5E;
  margin: 0 0 0.4em;
}

.letter-mark,
.editor.letter-paper .letter-mark {
  display: none;
}

.editor.letter-paper {
  min-height: 520px;
  padding: 36px 40px 48px;
  border-radius: 2px;
  outline: none;
}

.editor.letter-paper:focus {
  border-color: rgba(138, 90, 52, 0.55);
}

.editor.letter-paper ul,
.letter-body ul {
  margin: 0 0 1.05em;
  padding-left: 1.2em;
}

.letter-body a,
.editor.letter-paper a {
  color: #8A5A34;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.letter-body a:hover,
.editor.letter-paper a:hover {
  color: #1F3326;
}

@media (max-width: 900px) {
  .letter-sheet {
    padding: 32px 22px 44px;
    outline-offset: 4px;
  }
  .letter-body,
  .editor.letter-paper {
    font-size: 18.5px;
    line-height: 1.68;
  }
  .letter-greeting,
  .editor.letter-paper .letter-greeting {
    font-size: 32px;
  }
  .letter-sign,
  .editor.letter-paper .letter-sign {
    font-size: 36px;
  }
  .letter-place,
  .editor.letter-paper .letter-place {
    font-size: 20px;
  }
  .letter-greeting + p::first-letter,
  .editor.letter-paper .letter-greeting + p::first-letter {
    font-size: 2.8em;
  }
  .editor.letter-paper {
    min-height: 420px;
    padding: 22px 16px 32px;
  }
}
