/* =========================================================================
   The Lit Room — landing page
   Built on the In Both Hands design system (styles.css supplies the palette,
   fonts, nav, footer, and base type). This file adds only the landing layout:
   the catalog hero and the three collection sections (Books, Memoirs, Shorts).
   ========================================================================= */

/* -------------------------------------------------------------------------
   Landing hero
   ------------------------------------------------------------------------- */
.lp-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-10) var(--s-6) var(--s-8);
  text-align: center;
}
.lp-hero__overline {
  font-family: var(--ui);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.lp-hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.lp-hero__lede {
  font-family: var(--body);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink-mute);
  max-width: 54ch;
  margin: var(--s-5) auto 0;
}
.lp-hero__rule {
  width: 64px;
  height: 1px;
  background: var(--amber);
  margin: var(--s-7) auto 0;
}

/* -------------------------------------------------------------------------
   Collection section
   ------------------------------------------------------------------------- */
.collection {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6);
}
.collection + .collection { padding-top: var(--s-7); }
.collection__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule);
}
.collection__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0;
}
.collection__count {
  font-family: var(--ui);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Work cards (a book / memoir / story in the catalog)
   ------------------------------------------------------------------------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-7);
}
.work {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--s-5);
  align-items: start;
  color: inherit;
}
a.work {
  transition: transform var(--dur) var(--ease);
}
a.work:hover { transform: translateY(-3px); }

.work__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow:
    0 1px 2px rgba(26, 29, 34, 0.18),
    0 18px 38px -22px rgba(26, 29, 34, 0.5);
}
.work__cover img { width: 100%; height: 100%; object-fit: cover; }
a.work:hover .work__cover {
  box-shadow:
    0 2px 4px rgba(26, 29, 34, 0.2),
    0 26px 50px -22px rgba(26, 29, 34, 0.55);
}

.work__overline {
  font-family: var(--ui);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 500;
}
.work__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: var(--s-2) 0 0;
}
.work__blurb {
  font-family: var(--body);
  font-size: var(--text-sm);
  color: var(--ink-mute);
  margin: var(--s-3) 0 0;
  max-width: 42ch;
}
.work__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin-top: var(--s-4);
}
.work__cta .arrow { transition: transform var(--dur) var(--ease); }
a.work:hover .work__cta .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Story list (text-only catalog rows, e.g. Short Stories)
   ------------------------------------------------------------------------- */
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.story-list__link {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-2);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  transition: background var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease);
}
.story-list__link:hover {
  background: var(--paper-2);
  padding-left: var(--s-4);
}
.story-list__title {
  font-family: var(--display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.story-list__meta {
  font-family: var(--ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.story-list__arrow {
  margin-left: auto;
  color: var(--amber);
  transition: transform var(--dur) var(--ease);
}
.story-list__link:hover .story-list__arrow { transform: translateX(4px); }

@media (max-width: 540px) {
  .story-list__link { flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
  .story-list__arrow { margin-left: var(--s-2); }
}

/* -------------------------------------------------------------------------
   Empty / under-construction state
   ------------------------------------------------------------------------- */
.coming-soon {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-7);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  background: var(--paper-2);
}
.coming-soon__mark {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--amber);
  opacity: 0.85;
}
.coming-soon__title {
  font-family: var(--ui);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 500;
  margin: 0 0 var(--s-2);
}
.coming-soon__text {
  font-family: var(--body);
  font-style: italic;
  color: var(--ink-mute);
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 540px) {
  .work { grid-template-columns: 104px 1fr; gap: var(--s-4); }
  .coming-soon { flex-direction: column; align-items: flex-start; text-align: left; }
}
