@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@600&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fffdf8;
  color: #333;
  line-height: 1.6;
}

header {
  background: #faf7f0;
  text-align: center;
  padding: 30px 20px;
  border-bottom: 3px solid #d4af37;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4em;
  margin: 0;
  color: #3a2c1a;
}

header p {
  font-size: 1.1em;
  color: #6b5e4a;
  margin-top: 8px;
}

.hero {
  display: block;
  text-align: center;
}

.hero .portrait img {
  display: block;
  margin: 0 auto 20px;
  border-radius: 16px;
  width: 220px;
  height: auto;
  border: 3px solid #d4af37;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hero .text {
  text-align: center;
  margin-top: 10px;
}

.hero .text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2em;
  font-weight: 600;
  margin: 0;
}

section {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  line-height: 1.1;
  color: #3a2c1a;
  margin-bottom: 8px;
  font-weight: 600;
  transition: color 0.3s;
}

section h2:hover {
  color: #d4af37;
  cursor: pointer;
}

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.about img {
  border-radius: 16px;
  width: 220px;
  height: auto;
  flex: 0 0 auto;
  margin-right: 30px;
  border: 3px solid #d4af37;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

li i a {
  font-weight: normal !important;
  font-style: italic;
}

/* Accordion container */
.accordion {
  max-width: 860px;
  margin: 30px auto;
  padding: 0;
}

.accordion-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}

/* Accordion header */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;   /* fixes the centering issue */
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  line-height: 1.4;          /* consistent spacing */
  color: #3a2c1a;
  background: #f0e2b8;       /* slightly darker gold tone */
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;        /* uniform padding */
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
  text-align: left;
  white-space: normal;       /* allow wrapping */
}

.accordion-header:hover {
  color: #d4af37;
  background-color: #e6d29c;
}

.accordion-header.active {
  background-color: #e6d29c;    /* stays highlighted when expanded */
}

/* Arrow icons */
.accordion-header::after {
  content: "▸";
  font-size: 1.3em;
  margin-left: 8px;
  transition: transform 0.3s, content 0.3s;
}

.accordion-header.active::after {
  content: "▾";
}

/* Accordion body */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  width: 100%;
  padding: 0 20px;
}

.accordion-body.open {
  max-height: none;            
  padding: 20px;
  border: 1px solid #f0e2b8;   /* same colour as header background */
  border-top: none;            
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-sizing: border-box;
}

/* Inner accordion */
.inner-accordion {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.inner-accordion .accordion-header {
  font-size: 0.85em;
  border: none;
  border-radius: 10px 10px 0 0; /* only round top corners */
  padding: 8px 20px;
  margin-left: 0;
  background: #f0e0c0;          /* slightly darker inner tone */
}

.inner-accordion .accordion-header:hover {
  color: #d4af37;
  background-color: #e6d29c;
}

.inner-accordion .accordion-header::after {
  content: "▸";
  font-size: 1.1em;
  margin-left: 6px;
}

.inner-accordion .accordion-header.active::after {
  content: "▾";
}

.inner-accordion .accordion-body.open {
  border: 1px solid #f0e0c0;   /* same colour as inner header */
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  padding: 16px 20px;
  box-sizing: border-box;
}

/* Cards inside accordion bodies — redundant, flattened */
.card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}

/* Published titles (links) */
.accordion-body a {
  color: #c9a227;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s;
}

.accordion-body a:hover {
  color: #a67c00; /* darker gold on hover */
}

/* Work-in-Progress titles (non-links) */
.accordion-body .title {
  color: #c9a227;
  font-weight: 600;
  text-decoration: none; /* no underline */
}

footer {
  background: #faf7f0;
  text-align: center;
  padding: 20px 20px;
  margin-top: 30px;
  border-top: 3px solid #d4af37;
}

footer p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  color: #3a2c1a;
  margin: 10px 0;
}

/* Links */
a {
  color: #c9a227;              /* slightly darker gold for better contrast */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #a67c00;              /* even darker on hover */
}

@media (max-width: 768px) {
  .hero .portrait img {
    width: 160px;
  }
}