/* Variables */
:root {
	--text: #2D2926;
	--heading: #643D3E;
	--bg: #96928D;
	--bg-light: #EEEAE3;
	--placeholder: #b0aca6;
	--nav-pill: #8a8472;

	--margin-outside: 1.25rem;
	--margin-bottom: 2rem;

	--font-display: 'IBM Plex Serif', Georgia, serif;
	--font-body: 'Source Sans 3', sans-serif;

	--radius-card: 14px;
	--radius-pill: 50px;

	--max-width: 80rem;
	--content-width: 50rem;

	@media screen and (min-width: 850px) {
		--margin-outside: 3rem;
		--margin-bottom: 3rem;
	}
}


/* Global */
html {
	@media screen and (min-width: 850px) {
		font-size: 1.05rem;
	}
}

body {
	font-family: var(--font-body);
	color: var(--text);
	background-color: var(--bg);
}

img {
	display: block;
	max-width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}


/* ================================
   HEADER
   ================================ */
.site-header {
	background-color: var(--bg-light);
	padding: 1.5rem var(--margin-outside) 1.25rem;

	@media screen and (min-width: 850px) {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: start;
		gap: 2rem;
		max-width: var(--max-width);
		margin-left: auto;
		margin-right: auto;
		padding: 2.5rem var(--margin-outside) 2rem;
	}
}

.site-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.4rem, 10vw, 4.5rem);
	line-height: 1.0;
	color: var(--heading);
	margin-bottom: 1.25rem;

	@media screen and (min-width: 850px) {
		margin-bottom: 0;
	}
}

.site-logo a {
	color: inherit;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
}


/* Nav */
.site-nav {
	@media screen and (min-width: 850px) {
		padding-top: 0.5rem;
	}
}

.site-nav__links {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;

	@media screen and (min-width: 850px) {
		flex-direction: row;
		gap: 0.6rem;
	}

	li a {
		display: block;
		font-family: var(--font-body);
		font-size: 0.95rem;
		text-align: center;
		padding: 0.6rem 1.25rem;
		background-color: var(--nav-pill);
		color: var(--bg-light);
		border-radius: var(--radius-pill);
		transition: background-color 0.2s ease;
	}

	li a:hover {
		background-color: #6e6a62;
	}

	.active {
		background-color: #6e6a62;
	}
}


/* ================================
   WRAPPER
   ================================ */
.wrapper {
	background-color: var(--bg-light);
	padding: var(--margin-bottom) var(--margin-outside);

	@media screen and (min-width: 850px) {
		max-width: var(--max-width);
		margin-left: auto;
		margin-right: auto;
		padding: var(--margin-bottom) var(--margin-outside);
	}
}


/* ================================
   INDEX — PERSON CARDS
   ================================ */
.interviews {
	display: flex;
	flex-direction: column;
	gap: 2rem;

	@media screen and (min-width: 850px) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

.person-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.person-card a {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.person-card__image {
	border-radius: var(--radius-card);
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 5;
	background-color: var(--placeholder);
}

.person-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.person-card a:hover .person-card__image img {
	opacity: 0.88;
}

.person-card__name {
	font-size: 1rem;
	font-weight: 400;
	margin: 0;
	color: var(--text);
}


/* ================================
   INTERVIEWS PAGE — ARTICLE HERO
   ================================ */
.article-hero {
	margin-bottom: var(--margin-bottom);

	@media screen and (min-width: 850px) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: start;
	}
}

.article-hero__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card);
	overflow: hidden;
	background-color: var(--placeholder);
	margin-bottom: 1.25rem;

	@media screen and (min-width: 850px) {
		aspect-ratio: 3 / 4;
		margin-bottom: 0;
	}

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.article-hero__text {
	@media screen and (min-width: 850px) {
		padding-top: 0.5rem;
	}
}

.article-hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.3rem, 4vw, 1.6rem);
	line-height: 1.2;
	color: var(--heading);
	margin-bottom: 1rem;
}

.article-hero__bio {
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.article-hero__date {
	font-size: 0.82rem;
	color: #888;
}


/* ================================
   CENTERED CONTENT BELOW HERO
   ================================ */
.article-portrait,
.pull-quote,
.interview,
.work,
.find-me,
.credits {
	@media screen and (min-width: 850px) {
		max-width: var(--content-width);
		margin-left: auto;
		margin-right: auto;
	}
}


/* Full Width Portrait */
.article-portrait {
	width: 100%;
	margin-bottom: var(--margin-bottom);
	border-radius: var(--radius-card);
	overflow: hidden;
	background-color: var(--placeholder);
	aspect-ratio: 4 / 3;

	@media screen and (min-width: 850px) {
		aspect-ratio: 16 / 7;
	}

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: top;
	}
}


/* Pull Quote */
.pull-quote {
	margin-bottom: var(--margin-bottom);
	text-align: center;
}

.pull-quote__text {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.3rem, 4vw, 1.9rem);
	line-height: 1.3;
	color: var(--text);
	margin-bottom: 0.75rem;
}

.pull-quote__attribution {
	font-size: 0.85rem;
	color: #888;
	text-align: center;
}

.pull-quote--large {
	text-align: center;

	.pull-quote__text {
		font-size: clamp(1.5rem, 4vw, 2.2rem);

		@media screen and (min-width: 850px) {
			max-width: 26ch;
			margin-left: auto;
			margin-right: auto;
		}
	}
}


/* Interview Q&A */
.interview {
	margin-bottom: var(--margin-bottom);
}

.interview__header {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	color: var(--text);
	text-align: center;
	margin-bottom: 2rem;
}

.interview__qa {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
}

.interview__qa::after {
	content: "–";
	display: block;
	text-align: center;
	color: #aaa;
	margin-top: 1.5rem;
}

.interview__qa:last-child::after {
	display: none;
}

.interview__question {
	font-size: 0.95rem;
	font-weight: 400;
	margin-bottom: 0.6rem;
	color: var(--text);
}

.interview__answer {
	font-size: 0.95rem;
	line-height: 1.75;
	margin-bottom: 0.5rem;
	color: var(--text);

	&:last-child {
		margin-bottom: 0;
	}
}


/* Some of My Work */
.work {
	margin-bottom: var(--margin-bottom);
}

.work__header {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	color: var(--text);
	text-align: center;
	margin-bottom: 1.5rem;
}

.work__cards {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.work__card {
	border-radius: var(--radius-card);
	overflow: hidden;
	background-color: var(--bg-light);
	border: 1px solid rgba(0,0,0,0.08);
}

.work__card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--placeholder);

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.work__card-caption {
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--text);
}


/* Where to Find Me */
.find-me {
	margin-bottom: var(--margin-bottom);
	text-align: center;
}

.find-me__header {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 4vw, 1.9rem);
	color: var(--text);
	margin-bottom: 0.75rem;
}

.find-me__link {
	font-size: 0.95rem;
	color: var(--text);
	text-decoration: underline;

	&:hover {
		opacity: 0.7;
	}
}


/* Credits */
.credits {
	display: flex;
	justify-content: center;
	gap: 3rem;
	margin-bottom: var(--margin-bottom);
}

.credits__person {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.credits__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--placeholder);
	overflow: hidden;
	flex-shrink: 0;

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.credits__name {
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.1rem;
}

.credits__role {
	font-size: 0.8rem;
	color: #888;
}


/* ================================
   FOOTER
   ================================ */
.site-footer {
	background-color: var(--text);
	color: var(--bg-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem var(--margin-outside);
}

.site-footer__copy {
	font-size: 0.8rem;
	margin: 0;
}

.site-footer__social {
	color: var(--bg-light);
	font-weight: 700;
	font-size: 1rem;

	&:hover {
		opacity: 0.7;
	}
}


/* ================================
   DARK MODE
   ================================ */
[data-theme="dark"] {
	--text: #e8e4db;
	--heading: #d4989a;
	--bg: #1e1b18;
	--bg-light: #2b2722;
	--nav-pill: #4a4540;
	--placeholder: #3a3530;
}

[data-theme="dark"] .site-footer {
	background-color: #111;
}

[data-theme="dark"] .work__card {
	border-color: rgba(255,255,255,0.07);
	background-color: #332e29;
}

[data-theme="dark"] .person-card a:hover .person-card__image img {
	opacity: 0.8;
}