/* The Way We Were — front end */

.www-archive,
.www-single {
	--www-ink: #1a1a1a;
	--www-muted: #5c6570;
	--www-line: #d6d9de;
	--www-surface: #f2f3f5;
	--www-paper: #f2f3f5;
	--www-accent: #6b1f2a;
	--www-shell: 1280px;
	color: var(--www-ink);
}

/* —— Archive (unchanged structure) —— */

.www-archive-hero {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(160deg, #2a2a2a 0%, #3d4550 55%, #5a6570 100%);
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.www-archive-hero.has-image .www-archive-hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.www-archive-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 2rem 1.25rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.www-archive-title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
}

.www-archive-intro {
	max-width: 42rem;
	margin: 0 0 2rem;
	color: var(--www-muted);
}

.www-year-jump {
	margin: 0 0 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--www-line);
}

.www-year-jump h2 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
}

.www-year-jump ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.www-year-jump a {
	color: var(--www-accent);
	text-decoration: none;
	font-weight: 600;
}

.www-year-jump a:hover {
	text-decoration: underline;
}

.www-year-section {
	margin: 0 0 2.75rem;
	scroll-margin-top: 1.5rem;
}

.www-year-heading {
	margin: 0 0 1rem;
	font-size: 1.75rem;
}

.www-year-empty {
	color: var(--www-muted);
	font-style: italic;
}

.www-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 900px) {
	.www-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.www-card-grid {
		grid-template-columns: 1fr;
	}
}

.www-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.www-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--www-surface);
	margin-bottom: 0.65rem;
}

.www-card-media img,
.www-card-media .www-card-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.www-card-link:hover .www-card-image,
.www-card-link:hover .www-card-media img {
	transform: scale(1.03);
}

.www-card-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		-45deg,
		#e4e6ea,
		#e4e6ea 8px,
		#eceef1 8px,
		#eceef1 16px
	);
}

.www-card-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

/* —— Single issue —— */

.www-single {
	width: 100%;
	padding: 0 0 3.5rem;
	background:
		linear-gradient(180deg, #eef0f3 0%, transparent 180px),
		#fff;
}

.www-single-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--www-shell);
	margin: 0 auto;
	padding: 1.75rem 1.25rem 0;
}

.www-issue-back {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
}

.www-issue-back a {
	color: var(--www-muted);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.www-issue-back a:hover {
	color: var(--www-accent);
}

.www-issue-header {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 2rem;
	align-items: center;
	margin: 0 0 2.5rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--www-line);
	animation: www-fade-up 0.55s ease both;
}

@media (max-width: 800px) {
	.www-issue-header {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

.www-issue-cover {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--www-surface);
	aspect-ratio: 4 / 3;
}

.www-issue-cover__img,
.www-issue-cover img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}

.www-issue-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--www-accent);
}

.www-issue-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.85rem, 3.8vw, 2.65rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.www-issue-summary {
	max-width: 40rem;
	color: var(--www-muted);
	line-height: 1.55;
	font-size: 1.05rem;
}

.www-issue-summary p:last-child {
	margin-bottom: 0;
}

.www-issue-media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.25rem;
	align-items: start;
	margin: 0 0 2.75rem;
	animation: www-fade-up 0.65s ease 0.08s both;
}

@media (max-width: 900px) {
	.www-issue-media {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}
}

.www-issue-photos,
.www-issue-pdf {
	min-width: 0;
	padding: 1.35rem 1.35rem 1.5rem;
	background: var(--www-surface);
	border: 1px solid var(--www-line);
}

.www-issue-section-head {
	margin: 0 0 1rem;
}

.www-issue-section-head h2 {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.www-issue-section-head p {
	margin: 0;
	color: var(--www-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.www-issue-pdf__note {
	margin: 0 0 0.75rem;
	color: var(--www-muted);
	font-size: 0.9rem;
}

.www-issue-pdf__subscriber {
	margin: 0 0 1.25rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--www-line);
}

.www-issue-pdf__subscriber:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.www-button {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.7rem 1.15rem;
	background: var(--www-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.www-button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.www-button--primary {
	background: var(--www-ink);
}

.www-fb-album,
.www-fb-embed-wrap,
.pdf-embed-wrapper,
.www-pdf {
	margin: 0;
}

.www-fb-embed-wrap {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--www-line);
	overflow: hidden;
}

.www-fb-frame {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 720px;
	border: 0;
	overflow: hidden;
	background: #fff;
}

.www-fb-fallback {
	margin: 0.85rem 0 0;
	text-align: center;
}

.www-pdf-frame {
	display: block;
	width: 100%;
	min-height: 640px;
	height: min(70vh, 820px);
	border: 1px solid var(--www-line);
	background: #fff;
}

@media (max-width: 768px) {
	.www-pdf-frame {
		display: none !important;
	}
}

.www-related-edition,
.www-edition-pdf {
	margin: 0 0 0.75rem;
}

.www-related-edition__date {
	display: block;
	margin-top: 0.25rem;
	color: var(--www-muted);
	font-size: 0.9rem;
}

.www-issue-promos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding-top: 0.5rem;
	animation: www-fade-up 0.6s ease 0.14s both;
}

@media (max-width: 700px) {
	.www-issue-promos {
		grid-template-columns: 1fr;
	}
}

.www-promo a {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.www-promo a:hover {
	opacity: 0.88;
}

.www-promo img {
	display: block;
	width: 100%;
	height: auto;
}

.www-promo span {
	display: block;
	padding: 1rem;
	background: var(--www-surface);
	border: 1px solid var(--www-line);
	font-weight: 600;
	text-align: center;
}

.www-empty {
	color: var(--www-muted);
	font-style: italic;
	margin: 0;
}

@keyframes www-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.www-issue-header,
	.www-issue-media,
	.www-issue-promos {
		animation: none;
	}

	.www-card-link:hover .www-card-image,
	.www-card-link:hover .www-card-media img,
	.www-button:hover {
		transform: none;
	}
}
