// Example 3: Styling Rules #set text(font: "Libertinus Serif", size: 11pt) #set page(paper: "a6", margin: 30pt) #set par(justify: true, leading: 0.5em) #set heading(numbering: "1.1") #show heading.where(level: 1): it => { set text(fill: navy, size: 16pt) set block(above: 1.5em, below: 0.8em) it } #show heading.where(level: 2): it => { set text(fill: rgb("#00008b"), size: 13pt, weight: "medium") set block(above: 1em, below: 0.5em) it } #show link: it => { set text(fill: blue) underline[#it] } #show strong: text.with(fill: red) #let important-note(body) = { rect( fill: rgb("#fff3cd"), inset: 8pt, radius: 4pt, stroke: orange + 1pt, )[ #set text(size: 10pt) *Note:* #body ] } = Main Heading This is the introduction section with some styled text. We have *strong emphasis* and _italic text_ for emphasis. #important-note[This is an important note that stands out with custom styling using show rules.] == Subheading Here's a paragraph with justified text and proper line spacing. The styling rules make the document look more polished and professional. - Item one - Item two with a #link("https://typst.app")[link to Typst] - Item three == Another Subheading More content follows here with different styling applied through set and show rules.