/* main.css — “El Fuego del Despertar” by Moisés R. Sánchez */

:root {
  --bg: #faf7f2;
  --text: #2c2c2c;
  --accent: #b87a2c;
  --accent-light: #e9c47a;
  --header: #5a381e;
  --border: #d8c3a5;
  --summary-bg: #fffaf3;
  --summary-hover: #f9f2e7;
  --shadow: rgba(0,0,0,0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Merriweather", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  padding: 1.5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 2rem;
  border-radius: 12px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  color: var(--header);
  text-align: center;
  margin-bottom: 0.3rem;
}

.byline {
  text-align: center;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* DETAILS ELEMENTS */
details {
  background: var(--summary-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 5px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

details[open] {
  background: #fffdf9;
  border-color: var(--accent-light);
  box-shadow: 0 3px 10px var(--shadow);
}

summary {
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(to right, #fffaf2, #fff5e1);
  color: var(--header);
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

summary:hover {
  background: var(--summary-hover);
  color: var(--accent);
}

summary::marker {
  color: var(--accent);
}

.content {
  padding: 1.2rem 1.6rem;
  font-size: 1rem;
  color: #333;
  background: #fff;
  border-top: 1px solid var(--border);
}

strong {
  color: var(--accent);
}

em {
  color: #5f4b32;
  background: #fff8ec;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* Muted footer */
.muted {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Smooth animation for open/close */
details[open] .content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: 0.8rem;
  }
  .container {
    padding: 1rem;
  }
  h1 {
    font-size: 1.9rem;
  }
}


/* Custom arrow and open/close animation */
summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(to right, #fffaf2, #fff5e1);
  color: var(--header);
  user-select: none;
  position: relative;
  cursor: default; /* disables text toggle */
}

/* Hide default triangle */
summary::marker {
  display: none;
}

/* Style for the JS arrow */
summary .arrow {
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotate arrow when <details> is open */
details[open] summary .arrow {
  transform: rotate(90deg);
  color: var(--accent-light);
}

