/* Direction 1: Still Water. The early idea: quiet and contemplative. Pale morning light, a classical
   serif with an italic blue accent, a soft grotesk for reading, and a lot of room. */
:root {
	--cream: #f8f6f1;
	--sand: #efebe2;
	--slate: #262c38;
	--grey: #66757d;
	--blue: #3c6d8b;
	--line: #e2ddd2;
	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'DM Sans', system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--slate);
	font: 400 1.0625rem/1.8 var(--sans);
}

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

img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Washed-out photo treatment, like early light through haze */
.wash {
	overflow: hidden;
	background: var(--sand);
}

.wash img {
	filter: saturate(0.12) sepia(0.2) brightness(1.18) contrast(0.8);
}

.wrap {
	width: min(100% - 4.4rem, 68rem);
	margin-inline: auto;
}

.eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--grey);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgb(248 246 241 / 0.92);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgb(0 0 0 / 0.05);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 1.3rem;
}

.logo {
	font: 500 1.7rem/1 var(--serif);
	letter-spacing: 0.02em;
}

.menu-button {
	display: grid;
	gap: 6px;
	padding: 0.6rem 0.2rem;
	border: 0;
	background: none;
	cursor: pointer;
}

.menu-button span {
	display: block;
	width: 1.6rem;
	height: 2px;
	background: var(--slate);
}

/* Full-screen menu, opened with the popover attribute (no JavaScript) */
.menu {
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 1.3rem 2.2rem 3rem;
	border: 0;
	background: var(--cream);
	color: var(--slate);
}

.menu:popover-open {
	display: flex;
	flex-direction: column;
}

.menu-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.close {
	border: 0;
	background: none;
	font: 300 2.4rem/1 var(--sans);
	color: var(--slate);
	cursor: pointer;
}

.menu ul {
	margin: auto 0;
	padding: 0;
	list-style: none;
}

.menu li a {
	display: block;
	padding-block: 0.2rem;
	font: 400 clamp(2.6rem, 9vw, 4.4rem) / 1.15 var(--serif);
}

.menu li a:hover {
	font-style: italic;
	color: var(--blue);
}

/* Hero */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(calc(100svh - 4.6rem), 58rem);
	padding-block: 6rem 4rem;
	overflow: hidden;
}

.hero > img {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, transparent 30%, rgb(248 246 241 / 0.5) 75%, var(--cream));
}

.hero h1 {
	margin: 1.6rem 0 2rem;
	font: 400 clamp(3.2rem, 7.5vw, 6.4rem) / 1.08 var(--serif);
	letter-spacing: -0.01em;
}

.hero h1 em {
	display: block;
	color: var(--blue);
}

.hero .intro {
	max-width: 36rem;
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	line-height: 1.75;
	color: var(--grey);
}

.begin {
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	margin-top: 3rem;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.begin span {
	transition: translate 0.3s;
}

.begin:hover span {
	translate: 0.4rem 0;
}

/* Sections */
section.block {
	padding-block: 6rem;
}

.block-head {
	margin-bottom: 3rem;
}

.block-head h2 {
	margin: 0.8rem 0 0;
	font: 400 clamp(2.2rem, 4vw, 3.2rem) / 1.1 var(--serif);
}

.block-head h2 em {
	color: var(--blue);
}

/* Recent writing */
.pieces {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem 2.4rem;
}

.piece .wash {
	aspect-ratio: 4 / 5;
	margin-bottom: 1.4rem;
}

.piece .wash img {
	transition: transform 1.2s ease;
}

.piece:hover .wash img {
	transform: scale(1.03);
}

.piece h3 {
	margin: 0.6rem 0 0.4rem;
	font: 500 1.75rem/1.15 var(--serif);
}

.piece:hover h3 {
	color: var(--blue);
}

.piece p {
	margin: 0;
	color: var(--grey);
}

.piece:first-child {
	grid-column: span 3;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 3rem;
	align-items: center;
}

.piece:first-child .wash {
	aspect-ratio: 3 / 2;
	margin: 0;
}

.piece:first-child h3 {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
}

/* Poem */
.poem {
	padding-block: 7rem;
	background: var(--sand);
	text-align: center;
}

.poem blockquote {
	margin: 2rem auto;
	font: italic 400 clamp(1.6rem, 3vw, 2.2rem) / 1.6 var(--serif);
}

.poem cite {
	font-style: normal;
	letter-spacing: 0.3em;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--grey);
}

/* Photographs */
.photos {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto;
	gap: 1.2rem;
}

.photos figure {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.photos .wash {
	flex: 1;
	min-height: 14rem;
}

.photos figure:first-child {
	grid-row: span 2;
}

.photos figure:first-child .wash {
	min-height: 30rem;
}

.photos figcaption {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: var(--grey);
}

.text-link {
	display: inline-flex;
	gap: 0.8rem;
	margin-top: 2.4rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.95rem;
	border-bottom: 1px solid var(--slate);
}

/* Book */
.book {
	padding-block: 6rem;
	border-top: 1px solid var(--line);
	text-align: center;
}

.book h2 {
	max-width: 40rem;
	margin: 1rem auto;
	font: 400 clamp(2.2rem, 4.5vw, 3.6rem) / 1.12 var(--serif);
}

.book h2 em {
	color: var(--blue);
}

.book p:not(.eyebrow) {
	max-width: 30rem;
	margin: 0 auto;
	color: var(--grey);
}

/* Footer */
.site-footer {
	padding-block: 3rem;
	border-top: 1px solid var(--line);
	color: var(--grey);
	font-size: 0.9rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.2rem;
}

.site-footer .logo {
	color: var(--slate);
}

.site-footer ul {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Article */
.article-head {
	max-width: 44rem;
	margin: 0 auto;
	padding-block: 6rem 4rem;
	text-align: center;
}

.article-head h1 {
	margin: 1.4rem 0;
	font: 400 clamp(2.8rem, 6vw, 4.8rem) / 1.08 var(--serif);
}

.article-head h1 em {
	color: var(--blue);
}

.article-head .dek {
	margin: 0 auto;
	max-width: 34rem;
	font-size: 1.25rem;
	color: var(--grey);
}

.article-head .meta {
	margin-top: 2.4rem;
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--grey);
}

.article-hero {
	height: min(70vh, 40rem);
}

.article-hero img {
	filter: none;
	object-position: 50% 55%;
}

.article-body {
	max-width: 36rem;
	margin: 5rem auto;
	color: #3d4552;
	font-size: 1.125rem;
	line-height: 1.9;
}

.article-body > p:first-child::first-line {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.95em;
}

.article-body h2 {
	margin: 3.2rem 0 0.6rem;
	font: 500 2rem/1.2 var(--serif);
	color: var(--slate);
}

.article-body .verse {
	margin: 3rem 0;
	padding: 2.4rem 0;
	border-block: 1px solid var(--line);
	font: italic 400 1.6rem/1.65 var(--serif);
	color: var(--slate);
	text-align: center;
}

.article-body figure {
	margin: 3.6rem -8rem;
}

.article-body figure .wash {
	aspect-ratio: 16 / 9;
}

.article-body figcaption {
	margin-top: 0.8rem;
	font-size: 0.85rem;
	text-align: center;
	color: var(--grey);
}

.article-body .end {
	margin-top: 4rem;
	text-align: center;
	font: 400 1.6rem/1 var(--serif);
	color: var(--blue);
}

@media (max-width: 1000px) {
	.article-body figure {
		margin-inline: 0;
	}
}

@media (max-width: 760px) {
	.pieces,
	.piece:first-child,
	.photos {
		grid-template-columns: 1fr;
	}
	.piece:first-child {
		grid-column: auto;
		gap: 1.4rem;
	}
	.photos figure:first-child {
		grid-row: auto;
	}
	.photos figure:first-child .wash {
		min-height: 20rem;
	}
	section.block {
		padding-block: 4rem;
	}
}
