Files
cs249r_book/newsletter/newsletter.css
Vijay Janapa Reddi aa0c690a6f feat: add newsletter system with Buttondown integration and CLI commands
Adds newsletter infrastructure: CLI commands (new, list, preview, publish,
fetch, status) integrated into binder, Quarto archive site config for
mlsysbook.ai/newsletter/, and 12-month editorial content plan. Drafts
are gitignored for private local writing; sent newsletters are committed
as the public archive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 17:22:52 -05:00

161 lines
3.4 KiB
CSS

/* ============================================================================
Newsletter Archive Styles — Machine Learning Systems
Matches the landing site design language (Inter font, Harvard crimson accent).
============================================================================ */
:root {
--nl-accent: #A51C30;
--nl-accent-hover: #8a1728;
--nl-text: #1a1a2e;
--nl-text-muted: #6b7280;
--nl-bg: #ffffff;
--nl-card-bg: #f9fafb;
--nl-border: #e5e7eb;
}
/* Dark mode overrides */
.quarto-dark {
--nl-text: #e5e7eb;
--nl-text-muted: #9ca3af;
--nl-bg: #0f1117;
--nl-card-bg: #1a1d2e;
--nl-border: #374151;
}
/* ── Hero Section ── */
.newsletter-hero {
padding: 6rem 2rem 4rem;
text-align: center;
max-width: 720px;
margin: 0 auto;
}
.newsletter-hero-content {
display: flex;
flex-direction: column;
align-items: center;
}
.newsletter-eyebrow {
font-family: 'Inter', sans-serif;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--nl-accent);
margin-bottom: 1rem;
}
.newsletter-title {
font-family: 'Inter', sans-serif;
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 700;
line-height: 1.1;
color: var(--nl-text);
margin-bottom: 1.5rem;
}
.newsletter-tagline {
font-family: 'Inter', sans-serif;
font-size: 1.15rem;
line-height: 1.6;
color: var(--nl-text-muted);
margin-bottom: 2rem;
}
.newsletter-cta {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.newsletter-subscribe-btn {
display: inline-block;
padding: 0.75rem 2rem;
background: var(--nl-accent);
color: #fff !important;
text-decoration: none;
border-radius: 6px;
font-family: 'Inter', sans-serif;
font-weight: 600;
font-size: 0.95rem;
transition: background 0.2s;
}
.newsletter-subscribe-btn:hover {
background: var(--nl-accent-hover);
text-decoration: none;
}
.newsletter-rss-btn {
display: inline-block;
padding: 0.75rem 2rem;
background: transparent;
color: var(--nl-text) !important;
text-decoration: none;
border: 1.5px solid var(--nl-border);
border-radius: 6px;
font-family: 'Inter', sans-serif;
font-weight: 500;
font-size: 0.95rem;
transition: border-color 0.2s;
}
.newsletter-rss-btn:hover {
border-color: var(--nl-accent);
text-decoration: none;
}
/* ── Listing Overrides ── */
#newsletter-listing {
max-width: 720px;
margin: 0 auto 4rem;
padding: 0 2rem;
}
#newsletter-listing .quarto-listing-default .list-group-item {
border: 1px solid var(--nl-border);
border-radius: 8px;
margin-bottom: 1rem;
padding: 1.5rem;
background: var(--nl-card-bg);
transition: border-color 0.2s;
}
#newsletter-listing .quarto-listing-default .list-group-item:hover {
border-color: var(--nl-accent);
}
#newsletter-listing .listing-title {
font-family: 'Inter', sans-serif;
font-weight: 600;
font-size: 1.1rem;
color: var(--nl-text);
}
#newsletter-listing .listing-date {
font-family: 'Inter', sans-serif;
font-size: 0.85rem;
color: var(--nl-text-muted);
}
#newsletter-listing .listing-description {
font-family: 'Inter', sans-serif;
font-size: 0.95rem;
color: var(--nl-text-muted);
line-height: 1.5;
}
/* ── Responsive ── */
@media (max-width: 768px) {
.newsletter-hero {
padding: 4rem 1.5rem 3rem;
}
.newsletter-cta {
flex-direction: column;
align-items: center;
}
}