/* ==========================================================================
   Posts - cards, listings, single article
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post cards
   -------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid--1 {
	grid-template-columns: minmax(0, 1fr);
}

.post-grid__item {
	display: flex;
}

.post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--fda-palette9);
	overflow: hidden;
	transition: transform var(--fda-speed) var(--fda-ease), box-shadow var(--fda-speed) var(--fda-ease);
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.post-card__thumb {
	display: block;
	overflow: hidden;
}

.post-card__thumb-inner {
	display: block;
	aspect-ratio: 16 / 9;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px;
}

.entry-taxonomies {
	margin-bottom: 12px;
}

.category-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.category-link {
	display: inline-block;
	padding: 3px 8px;
	background: var(--fda-palette2);
	font-family: var(--fda-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fda-palette9);
	transition: background-color var(--fda-speed);
}

.category-link:hover,
.category-link:focus {
	background: var(--fda-brick);
	color: var(--fda-palette9);
}

.post-card__title {
	margin: 0 0 12px;
	font-family: var(--fda-font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
	color: var(--fda-palette3);
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: var(--fda-palette2);
}

.post-card__summary {
	flex: 1 1 auto;
	margin-bottom: 18px;
}

.post-card__summary p {
	margin: 0;
	font-family: var(--fda-font-body);
	font-size: 14px;
	line-height: 22px;
	color: var(--fda-palette5);
}

.post-card__footer {
	margin-top: auto;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--fda-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fda-palette2);
	transition: gap var(--fda-speed) var(--fda-ease), color var(--fda-speed);
}

.post-card__more .fda-icon {
	width: 14px;
	height: 14px;
	stroke: currentColor;
}

.post-card__more:hover,
.post-card__more:focus {
	gap: 12px;
	color: var(--fda-brick);
}

/* --------------------------------------------------------------------------
   Archive / news landing
   -------------------------------------------------------------------------- */

.archive-hero {
	background: var(--fda-palette1);
	color: var(--fda-palette9);
}

.archive-hero__inner {
	max-width: var(--fda-content-width);
	margin: 0 auto;
	padding: 72px 24px;
	text-align: center;
}

.archive-hero__eyebrow {
	margin: 0 0 14px;
	font-family: var(--fda-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--fda-palette7);
}

.archive-hero__title {
	margin: 0;
	font-family: var(--fda-font-heading);
	font-size: 40px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--fda-palette9);
}

.archive-hero__text {
	margin: 16px auto 0;
	max-width: 70ch;
	font-size: 16px;
	line-height: 26px;
	color: var(--fda-palette7);
}

.archive-body {
	background: var(--fda-palette8);
}

.archive-body__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	max-width: var(--fda-content-width);
	margin: 0 auto;
	padding: 64px 24px 80px;
}

.archive-body--full .archive-body__inner {
	grid-template-columns: minmax(0, 1fr);
}

.archive-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --------------------------------------------------------------------------
   News landing sections (the magazine layout)
   -------------------------------------------------------------------------- */

.news-page {
	background: var(--fda-palette9);
}

.news-section {
	max-width: var(--fda-content-width);
	margin: 0 auto;
	padding: 0 24px 48px;
}

.news-section__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 40px 0 24px;
}

.news-section__title {
	margin: 0;
	font-family: var(--fda-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--fda-palette3);
	white-space: nowrap;
}

.news-section__rule {
	flex: 1 1 auto;
	height: 2px;
	background: var(--fda-palette2);
	opacity: 0.35;
}

/* Lead + list layout */
.news-lead {
	display: grid;
	grid-template-columns: 26% 45% 1fr;
	gap: 32px;
	align-items: start;
}

.news-lead__rail .news-section__head {
	margin-top: 0;
}

.news-feature {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.news-feature__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.news-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--fda-ease);
}

.news-feature:hover .news-feature__media img {
	transform: scale(1.04);
}

.news-feature--overlay .news-feature__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 24px;
	background: linear-gradient(to top, rgba(9, 31, 42, 0.92), rgba(9, 31, 42, 0));
	color: var(--fda-palette9);
}

.news-feature--overlay .news-feature__title {
	color: var(--fda-palette9);
}

.news-feature__title {
	margin: 12px 0 8px;
	font-family: var(--fda-font-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	color: var(--fda-palette3);
}

.news-feature__text {
	margin: 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--fda-palette5);
}

.news-feature--overlay .news-feature__text {
	color: var(--fda-palette7);
}

.news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: var(--fda-palette6);
}

.news-meta time {
	white-space: nowrap;
}

/* Compact horizontal item */
.news-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.news-item__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.news-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-item__title {
	margin: 0 0 6px;
	font-family: var(--fda-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.news-item__title a {
	color: var(--fda-palette3);
	text-decoration: none;
}

.news-item__title a:hover,
.news-item__title a:focus {
	color: var(--fda-palette2);
}

.news-item--stacked {
	grid-template-columns: minmax(0, 1fr);
}

.news-item--stacked .news-item__media {
	aspect-ratio: 16 / 9;
}

.news-item--stacked .news-item__title {
	font-size: 16px;
	line-height: 24px;
	margin-top: 10px;
}

/* Grid of three */
.news-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.news-duo {
	display: grid;
	grid-template-columns: 55% 1fr;
	gap: 32px;
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.single-post-layout {
	background: var(--fda-palette9);
}

.single-post-layout__inner {
	display: grid;
	grid-template-columns: 70.6666% 1fr;
	gap: 48px;
	max-width: var(--fda-content-width);
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.entry-header {
	margin-bottom: 20px;
}

.entry-title {
	margin: 0 0 10px;
	font-family: var(--fda-font-heading);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fda-palette3);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-family: var(--fda-font-body);
	font-size: 13px;
	color: var(--fda-palette6);
}

.entry-featured {
	margin: 0 0 28px;
}

.entry-featured img {
	width: 100%;
	height: auto;
}

.entry-body {
	font-family: var(--fda-font-body);
	font-size: 16px;
	line-height: 1.75;
	color: #464646;
}

.entry-body > :last-child {
	margin-bottom: 0;
}

.entry-body p,
.entry-body ul,
.entry-body ol,
.entry-body table,
.entry-body figure,
.entry-body blockquote {
	margin: 0 0 24px;
}

.entry-body h2,
.entry-body h3,
.entry-body h4 {
	margin: 36px 0 14px;
	font-family: var(--fda-font-heading);
	color: var(--fda-palette3);
}

.entry-body h2 {
	font-size: 28px;
	line-height: 1.35;
}

.entry-body h3 {
	font-size: 22px;
	line-height: 1.4;
}

.entry-body h4 {
	font-size: 18px;
	line-height: 1.45;
}

.entry-body ul,
.entry-body ol {
	padding-left: 1.4em;
}

.entry-body li {
	margin-bottom: 8px;
}

.entry-body img {
	height: auto;
}

.entry-body a {
	color: var(--fda-palette2);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid rgba(18, 35, 43, 0.12);
}

.post-nav a {
	max-width: 45%;
	font-family: var(--fda-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--fda-palette2);
	text-decoration: none;
}

.post-nav a:hover {
	color: var(--fda-brick);
}

/* Sidebar ----------------------------------------------------------------- */

.post-sidebar {
	align-self: start;
	position: sticky;
	top: 96px;
}

.post-sidebar__title,
.widget-title {
	margin: 0 0 20px;
	font-family: var(--fda-font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--fda-palette3);
}

.post-sidebar .widget {
	margin-bottom: 32px;
}

.post-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Search and 404
   -------------------------------------------------------------------------- */

.utility-page {
	background: var(--fda-palette9);
}

.utility-page__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 96px 24px 120px;
	text-align: center;
}

.utility-page__title {
	margin: 0 0 16px;
	font-family: var(--fda-font-heading);
	font-size: 40px;
	font-weight: 900;
	line-height: 1.2;
	color: var(--fda-palette3);
}

.utility-page__text {
	margin: 0 auto 32px;
	max-width: 60ch;
	font-size: 16px;
	line-height: 26px;
	color: var(--fda-palette5);
}

.utility-page .fda-search {
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.post-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.archive-body__inner,
	.single-post-layout__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.post-sidebar {
		position: static;
	}

	.news-lead,
	.news-trio,
	.news-duo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.entry-title {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.post-grid--3,
	.post-grid--2,
	.archive-list,
	.news-lead,
	.news-trio,
	.news-duo {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-title,
	.archive-hero__title,
	.utility-page__title {
		font-size: 28px;
	}
}
