/* Vintage Literary Stories Library - Main Styles */

body {
  font-family: Georgia, "Times New Roman", serif;
  background-color: #FAF8F0;
  background-image: url('vintage-paper.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: repeat;
  color: #2C1A10;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: url('cover.jpg') center/cover no-repeat;
  color: #3B2A1C;
  padding: 4em 1em;
  text-align: center;
  background-color: rgba(255, 248, 240, 0.92);
  background-blend-mode: lighten;
  border-bottom: 1px solid #dec7a6;
}

header h1 {
  font-size: 2.8em;
  margin: 0;
  text-shadow: none;
  color: #3B2A1C;
}

header p {
  font-style: italic;
  font-size: 1.1em;
  color: #5c4833;
  margin: 0;
}

/* Navigation */
nav {
  margin-top: 3em;
  border-top: 1px solid #dec7a6;
  padding-top: 1em;
  text-align: center;
}

.nav {
  background: transparent;
  border: none;
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: center;
}

.nav-links a {
  color: #603c1e;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: #b04700;
}

/* Main Content */
main {
  max-width: 750px;
  margin: -3em auto 2em auto;
  padding: 2em;
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid #e4d7c2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Articles */
article {
  margin-bottom: 4em;
}

article h2 {
  background-color: #f3e9dc;
  padding: 0.6em 1.2em;
  border-left: 5px solid #9c7c56;
  margin-top: 0;
  font-size: 1.6em;
  color: #2C1A10;
}

article h3 {
  background-color: #f3e9dc;
  padding: 0.6em 1.2em;
  border-left: 5px solid #9c7c56;
  margin-top: 0;
  font-size: 1.4em;
  color: #2C1A10;
}

article p {
  text-align: justify;
  text-indent: 2em;
  font-size: 1.1em;
  margin-bottom: 1rem;
}

/* Story Cards */
.story-card {
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid #e4d7c2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0;
}

.story-card h3 {
  background-color: #f3e9dc;
  padding: 0.6em 1.2em;
  border-left: 5px solid #9c7c56;
  margin-top: 0;
  font-size: 1.4em;
  color: #2C1A10;
}

.story-card h3 a {
  color: #2C1A10;
  text-decoration: none;
}

.story-card h3 a:hover {
  color: #603c1e;
}

.story-meta {
  color: #5c4833;
  font-size: 0.9rem;
  margin-bottom: 1rem; 
  font-style: italic;
}

/* Author Cards */
.author-card {
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid #e4d7c2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0;
  text-align: center;
}

.author-card h3 {
  background-color: #f3e9dc;
  padding: 0.6em 1.2em;
  border-left: 5px solid #9c7c56;
  margin-top: 0;
  font-size: 1.4em;
  color: #2C1A10;
}

.author-card h3 a {
  color: #2C1A10;
  text-decoration: none;
}

.author-card h3 a:hover {
  color: #603c1e;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #e4d7c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #5c4833;
}

/* Buttons */
.btn {
  color: #603c1e;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  display: inline-block;
  border: 1px solid #603c1e;
  background: transparent;
  transition: all 0.3s ease;
}

.btn:hover {
  color: #b04700;
  border-color: #b04700;
  background: rgba(176, 71, 0, 0.1);
}

.btn-secondary {
  color: #5c4833;
  border-color: #5c4833;
}

.btn-secondary:hover {
  color: #b04700;
  border-color: #b04700;
  background: rgba(176, 71, 0, 0.1);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.grid-3 { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid-4 { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* Story Content */
.story-content {
  max-width: 100%;
  font-size: 1.1rem;
  line-height: 1.7;
}

.story-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-indent: 2em;
}

/* Filters */
.filters {
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid #e4d7c2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0;
}

.filters h3 {
  background-color: #f3e9dc;
  padding: 0.6em 1.2em;
  border-left: 5px solid #9c7c56;
  margin-top: 0;
  font-size: 1.4em;
  color: #2C1A10;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2C1A10;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e4d7c2;
  border-radius: 0;
  font-size: 1rem;
  background: rgba(255, 248, 240, 0.96);
  color: #2C1A10;
  font-family: Georgia, "Times New Roman", serif;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #9c7c56;
}

/* Footer */
.footer {
  background: rgba(255, 248, 240, 0.96);
  border-top: 1px solid #dec7a6;
  color: #2C1A10;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Links */
a {
  color: #603c1e;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #b04700;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #2C1A10;
  margin-bottom: 1rem;
}

h1 { 
  font-size: 2.8em; 
  font-weight: normal; 
}

h2 { 
  font-size: 1.6em; 
  font-weight: normal; 
}

h3 { 
  font-size: 1.4em; 
  font-weight: normal; 
}

h4 { 
  font-size: 1.2em; 
  font-weight: normal; 
}

/* Remove ornaments - replace with simpler styling */
.ornament {
  text-align: center;
  margin: 2rem 0;
  font-size: 1.5rem;
  color: #9c7c56;
}

.ornament::before,
.ornament::after {
  content: '❦';
  margin: 0 1rem;
}

/* Card hover effects - simplified */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  main {
    margin: -1em auto 2em auto;
    padding: 1em;
  }
  
  header {
    padding: 2em 1em;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  article h2, article h3, .story-card h3, .author-card h3, .filters h3 {
    font-size: 1.2em;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}