/* ============================================================
   Styled Media — Main Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--sm-dark:    #1e2838;
	--sm-black:   #111111;
	--sm-white:   #ffffff;
	--sm-off:     #f8f8f8;
	--sm-border:  #e8e8e8;
	--sm-mid:     #666666;
	--sm-light:   #999999;
	--sm-serif:   'Cormorant Garamond', Georgia, serif;
	--sm-sans:    'DM Sans', system-ui, sans-serif;
	--sm-max:     1200px;
	--sm-gutter:  clamp(20px, 5vw, 48px);
}

html { scroll-behavior: smooth; }

body {
	font-family: var(--sm-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sm-black);
	background: var(--sm-white);
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ── Layout shell ─────────────────────────────────────────── */
.sm-main {
	min-height: 60vh;
}

/* ── Header ───────────────────────────────────────────────── */
.sm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--sm-white);
	border-bottom: 1px solid var(--sm-border);
}

.sm-header__inner {
	max-width: var(--sm-max);
	margin: 0 auto;
	padding: 0 var(--sm-gutter);
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.sm-header__logo-link {
	display: block;
	line-height: 0;
}

.sm-header__logo {
	height: 120px;
	width: auto;
	object-fit: contain;
}

/* ── Hero ─────────────────────────────────────────────────── */
.sm-hero {
	padding: clamp(64px, 10vw, 120px) var(--sm-gutter) clamp(48px, 8vw, 96px);
	text-align: center;
	border-bottom: 1px solid var(--sm-border);
}

.sm-hero__inner {
	max-width: 720px;
	margin: 0 auto;
}

.sm-hero__eyebrow {
	display: inline-block;
	font-family: var(--sm-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sm-mid);
	margin-bottom: 20px;
}

.sm-hero__headline {
	font-family: var(--sm-serif);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--sm-dark);
	margin-bottom: 24px;
}

.sm-hero__sub {
	font-family: var(--sm-sans);
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	font-weight: 300;
	color: var(--sm-mid);
	line-height: 1.7;
	max-width: 560px;
	margin: 0 auto;
}

/* ── Publications section ─────────────────────────────────── */
.sm-pubs {
	padding: clamp(48px, 8vw, 96px) var(--sm-gutter);
}

.sm-pubs__inner {
	max-width: var(--sm-max);
	margin: 0 auto;
}

.sm-pubs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	border: 2px solid var(--sm-dark);
}

.sm-pubs__grid[data-cols="1"] {
	grid-template-columns: 1fr;
	max-width: 440px;
	margin: 0 auto;
}

.sm-pubs__grid[data-cols="2"] {
	grid-template-columns: repeat(2, 1fr);
	max-width: 800px;
	margin: 0 auto;
}

/* ── Publication card ─────────────────────────────────────── */
.sm-pub-card {
	display: block;
	background: var(--sm-white);
	border: 1px solid var(--sm-border);
	overflow: hidden;
	position: relative;
	transition: background 0.2s ease;
	color: var(--sm-black);
	text-decoration: none;
}

a.sm-pub-card:hover {
	background: var(--sm-off);
}

a.sm-pub-card:hover .sm-pub-card__image {
	transform: scale(1.03);
}

a.sm-pub-card:hover .sm-pub-card__cta {
	color: var(--sm-dark);
}

.sm-pub-card__image-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sm-off);
}

.sm-pub-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sm-pub-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sm-off);
	min-height: 180px;
}

.sm-pub-card__image-placeholder span {
	font-family: var(--sm-serif);
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--sm-border);
	text-align: center;
	padding: 16px;
}

.sm-pub-card__body {
	padding: 24px 28px 28px;
}

.sm-pub-card__sector {
	display: inline-block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sm-light);
	margin-bottom: 8px;
}

.sm-pub-card__title {
	font-family: var(--sm-serif);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--sm-dark);
	margin-bottom: 10px;
}

.sm-pub-card__tagline {
	font-size: 0.875rem;
	font-weight: 300;
	color: var(--sm-mid);
	line-height: 1.6;
	margin-bottom: 20px;
}

.sm-pub-card__cta {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sm-light);
	transition: color 0.2s ease;
}

/* ── Empty state ──────────────────────────────────────────── */
.sm-pubs__empty {
	padding: 60px 0;
	text-align: center;
	color: var(--sm-mid);
	font-size: 0.95rem;
}

.sm-pubs__empty a {
	color: var(--sm-dark);
	text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────── */
.sm-footer {
	background: #000000;
	color: var(--sm-white);
	padding: clamp(48px, 7vw, 80px) var(--sm-gutter) clamp(32px, 5vw, 56px);
	margin-top: 0;
}

.sm-footer__inner {
	max-width: var(--sm-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.sm-footer__logo-wrap {
	margin-bottom: 32px;
	/* invert the dark logo to white */
	filter: invert(1) brightness(2);
}

.sm-footer__logo {
	height: 120px;
	width: auto;
	object-fit: contain;
}

.sm-footer__links {
	margin-bottom: 12px;
}

.sm-footer__links a {
	font-size: 0.9rem;
	font-weight: 400;
	color: rgba(255,255,255,0.75);
	border-bottom: 1px solid rgba(255,255,255,0.2);
	transition: color 0.15s;
}

.sm-footer__links a:hover {
	color: var(--sm-white);
}

.sm-footer__address {
	font-size: 0.85rem;
	font-style: normal;
	color: rgba(255,255,255,0.55);
	margin-bottom: 20px;
	line-height: 1.6;
}

.sm-footer__legal {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.45);
	line-height: 1.7;
	max-width: 680px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 12px;
}

.sm-footer__copy {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.3);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
	.sm-pubs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.sm-header__inner {
		height: 64px;
	}
	.sm-header__logo {
		height: 48px;
	}
	.sm-pubs__grid {
		grid-template-columns: 1fr;
	}
	.sm-pub-card__body {
		padding: 20px;
	}
}
