@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Myanmar:wght@400;500;700&family=Playfair+Display:wght@400;500;600&display=swap");
:root {
  --green: #204c3b;
  --ink: #243c31;
  --muted: #758078;
  --paper: #faf9f5;
  --line: #e4e7df;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans Myanmar", sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  max-width: 1440px;
  padding: 25px 5.5%;
  display: flex;
  align-items: center;
  gap: 45px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-icon {
  font-size: 35px;
  line-height: 1;
}
.brand-sub {
  display: block;
  letter-spacing: 5px;
  font-size: 10px;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 26px;
  margin: auto;
}
.nav {
  border: 0;
  background: none;
  color: #7b817b;
  padding: 12px 0;
}
.nav.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.language {
  border: 0;
  background: none;
  color: var(--green);
}
.primary {
  border: 0;
  background: var(--green);
  color: white;
  padding: 15px 23px;
  border-radius: 5px;
  display: inline-flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
}
.primary:hover {
  background: #32634e;
}
.small {
  padding: 12px 18px;
}
.secondary {
  padding: 10px 15px;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  border-radius: 4px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 5%;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 475px;
  align-items: center;
  gap: 30px;
  padding: 42px 0 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: #6b806b;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", "Noto Sans Myanmar", serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.14;
  letter-spacing: -1.8px;
  margin: 19px 0;
}
p {
  line-height: 1.8;
}
.hero-text > p {
  color: #748077;
  max-width: 420px;
  font-size: 14px;
  margin-bottom: 25px;
}
.community {
  display: flex;
  align-items: center;
  margin-top: 28px;
  font-size: 10px;
  color: #7a827b;
}
.avatar {
  display: flex;
  border: 2px solid var(--paper);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background: #d4dfc8;
  align-items: center;
  justify-content: center;
  color: #385b43;
  margin-right: -7px;
}
.second {
  background: #edd4b5;
}
.third {
  background: #c8d5cc;
  margin-right: 12px;
}
.hero-art {
  height: 370px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  width: 325px;
  height: 325px;
  background: #e8ecdf;
  border-radius: 50%;
  right: 5%;
  bottom: 15px;
}
.art-book {
  position: absolute;
  width: 175px;
  height: 256px;
  box-shadow: 6px 14px 22px #18352325;
  border-left: 6px solid #ffffff25;
  display: flex;
  flex-direction: column;
  padding: 23px 17px;
}
.art-one {
  background: #ce7b4e;
  color: #fff1cd;
  transform: rotate(-12deg);
  left: 12%;
  top: 44px;
  z-index: 2;
}
.art-one > span {
  font-size: 13px;
}
.art-one b {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.1;
  position: relative;
  margin-top: 58px;
}
.art-one small {
  font-size: 5px;
  letter-spacing: 1px;
  margin-top: auto;
}
.sun {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #eccb83;
  border-radius: 50%;
  top: 68px;
  right: 12px;
}
.art-two {
  background: #244b40;
  transform: rotate(12deg);
  right: 8%;
  top: 77px;
  color: #d8d7a5;
}
.art-two small {
  font-size: 7px;
  letter-spacing: 2px;
}
.art-two b {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 0.98;
  margin: 17px 0;
}
.art-two span {
  font-size: 12px;
}
.lines {
  font-size: 60px;
  line-height: 0.6;
  color: #819775;
}
.art-star {
  position: absolute;
  font-size: 50px;
  color: #b6965e;
  right: 9%;
  top: 13px;
}
.art-note {
  position: absolute;
  bottom: 5px;
  right: 10%;
  z-index: 3;
  background: #fffef7;
  padding: 12px 18px;
  font: italic 15px Georgia;
  transform: rotate(-4deg);
  box-shadow: 0 5px 20px #0001;
}
.art-note span {
  margin-left: 12px;
  color: #bf8358;
}
.pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  gap: 26px;
  margin-bottom: 49px;
}
.pathways button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 0 22px 0 0;
}
.pathways button:last-child {
  border: 0;
}
.pathways button > span:last-child {
  margin-left: auto;
  color: #82927e;
}
.path-icon {
  background: #edf0e5;
  border-radius: 50%;
  font-size: 25px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #65816a;
  flex-shrink: 0;
}
.pathways b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.pathways small {
  font-size: 11px;
  color: #7b827a;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-size: 30px;
  margin: 10px 0 24px;
  letter-spacing: -0.6px;
}
.demo-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8b9286;
}
.search-row {
  display: flex;
  gap: 12px;
  margin: 1px 0 21px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 0 16px;
}
.search > span {
  font-size: 25px;
  color: #84917e;
}
.search input {
  border: 0;
  width: 100%;
  height: 45px;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #59665a;
  padding: 10px 30px 10px 13px;
  font-size: 12px;
}
.catalog-toolbar {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: #74806f;
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 11px;
}
.chip.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.catalog-toolbar select {
  border: 0;
  background: transparent;
}
.count {
  font-size: 11px;
  color: #91988c;
  margin: 16px 0;
}
.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 23px;
}
.book {
  min-width: 0;
  position: relative;
}
.cover-wrap {
  height: 255px;
  background: #edeee7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  position: relative;
  margin-bottom: 15px;
}
.book:nth-child(2n) .cover-wrap {
  background: #f0ece5;
}
.cover {
  width: 146px;
  height: 207px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  color: var(--cover-ink, #f9eed4);
  background: var(--cover);
  border-left: 5px solid #ffffff25;
  box-shadow: 3px 6px 11px #1b34292b;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.cover-wrap:hover .cover {
  transform: translateY(-5px) rotate(-2deg);
}
.cover .cover-kicker {
  font-size: 6px;
  letter-spacing: 1.9px;
  z-index: 1;
}
.cover b {
  font:
    25px/1.14 "Playfair Display",
    serif;
  margin-top: 25px;
  z-index: 1;
  white-space: pre-line;
}
.cover .my {
  font:
    12px/1.9 "Noto Sans Myanmar",
    sans-serif;
  margin-top: 10px;
  z-index: 1;
}
.cover .cover-author {
  margin-top: auto;
  font-size: 7px;
  letter-spacing: 1px;
  z-index: 1;
}
.cover .shape {
  width: 105px;
  height: 105px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 0 0;
  position: absolute;
  opacity: 0.25;
  bottom: -25px;
  right: -5px;
  box-shadow:
    0 0 0 13px #ffffff12,
    0 0 0 26px #ffffff09;
}
.cover-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.bookmark {
  position: absolute;
  right: 11px;
  top: 11px;
  border: 0;
  background: #ffffffd9;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  color: var(--green);
  font-size: 17px;
}
.bookmark[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.book-meta {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8c967f;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.book-title {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font:
    500 17px "Playfair Display",
    serif;
  color: var(--ink);
  margin: 7px 0;
}
.book-author {
  font-size: 11px;
  color: #858c80;
  margin: 0;
}
.book-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 11px;
}
.offer {
  font-size: 9px;
  background: #eaf0e3;
  color: #637957;
  padding: 4px 7px;
  border-radius: 3px;
}
.banner {
  background: #e8ecdf;
  border-radius: 7px;
  margin: 55px 0 40px;
  padding: 33px 36px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  overflow: hidden;
}
.banner h2 {
  font-size: 29px;
  margin-bottom: 10px;
  line-height: 1.25;
}
.banner p {
  font-size: 11px;
  color: #7a8573;
  margin: 0;
}
.banner button {
  margin-left: auto;
  z-index: 1;
  flex-shrink: 0;
}
.banner-art {
  font-size: 180px;
  position: absolute;
  right: 60px;
  transform: rotate(-20deg);
  opacity: 0.06;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 20px 5% 35px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 10px;
  color: #88917f;
  border-top: 1px solid var(--line);
}
.footer-brand {
  font:
    16px "Playfair Display",
    serif;
  color: var(--green);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 35px;
  max-width: 700px;
  width: calc(100% - 30px);
  color: var(--ink);
  background: var(--paper);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #17362b88;
  backdrop-filter: blur(3px);
}
.close {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 26px;
  border: 0;
  background: none;
  color: #657461;
}
.detail-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding-top: 15px;
}
.detail-layout .cover {
  width: 180px;
  height: 255px;
}
.detail-layout h2 {
  margin: 8px 0;
}
.detail-layout p {
  font-size: 13px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.detail-note {
  font-size: 11px !important;
  color: #87917e;
}
form {
  display: grid;
  gap: 14px;
}
form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
form input,
textarea,
form select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px;
  border-radius: 4px;
  width: 100%;
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 13px 23px;
  border-radius: 5px;
  z-index: 10;
  display: none;
  max-width: 90%;
  text-align: center;
}
#empty {
  text-align: center;
  padding: 45px;
}
body.mm h1 {
  font-size: 40px;
  line-height: 1.65;
  letter-spacing: 0;
}
body.mm .eyebrow {
  letter-spacing: 0;
}
body.mm h2 {
  line-height: 1.7;
}
button:hover {
  filter: brightness(0.96);
}
@media (min-width: 1400px) {
  main {
    padding: 0 35px;
  }
}
@media (max-width: 1000px) {
  header {
    gap: 20px;
  }
  nav {
    gap: 16px;
  }
  .header-actions {
    gap: 12px;
  }
  .hero-art {
    transform: scale(0.9);
  }
  .books {
    grid-template-columns: repeat(3, 1fr);
  }
  .pathways {
    gap: 13px;
  }
  .pathways small {
    font-size: 10px;
  }
  .cover-wrap {
    height: 245px;
  }
}
@media (max-width: 750px) {
  header {
    flex-wrap: wrap;
    padding: 18px 5%;
    gap: 15px;
  }
  .brand {
    margin-right: auto;
  }
  .header-actions {
    margin-left: auto;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 0;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-art {
    height: 335px;
    max-width: 420px;
    width: 100%;
    margin: auto;
  }
  .hero-text > p {
    max-width: 100%;
  }
  .pathways {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 20px;
  }
  .pathways button {
    border: 0;
  }
  .books {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
  }
  .search-row select {
    flex: 1;
    min-width: 0;
  }
  .section-top {
    align-items: flex-start;
    gap: 15px;
  }
  .demo-label {
    max-width: 100px;
    line-height: 1.6;
    margin-top: 5px;
  }
  .catalog-toolbar {
    align-items: flex-start;
  }
  .catalog-toolbar select {
    max-width: 90px;
    padding-left: 0;
  }
  .chip {
    padding: 7px 11px;
    font-size: 10px;
  }
  .cover-wrap {
    height: 230px;
  }
  .cover {
    width: 130px;
    height: 187px;
  }
  .cover b {
    font-size: 23px;
  }
  .banner {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .banner button {
    margin: 0;
  }
  footer {
    flex-wrap: wrap;
    line-height: 1.7;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout .cover {
    margin: auto;
  }
  .book-meta {
    font-size: 8px;
  }
  .book-title {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cover {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

.brand.sarville-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #204c3b;
  text-decoration: none;
}

.sarville-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sarville-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1.3;
}

.sarville-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.5;
}

.sarville-brand:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 360px) {
  .brand.sarville-brand {
    gap: 10px;
  }

  .sarville-subtitle {
    letter-spacing: 2px;
  }
}
