/* Front Page — Classic Newspaper Layout
   All classes prefixed `at-` (Authoria Times) to avoid collisions. */

/* ── Reset & Base ───────────────────────────────────────────────── */
.at-front {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	font-family: Georgia, 'Times New Roman', Times, serif;
	color: #1a1a1a;
	line-height: 1.6;
}

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

/* ── Masthead ───────────────────────────────────────────────────── */
.at-masthead {
	text-align: center;
	padding: 1.5rem 0 0.75rem;
	border-bottom: 4px double #1a1a1a;
	margin-bottom: 1.5rem;
}

.at-masthead-date {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #666;
	margin-bottom: 0.25rem;
}

.at-masthead-title {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	margin: 0.25rem 0;
}

.at-masthead-tagline {
	font-style: italic;
	font-size: 0.95rem;
	color: #555;
}

/* ── Section Headings ───────────────────────────────────────────── */
.at-section-heading {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	border-bottom: 2px solid #1a1a1a;
	padding-bottom: 0.35rem;
	margin: 2rem 0 1rem;
}

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

/* Hero article */
.at-hero {
	border-right: 1px solid #ddd;
	padding-right: 1.5rem;
}

.at-hero-img {
	width: 100%;
	height: 300px;
	background: #b8c9d9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.85rem;
	color: #4a6a82;
	margin-bottom: 1rem;
	border: 1px solid #a0b4c4;
}

.at-hero h2 {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.5rem;
}

.at-hero .at-excerpt {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #333;
}

/* ── Bylines ────────────────────────────────────────────────────── */
.at-byline {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.8rem;
	color: #777;
	margin-bottom: 0.6rem;
}

/* ── Category Labels ────────────────────────────────────────────── */
.at-label {
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.15em 0.5em;
	margin-bottom: 0.4rem;
	color: #fff;
}

.at-label--breaking  { background: #c0392b; }
.at-label--local     { background: #2c3e50; }
.at-label--education { background: #16a085; }
.at-label--weather   { background: #2980b9; }
.at-label--community { background: #8e44ad; }

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

.at-sidebar-item {
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e0e0e0;
}

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

.at-sidebar-item h3 {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0.25rem 0 0.35rem;
}

.at-sidebar-item .at-excerpt {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #444;
}

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

.at-card {
	border-top: 3px solid #1a1a1a;
	padding-top: 0.75rem;
}

.at-card h3 {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0.25rem 0 0.35rem;
}

.at-card .at-excerpt {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #444;
}

/* ── Divider ────────────────────────────────────────────────────── */
.at-divider {
	border: none;
	border-top: 1px solid #ccc;
	margin: 1.5rem 0;
}

/* ── Bottom Links ───────────────────────────────────────────────── */
.at-bottom-links {
	text-align: center;
	padding: 1.5rem 0;
	border-top: 2px solid #1a1a1a;
	margin-top: 2rem;
}

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

.at-bottom-links a {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #1a1a1a;
	text-decoration: none;
	margin: 0 1rem;
}

.at-bottom-links a:hover {
	text-decoration: underline;
}

.at-powered-by {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.75rem;
	color: #999;
}

.at-powered-by a {
	color: #666;
	text-decoration: underline;
}

/* ── Responsive: Tablet (≤768px) ────────────────────────────────── */
@media (max-width: 768px) {
	.at-masthead-title {
		font-size: 2.2rem;
	}

	.at-hero-row {
		grid-template-columns: 1fr;
	}

	.at-hero {
		border-right: none;
		padding-right: 0;
		padding-bottom: 1.25rem;
		border-bottom: 1px solid #ddd;
	}

	.at-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Responsive: Mobile (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {
	.at-masthead-title {
		font-size: 1.75rem;
	}

	.at-hero h2 {
		font-size: 1.5rem;
	}

	.at-hero-img {
		height: 200px;
	}

	.at-grid {
		grid-template-columns: 1fr;
	}

	.at-bottom-links a {
		display: block;
		margin: 0.4rem 0;
	}
}
