:root {
  --green-900: #174d3b;
  --green-700: #27735b;
  --green-100: #e9f5ef;
  --cream: #fffaf0;
  --orange: #ed8a3a;
  --yellow: #f7c95e;
  --ink: #20342d;
  --muted: #6a7a74;
  --line: #dce7e1;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(23, 77, 59, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(247,201,94,.95) 0 8%, transparent 9%),
    radial-gradient(circle at 78% 80%, rgba(237,138,58,.88) 0 12%, transparent 13%),
    linear-gradient(135deg, #1b5a44 0%, #2e8266 62%, #9fcf9b 100%);
}
.hero::after {
  content: "📚";
  position: absolute;
  right: max(5vw, 32px);
  bottom: 24px;
  font-size: clamp(92px, 18vw, 210px);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.16));
  transform: rotate(-4deg);
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,44,33,.45), transparent 72%); }
.hero__content { position: relative; z-index: 1; padding: 64px 0; color: var(--white); }
.hero__eyebrow { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.12); }
.hero h1 { max-width: 720px; margin: 18px 0 8px; font-size: clamp(44px, 8vw, 78px); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { color: #ffe395; }
.hero p { margin: 0 0 28px; font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.hero__meta span { padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--green-900); font-size: 14px; font-weight: 750; box-shadow: 0 8px 20px rgba(0,0,0,.08); }

.book-section { padding: 56px 0 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading__eyebrow { margin: 0 0 3px; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.section-heading h2 { margin: 0; color: var(--green-900); font-size: clamp(30px, 5vw, 46px); letter-spacing: -.035em; }
.summary { min-width: 92px; padding: 10px 14px; border-radius: 14px; text-align: center; background: var(--green-100); color: var(--green-900); }
.summary strong { display: block; font-size: 24px; line-height: 1; }
.summary span { font-size: 13px; font-weight: 700; }

.data-status { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--green-900); color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .055em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfefc; }
.book-name { font-weight: 750; }
.category-pill { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-900); font-size: 13px; font-weight: 750; }
.quantity-col { width: 110px; text-align: center; }
.quantity-badge { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 9px; border-radius: 12px; background: #fff2df; color: #a65317; font-weight: 900; }

.empty-state { padding: 44px 20px; text-align: center; }
.empty-state__icon { font-size: 52px; }
.empty-state h3 { margin: 8px 0 4px; color: var(--green-900); }
.empty-state p { margin: 0; color: var(--muted); }
.note { margin: 16px 2px 0; color: var(--muted); font-size: 13px; }

.footer { background: var(--green-900); color: var(--white); }
.footer__content { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 0; }
.footer strong { display: block; margin-bottom: 6px; color: #ffe395; font-size: 20px; }
.footer p { margin: 0; max-width: 760px; color: rgba(255,255,255,.82); }
.footer__badge { white-space: nowrap; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; font-weight: 700; }

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1080px); }
  .hero { min-height: 500px; align-items: start; }
  .hero::after { right: 18px; bottom: 28px; font-size: 118px; opacity: .95; }
  .hero__content { padding: 48px 0 170px; }
  .hero h1 { font-size: 50px; }
  .hero__meta { display: grid; grid-template-columns: 1fr; max-width: 320px; }
  .section-heading { align-items: center; }
  th, td { padding: 13px 12px; }
  th:nth-child(2), td:nth-child(2) { width: 100px; }
  .quantity-col { width: 72px; }
  .footer__content { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 43px; }
  th { font-size: 11px; }
  td { font-size: 14px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .book-name::after { content: attr(data-category); display: block; margin-top: 4px; color: var(--green-700); font-size: 12px; font-weight: 700; }
}
