*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background-color: var(--lit-page-bg);
  color: var(--lit-title);
  font-family: "Inter", "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

.lit-main {
  width: 100%;
  min-height: 100vh;
  padding-top: 80px; /* Reduced from 120px */
  padding-bottom: 10px; /* Reduced from 120px */
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(107, 138, 122, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(58, 104, 81, 0.05) 0%, transparent 40%);
}

/* Hero Section */
.lit-hero {
  padding: 4rem 4vw; /* Reduced from 8rem */
  text-align: center;
  display: flex;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--lit-hero-border);
  margin-bottom: 4rem; /* Reduced from 6rem */
}

.lit-hero-inner {
  max-width: 800px;
  padding: 1rem 0 2rem; /* Reduced from 2rem 0 4rem */
}

.kicker-wrap.hero-kicker {
  display: inline-flex;
  margin-bottom: 2rem;
  justify-content: center;
}

.lit-kicker-line {
  width: 30px;
  height: 1px;
  background-color: var(--lit-kicker-bg);
}

.lit-kicker-text {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--lit-kicker-text);
}

.lit-hero .lit-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--lit-title);
  margin: 0;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out forwards;
}

.lit-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--lit-kicker-text);
  margin: 2.5rem auto 0;
  max-width: 650px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Archive Section */
.lit-archive {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.archive-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  padding: 0;
  position: relative;
}

.archive-section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--lit-title);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0 0 6rem 0;
}

/* Book Item Layout (Box System) */
.book-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Visual Side */
.book-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.book-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  max-width: 180px;
}

.book-backdrop-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: -5%;
  bottom: -5%;
  background: radial-gradient(circle at center, var(--lit-kicker-bg), transparent 70%);
  opacity: 0.15;
  filter: blur(30px);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.book-item:hover .book-backdrop-glow {
  opacity: 0.3;
}

.book-cover {
  position: relative;
  z-index: 2;
  height: 100%;
  box-shadow: 10px 15px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border-radius: 4px;
}

.book-item:hover .book-cover {
  transform: translateY(-5px) scale(1.02);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Side */
.book-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lit-kicker-text);
  font-weight: 600;
}

.card-date {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--lit-kicker-bg);
  opacity: 0.8;
  font-weight: 500;
}

.book-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lit-title);
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--lit-kicker-text);
  margin: 0 0 2rem 0;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: auto;
}

.btn-primary-vintage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--lit-title);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary-vintage:hover {
  background: var(--lit-kicker-bg);
  border-color: var(--lit-kicker-bg);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Fragments Section */
.lit-fragments {
  max-width: 1400px;
  margin: 4rem auto 0; /* Reduced from 6rem */
  padding: 0 4vw 2rem; /* Reduced bottom padding */
  border-top: 1px solid var(--lit-hero-border);
  padding-top: 4rem; /* Reduced from 6rem */
}

.fragments-controls {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--lit-hero-border);
  color: var(--lit-kicker-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.filter-btn:hover {
  border-color: var(--lit-kicker-bg);
  color: var(--lit-title);
}

.filter-btn.active {
  background: var(--lit-kicker-bg);
  border-color: var(--lit-kicker-bg);
  color: #1a1a1a;
  font-weight: 600;
}

.cat-count {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 10px;
}

.filter-btn.active .cat-count {
  background: rgba(0, 0, 0, 0.1);
  opacity: 0.8;
}

.shuffle-btn {
  margin-left: auto;
  border-style: dashed;
  color: var(--lit-kicker-bg);
}

.shuffle-btn i {
  margin-right: 5px;
}

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  transition: opacity 0.4s ease;
  align-items: start;
}

.fragment-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fragment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lit-kicker-bg), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fragment-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.fragment-item:hover::before {
  opacity: 1;
}

.fragment-text {
  font-family: "IM Fell French Canon", serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  color: #c1c1c1;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
  letter-spacing: 0.02em;
  opacity: 0.95;
  position: relative;
}

.fragment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.2rem;
  margin-top: auto;
}

.fragment-meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lit-kicker-bg);
  font-weight: 600;
}

.grid-footer-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  color: var(--lit-kicker-text);
  opacity: 0.5;
  letter-spacing: 0.05em;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .fragments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fragments-grid {
    grid-template-columns: 1fr;
  }
}


