#import "spiral.typ"

#let title = "JEFFERSON'S ADVENTURES IN WONDERLAND"
// Nyght Serif looks very, very good
#let font = "Nyght Serif"

#set page("us-trade", margin: 0in)
#place(
  image("Front_cover.png")
)

#set align(center)
#set align(horizon)
#set text(size: 35pt)

// excerpt
#place(
  top + center,
  dx: 100pt,
  dy: 50pt,
  [
    #set text(
      font: "Nyght Serif",
      weight: "regular",
      fill: rgb("#3d1819"),
      size: 17pt,
      style: "italic"
    )
    "Who in the world\
    am I? Ah, that's the\
    great puzzle."
  ]
)

// author
#place(
  bottom + left,
  dx: 30pt,
  dy: -45pt,
  [
    #set text(
      font: "Nyght Serif",
      weight: "semibold",
      fill: rgb("#e63f49"),
      size: 30pt
    )
    Lewis Caroll
  ]
)

// first letter outline
#place(
  center + horizon,
  dx: -170pt,
  dy: -45pt,
  [
    #set text(
      font: "Nyght Serif Dark",
      weight: "bold",
      fill: rgb("#3d1819"),
      size: 60pt,
      stroke: stroke(paint: rgb("#debc36"), thickness: 3pt, join: "round")
    )
    #title.at(0)
  ]
)

// first letter
#place(
  center + horizon,
  dx: -170pt,
  dy: -45pt,
  [
    #set text(
      font: "Nyght Serif Dark",
      fill: rgb("#3d1819"),
      size: 60pt
    )
    #title.at(0)
  ]
)

// title dark outline
#place(
  center + horizon,
  dx: -5pt,
  dy: 5pt,
  spiral.spiral-text(
    title.slice(1),
    15pt, // small size
    60pt, // beeg size
    1.25 * calc.pi,
    3 * calc.pi, // end angel 👼
    offset-from-center: 4.5,
    font: font,
    weight: "bold",
    color: rgb("#3d1819"),
    stroke: stroke(paint: rgb("#debc36"), thickness: 3pt, join: "round")
  )
)

// title dark
#place(
  center + horizon,
  dx: -5pt,
  dy: 5pt,
  spiral.spiral-text(
    title.slice(1),
    15pt, // small size
    60pt, // beeg size
    1.25 * calc.pi,
    3 * calc.pi, // end angel 👼
    offset-from-center: 4.5,
    font: font,
    weight: "bold",
    color: rgb("#3d1819")
  )
)

// subtitle
#place(
  center + horizon,
  dx: -10pt,
  dy: 0pt,
  spiral.spiral-text(
    "AND THROUGH THE LOOKING GLASS",
    20pt, // small size
    24pt, // beeg size
    2.2 * calc.pi, //2.1
    2.8 * calc.pi, // end angel 👼
    offset-from-center: 9,
    font: font,
    weight: "semibold",
    color: rgb("#3d1819"),
    stroke: stroke(paint: rgb("#debc36"), thickness: 2pt, join: "round"),
    use-variable-spacing: false
  )
)

#place(
  center + horizon,
  dx: -10pt,
  dy: 0pt,
  spiral.spiral-text(
    "AND THROUGH THE LOOKING GLASS",
    20pt, // small size
    24pt, // beeg size
    2.2 * calc.pi, //2.1
    2.8 * calc.pi, // end angel 👼
    offset-from-center: 9,
    font: font,
    weight: "semibold",
    color: rgb("#3d1819"),
    use-variable-spacing: false
  )
)

// first letter
#place(
  center + horizon,
  dx: 170pt,
  dy: 45pt,
  rotate(180deg,
  [
    #set text(
      font: "Nyght Serif Dark",
      fill: rgb("#e63f49"),
      size: 60pt
    )
    #title.at(0)
  ]
  )
)

// title red
#place(
  center + horizon,
  dx: 5pt,
  dy: -5pt,
  rotate(180deg, spiral.spiral-text(
      title.slice(1),
      15pt, // small size
      60pt, // beeg size
      1.25 * calc.pi,
      3 * calc.pi, // end angel 👼
      offset-from-center: 4.5,
      font: font,
      weight: "bold",
      color: rgb("#e63f49")
    )
  )
)

#pagebreak()