/* The New Times — front page styling
   Aligned with the calm publisher design system in at-authoria.css:
   Fraunces (display, SOFT 0), Newsreader (body), JetBrains Mono (utility).
   Off-white paper, ink, deep editorial blue accent. No colorful category
   labels — neutral mono kickers in their place. */

.at-front {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	font-family: var(--at-serif-text, "Newsreader"), "Iowan Old Style", Georgia, serif;
	color: var(--at-ink, #1a1814);
	line-height: 1.55;
}

.at-front *,
.at-front *::before,
.at-front *::after {
	box-sizing: border-box;
}

/* ── Masthead ──────────────────────────────────────────────────── */
.at-masthead {
	text-align: center;
	padding: 1.75rem 0 1rem;
	border-bottom: 3px double var(--at-rule, #1a1814);
	margin-bottom: 2rem;
}

.at-masthead-date {
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--at-ink-3, #6b6356);
	margin-bottom: 0.6rem;
}

.at-masthead-title {
	font-family: var(--at-serif-display, "Fraunces"), Georgia, serif;
	font-variation-settings: "opsz" 144, "SOFT" 0;
	font-weight: 460;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	letter-spacing: -0.02em;
	line-height: 0.96;
	margin: 0.25rem 0;
	color: var(--at-ink, #1a1814);
}

.at-masthead-tagline {
	font-family: var(--at-serif-text, "Newsreader"), Georgia, serif;
	font-style: italic;
	font-size: 0.95rem;
	color: var(--at-ink-2, #3a342b);
	margin-top: 0.5rem;
}

/* ── Section Headings ─────────────────────────────────────────── */
.at-section-heading {
	font-family: var(--at-serif-display, "Fraunces"), Georgia, serif;
	font-variation-settings: "opsz" 96, "SOFT" 0;
	font-size: 1.75rem;
	font-weight: 440;
	letter-spacing: -0.018em;
	border-bottom: 1px solid var(--at-rule, #1a1814);
	padding-bottom: 0.5rem;
	margin: 2.5rem 0 1.5rem;
	color: var(--at-ink, #1a1814);
}

/* ── Hero + Sidebar Row ───────────────────────────────────────── */
.at-hero-row {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.at-hero {
	border-right: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
	padding-right: 2rem;
}

.at-hero-fig {
	margin: 0 0 1.25rem;
}

.at-hero-img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
	background: var(--at-paper-2, #f1ede3);
	border: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
}

.at-hero-fig figcaption {
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--at-ink-3, #6b6356);
	margin-top: 0.5rem;
}

.at-hero-fig figcaption a {
	color: var(--at-ink-2, #3a342b);
	text-decoration: none;
	border-bottom: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
}

.at-hero-fig figcaption a:hover {
	color: var(--at-accent, #2a3f5f);
	border-bottom-color: var(--at-accent, #2a3f5f);
}

.at-hero h2 {
	font-family: var(--at-serif-display, "Fraunces"), Georgia, serif;
	font-variation-settings: "opsz" 144, "SOFT" 0;
	font-size: 2.4rem;
	font-weight: 440;
	letter-spacing: -0.022em;
	line-height: 1.04;
	margin: 0 0 0.75rem;
	color: var(--at-ink, #1a1814);
}

.at-hero .at-excerpt {
	font-family: var(--at-serif-text, "Newsreader"), Georgia, serif;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--at-ink-2, #3a342b);
}

/* ── Bylines ──────────────────────────────────────────────────── */
.at-byline {
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--at-ink-3, #6b6356);
	margin-bottom: 0.6rem;
}

/* ── Category labels — calm neutral mono kickers ─────────────── */
.at-label {
	display: inline-block;
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	padding: 0;
	margin-bottom: 0.5rem;
	color: var(--at-ink-3, #6b6356);
	background: transparent;
}

/* All category variants share the same calm treatment now. The accent
   editorial-blue is reserved for hero accent words and links. */
.at-label--breaking,
.at-label--local,
.at-label--education,
.at-label--weather,
.at-label--community {
	color: var(--at-ink-3, #6b6356);
	background: transparent;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.at-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.at-sidebar-item {
	padding-bottom: 1.5rem;
	border-bottom: 1px dotted var(--at-rule-faint, rgba(26,24,20,0.10));
}

.at-sidebar-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.at-sidebar-item h3 {
	font-family: var(--at-serif-display, "Fraunces"), Georgia, serif;
	font-variation-settings: "opsz" 96, "SOFT" 0;
	font-size: 1.25rem;
	font-weight: 440;
	letter-spacing: -0.012em;
	line-height: 1.18;
	margin: 0.25rem 0 0.5rem;
	color: var(--at-ink, #1a1814);
}

.at-sidebar-item .at-excerpt {
	font-family: var(--at-serif-text, "Newsreader"), Georgia, serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--at-ink-2, #3a342b);
}

/* ── Article Grid (3-column) ──────────────────────────────────── */
.at-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.at-card {
	border-top: 1px solid var(--at-rule, #1a1814);
	padding-top: 1rem;
}

.at-card h3 {
	font-family: var(--at-serif-display, "Fraunces"), Georgia, serif;
	font-variation-settings: "opsz" 96, "SOFT" 0;
	font-size: 1.3rem;
	font-weight: 440;
	letter-spacing: -0.014em;
	line-height: 1.15;
	margin: 0.25rem 0 0.55rem;
	color: var(--at-ink, #1a1814);
}

.at-card .at-excerpt {
	font-family: var(--at-serif-text, "Newsreader"), Georgia, serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--at-ink-2, #3a342b);
}

/* ── Divider ──────────────────────────────────────────────────── */
.at-divider {
	border: none;
	border-top: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
	margin: 2rem 0;
}

/* ── Bottom Links ─────────────────────────────────────────────── */
.at-bottom-links {
	text-align: center;
	padding: 2rem 0;
	border-top: 1px solid var(--at-rule, #1a1814);
	margin-top: 2.5rem;
}

.at-bottom-links nav {
	margin-bottom: 1rem;
}

.at-bottom-links a {
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--at-ink, #1a1814);
	text-decoration: none;
	margin: 0 1rem;
	border-bottom: 1px solid var(--at-ink, #1a1814);
	padding-bottom: 2px;
}

.at-bottom-links a:hover {
	color: var(--at-accent, #2a3f5f);
	border-bottom-color: var(--at-accent, #2a3f5f);
}

.at-powered-by {
	font-family: var(--at-mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--at-ink-3, #6b6356);
}

.at-powered-by a {
	color: var(--at-ink-2, #3a342b);
	text-decoration: none;
	border-bottom: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
}

.at-powered-by a:hover {
	color: var(--at-accent, #2a3f5f);
	border-bottom-color: var(--at-accent, #2a3f5f);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
	.at-hero-row {
		grid-template-columns: 1fr;
	}
	.at-hero {
		border-right: none;
		padding-right: 0;
		padding-bottom: 1.5rem;
		border-bottom: 1px solid var(--at-rule-soft, rgba(26,24,20,0.18));
	}
	.at-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.at-hero h2 {
		font-size: 1.75rem;
	}
	.at-hero-img {
		height: 240px;
	}
	.at-grid {
		grid-template-columns: 1fr;
	}
	.at-bottom-links a {
		display: block;
		margin: 0.5rem 0;
	}
}
