/* styles.css (adaptado para CSS Grid) */
* {
  box-sizing: border-box;
  image-rendering: pixelated;
  margin: 0;
  padding: 0;
}

body {
  /* Grid global: header + conteúdo */
  display: grid;
  grid-template-areas:
    "topbar"
    "main";
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  font-family: "Courier New", Courier, monospace;
  color: white;
  background: url("images/lainbg.jpg") center/cover no-repeat fixed;
  overflow-x: hidden;
  padding-top: 80px; /* evita sobreposição */
}

/* Áreas de Grid */
#topbar {
  grid-area: topbar;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: 100%;
  background-color: transparent;
  backdrop-filter: blur(10px);
  border: 3px solid #a94f6e;
  border-radius: 4px;
  padding: clamp(8px, 2vw, 12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

header .titleh2 {
  grid-area: topbar;
}

main.content {
  grid-area: main;
  display: grid;
  justify-items: center;
  padding: 1rem;
}

/* Navegação */
#topbar nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 16px);
}

#topbar nav ul li a {
  font-size: clamp(12px, 1.5vw, 18px);
  color: #c1b492;
  text-decoration: none;
  background-color: transparent;
  border: 2px solid #a94f6e;
  border-radius: 4px;
  padding: 6px 12px;
  transition: background 0.2s, color 0.2s;
}

#topbar nav ul li a:hover {
  background-color: #d2738a;
  color: #fff;
}

/* Títulos e texto */
.titleh2 {
  font-size: clamp(24px, 4vw, 40px);
  text-align: center;
  margin: clamp(10px, 2vw, 20px) 0;
}

.mms {
  font-size: clamp(16px, 2.5vw, 28px);
  text-align: center;
  margin: -30px 0 clamp(20px, 4vw, 45px);
  letter-spacing: 4px;
  line-height: 1.8;
}

.credit {
  text-align: center;
  font-size: clamp(14px, 1.5vw, 19px);
  margin-top: clamp(2rem, 5vw, 6rem);
}

/* Box "About Me" */
#abtme {
  width: 100%;
  max-width: 960px;
  background-color: rgba(122, 58, 90, 0.42);
  padding: clamp(20px, 5vw, 30px);
  border-radius: 4px;
  box-shadow: 10px 5px 10px black;
  text-align: justify;
  margin-bottom: clamp(40px, 8vw, 190px);
}

/* Stamp carousel */
.stamp-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  height: 70px;
  border: 4px solid #a94f6e;
  border-radius: 2px;
  position: relative;
  margin: 2rem 0;
}

.stamp-track {
  display: flex;
  gap: 5px;
  width: max-content;
  animation: slide-left 100s linear infinite;
}

.stamp-track img {
  height: 56px;
  width: 99px;
}

@keyframes slide-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsividade */
@media (max-width: 768px) {
  #topbar {
    padding: clamp(10px, 3vw, 16px);
  }

  #topbar,
  #abtme {
    max-width: 100%;
  }
}
