/* MPprogramming.com — shared site styles */

:root {
  --brand-maroon: #911C08;
  --brand-black: #000000;
  --text-body: #222;
  --text-muted: #555;
  --accent-gold: #C48D02;
  --link: #1a5490; /* darkened from the original #6699cc for WCAG AA contrast on white */
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--brand-maroon);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-body);
}

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

.site {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
}

/* Header / nav */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  border-bottom: 4px solid var(--brand-black);
}

.site-title {
  flex: 1 1 auto;
  padding: 16px 20px 10px;
  font-family: 'Arial Black', Arial, sans-serif;
  color: #798E6D;
}

.site-title .mp { font-size: 28px; }
.site-title .rest { font-size: 20px; font-variant: small-caps; }

.site-nav {
  display: flex;
}

.site-nav a {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(#7a7a7a, #333);
  color: #fff;
  font-weight: bold;
  font-variant: small-caps;
  font-size: 16px;
  text-align: center;
}

.site-nav a:hover { background: #444; text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--brand-black); }

/* Layout */
.site-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px;
}

main.content {
  flex: 3 1 500px;
  min-width: 0;
}

aside.sidebar {
  flex: 1 1 240px;
}

aside.sidebar h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.headline {
  margin-bottom: 16px;
  font-family: Georgia, serif;
  font-size: 14px;
}

.headline .headline-title {
  font-weight: 700;
}

.headline .new-tag {
  color: var(--brand-maroon);
}

/* Content typography */
.content h1 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 20px;
  font-weight: normal;
}

.content h2 {
  border-bottom: solid medium var(--brand-black);
  padding-bottom: 4px;
}

.content p {
  font-family: Georgia, Tahoma, Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.content .lede {
  font-size: 18px;
  font-weight: bold;
}

.content ul {
  font-size: 16px;
  margin-left: 10px;
}

.content iframe {
  max-width: 100%;
  width: 560px;
  height: 315px;
  border: 0;
}

.content table.talks {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.content table.talks td {
  padding: 10px;
  vertical-align: top;
  font-size: 16px;
}

.content table.talks td.venue {
  background: #808080;
  color: #fff;
  text-align: center;
  font-weight: bold;
  width: 220px;
}

.content table.talks td.venue.dark {
  background: var(--brand-black);
}

.content .talk-image { max-width: 100%; height: auto; }

/* Footer */
.site-footer {
  text-align: center;
  color: var(--accent-gold);
  padding: 10px 0 20px;
}

/* Responsive */
@media (max-width: 700px) {
  .site-body { flex-direction: column; padding: 14px; }
  .site-nav a { padding: 10px 12px; font-size: 14px; }
  .site-title .mp { font-size: 22px; }
  .site-title .rest { font-size: 16px; }
  .content table.talks, .content table.talks tbody, .content table.talks tr, .content table.talks td {
    display: block;
    width: 100%;
  }
  .content table.talks td.venue { width: auto; }
}
