/* ========== Base Styles ========== */
body {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  background-color: #2c2c2c;
  color: #f5f5f5;
  line-height: 1.6;
  padding: 1rem;
}

/* ========== Header ========== */
header,
.site-header {
  text-align: center;
  margin-bottom: 2rem;
  background-color: #1a1a1a;
  padding: 2rem 1rem;
  border-bottom: 2px solid #444;
}

header h1,
.site-title {
  font-size: 2.5rem;
  color: #f9c74f;
  margin: 0 0 0.5rem;
}

header p,
.tagline {
  font-size: 1rem;
  color: #aaa;
  margin-top: 1rem;
}

/* Logo row */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  max-height: 60px;
}
.logo-left,
.logo-right {
  width: 60px;
  height: auto;
}
@media (max-width: 600px) {
  .logo-right { display: none; }
}

/* ========== General Links ========== */
a {
  color: #4da6ff;
  text-decoration: none;
}
a:visited { color: #66ccff; }
a:hover,
a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Email link */
.email-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.email-link:hover {
  color: #f9c74f;
  text-decoration: underline;
}

/* Back link */
.back-link {
  display: block;
  text-align: center;
  margin: 3rem 0 1rem;
}
.back-link a {
  color: #90e0ef;
  font-weight: bold;
}
.back-link a:hover { text-decoration: underline; }

/* ========== Intro & Images ========== */
.intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.intro p { margin-bottom: 1.5rem; }

.hero-image,
.tract-image {
  float: right;
  margin: 0 0 1rem 1rem;
  width: 250px;
  height: auto;
  border: 2px solid #444;
}

@media (max-width: 600px) {
  .tract-image {
    float: none;
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}





.tract-image.left {
  float: left;
  margin: 0 1rem 1rem 0;
  width: 250px;
}

.tract-image.right {
  float: right;
  margin: 0 0 1rem 1rem;
  width: 250px;
}



/* ========== Tract List ========== */
.tract-list {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.tract-list h2 {
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #f9c74f;
}
.tract-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block; /* single column */
}
.tract-list li {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  font-size: 1.1em;
  line-height: 1.4;
}

/* Entry wrapper */
.tract-entry {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
}

/* Title link */
.tract-entry a {
  font-size: 1em;
  line-height: 1.4;
  color: #cc6600;
  font-weight: bold;
  text-decoration: none;
}
.tract-entry a:visited { color: #8844aa; }
.tract-entry a:hover   { color: #ff9900; text-decoration: underline; }
.tract-entry a:active  { color: #cc0000; }

/* Author */
.tract-entry .author {
  font-size: 1em;
  line-height: 1.4;
  font-style: italic;
  color: #666;
  margin-left: 6px;
}

/* Audio icon */
.tract-entry .audio-icon {
  font-size: 0.9em;
  color: #0066cc;
  margin-left: 6px;
  vertical-align: baseline;
  position: relative;
  top: 0.1em; /* slight nudge */
  transition: color 0.3s ease, transform 0.2s ease;
}
.tract-entry .audio-icon:hover {
  color: #ff9900;
  transform: scale(1.2);
}

/* ========== Tract Content ========== */
.tract-content {
  max-width: 800px;
  margin: 0 auto;
}
.tract-content p { margin-bottom: 1.5rem; }

/* Audio player */
audio {
  display: block;
  margin: 0.5rem auto;   /* centers the player horizontally */
  max-width: 800px;      /* keeps it from stretching too wide */
  width: 100%;           /* fills the container, but stays centered */
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;

}


.audio {
  max-width: 800px;
  margin: 0 auto;   /* centers the container */
}


audio:hover {
  box-shadow: 0 0 8px rgba(255, 200, 100, 0.6);
}

/* ========== Details Summary (Read More) ========== */
details summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #2a3246;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  list-style: none;
  position: relative;
  transition: background-color 0.6s ease, box-shadow 0.3s ease;
}
details summary:hover {
  background: #3b4460;
  box-shadow: 0 0 8px rgba(42, 50, 70, 0.6);
}
details summary:focus {
  outline: none;
  background: #4a5270;
  box-shadow: 0 0 0 3px rgba(59, 68, 96, 0.6);
}
details summary::before { content: "Read More"; }
details summary::after {
  content: "▼";
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
details[open] summary::before { content: "Read Less"; }
details[open] summary::after { transform: rotate(180deg); }
details[open] summary { background: #3b4460; }

/* Slide + fade animation */
.slidefade {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease 0.2s;
}
details[open] .slidefade {
  max-height: 1000px;
  opacity: 1;
}



video {
  max-width: 100%;   /* scales down to fit container */
  height: auto;      /* keeps aspect ratio */
  display: block;    /* removes inline spacing */
  margin: 1em auto;  /* centers video with some breathing room */
  border-radius: 8px; /* optional: rounded corners */
}

.tract-video {
  float: right;        /* pushes video to the right side */
  width: 450px;        /* fixed width */
  height: auto;        /* keeps aspect ratio */
  margin: 0 0 1em 1em; /* spacing: bottom + left so text doesn’t bump into it */
  border-radius: 8px;  /* optional: rounded corners */
}






/* ========== Footer ========== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #f9c74f;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
}