/*
 * Reveille Article Styles — Article page CSS
 * Ported from the design reference prototype.
 * All rules scoped under .reveille-article to avoid theme conflicts.
 */

@font-face {
	font-family: 'Nimbus Roman';
	src: url('/wp-content/uploads/2024/12/NimbusRomNo9L-Reg.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nimbus Roman';
	src: url('/wp-content/uploads/2024/12/NimbusRomNo9L-RegIta.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Nimbus Roman';
	src: url('/wp-content/uploads/2024/12/NimbusRomNo9L-Med.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nimbus Roman';
	src: url('/wp-content/uploads/2024/12/NimbusRomNo9L-MedIta.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #ffffff;
	--fg: #121212;
	--fg-soft: #363636;
	--fg-muted: #727272;
	--fg-light: #999;
	--rule-heavy: #121212;
	--rule-med: #999;
	--rule-light: #e2dfd7;
	--cat-politics: #c41e3a;
	--cat-business: #1a6b3c;
	--cat-culture: #8b5e3c;
	--cat-opinion: #4a5899;
	--cat-analysis: #2c6fbb;
	--font-hl: 'Nimbus Roman', 'Georgia', serif;
	--font-body: 'Nimbus Roman', 'Georgia', serif;
	--font-ui: 'Lato', 'Source Sans 3', 'Helvetica Neue', sans-serif;
	--max-w: 1200px;
	--article-w: 720px;
	--wide-w: 960px;
}

.reveille-article {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.reveille-article a {
	color: inherit;
	text-decoration: none;
}

.reveille-article img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* =============================================
   UNIVERSAL MASTHEAD
   ============================================= */

.reveille-article .masthead {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 32px 24px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.reveille-article .masthead__hamburger {
	position: absolute;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.reveille-article .masthead__hamburger svg {
	width: 24px;
	height: 24px;
	stroke: var(--fg);
	fill: none;
}

.reveille-article .masthead__logo {
	font-family: var(--font-hl);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 900;
	letter-spacing: -.02em;
}

.reveille-article .masthead__logo img {
	max-height: 56px;
	width: auto;
}

.reveille-article .masthead__user {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
}

.reveille-article .masthead__avatar {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--rule-light);
}

.reveille-article .nav-bar {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	justify-content: center;
	gap: 32px;
	font-family: 'Lato', var(--font-ui);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid var(--rule-heavy);
}

.reveille-article .nav-bar a {
	position: relative;
	color: var(--fg-muted);
}

.reveille-article .nav-bar a.active {
	color: var(--cat-analysis);
	font-weight: 700;
}

.reveille-article .nav-bar a::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--fg);
	transition: width .2s;
}

.reveille-article .nav-bar a:hover::after {
	width: 100%;
}

/* =============================================
   HERO: CLASSIC
   ============================================= */

.reveille-article .hero-classic {
	max-width: var(--article-w);
	margin: 0 auto;
	padding: 48px 24px 0;
}

.reveille-article .hero-classic__headline {
	font-family: var(--font-hl);
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1;
	color: var(--fg);
	margin-bottom: 28px;
}

.reveille-article .hero-classic__excerpt {
	font-family: 'Georgia', serif;
	font-size: 22px;
	line-height: 1.4;
	color: var(--fg-muted);
	margin-bottom: 28px;
}

/* =============================================
   HERO: SPLASH
   ============================================= */

.reveille-article .hero-splash {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 85vh;
}

.reveille-article .hero-splash__text {
	padding: 60px 48px 60px 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	max-width: 600px;
	margin-left: auto;
}

.reveille-article .hero-splash__cats {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
}

.reveille-article .hero-splash__headline {
	font-family: var(--font-hl);
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1;
	color: var(--fg);
	margin-bottom: 20px;
}

.reveille-article .hero-splash__excerpt {
	font-family: 'Georgia', serif;
	font-size: 22px;
	font-style: italic;
	line-height: 1.4;
	color: var(--fg-muted);
	margin-bottom: 24px;
}

.reveille-article .hero-splash__media {
	position: relative;
	overflow: hidden;
}

.reveille-article .hero-splash__media img,
.reveille-article .hero-splash__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =============================================
   HERO: BANNER
   ============================================= */

.reveille-article .hero-banner {
	position: relative;
	width: 100%;
	min-height: 70vh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.reveille-article .hero-banner__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reveille-article .hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}

.reveille-article .hero-banner__content {
	position: relative;
	z-index: 1;
	max-width: var(--article-w);
	margin: 0 auto;
	padding: 0 24px 48px;
	color: #fff;
}

.reveille-article .hero-banner__kicker {
	color: rgba(255,255,255,.7);
	margin-bottom: 12px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.reveille-article .hero-banner__headline {
	font-family: var(--font-hl);
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1;
	margin-bottom: 16px;
	color: #fff;
}

.reveille-article .hero-banner__excerpt {
	font-family: 'Georgia', serif;
	font-size: 22px;
	line-height: 1.4;
	color: rgba(255,255,255,.8);
	max-width: 540px;
}

/* Banner wrap overrides for masthead */
.reveille-article.hero-banner-wrap .masthead {
	position: absolute;
	width: 100%;
	z-index: 10;
}

.reveille-article.hero-banner-wrap .masthead__logo {
	color: #fff;
}

.reveille-article.hero-banner-wrap .masthead__logo img {
	filter: brightness(0) invert(1);
}

.reveille-article.hero-banner-wrap .masthead__user {
	color: #fff;
}

.reveille-article.hero-banner-wrap .masthead__hamburger svg {
	stroke: #fff;
}

.reveille-article.hero-banner-wrap .nav-bar {
	display: none;
}

/* =============================================
   HERO: STACKED
   ============================================= */

.reveille-article .hero-stacked__image {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.reveille-article .hero-stacked__body {
	max-width: var(--article-w);
	margin: 0 auto;
	padding: 32px 24px 0;
}

.reveille-article .hero-stacked__kicker {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 12px;
}

.reveille-article .hero-stacked__headline {
	font-family: var(--font-hl);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1;
	margin-bottom: 20px;
}

.reveille-article .hero-stacked__excerpt {
	font-family: 'Georgia', serif;
	font-size: 22px;
	line-height: 1.4;
	color: var(--fg-muted);
	margin-bottom: 24px;
}

/* =============================================
   HERO: MINIMAL (auto for Opinion)
   ============================================= */

.reveille-article .hero-minimal {
	max-width: var(--wide-w);
	margin: 0 auto;
	padding: 64px 24px 32px;
	text-align: center;
}

.reveille-article .hero-minimal__kicker {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin-bottom: 16px;
}

.reveille-article .hero-minimal__headline {
	font-family: var(--font-hl);
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 500;
	font-style: italic;
	line-height: 1;
}

/* =============================================
   SHARED: ACTION BAR
   ============================================= */

.reveille-article .action-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
}

.reveille-article .action-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 11px 12px;
	border: 1px solid var(--rule-light);
	border-radius: 10px;
	background: none;
	cursor: pointer;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	color: var(--fg-soft);
	transition: all .15s;
}

.reveille-article .action-btn:hover {
	border-color: var(--fg);
	color: var(--fg);
}

.reveille-article .action-btn svg {
	width: 18px;
	height: 18px;
}

.reveille-article .action-btn--active svg {
	fill: var(--cat-analysis);
	color: var(--cat-analysis);
}

.reveille-article .action-btn--active {
	border-color: var(--cat-analysis);
	color: var(--cat-analysis);
}

/* =============================================
   SHARED: BYLINE
   ============================================= */

.reveille-article .byline-block {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0 4px;
}

.reveille-article .byline-block__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--rule-light);
	flex-shrink: 0;
}

.reveille-article .byline-block__info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.reveille-article .byline-block__name {
	font-family: 'Lato', 'Helvetica Neue', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--fg);
}

.reveille-article .byline-block__role {
	font-family: 'Lato', 'Helvetica Neue', sans-serif;
	font-size: 14.5px;
	color: var(--fg-muted);
	line-height: 1.3;
}

/* =============================================
   SHARED: TIMESTAMP
   ============================================= */

.reveille-article .article-timestamp {
	font-family: 'Lato', 'Helvetica Neue', sans-serif;
	font-size: 15px;
	color: var(--fg-light);
	padding-bottom: 4px;
}

.reveille-article .article-timestamp time + time::before {
	content: '\00B7';
	margin: 0 6px;
	color: var(--rule-light);
}

/* =============================================
   SHARED: RULES
   ============================================= */

.reveille-article .rule {
	border: none;
	border-top: 1px solid var(--rule-light);
	margin: 0;
}

/* =============================================
   ARTICLE BODY
   ============================================= */

.reveille-article .article-body {
	max-width: var(--article-w);
	margin: 0 auto;
	padding: 0 24px;
}

.reveille-article .article-body__featured-img {
	width: calc(100% + 48px);
	max-width: none;
	margin: 0 -24px 20px;
	display: block;
}

.reveille-article .article-body__actions {
	padding: 4px 0;
}

.reveille-article .article-body__rule {
	border: none;
	border-top: 1px solid var(--rule-light);
	margin: 8px 0 0;
}

.reveille-article .article-body__content {
	padding-top: 28px;
}

.reveille-article .article-body__content p {
	font-size: 22px;
	line-height: 1.4;
	color: var(--fg-soft);
	margin-bottom: 24px;
}


.reveille-article .article-body__content h2 {
	font-family: var(--font-hl);
	font-size: 1.5rem;
	font-weight: 500;
	margin: 36px 0 16px;
	line-height: 1.25;
}

.reveille-article .article-body__content blockquote {
	border-left: 3px solid var(--fg);
	padding: 4px 0 4px 24px;
	margin: 28px 0;
	font-style: italic;
	color: var(--fg-soft);
	font-size: 17px;
	line-height: 1.7;
}

.reveille-article .article-body__content figure {
	margin: 36px -60px;
}

.reveille-article .article-body__content figure img {
	width: 100%;
}

.reveille-article .article-body__content figcaption {
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--fg-muted);
	margin-top: 8px;
	padding: 0 60px;
}

.reveille-article .article-body__bottom-rule {
	border: none;
	border-top: 1px solid var(--rule-light);
	margin: 40px 0 0;
}

/* =============================================
   FOOTER
   ============================================= */

.reveille-article .site-footer {
	background: var(--fg);
	color: #aaa;
	font-family: var(--font-ui);
	font-size: 13px;
	text-align: center;
	padding: 32px 20px;
	margin-top: 64px;
}

.reveille-article .site-footer strong {
	color: #fff;
}

/* =============================================
   SAVED STORIES
   ============================================= */

.reveille-article .saved-stories {
	max-width: var(--article-w);
	margin: 0 auto;
	padding: 24px;
}

.reveille-article .saved-stories__card {
	padding: 20px 0;
	border-bottom: 1px solid var(--rule-light);
}

.reveille-article .saved-stories__card:last-child {
	border-bottom: none;
}

/* =============================================
   SIGNUP FORM
   ============================================= */

.reveille-article .reveille-signup {
	max-width: 400px;
	margin: 48px auto;
	padding: 0 24px;
}

.reveille-article .reveille-signup h2 {
	font-family: var(--font-hl);
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 24px;
}

.reveille-article .reveille-signup label {
	display: block;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--fg);
}

.reveille-article .reveille-signup input[type="text"],
.reveille-article .reveille-signup input[type="email"],
.reveille-article .reveille-signup input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rule-light);
	border-radius: 4px;
	font-family: var(--font-ui);
	font-size: 15px;
	margin-top: 4px;
}

.reveille-article .reveille-signup button {
	margin-top: 8px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
	.reveille-article .hero-splash {
		grid-template-columns: 1fr;
	}

	.reveille-article .hero-splash__text {
		padding: 32px 24px;
		max-width: 100%;
		margin-left: 0;
	}

	.reveille-article .hero-splash__media {
		min-height: 50vh;
	}

	.reveille-article .article-body__content figure {
		margin: 28px 0;
	}

	.reveille-article .article-body__content figcaption {
		padding: 0;
	}

	.reveille-article .masthead__hamburger {
		left: 16px;
	}

	.reveille-article .masthead__user {
		right: 16px;
	}
}

@media (max-width: 600px) {
	.reveille-article .nav-bar {
		gap: 16px;
		font-size: 13px;
		flex-wrap: wrap;
	}
}
