/* ============================================================
   —after · Ghost Theme
   screen.css
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
	--color-text: #444444;
	--color-text-faint: #999999;
	--color-black: #111111;
	--color-white: #ffffff;
	--color-rule: #dddddd;

	/* Ghost custom font variables — Ghost injects --gh-font-heading and
       --gh-font-body when the user selects fonts in Admin → Design → Typography.
       Cormorant Garamond is the fallback when no custom font is chosen. */
	--font-display: var(
		--gh-font-heading,
		"Cormorant Garamond",
		"Cormorant",
		Georgia,
		serif
	);
	--font-body: var(
		--gh-font-body,
		"Cormorant Garamond",
		"Cormorant",
		Georgia,
		serif
	);
	--font-sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

	--max-width: 640px;
	--max-width-wide: 800px;
}

html {
	font-size: 18px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-body);
	font-weight: 300;
	color: var(--color-text);
	background-color: var(--color-white);
	line-height: 1.7;
}

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

/* ── Shared Wrapper ───────────────────────────────────────── */

.site-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	padding: 0 2rem;
}

/* ── Navigation ───────────────────────────────────────────── */

.site-header {
	width: 100%;
	max-width: var(--max-width);
	padding-top: 2.5rem;
	text-align: center;
}

.site-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 2.5rem;
}

.site-nav ul li a {
	font-family: var(--font-sc);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text-faint);
	transition: color 0.2s ease;
}

.site-nav ul li a:hover,
.site-nav ul li.nav-current a {
	color: var(--color-black);
}

/* ── Home: Identity Block ─────────────────────────────────── */

.home-wrapper {
	justify-content: flex-start;
}

.home-identity {
	margin-top: 4rem;
	text-align: center;
}

.site-logo-link {
	display: inline-block;
	text-decoration: none;
}

.site-logo {
	font-family: var(--font-display);
	font-size: clamp(4.5rem, 12vw, 7.5rem);
	font-weight: 300;
	font-style: italic;
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--color-black);
	user-select: none;
}

.site-logo .logo-dash {
	font-style: normal;
	font-weight: 300;
}

.site-tagline {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 300;
	font-style: italic;
	color: var(--color-text-faint);
	min-height: 1.5rem; /* holds space even when empty */
}

/* ── Home: Main Content ───────────────────────────────────── */

.home-main {
	width: 100%;
	max-width: var(--max-width);
	margin-top: 3.5rem;
	text-align: center;
}

.home-description {
	text-align: left;
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.85;
	color: var(--color-text);
	border-top: 1px solid var(--color-rule);
	padding-top: 2rem;
}

.home-description p + p {
	margin-top: 1.25rem;
}

.home-description em {
	font-style: italic;
}

/* ── Submit Button ────────────────────────────────────────── */

.submit-cta {
	margin-top: 3rem;
	padding-bottom: 5rem;
}

.submit-button {
	display: inline-block;
	padding: 0.85rem 2.75rem;
	font-family: var(--font-sc);
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-white);
	background-color: var(--color-black);
	border: 1px solid var(--color-black);
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
	cursor: pointer;
}

.submit-button:hover {
	background-color: var(--color-white);
	color: var(--color-black);
}

/* ── Interior Header (Slim) ───────────────────────────────── */

.site-header--slim {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding-top: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--color-rule);
}

.site-header__logo {
	text-align: center;
}

.site-logo-link--small {
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 300;
	font-style: italic;
	color: var(--color-black);
	letter-spacing: -0.01em;
}

.site-logo-link--small .logo-dash {
	font-style: normal;
}

/* ── Post Listing ─────────────────────────────────────────── */

.posts-listing {
	width: 100%;
	max-width: var(--max-width);
	padding: 3rem 0 5rem;
}

.post-card {
	border-bottom: 1px solid var(--color-rule);
	padding: 2rem 0;
}

.post-card__link {
	display: block;
}

.post-card__link:hover .post-card__title {
	color: var(--color-black);
}

.post-card__title {
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 400;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.25;
	transition: color 0.2s ease;
}

.post-card__excerpt {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--color-text-faint);
	line-height: 1.6;
}

.post-card__meta {
	margin-top: 0.5rem;
	font-family: var(--font-sc);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-faint);
}

/* Pagination */

.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 2.5rem;
	font-family: var(--font-sc);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-faint);
}

.pagination a {
	transition: color 0.2s ease;
}

.pagination a:hover {
	color: var(--color-black);
}

/* ── Single Post ──────────────────────────────────────────── */

.post-single {
	width: 100%;
	max-width: var(--max-width);
	padding: 3.5rem 0 6rem;
}

.post-header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.post-tag {
	font-family: var(--font-sc);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text-faint);
	margin-bottom: 1rem;
}

.post-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 400;
	font-style: italic;
	color: var(--color-black);
	line-height: 1.2;
}

.post-byline {
	margin-top: 1rem;
	font-family: var(--font-sc);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-faint);
}

/* ── Post Content (prose) ─────────────────────────────────── */

.post-content {
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.85;
	color: var(--color-text);
	border-top: 1px solid var(--color-rule);
	padding-top: 2.5rem;
}

.post-content p {
	margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
	font-family: var(--font-sc);
	font-weight: 400;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	letter-spacing: 0.05em;
	color: var(--color-black);
}

.post-content h2 {
	font-size: 1.2rem;
}
.post-content h3 {
	font-size: 1rem;
}

.post-content em {
	font-style: italic;
}
.post-content strong {
	font-weight: 500;
}

.post-content a {
	border-bottom: 1px solid var(--color-rule);
	transition: border-color 0.2s ease;
}

.post-content a:hover {
	border-color: var(--color-black);
}

.post-content blockquote {
	border-left: 1px solid var(--color-black);
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--color-text-faint);
}

.post-content ul,
.post-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.post-content li {
	margin-bottom: 0.4rem;
}

.post-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem 0;
}

.post-content figcaption {
	font-family: var(--font-sc);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-faint);
	text-align: center;
	margin-top: -1rem;
	margin-bottom: 2rem;
}

/* ── Ghost Editor Card Widths (required by GScan) ────────── */
/*    These allow Koenig editor images to break out of the
      content column when set to "wide" or "full" width.     */

.post-content .kg-width-wide {
	position: relative;
	width: min(100vw - 4rem, var(--max-width-wide));
	left: 50%;
	transform: translateX(-50%);
}

.post-content .kg-width-full {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
	html {
		font-size: 16px;
	}

	.site-wrapper {
		padding: 0 1.25rem;
	}

	.site-header {
		padding-top: 1.75rem;
	}

	.home-identity {
		margin-top: 2.5rem;
	}

	.home-main {
		margin-top: 2.5rem;
	}

	.submit-cta {
		padding-bottom: 3.5rem;
	}
}
