:root {
  color-scheme: light;
  --ink: #24332c;
  --muted: #6d7d73;
  --paper: #f4f1eb;
  --card: #fffefa;
  --line: #e5e0d6;
  --green: #375c4d;
  --green-dark: #294b3e;
  --shadow: 0 16px 40px #283a2c12;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
}
.share-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #e5e0d6d9;
  background: #fffefaed;
  backdrop-filter: blur(14px);
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.06em;
}
.brand span {
  color: #bd7452;
}
.share-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.share-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.intro {
  max-width: 720px;
  margin: 0 0 30px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.intro > p:last-child {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.search-panel {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.search-field {
  display: flex;
  flex: 1;
  min-width: 120px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.search-field span {
  font-size: 25px;
  line-height: 1;
}
.search-field input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.search-panel select,
.search-panel button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.search-panel button {
  border-color: var(--green);
  background: var(--green);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.search-panel button:hover,
.read-button:hover {
  background: var(--green-dark);
}
.collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 35px 1px 15px;
}
.collection-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.collection-heading span {
  color: var(--muted);
  font-size: 14px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.book-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.book-art {
  display: grid;
  height: 270px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #e8e2d7, #f6f2eb);
}
.book-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cover-placeholder {
  display: flex;
  width: 58%;
  height: 83%;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border-radius: 5px 12px 12px 5px;
  background: linear-gradient(150deg, #426957, #243e34);
  box-shadow: 7px 12px 20px #0002;
  color: white;
}
.cover-placeholder span {
  font-size: 11px;
  letter-spacing: 0.14em;
}
.cover-placeholder strong {
  font:
    700 21px/1.2 Georgia,
    serif;
}
.book-details {
  padding: 17px;
}
.format-tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf2ed;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.book-details h3 {
  margin: 10px 0 2px;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.author {
  margin: 3px 0;
  color: var(--muted);
}
.file-size {
  margin: 5px 0 15px;
  color: var(--muted);
  font-size: 12px;
}
.book-actions {
  display: flex;
  gap: 8px;
}
.book-actions a {
  display: inline-flex;
  flex: 1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.read-button {
  background: var(--green);
  color: white;
}
.download-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.download-button:hover {
  border-color: var(--green);
  color: var(--green);
}
.empty {
  padding: 54px 20px;
  border: 1px dashed #c9d0c8;
  border-radius: 18px;
  text-align: center;
}
.empty > span {
  color: var(--green);
  font-size: 35px;
}
.empty h2 {
  margin: 8px 0 0;
}
.empty p {
  margin: 4px 0;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.pagination a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-weight: 650;
  text-decoration: none;
}
footer {
  padding: 0 20px 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 800px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-art {
    height: 240px;
  }
}
@media (max-width: 560px) {
  .share-header {
    min-height: 58px;
    padding: 0 17px;
  }
  .share-main {
    padding: 32px 15px 44px;
  }
  .intro {
    margin-bottom: 22px;
  }
  .intro > p:last-child {
    font-size: 15px;
  }
  .search-panel {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px;
    border-radius: 15px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .search-panel select {
    flex: 1;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .book-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .book-art {
    height: 100%;
    min-height: 185px;
  }
  .book-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cover-placeholder {
    width: 78%;
    height: 82%;
    padding: 9px;
  }
  .cover-placeholder strong {
    font-size: 15px;
  }
  .book-details {
    padding: 13px 11px;
  }
  .book-details h3 {
    font-size: 16px;
  }
  .book-actions {
    flex-direction: column;
    gap: 6px;
  }
  .book-actions a {
    min-height: 36px;
  }
  .file-size {
    margin-bottom: 9px;
  }
  .share-label {
    font-size: 12px;
  }
}
