:root {
  --ink: #213e35;
  --green: #245b48;
  --paper: #fafaf6;
  --muted: #737b71;
  --border: #e0e4da;
  --lime: #d9f596;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b68535;
  outline-offset: 4px;
}
.preview-bar {
  background: #e8eedf;
  padding: 9px 5%;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-align: center;
}
.preview-bar span {
  letter-spacing: 0.2px;
  font-weight: 400;
  margin-left: 16px;
}
header {
  height: 98px;
  max-width: 1380px;
  margin: auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1.1px;
}
.brand-icon {
  background: var(--green);
  color: white;
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 30px;
  margin-right: 9px;
  position: relative;
}
.brand-icon span {
  font-size: 15px;
  position: absolute;
  right: 2px;
  top: 0;
}
.brand-dot {
  color: #9db75f;
}
nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
}
nav a.active {
  color: var(--green);
  font-weight: 700;
}
button {
  border: 0;
}
.cart-button {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-button span {
  background: var(--green);
  color: white;
  border-radius: 50%;
  min-width: 23px;
  padding: 3px;
  font-size: 12px;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 10px 5% 70px;
}
.hero {
  background: #eaf0df;
  min-height: 440px;
  border-radius: 22px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #759344;
  border-radius: 50%;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -2.7px;
  margin: 22px 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #5c7b44;
}
p {
  line-height: 1.65;
}
.hero p {
  max-width: 380px;
  color: #62715c;
  font-size: 14px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--green);
  color: white;
  padding: 15px 22px;
  border-radius: 8px;
  font-size: 14px;
}
.hero .primary {
  margin-top: 12px;
}
.hero-note {
  font-size: 11px !important;
  margin-top: 23px;
  letter-spacing: 0.4px;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #cfdbbb;
  border-radius: 50%;
  z-index: -1;
}
.orbit:after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid #cfdbbb;
  border-radius: 50%;
}
.hero-book {
  width: 205px;
  height: 280px;
  padding: 22px;
  background: #285549;
  color: #e7edc7;
  transform: rotate(-12deg) translate(-28px, -12px);
  box-shadow: 9px 17px 28px #263c2830;
  border-radius: 3px;
  border-left: 9px solid #1c4438;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-book small {
  font-size: 9px;
  letter-spacing: 3px;
}
.hero-book strong {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.1;
}
.book-sun {
  width: 105px;
  height: 105px;
  align-self: center;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    #d8e5a7 0,
    #d8e5a7 2px,
    transparent 2px,
    transparent 6px
  );
}
.hero-video {
  position: absolute;
  width: 195px;
  height: 143px;
  bottom: 20px;
  right: 0;
  transform: rotate(8deg);
  background: #d9b887;
  border: 6px solid #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px #263c2820;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #403b31;
}
.play {
  background: #ffffffb0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
}
.hero-video strong {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.floating-label {
  position: absolute;
  top: 12px;
  right: -9px;
  background: var(--paper);
  box-shadow: 0 5px 20px #22332308;
  border-radius: 30px;
  padding: 11px 17px;
  font-size: 11px;
  transform: rotate(8deg);
}
.benefits {
  display: flex;
  justify-content: space-around;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: #65715d;
}
.benefits b {
  font-weight: 400;
  color: #4c6b43;
  margin-right: 8px;
}
.section-head {
  margin: 45px 0 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 7px;
  font-weight: 600;
}
.section-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 14px;
  gap: 10px;
}
.search input {
  border: 0;
  outline: none;
  padding: 13px 0;
  width: 215px;
  background: transparent;
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 25px;
  padding: 10px 17px;
  font-size: 12px;
  color: #5e6c60;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.filters select {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #65715d;
  font-size: 12px;
  padding: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  min-width: 0;
}
.cover {
  height: 225px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.2s;
}
.cover:hover {
  transform: translateY(-4px);
}
.cover small {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 9px;
  background: #ffffffde;
  border-radius: 5px;
  font-size: 9px;
  color: #283b32;
  letter-spacing: 0.3px;
  z-index: 1;
}
.book {
  width: 124px;
  height: 170px;
  transform: rotate(-8deg);
  padding: 17px 12px;
  box-shadow: 8px 11px 12px #0002;
  border-left: 5px solid #0002;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.book b {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
}
.book span {
  font-size: 7px;
  letter-spacing: 1.8px;
}
.book i {
  font-family: Georgia, serif;
  font-size: 43px;
  font-style: normal;
  text-align: center;
  opacity: 0.7;
}
.sage {
  background: #e4e7d8;
}
.sage .book {
  background: #365646;
  color: #f1ecd2;
}
.peach {
  background: #eaddcd;
}
.peach .book {
  background: #b56943;
  color: #fff1d0;
}
.lilac {
  background: #e3e0ed;
}
.lilac .book {
  background: #66527c;
  color: #fff5e3;
}
.blue {
  background: #dce5e8;
}
.blue .book {
  background: #2e586b;
  color: #e3eef1;
}
.video-art {
  width: 80%;
  height: 72%;
  border-radius: 6px;
  background: #242e29;
  color: #e9ecd9;
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  box-shadow: 8px 10px 12px #0001;
}
.video-art b {
  font-size: 23px;
  letter-spacing: -1px;
  line-height: 1.05;
  text-align: left;
  justify-self: start;
}
.video-art .play {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: #274b3b;
}
.video-art:before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid #81957c;
  right: 14px;
  top: 15px;
  transform: rotate(30deg);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 17px;
  color: #7c8476;
}
.card h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  margin: 7px 0 4px;
  letter-spacing: -0.3px;
}
.author {
  font-size: 11px;
  color: #7b8075;
  margin: 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  font-size: 14px;
}
.price-row small {
  font-size: 10px;
  font-weight: 400;
  margin-right: 3px;
}
.add {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--green);
  font-size: 18px;
}
.creator-banner {
  margin-top: 50px;
  border-radius: 15px;
  background: #244d40;
  color: #f5f3e7;
  padding: 35px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.creator-banner h2 {
  font-size: 26px;
}
.creator-banner p {
  font-size: 13px;
  color: #c3d0bd;
  margin-bottom: 0;
}
.creator-banner .primary {
  background: var(--lime);
  color: #234632;
  white-space: nowrap;
}
footer {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  max-width: 1380px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 30px;
}
footer .brand {
  font-size: 20px;
}
footer p,
footer span {
  font-size: 11px;
  color: #7c8375;
}
footer span {
  margin-left: auto;
}
footer button {
  background: none;
  text-decoration: underline;
  font-size: 11px;
  color: #66705e;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  max-width: 640px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #102a2466;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 27px;
  background: none;
  color: var(--ink);
}
dialog h2 {
  margin-top: 12px;
}
.detail-cover {
  width: 210px;
  margin: auto;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.notice {
  background: #edf0e5;
  padding: 16px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.text-button {
  background: none;
  color: var(--green);
  text-decoration: underline;
  font-size: 12px;
  padding: 6px;
}
.total {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  font-weight: 700;
}
.empty {
  grid-column: 1/-1;
  padding: 55px;
  text-align: center;
  background: #eef1e6;
  border-radius: 12px;
}
.page-head {
  padding: 40px 0 20px;
}
.page-head h1 {
  font-size: 42px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat {
  padding: 25px;
  background: #edf0e5;
  border-radius: 12px;
}
.stat b {
  display: block;
  font-size: 28px;
  margin: 8px 0;
}
.seller-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 12px;
}
.panel label {
  display: block;
  font-size: 12px;
  margin: 15px 0 7px;
}
.panel input,
.panel select,
.panel textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
}
.panel .primary {
  margin-top: 18px;
}
.draft {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.draft h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 9px;
  padding: 13px 22px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
#toast.show {
  opacity: 1;
}
.library-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 1400px) {
  .hero-art {
    margin-left: 40px;
    margin-right: 25px;
  }
  .hero-video {
    right: 15px;
  }
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    padding: 35px;
  }
  .hero-book {
    width: 170px;
    height: 250px;
  }
  .hero-video {
    right: -18px;
    width: 160px;
  }
  .floating-label {
    right: -15px;
  }
  .orbit {
    width: 270px;
    height: 270px;
  }
  nav {
    gap: 20px;
  }
  .brand {
    font-size: 22px;
  }
  .hero h1 {
    font-size: 44px;
  }
}
@media (max-width: 720px) {
  header {
    height: auto;
    min-height: 100px;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 15px;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 12px;
    gap: 30px;
  }
  .cart-button {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-art {
    height: 290px;
    margin-top: 20px;
  }
  .hero-book {
    width: 160px;
    height: 215px;
  }
  .hero-book strong {
    font-size: 25px;
  }
  .book-sun {
    width: 75px;
    height: 75px;
  }
  .hero-video {
    right: 2px;
    bottom: 15px;
  }
  .floating-label {
    right: 0;
    top: 15px;
  }
  .hero-note {
    margin-bottom: 0;
  }
  .benefits {
    gap: 12px;
    font-size: 10px;
    text-align: center;
  }
  .benefits b {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    margin-top: 32px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 14px;
  }
  .cover {
    height: 190px;
  }
  .book {
    width: 105px;
    height: 143px;
  }
  .book b {
    font-size: 20px;
  }
  .video-art {
    width: 85%;
    padding: 12px;
  }
  .video-art b {
    font-size: 19px;
    z-index: 1;
  }
  .video-art:before {
    width: 45px;
    height: 45px;
  }
  .chip {
    padding: 9px 13px;
    font-size: 11px;
  }
  .filters {
    gap: 6px;
  }
  .filters select {
    margin-left: 0;
  }
  .card h3 {
    font-size: 13px;
  }
  .card-meta {
    font-size: 9px;
  }
  .creator-banner {
    padding: 28px;
    flex-direction: column;
    align-items: start;
  }
  .creator-banner h2 {
    font-size: 25px;
  }
  footer {
    align-items: start;
    flex-direction: column;
  }
  footer p {
    margin: 0;
  }
  footer span {
    margin: 0;
  }
  .preview-bar {
    font-size: 9px;
  }
  .preview-bar span {
    display: block;
    margin: 4px 0 0;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat b {
    font-size: 22px;
  }
  .seller-layout {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 30px 22px;
  }
}
