html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: red;
    font-family: Arial, Helvetica, sans-serif;
}

/* Wrapper for spacing between sections */
.section {
    min-height: 100vh;          /* each chunk fills the screen */
    display: flex;
    align-items: center;
}

/* Shared text styling */
.text {
    color: white;
    font-size: clamp(4rem, 9vw, 10rem);
    font-weight: 800;
    line-height: 1.05;
    max-width: 90%;
}

/* Left-aligned sections */
.left {
    justify-content: flex-start;
    padding-left: 2rem;
}

/* Right-aligned sections */
.right {
    justify-content: flex-end;
    padding-right: 2rem;
    text-align: right;
}

.nav {
    position: flex;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
}

.nav a:hover {
    text-decoration: underline;
}



/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 3rem; /* space so nav doesn't overlap content */
}
/* Blog Index Page */
.blog-index {
    display: flex;
    flex-direction: column;
    align-items: center;      /* center horizontally */
    justify-content: flex-start;  /* align closer to top */
    min-height: 80vh;
    padding: 2rem 2rem 2rem 2rem; /* top padding pushes content down a bit */
    gap: 1rem;                /* space between links */
}

/* Top heading */
.blog-index h1 {
    color: white;
    font-size: clamp(2rem, 6vw, 4rem);  /* slightly bigger than links */
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    text-decoration: underline; 

}

/* Blog links */
.blog-link {
    color: white;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, color 0.2s;
}

.blog-link:hover {
    color: #ffd;
    transform: translateY(-0.2rem);
    text-decoration: underline;
}


/* Writing page */
.writing {
    display: flex;
    flex-direction: column;
    align-items: center;       /* centers container horizontally */
    padding: 4rem 2rem;        /* top/bottom + side padding */
    color: white;
}

.writing-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: underline; /* optional for heading style */
}

/* Book-style content container */
.writing-content {
    max-width: 700px;       /* controls block width */
    width: 100%;            /* responsive */
    line-height: 1.6;       /* spacing between lines */
    text-align: justify;    /* makes both sides align like a book */
}

/* Paragraph styling */
.writing-content p {
    margin-bottom: 1.5rem; /* space between paragraphs */
    font-size: 1.2rem;
}