/* === Base Styling === */
body {
  background-color: #f5f0e6;
  font-family: "Georgia", serif;
  color: #2b2b2b;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #4a3f35;
}

/* === Story Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* === Story Card === */
.smut-card {
  background-color: #fdf9f3;
  border: 1px solid #d3c7b5;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.smut-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 1.2rem;
}

.card-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #3d352c;
}

.card-content p {
  font-size: 0.9rem;
  color: #4a4034;
  margin-bottom: 1rem;
}

.author {
  font-style: italic;
  font-size: 0.85rem;
  color: #5c5145;
  margin-top: -0.4rem;
  margin-bottom: 0.8rem;
}


/* === Tag styling === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em; /* spacing between tags */
}

.tag {
  background-color: #e5dac3;
  color: #4a3f35;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.25em 0.6em;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #d3c1a7;
}

/* === Back Link and Story Page Content === */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  text-decoration: none;
  color: #4a3f35;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.smut-content h1, .smut-content h2 {
  color: #4a3f35;
}

.smut-content p {
  line-height: 1.6;
  margin-bottom: 1em;
}
