/* Shared styling for the "go deeper" reading pages: /<author>/ and the letters,
   poems or chapters under it. Nothing here is specific to one author, so a new
   voice needs only its own HTML. Palette and type as legal.css and index.html.
   Approved mockup: concepts/quotestack/rilke-pages-mockup.html. */
:root{
  --paper:#F1F5EE; --paper-soft:#E3EEE1; --paper-line:rgba(20,32,28,.12);
  --ink:#16221D; --ink-soft:#48564C;
  --ember:#FDBA74; --ember-deep:#C9822E; --link:#8A5410; --ember-wash:rgba(253,186,116,.28);
  --char:#101F26; --sage-deep:#728A8F;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:"Inter",system-ui,sans-serif;color:var(--ink);background:var(--paper);line-height:1.65;-webkit-font-smoothing:antialiased;}
.wrap{max-width:680px;margin:0 auto;padding:0 22px;}

header.masthead{border-bottom:1px solid var(--paper-line);padding:16px 0;}
header.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.logo{display:inline-block;line-height:0;}
.logo img{height:28px;width:auto;display:block;}
a.crumb{font-size:15px;color:var(--ink-soft);text-decoration:none;}
a.crumb:hover{color:var(--ink);}

.eyebrow{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--sage-deep);display:inline-flex;align-items:center;gap:9px;margin:34px 0 12px;}
.eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ember);box-shadow:0 0 8px 1px var(--ember);}
h1{font-family:"Fraunces",Georgia,serif;font-weight:440;font-size:34px;line-height:1.12;letter-spacing:-.01em;}
.dates{font-family:"IBM Plex Mono",monospace;font-size:14px;color:var(--ink-soft);margin-top:8px;}
.lede{font-family:"Fraunces",Georgia,serif;font-style:italic;font-size:20px;line-height:1.5;color:var(--ink-soft);margin-top:18px;}
h2{font-family:"Fraunces",Georgia,serif;font-weight:440;font-size:23px;line-height:1.2;margin:38px 0 10px;}
p{font-size:17px;}
p+p{margin-top:14px;}
a{color:var(--link);}

/* Portrait on the author page */
.portrait{margin-top:26px;}
/* The whole photograph at its own proportions, never cropped: a wide crop
   of a portrait-shaped photo showed only a slice of the face on desktop. */
.portrait img{display:block;width:100%;max-width:300px;height:auto;border-radius:12px;background:var(--char);}
.portrait figcaption{font-size:14px;color:var(--ink-soft);margin-top:8px;}

/* Lists of works */
.works{list-style:none;margin:10px 0 0;border-top:1px solid var(--paper-line);}
.works li{border-bottom:1px solid var(--paper-line);}
.works a,.works .soon{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:13px 0;text-decoration:none;color:var(--ink);}
.works .t{font-family:"Fraunces",Georgia,serif;font-size:18px;}
.works .m{font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--ink-soft);white-space:nowrap;}
.works .soon .t{color:var(--ink-soft);}
.works-note{font-size:15px;color:var(--ink-soft);margin-top:10px;}

.free{list-style:none;margin-top:8px;}
.free li{padding:10px 0;border-bottom:1px solid var(--paper-line);font-size:16px;}
.free .src{display:block;font-size:14.5px;color:var(--ink-soft);}

/* Reading pages */
.context{background:var(--paper-soft);border:1px solid var(--paper-line);border-radius:10px;padding:16px 18px;margin-top:22px;font-size:16px;color:var(--ink-soft);}
.letter p{font-family:"Fraunces",Georgia,serif;font-size:19px;line-height:1.65;}
.letter .place{font-family:"IBM Plex Mono",monospace;font-size:14px;color:var(--ink-soft);margin:30px 0 18px;}
.letter .sign{font-style:italic;}
.letter .note{font-family:"Inter",system-ui,sans-serif;font-size:15px;font-style:italic;color:var(--ink-soft);margin-top:22px;}

/* A line from the pack: quiet everywhere, lit when it is the one the reader
   followed (works.js adds .lit from the #line-N in the address). */
mark{background:none;color:inherit;border-bottom:2px solid var(--ember);padding-bottom:1px;scroll-margin-top:90px;}
mark.lit{background:var(--ember-wash);border-bottom-color:var(--ember-deep);box-shadow:0 0 0 4px var(--ember-wash);border-radius:3px;}
.tag{display:inline-block;font-family:"IBM Plex Mono",monospace;font-size:11.5px;font-weight:600;letter-spacing:.06em;color:var(--link);vertical-align:2px;margin-left:4px;}

.poem{font-family:"Fraunces",Georgia,serif;font-size:20px;line-height:1.6;margin-top:30px;overflow-wrap:anywhere;}
.poem .st+.st{margin-top:22px;}
.poem .l{display:block;padding-left:1.2em;text-indent:-1.2em;}
.poem mark{display:block;border-bottom:none;border-left:3px solid var(--ember);padding-left:12px;margin-left:-15px;}
.poem mark.lit{border-left-color:var(--ember-deep);box-shadow:none;border-radius:0 6px 6px 0;padding:6px 8px 6px 12px;}
.poem .tag{display:block;margin:6px 0 0;}

.trans{font-size:15px;color:var(--ink-soft);margin-top:34px;padding-top:16px;border-top:1px solid var(--paper-line);}
.trans p{font-size:15px;}
.pager{display:flex;justify-content:space-between;gap:12px;margin:26px 0;font-size:16px;}
.pager a{text-decoration:none;}

/* The way back to the app. works.js swaps the wording for readers who came
   from Embering, whose in-app browser closes back onto their line. */
.app{background:var(--char);color:#E3EEE1;border-radius:12px;padding:20px;margin:10px 0 36px;}
.app p{font-size:16px;color:#E3EEE1;}
.app a{display:inline-block;margin-top:12px;background:var(--ember);color:var(--char);font-weight:600;font-size:15px;padding:10px 16px;border-radius:999px;text-decoration:none;}
.app .from-app{display:none;}
.came-from-app .app .from-app{display:block;}
.came-from-app .app .from-web{display:none;}

footer{font-size:14px;color:var(--ink-soft);padding:20px 0 40px;border-top:1px solid var(--paper-line);}
footer a{color:var(--ink-soft);}

/* Jump links under the lede of a long index page */
.jump{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;font-size:15px;}
.jump a{text-decoration:none;border-bottom:1px solid var(--paper-line);padding-bottom:1px;}
.jump a:hover{border-bottom-color:var(--link);}

/* Books: a clear action on its own row, never just a sentence in a paragraph */
.books{list-style:none;margin-top:10px;border-top:1px solid var(--paper-line);}
.books li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--paper-line);}
.books .b{font-family:"Fraunces",Georgia,serif;font-size:18px;line-height:1.3;}
.books .b small{display:block;font-family:"Inter",system-ui,sans-serif;font-size:14px;color:var(--ink-soft);margin-top:2px;}
a.buy{display:inline-block;background:var(--char);color:#E3EEE1;font-weight:600;font-size:15px;line-height:1.3;padding:10px 16px;border-radius:999px;text-decoration:none;white-space:nowrap;}
a.buy:hover{background:#1b3340;}
a.buy:focus-visible{outline:3px solid var(--ember);outline-offset:2px;}
.buy-row{margin-top:18px;}
.buy-row a.buy{white-space:normal;}

/* Narrow phones: let the label under a title wrap instead of squeezing it */
@media (max-width:480px){
  .works .m{white-space:normal;text-align:right;}
  .books li{flex-direction:column;align-items:flex-start;}
}

/* Where to go next */
footer .voices{margin-bottom:8px;}
