/* ============================================================
   Piketown Press - homepage styles  (generated site uses this)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: #F4EEDF;
  color: #2A2218;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #6B2737; transition: color 150ms; }
a:hover { color: #4A1525; }

/* Main layout */
main {
  flex: 1;
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(107, 39, 55, 0.18);
}

.press-name {
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #6B2737;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.positioning {
  font-size: 22px;
  color: #3A3025;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}

/* Section headings */
.section-heading {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #6B2737;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

/* Catalog */
.catalog {
  margin-bottom: 6rem;
}

/* Search box (only shown when there are many books) */
.book-search {
  max-width: 420px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.book-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 16px;
  color: #2A2218;
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid rgba(107, 39, 55, 0.30);
  border-radius: 3px;
}
.book-search input:focus {
  outline: none;
  border-color: #6B2737;
}
.no-results {
  text-align: center;
  font-style: italic;
  color: #6B5D52;
}

/* A collection (group) of books */
.collection { margin-bottom: 4.5rem; }
.collection:last-child { margin-bottom: 0; }
.group-heading {
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: #6B2737;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
}

/* Flowing grid: as many book-sized columns as the width allows */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  justify-content: center;
  gap: 4rem 2.75rem;
  max-width: 1000px;
  margin: 0 auto;
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms;
}
.book-card:hover {
  transform: translateY(-3px);
}
.book-card:hover .card-title {
  color: #6B2737;
}

.card-cover {
  margin-bottom: 1.5rem;
}
.card-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(42, 34, 24, 0.10);
  transition: box-shadow 250ms;
}
.book-card:hover .card-cover img {
  box-shadow: 0 6px 18px rgba(42, 34, 24, 0.15);
}

.card-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #2A2218;
  margin-bottom: 0.5rem;
  transition: color 150ms;
}

.card-subtitle {
  font-size: 15px;
  font-style: italic;
  color: #6B5D52;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-tagline {
  font-size: 15px;
  color: #4A3A2C;
  line-height: 1.55;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(107, 39, 55, 0.30);
}

/* About blurb */
.about-blurb {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 4rem;
  border-top: 1px solid rgba(107, 39, 55, 0.18);
  text-align: center;
}

.about-blurb p {
  font-size: 17px;
  color: #3A3025;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  padding: 1.75rem 2rem;
  border-top: 1px solid rgba(107, 39, 55, 0.18);
  text-align: center;
  font-size: 13px;
  color: #6B5D52;
  letter-spacing: 0.06em;
}

/* Mobile breakpoint */
@media (max-width: 760px) {
  main { padding: 3rem 1.25rem 2.5rem; }

  .hero {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
  }
  .press-name { font-size: 38px; }
  .positioning { font-size: 18px; }

  .catalog { margin-bottom: 4rem; }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 3rem 1.5rem;
    max-width: 380px;
  }

  .card-title { font-size: 19px; }

  .about-blurb {
    padding-top: 3rem;
  }
  .about-blurb p { font-size: 16px; }
}
