/* Canadian Jazz Archive — flexbox shell (jazz dark / red accent) */
:root {
  --bg: #0a0a0a;
  --bg-header: #111;
  --surface: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --text-inverse: #ffffff;
  --accent: #950101;
  --accent-hover: #c00;
  --amber: #e39024;
  --olive: #7a7a52;
  --slate: #26425d;
  --border: #ddd;
  --max: 1100px;
  --font: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg) url("/assets/img/bg.jpg") center 0 no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  background: var(--bg-header) url("/assets/img/bg_header.jpg") top right no-repeat;
  background-size: cover;
  color: var(--text-inverse);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand a {
  display: block;
  line-height: 0;
}

.site-brand img {
  width: 120px;
  height: auto;
  border-radius: 2px;
}

.site-brand-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text-inverse);
  max-width: 12rem;
}

.site-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.listen-live {
  background: #1a1a1a;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.listen-live a {
  color: var(--text-inverse);
  text-decoration: none;
}

.listen-live a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.util-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  justify-content: flex-end;
}

.util-nav a {
  color: #ccc;
  text-decoration: none;
}

.util-nav a:hover,
.util-nav a.is-active {
  color: #fff;
  text-decoration: underline;
}

/* Main nav */
.site-nav {
  background: #fff;
  border-bottom: 3px solid var(--accent);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.7rem 0.95rem;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-right: 1px solid #eee;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
  background: #faf6f6;
  text-decoration: none;
}

/* Layout */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 0.75rem 1.5rem;
}

.page-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 0 0 4px 4px;
}

.page-sidebar {
  flex: 0 0 200px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-sidebar h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0 0 0.5rem;
}

.page-sidebar form {
  margin-bottom: 1.25rem;
}

.page-sidebar label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.page-sidebar input[type="text"],
.page-sidebar select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  font: inherit;
}

.page-sidebar .btn-search {
  margin-top: 0.75rem;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.page-sidebar .btn-search:hover {
  background: var(--accent-hover);
}

.page-content {
  flex: 1 1 280px;
  min-width: 0;
}

.page-aside {
  flex: 0 0 210px;
}

.page-header {
  margin: 0 0 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.page-content h2 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
  color: #222;
}

.page-content h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.4rem;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin: 0 0 0.85rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background: #f5f5f5;
}

.page-content .photo {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 180px;
}

.page-content #alpha_list,
.page-content .alpha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.page-content #alpha_list a,
.page-content .alpha-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.2rem 0.4rem;
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.page-content #alpha_list a:hover,
.page-content .alpha-list a:hover {
  background: var(--accent);
}

.page-content #found {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.page-content #biography {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.page-content #biography .col1 {
  flex: 1 1 280px;
}

.page-content #biography .col2 {
  flex: 0 1 200px;
}

/* Featured cards (home) */
.featured {
  border: 1px solid #ccc;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  background: #fff url("/assets/img/bg.jpg") bottom center repeat-x;
  background-size: auto 40px;
}

.featured h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  padding-left: 1.75rem;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 20px;
  min-height: 1.4rem;
}

#featured_concert h2 {
  color: var(--accent);
  background-image: url("/assets/img/icon_featured_concert.jpg");
}

#featured_musician h2 {
  color: var(--amber);
  background-image: url("/assets/img/icon_featured_musician.jpg");
}

#featured_documentary h2 {
  color: var(--olive);
  background-image: url("/assets/img/icon_featured_documentary.jpg");
}

#jazz_messenger h2 {
  color: var(--slate);
  background-image: url("/assets/img/icon_messenger.jpg");
}

.featured ul {
  margin: 0;
  padding-left: 1.1rem;
}

.featured p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

/* Blog listing */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.blog-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.blog-title a {
  color: var(--accent);
}

.blog-preview {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #000;
  color: #bbb;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #ddd;
}

.romlifooter {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.romlidata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.romlidata > div {
  flex: 1 1 200px;
}

/* Home hero content */
.home-welcome h1 {
  font-family: var(--font-display);
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-actions {
    align-items: flex-start;
    width: 100%;
  }

  .util-nav {
    justify-content: flex-start;
  }

  .page-sidebar,
  .page-aside {
    flex: 1 1 100%;
  }

  .page-content .photo {
    float: none;
    margin: 0 0 1rem;
    max-width: 100%;
  }

  .site-brand img {
    width: 88px;
  }
}
