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

body {
  background-color: #f5ead6;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a46b' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  font-family: Georgia, 'Times New Roman', serif;
  color: #3b2a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

header h1 {
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  color: #5c3a1e;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

header p {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: #7a5535;
  font-style: italic;
}

.prophets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1.5rem 3rem;
  max-width: 900px;
  width: 100%;
}

.prophet-card {
  background: #fdf5e6;
  border: 2px solid #c4a46b;
  border-radius: 8px;
  box-shadow: 4px 6px 20px rgba(90, 50, 10, 0.2);
  overflow: hidden;
  width: 340px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prophet-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 10px 28px rgba(90, 50, 10, 0.3);
}

.prophet-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 2px solid #c4a46b;
  cursor: pointer;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 5, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid #c4a46b;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #f5ead6;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.prophet-card figcaption {
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #5c3a1e;
}

footer {
  margin-top: auto;
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #a07850;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: #7a5535;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer-nav a:hover {
  color: #5c3a1e;
  text-decoration: underline;
}

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

.page-content {
  max-width: 680px;
  width: 100%;
  padding: 2.5rem 1.5rem 4rem;
}

.page-content h2 {
  font-size: 2rem;
  color: #5c3a1e;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3b2a1a;
  margin-bottom: 1rem;
}

.page-content a {
  color: #7a5535;
}

.page-content h3 {
  font-size: 1.3rem;
  color: #5c3a1e;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.page-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.page-content ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.page-content dl {
  background: #fdf5e6;
  border-left: 4px solid #c4a46b;
  border-radius: 4px;
  padding: 1rem 1.5rem 1.5rem;
  margin-top: 0.8rem;
}

.page-content dl dt {
  font-weight: bold;
  color: #5c3a1e;
  margin-top: 1.2rem;
}

.page-content dl dd {
  margin-left: 0;
  margin-top: 0.2rem;
  line-height: 1.7;
}