body {
  background-color: #0f0f0f;
  color: #c4b081;
  font-family: "Cinzel", serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitle {
  font-style: italic;
  margin-bottom: 40px;
  color: #d0c9bb;
}

/* Keep the grid tidy (2 cols on desktop) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  justify-items: center;   /* center content in each cell */
  align-items: start;
}

/* Center the last button under row 2 */
.grid a.card:last-child {
  grid-column: 1 / span 2;
  justify-self: center;
}

/* Mobile: stack */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .grid a.card:last-child { grid-column: auto; justify-self: auto; }
}

/* Make the image itself the button; prevent stretching */
.card {
  display: inline-block;
  padding: 0;
  border: 0;
  text-decoration: none;
}

/* HARD cap the image size so other rules can't override */
.grid .card img.button-img {
  width: 22vw;           /* ~double the previous 20vw */
  max-width: 360px;      /* cap at double size */
  min-width: 240px;      /* don’t shrink too small */
  height: auto;
  display: block;
  border: 2px solid #b7b0a1;
  border-radius: 6px;
  margin: 0 auto;
}

/* Safety: neutralize any global img rules that force width:100% */
img.button-img { max-width: none !important; }

.button-img {
  width: 20vw;          /* 20% of viewport width */
  max-width: 200px;     /* never bigger than 200px */
  min-width: 120px;     /* never smaller than 120px */
  height: auto;         /* keeps proportions */
  display: block;
  margin: 0 auto;
  border: 2px solid #b7b0a1;
  border-radius: 6px;
}


.footer {
  margin-top: 30px;
  font-style: italic;
  color: #b7b0a1;
}
