/* Global layout / typography */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #f2f2f2;
}

/* Main container */

#container {
  max-width: 960px;
  margin: 2rem auto 3rem auto;
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 1.5rem 2rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Banner */

#banner {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

#banner-header {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#banner-header a {
  text-decoration: none;
  color: #222;
}

#banner-description {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* Two-column page layout */

#page {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* Main content column */

#alpha {
  flex: 1 1 60%;
  order: 2;
}

.entry-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: normal;
}

.entry-content p {
  margin: 0 0 1rem;
  text-align: justify;
}

/* Ensure images don’t overflow */

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem auto 1rem;
}

/* Sidebar column */

#beta {
  flex: 0 0 26%;
  font-size: 0.9rem;
  order: 1;
}

/* Sidebar modules (Music, Words) */

.module-typelist {
  margin-bottom: 1.5rem;
}

.module-header {
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #ccc;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-list-item {
  margin: 0 0 0.4rem;
}

.module-list-item a {
  text-decoration: none;
  color: #004c8a;
}

.module-list-item a:hover {
  text-decoration: underline;
}

/* Links */

a {
  color: #004c8a;
}

a:hover {
  color: #002f55;
}

/* Footer */

#footer {
  clear: both;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #777;
  text-align: right;
}

/* Small screens */

@media (max-width: 768px) {
  #container {
    padding: 1rem 1.25rem 1.5rem;
    margin: 0.5rem;
  }

  #page {
    flex-direction: column;
  }

  #beta {
    flex-basis: auto;
  }
}

/* Captions */

.caption {
  display: block;
  font-size: 0.85em;
  line-height: 1.3;
  color: #555;
  text-align: center;
}
