/* Shared styles for the Londyn Riley blog (index + posts). */

:root {
	--deep: #1e1832;
	--deep-2: #2a2140;
	--purple: #4a3d70;
	--purple-2: #5f4b8b;
	--lavender: #b68bc0;
	--lavender-soft: #d7bfe0;
	--cream: #f4f0e8;
	--ink: #241d38;
	--line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--deep);
	color: rgba(255, 255, 255, 0.88);
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--lavender-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.wrap { width: min(100% - 3rem, 760px); margin-inline: auto; }

/* ---- Top bar ---- */
.bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem clamp(1rem, 4vw, 3rem);
	background: rgba(30, 24, 50, 0.88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { font-family: 'Sacramento', cursive; font-size: 1.6rem; color: #fff; line-height: 1; }
.bar nav { display: flex; gap: 1.4rem; font-size: 0.9rem; font-weight: 500; }
.bar nav a { color: rgba(255, 255, 255, 0.82); }
.bar nav a:hover { color: #fff; }

/* ---- Breadcrumbs ---- */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 2rem 0 0;
}
.crumbs a { color: var(--lavender-soft); }

/* ---- Blog header / hero ---- */
.blog-head { margin: 2.2rem 0 2.6rem; }
.blog-head .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--lavender);
	margin-bottom: 0.8rem;
}
.blog-head h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin: 0 0 0.7rem; }
.blog-head p { color: rgba(255, 255, 255, 0.72); max-width: 38rem; margin: 0; }

/* ---- Post list (index) ---- */
.post-list { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 4rem; padding: 0; list-style: none; }
.post-card {
	display: block;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--deep-2);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: var(--lavender); transform: translateY(-2px); }
.post-card .title { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; color: #fff; margin-bottom: 0.25rem; }
.post-card .date { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 0.5rem; }
.post-card .excerpt { display: block; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.empty-note { color: rgba(255, 255, 255, 0.6); }

/* ---- Article ---- */
article.post { margin-bottom: 4.5rem; }
.post-meta {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 1.2rem 0 2.2rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--line);
}
.post-meta img { width: 46px; height: 46px; border-radius: 50%; }
.post-meta .who { font-weight: 600; color: #fff; font-size: 0.95rem; }
.post-meta .when { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

article.post h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 2.2rem 0 0; }
article.post h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
article.post h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
article.post p { margin: 0 0 1.15rem; }
article.post ul, article.post ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
article.post li { margin-bottom: 0.35rem; }
article.post img { max-width: 100%; border-radius: 12px; margin: 1.4rem 0; display: block; }
article.post blockquote {
	margin: 1.6rem 0;
	padding: 0.9rem 1.3rem;
	border-left: 3px solid var(--lavender);
	background: rgba(182, 139, 192, 0.08);
	border-radius: 0 10px 10px 0;
	color: var(--lavender-soft);
	font-style: italic;
}
article.post hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.back-link { display: inline-block; margin-bottom: 3rem; font-size: 0.9rem; }

/* ---- Footer (matches the main site) ---- */
footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2.4rem 1.5rem;
	text-align: center;
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.foot-brand img { width: 34px; height: 34px; border-radius: 50%; }
.foot-brand span { font-family: 'Sacramento', cursive; font-size: 1.5rem; color: #fff; }
footer p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin: 0.2rem 0; }

/* ---- Mobile ---- */
@media (max-width: 760px) {
	/* Four nav links overflow a phone width in one row, so stack the bar and
	   let it scroll away rather than pinning a tall header. */
	.bar {
		position: static;
		flex-direction: column;
		gap: 0.55rem;
		padding: 0.8rem 1rem;
	}
	.brand img { width: 32px; height: 32px; }
	.brand span { font-size: 1.45rem; }
	.bar nav {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.1rem;
		font-size: 0.85rem;
	}
	.crumbs { margin-top: 1.4rem; }
	.blog-head { margin: 1.6rem 0 2rem; }
	.post-meta img { width: 40px; height: 40px; }
}
