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

:root {
  --ink: #18201b;
  --muted: #667069;
  --paper: #f7f5ef;
  --cream: #ebe6d8;
  --accent: #b9a35a;
  --white: #fffdf8;
  --line: #ddd8ca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-header {
  height: 78px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247,245,239,.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}
.logo span { font-weight: 400; }
nav { display: flex; gap: 30px; color: #4f5751; font-size: 14px; }
nav a:hover { color: var(--ink); }
.nav-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
}
.nav-button, .primary { background: var(--ink); color: var(--white); }
.hero {
  min-height: 650px;
  padding: 80px 9vw;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  overflow: hidden;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 700;
  color: #8a7b48;
  margin: 0 0 14px;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 {
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: -.045em;
  margin-bottom: 25px;
}
h1 em { font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.hero-text { max-width: 570px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.secondary { border: 1px solid var(--ink); }
.hero-art { min-height: 460px; position: relative; display: grid; place-items: center; }
.sun {
  width: 310px; height: 310px; border-radius: 50%;
  background: var(--cream); position: absolute;
}
.book {
  width: 185px; height: 265px; position: absolute;
  display: flex; flex-direction: column; justify-content: center;
  padding: 22px; box-shadow: 18px 22px 35px rgba(24,32,27,.17);
  font-weight: 700; letter-spacing: .12em; font-size: 18px;
}
.book-back { background: #d4c79b; transform: rotate(12deg) translate(72px, -5px); color: #5d5230; }
.book-front { background: var(--ink); color: var(--white); transform: rotate(-7deg) translate(-20px, 10px); }
.book-front small { font-size: 10px; letter-spacing: .25em; margin-top: 8px; }
.section { padding: 105px 9vw; }
.intro { text-align: center; max-width: 900px; margin: auto; }
.intro h2 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.04em; }
.intro h2 span { font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.intro > p:last-child { color: var(--muted); max-width: 650px; margin: auto; }
.books { background: #efede5; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.section-heading h2, .contact h2 { font-size: 48px; letter-spacing: -.04em; margin: 0; }
.section-heading > p { max-width: 360px; color: var(--muted); margin: 0; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.book-card { background: var(--white); border: 1px solid var(--line); }
.cover { height: 330px; padding: 32px; display: flex; flex-direction: column; justify-content: end; }
.cover span { font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.cover strong { font-size: 35px; line-height: .98; letter-spacing: -.04em; margin: 8px 0 15px; }
.cover small { font-size: 11px; max-width: 180px; }
.cover-one { background: #d8cfad; color: #353722; }
.cover-two { background: #cfd7cc; color: #253329; }
.cover-three { background: #d8c6b8; color: #3b2921; }
.card-content { padding: 25px; }
.category { font-size: 10px; font-weight: 700; letter-spacing: .17em; color: #8a7b48; }
.card-content h3 { font-size: 22px; margin-bottom: 8px; }
.card-content > p:not(.category) { color: var(--muted); font-size: 14px; min-height: 70px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.buy-button { border: 0; background: var(--ink); color: white; padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.mission { padding: 100px 14vw; background: var(--ink); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission .eyebrow { color: #d4c37c; }
.mission h2 { font-size: clamp(38px, 4vw, 58px); letter-spacing: -.04em; }
.mission > p { color: #c5cbc6; font-size: 18px; }
.contact { text-align: center; }
.contact-box { max-width: 650px; margin: auto; }
.contact h2 { margin-bottom: 15px; }
.contact p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
footer { padding: 35px 6vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 120px);
  background: var(--ink); color: white; padding: 14px 20px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s ease;
  max-width: 90%; text-align: center; font-size: 13px; z-index: 20;
}
.toast.show { transform: translate(-50%, 0); }
@media (max-width: 800px) {
  nav { display: none; }
  .nav-button { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-art { min-height: 350px; }
  .section-heading, .mission { grid-template-columns: 1fr; display: grid; }
  .book-grid { grid-template-columns: 1fr; }
  .mission { gap: 25px; padding: 75px 9vw; }
  footer { flex-direction: column; gap: 10px; }
}
