:root {
  --text: #212121;
  --primary-color: #2563eb;
  --secondary-color: #f8ff14;

  --tactics-color: #2563eb;
  --interviews-color: #15803d;
  --samples-color: #991b1b;
  --events-color: #4c1d95;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5em;
  font-size: 1.15em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  border: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  color: var(--text);
}

h1,
h2,
h3 {
  line-height: 1.1;
}

ul,
ol {
  padding: 0 1em;
}
ul li,
ol li {
  padding: 0.2em 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 1em;
}
nav a {
  text-decoration: none;
  color: var(--text);
}
nav ul {
  display: flex;
  font-size: 0.8em;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
nav ul li {
  margin: 0 0.5em;
}
nav ul li:last-child {
  margin-right: 0;
}
nav ul li:first-child {
  margin-left: 0;
}
nav .logo {
  font-size: 1.25em;
}
@media (min-width: 768px) {
  nav {
    padding: 2em 3em;
  }
  nav .logo {
    font-size: 2em;
  }
  nav ul {
    font-size: 1.1em;
  }
  nav ul li {
    margin: 0 1em;
  }
}

footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 0.5em 1em;
  background-color: var(--secondary-color);
  margin-top: auto;
}
@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 3em;
  }
}

.container {
  max-width: 100%;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    width: 720px;
    margin: 0 auto;
  }
}

.banner {
  height: 40vh;
  background-color: var(--primary-color);
}
.banner h1 {
  color: white;
  font-size: 2em;
}
.banner.interviews {
  background-color: var(--interviews-color);
}
.banner.samples {
  background-color: var(--samples-color);
}
.banner.events {
  background-color: var(--events-color);
}
.banner.tactics {
  background-color: var(--tactics-color);
}
.banner .container {
  display: flex;
  align-items: center;
  height: 100%;
}
.banner .punctuation {
  color: var(--secondary-color);
}
@media (min-width: 768px) {
  .banner {
    height: 40vh;
  }
  .banner h1 {
    font-size: 3.25em;
  }
}

.post-content h1,
h2,
h3,
h4 {
  margin-bottom: 1em;
}

.post-card {
  border-left: 0.5em solid;
  padding-left: 1em;
}
.post-card a {
  color: var(--text);
  text-decoration: none;
}
.post-card a:hover {
  text-decoration: underline;
}
.post-card .date {
  color: gray;
  margin: 0.25em 0;
}
.post-card .excerpt {
  margin: 0.25em 0;
}
.post-card.interviews {
  border-color: var(--interviews-color);
}
.post-card.samples {
  border-color: var(--samples-color);
}
.post-card.events {
  border-color: var(--events-color);
}
.post-card.tactics {
  border-color: var(--tactics-color);
}

.post-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  margin: 2em 0;
}
.post-list h2 {
  margin-bottom: 0.25em;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
}
td,
th {
  border: 1px solid lightgray;
  text-align: left;
  padding: 0.5rem;
}
th {
  background-color: #f9fafb;
  font-weight: bold;
}
tr {
  vertical-align: top;
}
tr:nth-child(even) {
  background-color: #f9fafb;
}
table caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

img,
video {
  max-width: 95%;
  height: auto;
  border-radius: 5px;
  margin: 0 auto;
}

.post-filter ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  max-width: 325px;
  margin: 0 auto;
}

.tactics-filter {
  color: var(--tactics-color);
  border: 1px solid var(--tactics-color);
  border-left: 0.5em solid;
  padding: 0.1em 0.15em;
  border-radius: 3px;
  font-weight: bold;
}
.interviews-filter {
  color: var(--interviews-color);
  border: 1px solid var(--interviews-color);
  border-left: 0.5em solid;
  padding: 0.15em;
  border-radius: 3px;
  font-weight: bold;
}
.samples-filter {
  color: var(--samples-color);
  border: 1px solid var(--samples-color);
  border-left: 0.5em solid;
  padding: 0.15em;
  border-radius: 3px;
  font-weight: bold;
}
.events-filter {
  color: var(--events-color);
  border: 1px solid var(--events-color);
  border-left: 0.5em solid;
  padding: 0.15em;
  border-radius: 3px;
  font-weight: bold;
}

.comment-list .comment-divider {
  margin: 2em 0;
}
.interviews .comment-divider {
  border: 0.1em solid var(--interviews-color);
}
.samples .comment-divider {
  border: 0.1em solid var(--samples-color);
}
.events .comment-divider {
  border: 0.1em solid var(--events-color);
}
.tactics .comment-divider {
  border: 0.1em solid var(--tactics-color);
}
.comment-list ul {
  list-style-type: none;
}

.comment-list .header {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.comment-list .header p {
  margin: 0.5em 0;
}
.comment-list button {
  font-size: 1.1em;
  font-weight: 700;
  margin: 1.5em 0;
  padding: 0.5em 2em;
  background-color: transparent;
}
.comment-list.interviews button {
  color: var(--interviews-color);
  border: 1px solid var(--interviews-color);
}
.comment-list.samples button {
  color: var(--samples-color);
  border: 1px solid var(--samples-color);
}
.comment-list.events button {
  color: var(--events-color);
  border: 1px solid var(--events-color);
}
.comment-list.tactics button {
  color: var(--tactics-color);
  border: 1px solid var(--tactics-color);
}

.comment {
  font-size: 0.9em;
}

.comment .author {
  font-weight: 700;
  margin-bottom: 0.5em;
}

.comment .content {
  margin: 0 auto;
  max-width: 90%;
}

.comment .footer {
  margin: 0 auto;
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment .time {
  margin-top: 0.5em;
  color: lightgray;
}

.comment .reply {
  border: none;
  padding: 0;
  margin: 0;
}

form.comment {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2em;
}

form.comment h2 {
  margin-bottom: 1rem;
}

form.comment div.thoughts {
  width: 90%;
}

form.comment textarea {
  border: 1px solid lightgray;
  border-radius: 3px;
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}
form.comment input[type="text"] {
  border: none;
  border-bottom: 1px solid lightgray;
  border-radius: 0px;
  padding: 0.5rem;
  width: 45%;
}

form.comment div.name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 90%;
  margin-bottom: 2em;
}

form.comment label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

form.comment button[type="submit"] {
  margin: 0;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}

.container.email-cta {
  background-color: #f3f4f6;
  padding: 2em;
  text-align: center;
  border-radius: 3px;
  max-width: 600px;
  margin: 2em auto;
}

.container.email-cta h3 {
  color: #333;
  margin-bottom: 0.5em;
}

.newsletter {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.newsletter input[type="text"] {
  border: 1px solid #ccc;
  padding: 0.5em;
  border-radius: 2px;
  width: 70%;
}

.newsletter button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 2px;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: #1e40af;
}

@media (max-width: 768px) {
  .newsletter {
    flex-direction: column;
  }

  .newsletter input[type="text"],
  .newsletter button {
    width: 100%;
  }
}

.button-container {
  position: relative;
  display: inline-block;
}

.success-indicator {
  position: absolute;
  top: 4px;
  right: -32px;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  visibility: hidden;
}

.success-indicator svg {
  width: 24px;
  height: 24px;
  stroke: green;
  fill: none;
}

.success-indicator.visible {
  visibility: visible;
}
