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

* {
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  background-color: #f9fbfc;
  color: #2d2d3b;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
}

.header {
  align-items: center;
  background-color: #f9fbfc;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 0;
  padding: 0 1.5rem 0 2rem;
  position: fixed;
  top: 0;
  width: 100%;
}

.header ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.header a {
  border-bottom: 2px solid transparent;
  color: inherit;
  display: block;
  line-height: 42px;
  padding: 0 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease-in-out;
}

.header a:hover,
.header a.active {
  border-color: #1993f6;
}

.logo {
  color: #1993f6;
  font-size: 1.25rem;
  font-weight: bold;
}

.container {
  margin: 61px auto 0;
  max-width: 1200px;
  padding: 0 2rem;
  width: 100%;
}

.title {
  border-bottom: 1px solid #e6e8ec;
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

@media screen and (min-width: 960px) {
  .title {
    font-size: 5rem;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-top: 2rem;
  padding: 0;
}

.card {
  align-items: center;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e6e8ec;
  box-shadow: rgba(149, 157, 165, 0.2);
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

@media screen and (min-width: 960px) {
  .card {
    width: calc(50% - 0.75rem);
  }
}

.card-link {
  border-radius: 0.5rem;
  color: inherit;
  display: flex;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s ease-in-out;
  width: 100%;
}

.card-link:hover {
  box-shadow: 0 0 0 2px #1993f6;
}

.card-image {
  flex-shrink: 0;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  width: 100px;
}

.card-image[src=""] {
  display: none;
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
}

.card-title,
.card-description {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow-wrap: break-word;
  overflow: hidden;
  word-break: break-word;
}

.card-description:not(:empty) {
  -webkit-line-clamp: 3;
  margin-top: 0.5rem;
}

bookmark-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

button,
bookmark-button::part(button) {
  appearance: none;
  background-color: #1993f6;
  border-radius: 0.5rem;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

button:hover,
bookmark-button::part(button):hover {
  background-color: hsl(207, 92%, 23%);
  box-shadow: 0 0 0 2px #1993f6;
}

.rich-text {
  max-width: 40rem;
}

.rich-text > * + * {
  margin-top: 1.5rem;
}

h2,
.rich-text h2,
.rich-text h3 {
  line-height: 1.25;
}

h2,
.rich-text h2 {
  font-size: 2.25rem;
}

@media screen and (min-width: 960px) {
  h2,
  .rich-text h2 {
    font-size: 2.75rem;
  }
}

.rich-text h3 {
  font-size: 1.75rem;
}

@media screen and (min-width: 960px) {
  .rich-text h3 {
    font-size: 2.25rem;
  }
}

.rich-text a {
  color: #1993f6;
}

.rich-text blockquote {
  border-left: 0.25rem solid #1993f6;
  padding-left: 1rem;
}

.rich-text cite,
.rich-text figcaption {
  display: block;
  font-style: italic;
  margin-top: 0.5rem;
}

.rich-text figcaption {
  text-align: center;
}

.rich-text img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.rich-text ul,
.rich-text ol {
  list-style-position: inside;
  padding: 0;
}

.rich-text .table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.rich-text pre {
  overflow-x: auto;
}

.rich-text label {
  display: block;
}

.rich-text fieldset div:not(:first-of-type) label {
  margin-top: 1rem;
}

.rich-text label {
  display: block;
}

.configuration {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e6e8ec;
  margin: 2rem 0 1.5rem;
  padding: 1rem;
}
