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

:root {
    --ink:       #1a1510;
    --paper:     #f7f3ec;
    --dust:      #c9b99a;
    --shadow:    #7a6a55;
    --accent:    #3d2b1f;
    --teal:      #006D77;
    --chapter-w: 62ch;
}
html { background: var(--paper); color: var(--ink); }

body {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 300;
	font-size: clamp(1.05rem, 1.8vw, 1.22rem);
	line-height: 1.85;
	background: white;
	min-height: 100vh;
}

/* ── Cover ── */
.cover {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	position: relative;
	overflow: hidden;
	background: #EDF6F9;
}

.cover::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cover-rule {
	width: 1px;
	height: 80px;
	background: #006D77;
	margin-bottom: 3rem;
}

.cover-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 300;
	font-size: clamp(2.2rem, 6vw, 4rem);
	letter-spacing: .08em;
	text-align: center;
	color: #006D77;
	line-height: 1.2;
	max-width: 16ch;
}

.cover-subtitle {
	margin-top: 2rem;
	font-family: 'Spectral', serif;
	font-style: italic;
	font-size: .9rem;
	letter-spacing: .2em;
	color: #006D77;
	text-transform: lowercase;
}

.cover-prayer {
	margin-top: 4rem;
	font-style: italic;
	font-size: .95rem;
	color: #006D77;
	text-align: center;
	max-width: 40ch;
	line-height: 1.7;
}

.cover-rule-bottom {
	width: 40px;
	height: 1px;
	background: #006D77;
	margin-top: 3rem;
}

/* ── Navigation ── */
.toc {
	max-width: var(--chapter-w);
	margin: 0 auto;
	padding: 5rem 2rem 3rem;
	border-top: 1px solid #006D77;
}

.toc-label {
	font-family: 'Spectral', serif;
	font-style: italic;
	font-size: .8rem;
	letter-spacing: .25em;
	color: #006D77;
	text-transform: lowercase;
	margin-bottom: 1.5rem;
}

.toc-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 2rem;
}

.toc-list a {
	font-size: .9rem;
	color: #006D77;
	text-decoration: none;
	letter-spacing: .05em;
	transition: color .2s;
}

.toc-list a:hover { color: var(--accent); }

/* ── Chapters ── */
.chapter {
	max-width: var(--chapter-w);
	margin: 0 auto;
	padding: 5rem 2rem 6rem;
	border-top: 1px solid #006D77;
	text-align: justify;
	font-size: larger;
}

.chapter-header {
	display: flex;
	align-items: baseline;
	gap: 1.2rem;
	margin-bottom: 3rem;
}

.chapter-numeral {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 300;
	font-size: 3.5rem;
	line-height: 1;
	color: #006D77;
	flex-shrink: 0;
}

.chapter-rule {
	flex: 1;
	height: 1px;
	background: #006D77;
	opacity: .5;
}

/* ── Prose ── */
.chapter p {
	text-indent: 2em;
	margin-bottom: .2em;
	hyphens: auto;
	text-justify: inter-word;
}

.chapter p:first-of-type { text-indent: 0; }

.chapter p + p { margin-top: .8em; }

/* dialogue */
.chapter p.dialogue {
	text-indent: 0;
	margin: 1.4em 0;
	/* font-style: italic; */
	color: #2a201a;
}

/* standalone short lines (section breaks) */
.chapter p.break-line {
	text-indent: 0;
	text-align: center;
	color: #006D77;
	margin: 2rem 0;
	font-style: italic;
}

/* ── Navigation ── */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--teal);
    margin-top: 3rem;
}

.chapter-nav a {
    display: inline-block;
    border: 1px solid var(--teal);
    color: var(--teal);
    padding: .5rem 1.8rem;
    text-decoration: none;
    font-family: 'Spectral', serif;
    font-style: italic;
    letter-spacing: .1em;
    transition: background .2s, color .2s;
}

.chapter-nav a:hover {
    background: var(--teal);
    color: #f7f3ec;
}

/* ── Footer ── */
footer {
	text-align: center;
	padding: 3rem 2rem;
	font-family: 'Spectral', serif;
	font-style: italic;
	font-size: .82rem;
	color: #006D77;
	border-top: 1px solid #d9cfc033;
}

.trigger-warning {
    max-width: var(--chapter-w);
    margin: 2rem auto;
    padding: 1.2rem 1.5rem;
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: .85rem;
    color: #006D77;
}

.tw-label {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: lowercase;
    margin-bottom: .5rem;
}

@media (max-width: 600px) {
	.chapter { padding: 3rem 1.2rem 4rem; }
	.cover { padding: 3rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
