/* Self-hosted Klee One subsets, SIL OFL 1.1. The fonts include the license. */
@font-face {
  font-family: "Afternoon Letter";
  src: url("./correspondence-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Afternoon Letter";
  src: url("./correspondence-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root { --letter-hand: "Afternoon Letter", "Klee", var(--serif); }
.opening-stationery, .afternoon-note {
  position: relative;
  color: #432f36;
  border: 1px solid #c8af8e;
  background: linear-gradient(120deg,#fcf5e7,#f2e5d0 65%,#ebdcc5);
  box-shadow: 0 .36rem .9rem #1d10272b;
  font-family: var(--serif);
}
.opening-stationery {
  margin-top: .78rem;
  padding: .85rem clamp(.9rem,2.6vw,1.7rem) .45rem;
  border-radius: 2px;
}
.opening-stationery::before, .afternoon-note::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(45deg,transparent 48%,#b5a18b66 49%,#f8efde 54%,#e4d4b8 99%);
  pointer-events: none;
}
.opening-stationery p, .afternoon-note p { margin: 0; }
.opening-stationery .stationery-salutation {
  font: 600 1rem/1.45 var(--letter-hand);
  letter-spacing: .075em;
  color: #735052;
}
.opening-stationery .stationery-invitation {
  margin: .22rem 0 .44rem;
  font: 400 1.12rem/1.6 var(--letter-hand);
  letter-spacing: .025em;
}
.stationery-answers {
  border-top: 1px solid #c9b299;
}
.stationery-response {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: .1rem .9rem;
  width: 100%;
  min-height: 49px;
  padding: .45rem .25rem;
  background: transparent;
  color: #402e35;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-family: var(--serif);
}
.stationery-response + .stationery-response { border-top: 1px solid #d9c8af; }
.stationery-quotation {
  font: 600 1.1rem/1.55 var(--letter-hand);
}
.stationery-quotation del {
  text-decoration-line: line-through;
  text-decoration-style: double;
  text-decoration-thickness: 1px;
  text-decoration-color: #795657;
}
.stationery-response-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .2rem .5rem;
  color: #753851;
  font: 600 .96rem/1.5 var(--sans);
  text-underline-offset: .34em;
  text-decoration: underline;
  text-decoration-color: #aa8791;
  text-decoration-thickness: 1px;
}
.reading-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.response-history {
  font: 500 .8rem/1.5 var(--sans);
  letter-spacing: .025em;
  white-space: nowrap;
}
.reading-choice .response-history { color: #ead4af; }
.stationery-response .response-history {
  color: #6c5147;
  text-decoration: none;
}
.stationery-response:focus-visible {
  outline: 2px solid #7c435c;
  outline-offset: -2px;
}
.afternoon-note {
  margin-top: 1.15rem;
  padding: clamp(1.15rem,4vw,1.8rem);
  border-radius: 2px;
}
.afternoon-note h3 {
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #d2baa0;
  font: 600 clamp(1.09rem,2.3vw,1.42rem)/1.6 var(--serif);
  letter-spacing: .055em;
}
.afternoon-note .note-paragraph {
  font: 400 clamp(1.07rem, 2.4vw, 1.2rem)/1.9 var(--letter-hand);
  color: #3c2a30;
  letter-spacing: .035em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.afternoon-note .note-paragraph + .note-paragraph { margin-top: .75rem; }
.afternoon-note .note-signature {
  margin-top: .85rem;
  text-align: right;
  color: #775155;
  font: 600 1.1rem/1.65 var(--letter-hand);
  letter-spacing: .09em;
}
.afternoon-note .note-signature img {
  display: block;
  width: min(62%, clamp(6.9rem, 33vw, 8.75rem));
  height: auto;
  margin: .15rem 0 0 auto;
}
.letter-sheet .line {
  font-family: var(--letter-hand);
  font-weight: 400;
  letter-spacing: .025em;
}
.ending-plate {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52svh;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 2px;
  background: #352734;
}
.record-list .shelf-unlocked { display: flex; align-items: center; gap: .9rem; }
.shelf-unlocked > div { min-width: 0; }
.ending-thumb {
  flex: none;
  display: inline-block;
  vertical-align: middle;
  width: clamp(4rem,15vw,5.75rem);
  height: clamp(3.2rem,10vw,4rem);
  object-fit: cover;
  object-position: 65% 37%;
  border-radius: 2px;
}
.ending-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin-block: 1rem; }
@media (hover:hover) {
  .stationery-response:hover { background: #e8d9c3; }
  .stationery-response:hover .stationery-response-action { color: #55203c; text-decoration-color: currentColor; }
}
@media (max-width: 600px) {
  .opening-stationery { margin-top: .55rem; padding: .65rem .85rem .2rem; }
  .opening-stationery .stationery-invitation { font-size: 1.07rem; margin: .15rem 0 .3rem; }
  .stationery-response { grid-template-columns: 1fr; min-height: 48px; gap: .07rem; padding: .33rem .05rem; }
  .stationery-quotation { font-size: 1.06rem; line-height: 1.38; }
  .stationery-response-action { justify-content: flex-start; font-size: .88rem; line-height: 1.5; }
  .reading-choice { gap: .4rem; }
}
@media (max-width: 600px) and (max-height: 690px) {
  .play-screen .dialogue:has(.opening-stationery) { padding-top: .72rem; padding-bottom: .65rem; }
  .play-screen .dialogue:has(.opening-stationery) .line { line-height: 1.63; margin-top: .28rem; }
}
