* {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	scroll-padding-top: 63px; 
}
@media (min-width: 768px) {
	html {
		scroll-padding-top: 82px; 
	}
}

body {
	max-width: 768px;
	padding: 0 1rem;
	margin: auto;
	background-color: #fffffd
}

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 12px 16px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background: rgba(23, 20, 17, 0.7);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
@media (min-width: 768px) {
	.nav {
	padding: 16px 48px;
	}
}
.nav-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.nav-logo-circle {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(212, 175, 55, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.8s ease;
}
@media (min-width: 768px) {
	.nav-logo-circle {
	width: 40px;
	height: 40px;
	}
}
.nav-logo:hover .nav-logo-circle {
	transform: rotate(180deg);
}
.nav-logo-dot {
	width: 6px;
	height: 6px;
	background: #d4af37;
	border-radius: 50%;
}
.nav-logo-text {
	font-family: 'Playfair Display', serif;
	font-size: 18px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d4af37;
	opacity: 0;
	transition: opacity 0.3s;
	display: none;
}
@media (min-width: 768px) {
	.nav-logo-text {
	display: block;
	}
}
.nav-logo:hover .nav-logo-text {
	opacity: 1;
}
.nav-links {
	display: none;
	align-items: center;
	gap: 24px;
}
@media (min-width: 1024px) {
	.nav-links {
	display: flex;
	}
}
.nav-link {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #efefef;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s;
	background: none;
	border: none;
	cursor: pointer;
}
.nav-link:hover {
	color: #d4af37;
}
@media (min-width: 769px) {
	.nav-link {
	position: relative;
	transition: color 0.3s, text-shadow 0.3s;
	}
	.nav-link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
	transition: width 0.4s ease;
	}
	.nav-link:hover::after {
	width: 100%;
	}
	.nav-link:hover {
	text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
	}
}

/* Burger Menu for Mobile */
.burger-btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 32px;
	height: 32px;
	background: none;
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-radius: 4px;
	cursor: pointer;
	padding: 6px;
	gap: 4px;
	transition: all 0.3s ease;
}
.burger-btn:hover {
	border-color: #d4af37;
}
.burger-line {
	width: 16px;
	height: 2px;
	background: #d4af37;
	transition: all 0.3s ease;
}
.burger-btn.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(4px, 4px);
}
.burger-btn.active .burger-line:nth-child(2) {
	opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(4px, -4px);
}
@media (min-width: 1024px) {
	.burger-btn {
	display: none;
	}
}

/* Mobile Menu Overlay */
.mobile-menu {
	position: fixed;
	top: 56px;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(23, 20, 17, 0.98);
	backdrop-filter: blur(20px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 60px;
	gap: 24px;
	z-index: 45;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.mobile-menu.active {
	opacity: 1;
	visibility: visible;
}
.mobile-menu-link {
	font-family: 'Playfair Display', serif;
	font-size: 1.25rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(232, 228, 224, 0.8);
	text-decoration: none;
	padding: 12px 24px;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}
.mobile-menu-link:hover {
	color: #d4af37;
	border-color: rgba(212, 175, 55, 0.3);
}


.chapter-wrapper h1 {
	font-size: 1.8rem;
	margin: 5rem 0 0 0;
	/* margin-top: 5rem; */
	text-align: right;
	padding: 0;
}

.chapter-wrapper h2, .chapter-wrapper .chapter-title {
	font-size: 1.7rem;
	text-align: right;
	margin: 0;
	padding: 0;
}

.chapter-page-content a {
	display: block;
	color: #584714;
	padding: 1rem;
	text-decoration: none;
	font-size: 1.2rem;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
	.chapter-page-content a {
		position: relative;
		transition: color 0.3s, text-shadow 0.3s;
	}
	.chapter-page-content a::after {
		content: '';
		position: absolute;
		bottom: -4px;
		left: 0;
		width: 0;
		height: 1px;
		background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
		transition: width 0.4s ease;
	}
	.chapter-page-content a:hover::after {
		width: 100%;
	}
	.chapter-page-content a:hover {
	text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
	}
}

.chapter-page-content p {
	text-indent: 1rem;
	margin-bottom: 1rem;
	line-height: 1.4;
	text-align: justify;
	hyphens: auto;
}