/* Existing styles */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
}

/* Homepage sections */
.intro {
    margin-bottom: 3rem;
    text-align: left;
}

.about-preview,
.recent-posts,
.featured-projects,
.newsletter,
.membership-teaser {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

/* eliminates bottom border on last item of homepage ... change to whatever is last */
.about-preview {
    border-bottom: none;
}

/* Essay and project previews */
.essay-preview,
.project-preview {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.essay-preview:last-of-type,
.project-preview:last-of-type {
    border-bottom: none;
}

.essay-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.tech-stack {
    /* This class is for tech/tool lists for projects. Not used rn */
    font-size: 0.85rem;
    color: #888;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.section-footer {
    text-align: left;
    margin-top: 1rem;
    font-size: var(--font-scale--1); /* This equals 0.875rem = 15.75px */
    font-weight: 500;
}

.section-footer a {
    color: #b10000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.section-footer a:hover {
    border-bottom-color: #b10000;
}

/* Newsletter Signup Styles */
.newsletter {
    padding-bottom: 2rem;
}

.newsletter-card {
    background-color: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.newsletter-body p {
    margin-bottom: 1rem;
}

.newsletter h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.newsletter form {
    margin-top: 1.5rem;
}

.newsletter input[type="email"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 280px;
    font-family: inherit;
    margin-bottom: 1rem;
}

.newsletter input[type="email"]:focus {
    outline: none;
    border-color: #b10000;
    box-shadow: 0 0 0 2px rgba(177, 0, 0, 0.1);
}

.newsletter button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #b10000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.newsletter button:hover {
    background-color: #900000;
}

.newsletter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.newsletter input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

/* === Newsletter Page Layout ============================================= */

/* Full-width horizontal rules */
.full-width-rule {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border: none;
    border-top: 1px solid #e5e5e5;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Inline newsletter subscribe form */
.newsletter-subscribe-inline {
    text-align: center;
    margin: var(--space-lg) 0;
}

.newsletter-subscribe-inline form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-subscribe-inline input[type="email"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 280px;
    font-family: inherit;
}

.newsletter-subscribe-inline input[type="email"]:focus {
    outline: none;
    border-color: #b10000;
    box-shadow: 0 0 0 2px rgba(177, 0, 0, 0.1);
}

.newsletter-subscribe-inline button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #b10000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.newsletter-subscribe-inline button:hover {
    background-color: #900000;
}

/* Newsletter about section */
.newsletter-about {
    margin-bottom: var(--space-xl);
    text-align: left;
}

/* Newsletter archive list */
.newsletter-archive {
    margin-top: var(--space-xl);
}

.newsletter-issue {
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: var(--space-md);
}

.newsletter-issue:last-of-type {
    border-bottom: none;
}

.issue-title {
    font-size: var(--font-scale-0);
    margin: 0 0 var(--space-xs) 0;
    font-weight: 400;
}

.issue-title a {
    color: inherit;
}

.issue-title strong {
    font-weight: 600;
}

.issue-date {
    font-size: var(--font-scale--1);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* === Simple Projects Teaser (stacked layout) ============================ */

.projects-teaser {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.project-feature {
    margin-bottom: 2rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.project-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}
