@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.50;
  background-color: #24272e;  /* softened background */
  color: #dbdbdb;              /* softer text color */
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #73A4BD;
}

h1 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: #dbdbdb;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: #ABC8D7;
}

p {
  margin: 1rem 0;
}

ul {
  padding-left: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  margin: 2rem 0;
}

/* Container with scroll */
.mixes-scroll-container {
  max-height: 300px; /* fits one row of mixes */
  overflow-y: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 10px;
  position: relative; /* needed for fade overlay */
}

/* Scrollable grid of mix cards */
.mixes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Each individual mix card */
.mix-card {
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
  padding-bottom: 1rem;
}

/* Mix title above the image */
.mix-title {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

/* Responsive mix image */
.mix-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0.25rem auto 0.5rem auto; /* small top margin between title & image, bottom margin for links */
}

.mix-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0rem;
}

/* Download + Listen links */
.mix-links a {
  color: #73A4BD;
  text-decoration: none;
  margin: 0 2px;
}

.latest-reading {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 0;
}

.latest-reading a {
  display: flex;
  text-decoration: none;
  color: inherit;
  width: 180px;
  flex-direction: row;
}

.book-cover {
  width: 60px;
  height: auto;
  margin-right: 0.5rem;
}

.book-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-title {
  font-weight: bold;
}

.book-author {
  font-size: 0.9em;
  color: #666;
}

.project-cover {
  width: 60px;
  height: auto;
  margin-right: 1rem;
}

.project-info {
  display: inline-block;
  vertical-align: top;
  max-width: 200px;
}

.project-title {
  font-weight: bold;
}

.project-description {
  font-size: 0.9rem;
  color: #ccc;
}

.instruction-header {
  margin-bottom: 0.5em;
  font-weight: bold;
}

.instruction-link {
  color: #73A4BD;
  cursor: pointer;
  margin: 0 0.3em;
  text-decoration: none;
}

.instruction-link:hover {
  text-decoration: underline;
}

.instruction-link.active-link {
  text-decoration: underline;
  text-decoration-color: #73A4BD;
}

.instruction-content {
  margin-top: 0.5em;
  padding-left: 0.5em;
}
