@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');


:root {
  --dark-red: #411514;
  --blood-red: #8f0000;
  --gold: #9a8a58;
  --parchment: #decfbc;
  
  --nav-height: 60px;
}

* { 
	margin:0; 
	padding:0; 
	box-sizing:border-box; 
	scroll-behavior:smooth; 
}

header {
  min-height: 60vh;
  background:
    linear-gradient(rgba(20,12,10,0.45), rgba(20,12,10,0.85)),
    url('img/background.png') top center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: var(--nav-height);
}

body {
	font-family: 'Cormorant Garamond', serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 1.1rem;
	color: var(--parchment);
	text-align: center;
	background: radial-gradient(circle at top, #2b1412 0%, #1a0b0a 60%, #120707 100%);
}

footer { 
	padding:2rem; 
	background:#2a0e0d; 
}

a { 
	color:var(--gold); 
	text-decoration:none; 
}
a:hover { 
	color:var(--parchment); 
}

.nav {
	display: flex; 
	position: fixed;
	z-index: 1000;
	top:0; 
	width:100%;
	height: var(--nav-height);
	justify-content: space-between; 
	align-items: center;
	padding: 1rem 2rem;
	background: rgba(42,14,13,0.95);
	border-bottom: 1px solid rgba(154,138,88,0.55);
}
.nav ul { 
	font-family: 'Cinzel', serif;
	font-size: 1.1rem;
	list-style:none; 
	display:flex; 
	gap:1.5rem; 
}

.btn { 
	color:var(--gold); 
	text-decoration:none;
}
.btn:hover { 
	color:var(--parchment); 
}

.responsive-img {
	max-width: 95%;   /* never wider than its container */
	width: auto;      /* prevents upscaling */
	height: auto;      /* maintain aspect ratio */
	display: block;    /* removes extra space under image */
	margin: 0 auto;    /* optional: center image horizontally */
	margin-top: 10px;
	cursor: pointer;
}

.hero h1 { 
	font-family: 'Cinzel', serif;
	font-size: 4.5rem; 
	color: var(--gold); 
	letter-spacing: 0.2em; 
}

.content { 
	padding: 6rem 2rem; 
	max-width: 1200px; 
	margin: auto; 
}

.panel {
  background: rgba(20,12,10,0.55);
  border-top: 1px solid rgba(154,138,88,0.55);
  padding: 3.5rem;
  margin-bottom: 4rem;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(3px);
}

.one-col {
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
}

.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}

.three-col {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:2rem;
}

.four-col {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:2rem;
}

.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:2rem; }

.feature-card { border:1px solid var(--gold); padding:2rem; }

.lore-item button {
  width:100%; background:none; border:1px solid var(--gold);
  color:var(--parchment); padding:1rem; margin-top:1rem;
}

.lore-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.4s ease;
}
.lore-content.open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem 0;
}

.modal {
  position:fixed; inset:0; background:rgba(0,0,0,0.8);
  display:none; align-items:center; justify-content:center;
}
.modal.show { 
	display:flex; 
}
.modal-content {
  background:#2a0e0d; padding:3rem; border:1px solid var(--gold);
  max-width: 80%;
  max-height: 80%;
}


/* Ensure dragon head stays visible */
@media (min-aspect-ratio: 16/9) {
  header { background-position: center 20%; }
}

@media (max-aspect-ratio: 4/5) {
  header { background-position: center 5%; }
}

@media(max-width:800px)
{ 
	.two-col { grid-template-columns:1fr; } 
	.three-col { grid-template-columns:1fr; } 
	.four-col { grid-template-columns:1fr; } 
} 

@media(max-width:400px)
{ 
	.hero h1 { font-size:3.5rem; }
} 