/* --- CSS Variables: Palette --- */
:root
{
	--primary-color: #664033;
	/* brown rust */
	--accent-color: #ffb535;
	/* Golden harvest orange */
	--bg-color: #1b1919;
	/* Soft parchment / pale birch bark */
	--text-color: #3B2A25;
	/* Dark bark brown */
}

/* --- Base Styles --- */
body
{
	font-family: 'Lora', serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

nav
{
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;


}

h1, h2, h3
{
	font-family: 'Cinzel', serif;
	/* Updates your titles */
	font-weight: 700;
	letter-spacing: 1px;
}

h2
{
	color: var(--primary-color);
	font-size: 2.2rem;
	margin-top: 0;
	margin-bottom: 20px;
}

h3
{
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-top: 10;
	margin-bottom: 20px;
}

/* --- Cinematic Hero Section --- */
.hero
{
	position: relative;
	height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #F8F3ED;
	overflow: hidden;
}

.hero-video
{
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translateX(-50%) translateY(-50%);
	object-fit: cover;
	z-index: -2;
}

.hero-overlay
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(59, 42, 37, 0.25);
	z-index: -1;
}

.hero-content
{
	position: relative;
	z-index: 1;
	padding: 20px;
}

.hero h1
{
	font-size: 4rem;
	margin-bottom: 10px;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
	letter-spacing: 1px;
}

.hero .subtitle
{
	font-size: 3rem;
	font-style: italic;
	color: var(--accent-color);
	text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

nav
{
	font-size: 1.6rem;
	color: 5c2816;
	padding: 20px;
	gap: 2rem;
}

nav a
{
	color: #c7a365;
	text-decoration: none;
	font-weight: 500;
}

/* Hover and focus states */
nav a:hover,
nav a:focus-visible
{
	color: #cb6728;
	text-decoration: underline wavy 1px;
}

/* --- Grid Layout & Overlaps --- */
.grid-section
{
	padding: 100px 20px;
	background-color: var(--bg-color);
}

.grid-container
{
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-items: center;
}

/* Image Styling */
.grid-image
{
	height: 600px;
	background-color: #e2d9cc;
	/* Temporary background until art is added */
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(59, 42, 37, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e2d9cc;
	font-style: italic;
	font-family: sans-serif;
}

/* Book Section Overlap */
.book-image
{
	grid-column: 1 / 8;
	grid-row: 1;
}

.book-grid .grid-content
{
	grid-column: 6 / 13;
	grid-row: 1;
	z-index: 2;
}

/* Author Section Overlap */
.author-grid .grid-content
{
	grid-column: 1 / 8;
	grid-row: 1;
	z-index: 2;
}

.author-image
{
	grid-column: 7/ 15;
	/* Takes up fewer columns so it is narrower */
	grid-row: 1;
	height: 600px;
	/* Reduces the height (down from the 600px default) */
	justify-self: end;
	/* Aligns the portrait neatly to the right edge */
	align-self: center;
	/* Centers it vertically alongside the text */
}

/* --- Glassmorphism Effect --- */
.glass-panel
{
	background: rgba(248, 243, 237, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 40px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 10px 30px rgba(59, 42, 37, 0.15);
}

/* --- Buttons --- */
.btn
{
	display: inline-block;
	background-color: var(--accent-color);
	color: #1a1a1a;
	padding: 14px 28px;
	text-decoration: none;
	font-weight: bold;
	font-family: sans-serif;
	border-radius: 4px;
	margin-top: 25px;
	transition: background-color 0.3s;
}

.btn:hover { background-color: #B8651E; }

/* --- Footer --- */
footer
{
	text-align: center;
	padding: 40px 20px;
	font-size: 0.9rem;
	color: #666;
	font-family: sans-serif;
	background-color: #121110;
}

/* 1. Center the whole section and turn on the 12-column grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1200px; /* Keeps the grid from stretching too wide on huge screens */
  margin: 0 auto; /* Centers the grid itself on the page */
  padding: 60px 20px;
}

/* 2. Tell the glass panel to sit in the middle columns */
.glass-panel {
  grid-column: 3 / 11; /* Spans columns 3 through 10, leaving empty space on the sides */
  padding: 50px;
  
 }

/* 3. Constrain the text inside the panel so it's easy to read */
.about-content {
  max-width: 700px; /* Ideal line-length for reading */
  margin: 0 auto; /* Centers the text block perfectly inside the glass panel */
  text-align: left; /* Keeps paragraph text left-aligned for readability */
}

/* Optional: Center the headings for a nice title effect */
.about-content h2, 
.about-content h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
  .glass-panel {
    grid-column: 1 / 13; /* Takes up the full width on small screens */
    padding: 30px 20px;
  }
}

/* --- Image Fitting --- */
.fit-image
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
	/* Removes tiny spacing gaps below images */
}

/* --- Scroll Animations --- */
.reveal-on-scroll
{
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: opacity, transform;
}

.reveal-on-scroll.is-visible
{
	opacity: 1;
	transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* --- Mobile Responsiveness --- */

@media (max-width: 900px)
{
	.hero h1 { font-size: 2.5rem; }
	
	.grid-container
	{
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	
	.author-grid { flex-direction: column-reverse; }
	
	.grid-image
	{
		width: 100%;
		height: 400px;
		border-radius: 8px;
	}
	
	.glass-panel
	{
		margin-top: -60px;
		margin-left: 15px;
		margin-right: 15px;
		padding: 30px;
	}
	
	.delay-1
	{
		transition-delay: 0s;
		/* Disables delay on mobile for smoother scrolling */
	}
}
