* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* Background with traditional pattern overlay */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background:
    linear-gradient(rgba(70,30,15,0.9), rgba(70,30,15,0.9)),
    url("img/sl-pattern.png");

  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Main container */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 32px 18px;
  margin: 20px;
  text-align: center;

  background: rgba(255, 248, 230, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

/* Title */
h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  color: #ffd27f;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Tagline */
.tagline {
  font-size: clamp(16px, 3.5vw, 20px);
  color: #ffcc8a;
  margin-bottom: 40px;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Grid */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

/* Magazine card */
.mag-card {
  position: relative;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mag-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 215, 140, 0.6);
  border-radius: 18px;
  pointer-events: none;
}

.mag-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 30px 65px rgba(0,0,0,0.8);
}

.mag-card img {
  width: 100%;
  display: block;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    to top,
    rgba(90, 35, 15, 0.95),
    transparent
  );
  font-size: 16px;
  letter-spacing: 1px;
  color: #ffd27f;
}

/* Footer */
.footer {
  margin-top: 45px;
  font-size: clamp(12px, 3vw, 14px);
  color: #f3d9a4;
  line-height: 1.6;
  opacity: 0.9;
}

/* Extra mobile touch comfort */
@media (max-width: 480px) {
  .container {
    padding: 26px 14px;
  }
  .mag-card:hover {
    transform: none;
  }
}

/* Highlighted Edition Badge */
.edition-badge {
  position: absolute;
  top: 14px;
  right: 14px;

  background: linear-gradient(135deg, #ffd27f, #c98b2f);
  color: #4b2600;

  padding: 8px 14px;
  border-radius: 20px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.4),
    inset 0 0 0 2px rgba(255,255,255,0.35);

  text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

/* Mobile-friendly size */
@media (max-width: 480px) {
  .edition-badge {
    font-size: 13px;
    padding: 7px 12px;
  }
}

