/*
 * Site theme for christagasser.ch
 * Loaded by the core after Tailwind (snippets/base.php), so rules here win.
 */

/* Only h2 and h3 use the handwritten heading font */
h1, h4, h5, h6 {
  font-family: var(--font-sans);
}

blockquote {
  font-weight: 200;
}

/* Larger h2, as on the previous site (font size classes on an h2 still win) */
h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  /* space below the line (see h2::after) */
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  h2 {
    font-size: 4rem;
  }
}

/* Line below h2 headings, as on the previous site.
   It follows the heading's alignment: left by default, centered or right
   when a text-align class (from the layout or block settings) says so. */
h2::after {
  content: "";
  display: block;
  width: 200px;
  max-width: 100%;
  height: 5px;
  margin-top: 2rem;
  background-color: var(--primary-500);
}

/* White line where the background is the primary color itself */
.bg-primary-500 h2::after {
  background-color: #fff;
}

.text-center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.text-right h2::after {
  margin-left: auto;
  margin-right: 0;
}

.text-left h2::after {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .md\:text-center h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .md\:text-right h2::after {
    margin-left: auto;
    margin-right: 0;
  }

  .md\:text-left h2::after {
    margin-left: 0;
    margin-right: 0;
  }
}
