/* jeromeslist.org — styles.css */
/* Intentionally minimal. Function over form. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #4e1e86;
  background-color: #fff;
  line-height: 1.5;
}

/* Force consistent link color */
a, a:visited, a:hover, a:active {
  color: #4e1e86;
}

/* ─── Layout ─────────────────────────────────────────── */

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Header ─────────────────────────────────────────── */

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-title img {
  height: 32px; /* adjust based on your design */
  width: auto;
}

.site-title span {
  font-size: 24px; /* match your header styling */
  font-weight: bold;
}

header {
  border-bottom: 1px solid #ccc;
  padding: 12px 0 8px;
  margin-bottom: 20px;
}

header .page-wrapper {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.site-title:hover {
  text-decoration: underline;
}

/* ─── Navigation ─────────────────────────────────────── */

nav {
  font-size: 13px;
}

nav a {
  color: #4e1e86;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a:visited {
  color: #4e1e86;
}

.nav-sep {
  color: #4e1e86;
  margin: 0 4px;
}

/* ─── Main content ───────────────────────────────────── */

main {
  padding-bottom: 40px;
}

main h1 {
  font-size: 18px;
  font-weight: bold;
  color: #4e1e86;
  margin-bottom: 10px;
}

main h2 {
  font-size: 12px;
  font-weight: bold;
  color: #4e1e86;
  margin-bottom: 10px;
}

main .intro {
  font-size: 13px;
  color: #4e1e86;
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ─── Video Grid ─────────────────────────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e8e8e8;
  border: 1px solid #4e1e86;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
}

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-label {
  font-size: 13px;
  font-weight: bold;
  color: #4e1e86;
  text-decoration: none;
}

.video-label:hover {
  text-decoration: underline;
}

.video-desc {
  font-size: 12px;
  color: #4e1e86;
  line-height: 1.5;
}

/* ─── About page ─────────────────────────────────────── */

.about-body {
  max-width: 640px;
}

.about-body h1 {
  font-size: 18px;
  font-weight: bold;
  color: #4e1e86;
  margin-bottom: 14px;
}

.about-body p {
  font-size: 13px;
  color: #4e1e86;
  margin-bottom: 14px;
  line-height: 1.7;
}

/* ─── Footer ─────────────────────────────────────────── */

footer {
  border-top: 1px solid #ccc;
  padding: 10px 0;
  margin-top: 30px;
}

footer p {
  font-size: 11px;
  color: #4e1e86;
  text-align: center;
}

footer a {
  color: #4e1e86;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 680px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 16px;
  }
}

@media (max-width: 420px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  header .page-wrapper {
    flex-direction: column;
    gap: 4px;
  }
}
