* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 62.5%;
  font-family: 'Josefin Sans', sans-serif;
}
* header, footer {
  background-color: #222;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;

}
* header .headerContainer {
  width: 95%;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
* header .headerContainer a {
  text-decoration: none;
}
* header .headerContainer a span {
  font-family: "Fanwood Text", serif;
  font-weight: 400;
  color: #fff;
  font-size: 2.5rem;
}

* main {
  display: flex;
  flex-direction: column;
  background-color: rgb(241, 241, 241);
  align-items: center;
}
* main .banner {
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 40vh;
}
* main .banner h1 {
  font-size: 5.6rem;
  margin: 1rem;
  font-weight: 700;
  font-family: "Fanwood Text", serif;
}
* main .banner .explorer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}
* main .banner .explorer a {
  font-size: 1.6rem;
  font-weight: 400;
}
* main .Cards {
  display: flex;
  flex-direction: column;
  margin: 2rem 5%;
  width: 95%;
  max-width: 1200px;
}
main .Cards h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
main .Cards .cardsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
main .Cards .cardsContainer .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 300px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.card:focus-visible {
  outline: 2px solid #1e90ff;
  outline-offset: 4px;
}

main .Cards .cardsContainer .card .cardContent {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}

main .Cards .cardsContainer .card .cardContent h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

main .Cards .cardsContainer .card .cardContent p {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

main .Cards .cardsContainer .card .cardContent .author {
  font-size: 1.2rem;
  color: #999;
}

main .Cards .cardsContainer .card .cardContent a {
  margin-top: auto;
  align-self: flex-start;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1e90ff;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

main .Cards .cardsContainer .card .cardContent a:hover {
  color: #0b5ed7;
  text-decoration: underline;
}
main .Cards .cardsContainer .card::after {
  content: "✏ Edit";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  color: #555;
  opacity: 0;
  transition: opacity 0.2s ease;
}

main .Cards .cardsContainer .card:hover::after {
  opacity: 1;
}
.iframeWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.cardViewer {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-family: monospace;
  background: #111;
  color: #aaa;
  z-index: 2;
}

* footer {
  font-size: 1.4rem;
}