/* Example letters page. Layout comes from the letters view in styles.css (.correspondence, .sidebar,
   .thread, .letter); this file only adds what is particular to the examples. */

.examples{margin-top:48px}
.examples-head{max-width:760px}
.examples-head h1{font-size:clamp(44px,5vw,64px);color:var(--green);margin-bottom:14px}
.examples-head p{font:400 21px/1.45 var(--serif);margin:0}
.examples-body{margin-top:44px;scroll-margin-top:20px}

/* the three correspondences */
.examples .penpal-select{text-decoration:none;color:inherit}
.example-reader{grid-column:2;font:italic 400 16px/1.3 var(--serif);color:var(--muted)}

/* the wish, shown in the same field the reader typed it into */
.wish{margin-bottom:40px}
.wish-field{max-width:none;align-items:flex-start;padding:16px 18px;background:var(--surface)}
.wish-field .icon{margin-top:5px}
.wish-field p{margin:0;font:400 21px/1.45 var(--serif)}
.wish-after{margin:16px 0 0;color:var(--muted);max-width:62ch}

/* letters, each under a line saying whose it is */
.example-letters{gap:0}
.example-caption{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:44px 0 14px;font:600 13px/1.3 var(--text);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);scroll-margin-top:20px}
.example-caption:first-child{margin-top:0}
.example-caption.is-reader{margin-left:48px}
.example-note{font:italic 400 17px/1.3 var(--serif);letter-spacing:0;text-transform:none}
.example-letters .letter-ps{margin-top:1.2em}

/* the close */
.example-end{margin-top:72px;padding:44px 48px 48px;border:1px solid var(--border);background:var(--surface)}
.example-end h2{font-size:36px;color:var(--green);margin-bottom:10px}
.example-end p{font:400 20px/1.45 var(--serif);max-width:44ch;margin:0 0 26px}
.example-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px}
.example-end .deco-corner{--s:110px}

@media (max-width:1100px){
  .examples-body.correspondence{grid-template-columns:1fr;gap:32px}
  .examples-body .sidebar{position:static}
  .examples-body .penpal-list{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}
}
@media (max-width:820px){
  .examples{margin-top:28px}
  .examples-body .penpal-list{grid-template-columns:1fr}
  .example-letters .letter{padding:44px 22px 40px}
  .example-letters .paper-reader,.example-caption.is-reader{margin-left:16px}
  .example-end{padding:32px 22px 36px}
}
/* a reader's own line breaks (an address, a close and a name) are kept */
.example-letters .paper-reader p{white-space:pre-line}
