@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --green-900: #31442c;
  --green-700: #617d43;
  --green-500: #88a45c;
  --green-100: #edf2e7;
  --cream: #f8f7f1;
  --ink: #1d211c;
  --muted: #66705f;
  --gold: #d3a53e;
  --hope-black: #090a0e;
  --white: #fff;
  --shadow: 0 18px 50px rgba(42, 54, 34, .12);
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.content-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-anchor {
  display: block;
  position: relative;
  top: -92px;
  visibility: hidden;
}

.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;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 88px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e9ece4;
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 36px;
}

.brand img {
  width: 190px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 31px;
  font-size: .91rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 31px 0 28px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 2px;
  background: var(--green-500);
  transition: right .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions a,
.nav-actions button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  position: relative;
}

.nav-icon-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-actions svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-link span {
  position: absolute;
  right: -7px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: white;
  background: var(--green-500);
  border-radius: 50%;
  font-size: .65rem;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(100deg, #fff 0%, #fbfcf9 53%, #f0f1e8 100%);
}

.hero-copy {
  display: contents;
}

.hero-text {
  width: min(540px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding: 74px 24px 55px 0;
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero h1 em {
  color: var(--green-500);
  font-style: normal;
}

.lead {
  max-width: 450px;
  margin: 25px 0 29px;
  color: #4f554c;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 155px;
  padding: 13px 22px;
  border: 1px solid var(--green-700);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--green-500);
  border-color: var(--green-500);
}

.button-primary span {
  margin-left: 8px;
}

.button-outline {
  color: var(--green-700);
}

.hero-image {
  min-height: 610px;
  background-color: transparent;
  background-image: url("assets/landing-page-image.png");
  background-position: right center;
  background-size: contain;
  background-repeat: no-repeat;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.trust-row>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-row p {
  margin: 0;
  font-size: .73rem;
  line-height: 1.25;
}

.trust-row strong,
.trust-row small {
  display: block;
}

.trust-row small {
  color: #687065;
}

.trust-icon,
.category-icon {
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 50%;
}

.trust-icon {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.categories {
  background: radial-gradient(circle at 50% 0%, #fff 0, #f4f7ef 48%, #edf2e6 100%);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.centered {
  text-align: center;
}

.heading-rule {
  display: block;
  width: 42px;
  height: 2px;
  margin: 18px auto 34px;
  background: var(--green-500);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}

.category-card {
  min-height: 245px;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(104, 129, 75, .08);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(55, 70, 42, .06);
  transition: transform .25s, box-shadow .25s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  font-size: 1.75rem;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.category-card p {
  margin: 0 0 18px;
  color: #60675d;
  font-size: .78rem;
}

.category-card a {
  margin-top: auto;
  color: var(--green-700);
  font-size: .77rem;
  font-weight: 700;
}

.hope-feature {
  position: relative;
  overflow: hidden;
  color: #eeeae1;
  background: var(--hope-black);
}

.hope-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(#e4b34d 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
}

.hope-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .17;
  background: #e8b744;
}

.hope-glow-one {
  width: 380px;
  height: 380px;
  top: 8%;
  left: -190px;
}

.hope-glow-two {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: 18%;
}

.hope-layout {
  position: relative;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: clamp(50px, 8vw, 115px);
  align-items: center;
}

.book-stage {
  position: relative;
  width: min(390px, 82%);
  margin: auto;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: perspective(1200px) rotateY(7deg);
  transition: transform .25s ease;
}

.book-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px -17px -7px 12px;
  background: linear-gradient(90deg, #c7bd99, #f8f1d0 35%, #afa482);
  border-radius: 3px 10px 10px 3px;
  transform: translateZ(-10px);
}

.book-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: -24px 30px 55px rgba(0, 0, 0, .52);
}

.book-stage:hover {
  transform: perspective(1200px) rotateY(2deg) translateY(-7px);
}

.book-stage:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 8px;
}

.book-shadow {
  position: absolute;
  z-index: 0;
  left: 8%;
  right: -15%;
  bottom: -34px;
  height: 38px;
  background: rgba(0, 0, 0, .6);
  filter: blur(17px);
}

.book-preview-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  padding: 9px 16px;
  color: #17130a;
  background: rgba(235, 190, 83, .94);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .22s, transform .22s;
}

.book-stage:hover .book-preview-label,
.book-stage:focus-visible .book-preview-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.book-caption {
  margin: 53px 0 0;
  color: #a49c8c;
  font-size: .72rem;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}

.book-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.book-action {
  padding: 10px 15px;
  color: #d8d4cc;
  background: #17181a;
  border: 1px solid #44433e;
  border-radius: 99px;
  cursor: pointer;
}

.book-action:hover {
  border-color: var(--gold);
}

.book-action.liked {
  color: #ffd2d2;
  border-color: #b15d5d;
  background: #3a2022;
}

.book-action span {
  margin-right: 5px;
}

.gold {
  color: var(--gold);
}

.hope-copy h2 {
  margin: 0;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
}

.hope-copy h2 em {
  color: var(--gold);
}

.hope-intro {
  max-width: 630px;
  margin: 25px 0;
  color: #c7c2b8;
  font-size: 1.15rem;
}

.hope-copy blockquote {
  margin: 25px 0;
  padding: 2px 0 2px 23px;
  color: #f3e3bd;
  border-left: 2px solid var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.hope-description {
  max-width: 630px;
  color: #a9a69f;
}

.order-block {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #2b2c2d;
}

.order-label {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-price {
  margin-left: 12px;
  color: var(--gold);
  font-weight: 700;
}

.order-block>p {
  margin: 3px 0 15px;
  color: #8c8a84;
  font-size: .85rem;
}

.order-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-option {
  min-width: 145px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d7d2c9;
  background: transparent;
  border: 1px solid #494842;
  border-radius: 7px;
  cursor: pointer;
}

.order-option:hover {
  color: white;
  border-color: var(--gold);
}

.order-option svg {
  width: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phase-note {
  display: block;
  margin-top: 10px;
  color: #6f6d68;
}

.preview-page {
  display: none;
  width: min(440px, 100%);
  height: min(56vh, 540px);
  min-height: 330px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
}

.preview-page.is-active {
  display: flex;
}

.cover-page {
  background: #090a0e;
}

.cover-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  color: #25251f;
  background: #f4eddb;
  box-shadow: inset 0 0 40px rgba(92, 72, 34, .08);
}

.text-page::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(116, 91, 34, .22);
}

.text-page>* {
  position: relative;
  z-index: 1;
}

.text-page p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.12rem;
}

.text-page small {
  margin-top: auto;
  color: #8d7850;
}

.page-kicker {
  color: #9d7626;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dark-page {
  color: #eeeae0;
  background: #17181a;
}

.dark-page::after {
  border-color: #634f24;
}

.book-preview-pages .preview-page:not(.is-active) {
  display: none;
}

.writings {
  color: var(--ink);
  background: #f5f6f0;
}

.writing-heading {
  margin-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
}

.writing-heading>p {
  max-width: 390px;
  margin: 0;
  color: #687064;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 250px;
  padding: 32px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  background: white;
  border: 1px solid #e2e6dd;
  border-radius: 10px;
  transition: transform .25s, box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-4px);
  color: white;
  background: var(--green-900);
  border-color: var(--green-900);
  box-shadow: var(--shadow);
}

.article-number {
  color: var(--green-500);
  font: 600 1.3rem "Playfair Display", Georgia, serif;
}

.article-type {
  margin: 0 0 8px;
  color: var(--green-500);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.article-card h3 {
  max-width: 440px;
  margin: 0 0 12px;
  font: 600 1.65rem/1.2 "Playfair Display", Georgia, serif;
}

.article-card div>p:not(.article-type) {
  margin: 0;
  color: #6f756b;
}

.article-card:hover div>p:not(.article-type),
.article-card:focus-within div>p:not(.article-type) {
  color: #c8d0c3;
}

.article-read {
  display: inline-flex;
  gap: 9px;
  margin-top: 22px;
  padding: 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
}

.article-card:hover .article-read,
.article-card:focus-within .article-read {
  color: #bed28f;
}

.query-section {
  background: #fff;
}

.query-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(45px, 8vw, 110px);
  align-items: start;
}

.query-copy {
  position: sticky;
  top: 135px;
}

.query-copy h2 {
  margin: 0;
  font: 600 clamp(2.3rem, 4vw, 3.9rem)/1.05 "Playfair Display", Georgia, serif;
}

.query-copy>p:last-child {
  max-width: 390px;
  color: var(--muted);
}

.query-form {
  padding: 35px;
  display: grid;
  gap: 18px;
  background: var(--cream);
  border: 1px solid #e5e8df;
  border-radius: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.query-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: .82rem;
  font-weight: 700;
}

.query-form input,
.query-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  border: 1px solid #ced5c6;
  border-radius: 6px;
  outline: none;
  resize: vertical;
}

.query-form input:focus,
.query-form textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(136, 164, 92, .15);
}

.query-form .button {
  width: fit-content;
  cursor: pointer;
}

.query-form .button:disabled {
  opacity: .65;
  cursor: wait;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-help {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: .74rem;
}

.form-help.sending {
  color: #806820;
}

.form-help.success {
  color: #2f713f;
}

.form-help.error {
  color: #a33b3b;
}

.site-footer {
  padding: 58px 0 19px;
  border-top: 1px solid #e1e6dc;
  background: linear-gradient(115deg, #f3f5ef, #fff 48%, #eef2e9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .75fr) minmax(210px, 1fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.footer-grid h3 {
  margin: 0 0 15px;
  color: var(--green-900);
  font-size: .95rem;
}

.footer-grid>div:not(.footer-brand)>a,
.footer-grid>div:not(.footer-brand)>p,
.footer-grid>div:not(.footer-brand)>button {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: #50574d;
  background: transparent;
  border: 0;
  font-size: .82rem;
  text-align: left;
  cursor: pointer;
}

.footer-grid a:hover {
  color: var(--green-700);
}

.footer-brand img {
  width: 190px;
  height: 72px;
  object-fit: cover;
  object-position: left center;
}

.footer-brand p {
  max-width: 275px;
  color: #535a50;
  font-size: .84rem;
}

.social-links {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.social-links a,
.social-links button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-700);
  border: 1px solid var(--green-700);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}

.social-links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-links .facebook-mark {
  margin-top: 1px;
  font: 800 19px/1 Arial, sans-serif;
}

.social-links a:hover,
.social-links button:hover,
.social-links a:focus-visible,
.social-links button:focus-visible {
  color: white;
  background: var(--green-900);
  border-color: var(--green-900);
  transform: translateY(-2px);
  outline: none;
}

.footer-bottom {
  margin-top: 37px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #dce2d7;
}

.copyright {
  margin: 0;
  color: #6f756c;
  font-size: .75rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal button {
  padding: 0;
  color: #5f675c;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.footer-legal button:hover {
  color: var(--green-700);
}

.cart-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.cart-backdrop {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  background: rgba(8, 10, 8, .63);
  border: 0;
  cursor: pointer;
  transition: opacity .28s;
}

.cart-drawer.open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: white;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .32s ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e8e1;
}

.cart-header .eyebrow {
  margin-bottom: 3px;
}

.cart-header h2 {
  margin: 0;
  font: 600 2rem "Playfair Display", Georgia, serif;
}

.cart-close {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #f1f3ed;
  border: 0;
  border-radius: 50%;
  font-size: 1.65rem;
  cursor: pointer;
}

.cart-content {
  padding: 25px 0;
  overflow-y: auto;
}

.empty-cart {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-cart>span {
  font-size: 3rem;
  color: var(--green-500);
}

.empty-cart h3 {
  margin: 10px 0 0;
  color: var(--ink);
}

.empty-cart p {
  margin: 4px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 17px;
  padding-bottom: 23px;
}

.cart-item img {
  width: 88px;
  height: 126px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .76rem;
}

.cart-item strong {
  color: var(--green-700);
}

.quantity-control {
  width: fit-content;
  margin-top: 13px;
  display: grid;
  grid-template-columns: 32px 35px 32px;
  align-items: center;
  border: 1px solid #d9ddd3;
  border-radius: 5px;
  overflow: hidden;
}

.quantity-control button {
  height: 31px;
  background: #f4f6f1;
  border: 0;
  cursor: pointer;
}

.quantity-control span {
  text-align: center;
  font-size: .83rem;
}

.cart-footer {
  padding-top: 19px;
  border-top: 1px solid #e5e8e1;
}

.cart-total {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
}

.cart-order {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  color: white;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.cart-order.whatsapp {
  background: #267c4c;
}

.cart-order.email {
  background: var(--green-900);
}

.cart-clear {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  color: #777;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 700;
  left: 50%;
  bottom: 25px;
  max-width: calc(100% - 30px);
  padding: 12px 19px;
  color: white;
  background: var(--green-900);
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .22s, transform .22s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-modal {
  position: fixed;
  z-index: 650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, visibility .2s;
}

.site-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 8, .68);
  border: 0;
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  padding: 35px;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .25);
  transform: translateY(14px);
  transition: transform .24s;
}

.site-modal.open .modal-card {
  transform: translateY(0);
}

.modal-card h2 {
  margin: 0;
  font: 600 clamp(1.9rem, 4vw, 2.8rem)/1.1 "Playfair Display", Georgia, serif;
}

.modal-intro {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f0f3ec;
  border: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  cursor: pointer;
}

.search-box {
  margin: 25px 0 18px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccd4c3;
  border-radius: 7px;
}

.search-box:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(136, 164, 92, .15);
}

.search-box input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  outline: 0;
}

.search-results {
  display: grid;
  gap: 9px;
}

.search-result {
  width: 100%;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #e4e8de;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.search-result small {
  color: var(--green-700);
}

.profile-form {
  margin-top: 24px;
  display: grid;
  gap: 15px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--green-900);
  font-size: .82rem;
  font-weight: 700;
}

.profile-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ccd4c3;
  border-radius: 6px;
  outline-color: var(--green-500);
}

.profile-form .button {
  width: fit-content;
  cursor: pointer;
}

.content-modal-card {
  width: min(720px, 100%);
}

.content-modal-body {
  margin-top: 22px;
  color: #50574d;
}

.content-modal-body p {
  margin: 0 0 15px;
}

.content-modal-body blockquote {
  margin: 24px 0;
  padding-left: 18px;
  color: var(--green-900);
  border-left: 3px solid var(--green-500);
  font: italic 1.15rem "Playfair Display", Georgia, serif;
}

.book-preview-modal-card {
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  padding: 26px 32px 22px;
  overflow-y: auto;
  color: #eeeae1;
  background: #111216;
}

.book-preview-modal-card .modal-close {
  color: #f3e8cc;
  background: #292a2d;
}

.book-preview-header {
  padding-right: 52px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.book-preview-header h2 {
  color: white;
}

.book-preview-header>p {
  margin: 0 0 3px;
  color: #aaa69d;
  font-size: .82rem;
}

.book-preview-viewer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 18px;
}

.book-preview-pages {
  min-width: 0;
  display: grid;
  place-items: center;
}

.preview-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #f5e5bd;
  background: #232428;
  border: 1px solid #45433c;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.preview-arrow:hover,
.preview-arrow:focus-visible {
  color: #17130a;
  background: var(--gold);
  border-color: var(--gold);
}

.preview-nav {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}

.preview-nav button {
  min-width: 52px;
  padding: 7px 12px;
  color: #c9c4ba;
  background: transparent;
  border: 1px solid #3e3e3c;
  border-radius: 99px;
  font-size: .72rem;
  cursor: pointer;
}

.preview-nav button:hover,
.preview-nav button.is-active {
  color: #17130a;
  background: var(--gold);
  border-color: var(--gold);
}

.preview-help {
  margin: 11px 0 0;
  color: #77756f;
  font-size: .72rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .nav-shell {
    grid-template-columns: 190px 1fr auto;
    gap: 18px;
  }

  .main-nav {
    gap: 17px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hope-layout {
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    height: auto;
  }

  .nav-shell {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 168px;
    height: 58px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    gap: 24px;
    padding: 0 0 12px;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 5px 0;
    white-space: nowrap;
  }

  .main-nav a::after {
    bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    width: var(--shell);
    margin: auto;
    padding: 58px 0 48px;
  }

  .hero-image {
    min-height: 470px;
  }

  .hope-layout {
    grid-template-columns: 1fr;
  }

  .book-stage {
    width: min(350px, 74vw);
  }

  .book-preview-modal-card {
    width: min(760px, 100%);
  }

  .writing-heading {
    display: block;
  }

  .writing-heading>p {
    margin-top: 14px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .query-layout {
    grid-template-columns: 1fr;
  }

  .query-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }

  .nav-actions> :first-child,
  .nav-actions> :nth-child(2) {
    display: none;
  }

  .main-nav {
    gap: 20px;
    font-size: .8rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-image {
    min-height: 350px;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    min-height: 225px;
    padding-inline: 13px;
  }

  .book-preview-modal {
    padding: 10px;
  }

  .book-preview-modal-card {
    max-height: calc(100vh - 20px);
    padding: 22px 14px 16px;
    overflow-y: auto;
  }

  .book-preview-header {
    display: block;
    padding-right: 45px;
  }

  .book-preview-header>p {
    margin-top: 5px;
  }

  .book-preview-viewer {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .preview-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .preview-page {
    height: min(60vh, 520px);
    min-height: 350px;
  }

  .text-page {
    padding: 28px 25px;
  }

  .text-page p {
    font-size: .96rem;
  }

  .preview-nav {
    justify-content: start;
  }

  .article-card {
    grid-template-columns: 32px 1fr;
    padding: 25px 21px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .query-form {
    padding: 24px 19px;
  }

  .cart-drawer {
    grid-template-columns: 1fr;
  }

  .cart-backdrop {
    grid-column: 1;
  }

  .cart-panel {
    grid-column: 1;
    width: min(100%, 420px);
    justify-self: end;
    padding: 23px 19px;
  }

  .modal-card {
    padding: 30px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}