import SwiftUI

struct PaletteDemo: View {
    let paper=Color(red:0.969,green:0.910,blue:0.800)
    let ink=Color(red:0.149,green:0.239,blue:0.176)
    let accent=Color(red:0.800,green:0.353,blue:0.165)
    var body:some View {
        VStack(alignment:.leading,spacing:22) {
            Text("A COLOR STUDY").font(.caption.monospaced()).tracking(3)
            Text("A quieter\nreading list.").font(.system(size:42,weight:.bold,design:.serif))
            Text("A small SwiftUI example using three illustrative colors. These are not an exact photo export.").font(.body)
            HStack { ForEach(0..<3) { i in RoundedRectangle(cornerRadius:14).fill([paper,ink,accent][i]).frame(height:76).overlay(RoundedRectangle(cornerRadius:14).stroke(ink.opacity(0.3))) } }
            Text("Reading this week").font(.title2.bold())
            Text("One essay. A few useful notes. Room to return.")
            Button("Open the reading list") {}.padding().background(ink).foregroundStyle(paper).clipShape(RoundedRectangle(cornerRadius:12))
            Spacer()
            Text("VOW1 journal · standalone example").font(.caption)
        }.padding(30).frame(maxWidth:.infinity,maxHeight:.infinity,alignment:.topLeading).foregroundStyle(ink).background(paper)
    }
}
