/* Colours of my life — Joanna Myers */

:root {
	--bg: #faf7f2;
	--surface: #ffffff;
	--ink: #2d2a26;
	--ink-soft: #6b655c;
	--accent: #9d4b3c;      /* terracotta */
	--accent-soft: #e8d5cf;
	--gold: #b98a3d;
	--plum: #6d4a6e;
	--teal: #3e6b6b;
	--rule: #e7e0d6;
	--maxw: 52rem;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.125rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.5rem;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	background: var(--ink);
	color: #fff;
	padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.site {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	flex: 0 0 19rem;
	height: 100vh;
	background: linear-gradient(165deg, #3a6363, #2c4d4d);
	color: #f6efe4;
	overflow-y: auto;
}

.sidebar-inner {
	height: 100%;
	padding: 2.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.sidebar-avatar {
	width: 150px;
	height: 150px;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: 50%;
	margin-bottom: 1.25rem;
	box-shadow: 0 0 0 4px rgba(250, 247, 242, 0.95), 0 0 0 6px rgba(240, 217, 168, 0.6), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-title {
	font-family: "Damion", cursive;
	font-size: 2.1rem;
	line-height: 1.2;
	color: #faf7f2;
	text-decoration: none;
}

.site-title:hover { color: #f0d9a8; }

.site-tagline {
	margin: 0.4rem 0 1.5rem;
	color: rgba(246, 239, 228, 0.72);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	max-width: 14rem;
}

.site-nav {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	align-items: center;
}

.site-nav a {
	color: rgba(246, 239, 228, 0.92);
	text-decoration: none;
	font-size: 1.05rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: #f0d9a8;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.sidebar-rss {
	margin-top: 2.25rem;
	color: rgba(246, 239, 228, 0.7);
	font-size: 0.85rem;
	text-decoration: none;
	border: 1px solid rgba(246, 239, 228, 0.3);
	border-radius: 99px;
	padding: 0.3rem 1rem;
}

.sidebar-rss:hover {
	color: #f0d9a8;
	border-color: rgba(240, 217, 168, 0.6);
}

.content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.content > main { flex: 1; }

/* ---------- About / portrait ---------- */

.about {
	display: grid;
	grid-template-columns: minmax(220px, 300px) 1fr;
	gap: 2.5rem;
	align-items: start;
	padding: 3rem 0;
}

.about-portrait {
	margin: 0;
}

.about-portrait img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(45, 42, 38, 0.15);
	display: block;
}

.about-text .page-title { margin-top: 0; }
.about-text .prose { padding-bottom: 3rem; }

@media (max-width: 640px) {
	.about {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		padding: 2rem 0;
	}
	.about-portrait { max-width: 320px; margin: 0 auto; }
}

/* ---------- Home ---------- */

.hero {
	position: relative;
	z-index: 0;
	text-align: center;
	padding: 3.5rem 0 1rem;
}

/* Flowers as a soft watermark behind the title, faded at the edges */
.hero::before {
	content: "";
	position: absolute;
	inset: -1.5rem -4rem;
	background: url("../images/flowers.jpeg") center 35% / cover no-repeat;
	opacity: 0.1;
	border-radius: 1rem;
	z-index: -1;
	-webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}

.hero-kicker {
	color: var(--accent);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.85rem;
	margin: 0;
}

.hero-title {
	font-family: "Damion", cursive;
	font-weight: normal;
	font-size: 3.8rem;
	line-height: 1.15;
	margin: 0.5rem 0 0.75rem;
	background: linear-gradient(90deg, #962f1e, #ae7014, #58365c, #2d5050);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--accent); /* fallback */
}

.hero-sub {
	color: var(--ink-soft);
	max-width: 34rem;
	margin: 0 auto;
}

.section-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.6rem;
	margin: 3rem 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--accent-soft);
}

.post-list { display: grid; gap: 1.25rem; }

.post-card {
	display: block;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-radius: 10px;
	padding: 1.4rem 1.6rem;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(45, 42, 38, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(45, 42, 38, 0.09);
}
.post-card time {
	font-size: 0.85rem;
	color: var(--gold);
	letter-spacing: 0.05em;
}
.post-card h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.35rem;
	margin: 0.3rem 0;
	line-height: 1.35;
}
.post-card p {
	margin: 0.35rem 0 0.5rem;
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.6;
}
.read-more {
	color: var(--accent);
	font-size: 0.95rem;
}

.more-link { text-align: center; margin: 2.5rem 0 3rem; }
.more-link a { color: var(--accent); text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* ---------- Posts ---------- */

.post { padding: 3rem 0; }

.post-header h1 {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	font-size: 2.4rem;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

.post-meta {
	color: var(--ink-soft);
	font-size: 0.95rem;
	margin: 0 0 2.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--rule);
}

.tag {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.78rem;
	padding: 0.1rem 0.55rem;
	border-radius: 99px;
	margin-left: 0.15rem;
}

.prose h2, .prose h3, .prose h4 {
	font-family: "Playfair Display", Georgia, serif;
	line-height: 1.3;
	margin: 2.2em 0 0.6em;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }

.prose p { margin: 0 0 1.4em; }
.prose a { color: var(--accent); text-underline-offset: 0.2em; }
.prose blockquote {
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1.4em;
	border-left: 3px solid var(--gold);
	color: var(--ink-soft);
	font-style: italic;
}
.prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 1.8em auto;
}
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 2.5em 0;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	font-size: 1rem;
}
.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; }

/* ---------- Archive / generic pages ---------- */

.page-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 2.4rem;
	margin: 3rem 0 0.25rem;
}
.page-sub { color: var(--ink-soft); margin-bottom: 2.5rem; }
.page-body { padding-bottom: 3rem; }

.archive-year h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.5rem;
	color: var(--plum);
	margin: 2.5rem 0 0.75rem;
}

.archive-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.archive-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--rule);
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.archive-list time {
	font-size: 0.85rem;
	color: var(--gold);
}
.archive-list a {
	color: var(--ink);
	text-decoration: none;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.4;
}
.archive-list a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--rule);
	margin-top: 3rem;
	padding: 1.75rem 0 2.5rem;
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.95rem;
}
.site-footer a { color: var(--ink-soft); }

/* ---------- Small screens ---------- */

@media (max-width: 880px) {
	.site { flex-direction: column; }
	.sidebar {
		position: static;
		flex: none;
		height: auto;
	}
	.sidebar-inner {
		height: auto;
		padding: 2.25rem 1.5rem;
		gap: 0.35rem;
	}
	.sidebar-avatar {
		width: 110px;
		height: 110px;
		margin-bottom: 0.75rem;
	}
	.site-nav {
		flex-direction: row;
		justify-content: center;
		gap: 1.25rem;
	}
	.sidebar-rss { margin-top: 1.25rem; }
}

@media (max-width: 480px) {
	body { font-size: 1.05rem; }
	.site-title { font-size: 1.9rem; }
	.post-header h1, .page-title { font-size: 1.9rem; }
	.hero-title { font-size: 2.4rem; }
	.sidebar-inner { padding: 1.75rem 1.25rem; }
}
