:root {
  --ink: #14283a;
  --paper: #f4eee3;
  --white: #ffffff;
  --gold: #d3a55b;
  --gold-dark: #9e7439;
  --rust: #a95435;
  --forest: #1f4851;
  --muted: #6b7280;
  --line: rgba(18, 24, 38, 0.12);
  --shadow: 0 20px 50px rgba(18, 24, 38, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
  margin-top: 0;
}
h1 { font-size: clamp(3rem, 7vw, 5.8rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -0.035em; }
h3 { font-size: 1.45rem; }
p { margin-top: 0; }
.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}
.section { padding: 96px 0; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow.light { color: #f4cf77; }
.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;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 238, 227, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 40, 58, .18);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.18rem; }
.brand small { margin-top: 3px; font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase; }
.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--rust); }
.cart-button, .filter, .nav-toggle, .icon-button {
  border: 0;
  background: transparent;
  color: inherit;
}
.cart-button {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cart-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
}
.nav-toggle { display: none; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(105,163,173,.25), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(211,165,91,.22), transparent 24%),
    linear-gradient(135deg, #f4eee3 0%, #e5d8c5 100%);
  padding: 104px 0 94px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}
.hero-copy { max-width: 730px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-lead {
  max-width: 680px;
  font-size: 1.22rem;
  color: #424a59;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(143,61,46,.22);
}
.button-primary:hover { background: #783226; }
.button-secondary { border: 1px solid var(--ink); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); width: 100%; }
.button-light { background: var(--white); color: var(--ink); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-full { width: 100%; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  color: #525967;
  font-size: 0.92rem;
  font-weight: 700;
}
.hero-trust span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--rust);
}
.hero-art {
  position: relative;
  min-height: 520px;
}
.hero-book {
  position: absolute;
  width: 275px;
  border-radius: 7px;
  box-shadow: 0 30px 70px rgba(18,24,38,.28);
}
.hero-book-one { right: 120px; top: 25px; transform: rotate(-5deg); z-index: 2; }
.hero-book-two { right: 8px; top: 112px; transform: rotate(7deg); z-index: 1; }
.hero-seal {
  position: absolute;
  z-index: 4;
  left: 14px;
  bottom: 40px;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 16px 36px rgba(18,24,38,.18);
}
.hero-seal strong { font-family: "Playfair Display"; font-size: 1.8rem; }
.hero-seal span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.announcement { background: var(--ink); color: var(--white); }
.announcement-inner {
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.94rem;
}
.announcement strong { color: #f3cc70; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 44px;
}
.section-heading.compact { margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}
.filter.is-active, .filter:hover { background: var(--ink); color: var(--white); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.book-card {
  background: rgba(255,255,255,.67);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18,24,38,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card[hidden] { display: none; }
.book-cover-link {
  background: #e7dece;
  padding: 28px;
  display: block;
}
.book-cover {
  width: 72%;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 34px rgba(18,24,38,.22);
}
.book-card-body { padding: 26px; }
.book-category {
  margin-bottom: 8px;
  color: var(--rust);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.book-card h3 { margin-bottom: 12px; }
.book-description { color: #5a6270; min-height: 78px; }
.book-meta {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin: 20px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .93rem;
}

.feature-band {
  background:
    linear-gradient(rgba(18,24,38,.9), rgba(18,24,38,.9)),
    radial-gradient(circle at top right, rgba(213,168,63,.4), transparent 40%);
  color: var(--white);
  padding: 92px 0;
}
.feature-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.feature-copy p:not(.eyebrow) { color: #d8dce3; font-size: 1.08rem; margin-bottom: 26px; }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 24px;
}
.mini-card h3 { margin: 12px 0 8px; }
.mini-card p { color: #d8dce3; margin: 0; }
.mini-icon { color: var(--gold); font-weight: 800; font-size: .78rem; letter-spacing: .1em; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.author-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.author-monogram {
  width: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: "Playfair Display";
  font-size: 2.2rem;
}
.author-card h2 { font-size: 2.5rem; margin-bottom: 15px; }
.author-card p:last-child { color: #5f6774; margin: 0; }
.about-copy h3 { font-size: 2rem; }
.about-copy p { color: #525b69; font-size: 1.05rem; }
blockquote {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
  font-family: "Playfair Display";
  font-size: 1.45rem;
  line-height: 1.45;
}

.services-section { background: #efe7da; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid article {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.services-grid article p { color: #5a6270; margin-bottom: 0; }

.newsletter { background: var(--forest); color: var(--white); padding: 58px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.newsletter h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 0; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input {
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--white);
  padding: 0 18px;
}
.newsletter-form input::placeholder { color: #d5ddd8; }
.form-message { grid-column: 1 / -1; min-height: 1.4em; margin: 6px 0 0; font-size: .88rem; color: #e9d38f; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 66px; }
.contact-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: .9rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  background: #fbfbfc;
  padding: 12px 13px;
  color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.dark-message { color: var(--rust); }

.site-footer { background: #0e131f; color: var(--white); padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
.footer-brand { margin-bottom: 18px; }
.site-footer h3 { font-family: "DM Sans"; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: #f3cc70; }
.site-footer a:not(.brand) { display: block; color: #cbd1dc; text-decoration: none; margin: 8px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #aab2c1;
  font-size: .85rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 300;
  width: min(430px, 100%);
  height: 100vh;
  background: var(--white);
  transform: translateX(101%);
  transition: transform .28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -30px 0 80px rgba(18,24,38,.22);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-header, .cart-footer { padding: 24px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0; font-size: 2rem; }
.icon-button { font-size: 2rem; line-height: 1; }
.cart-items { padding: 10px 24px; overflow: auto; }
.cart-empty { color: var(--muted); padding-top: 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item h3 { font-family: "DM Sans"; font-size: 1rem; margin-bottom: 4px; }
.cart-item p { color: var(--muted); font-size: .88rem; margin: 0; }
.cart-item button { border: 0; background: transparent; color: var(--rust); font-weight: 800; }
.cart-footer { border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 16px; }
.cart-note { font-size: .76rem; color: var(--muted); margin: 12px 0 0; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,10,17,.48);
  z-index: 250;
}

@media (max-width: 980px) {
  .hero-grid, .feature-grid, .about-grid, .newsletter-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 480px; max-width: 620px; margin-inline: auto; width: 100%; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-wrap { grid-template-columns: auto auto auto; }
  .nav-toggle {
    display: grid;
    gap: 4px;
    width: 38px;
    justify-self: end;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: center;
  }
  .site-nav.is-open { display: flex; }
  .cart-button { justify-self: end; }
  .hero { padding-top: 74px; }
  .hero-art { min-height: 390px; }
  .hero-book { width: 210px; }
  .hero-book-one { right: 90px; }
  .hero-book-two { right: 8px; }
  .hero-seal { width: 108px; left: 0; bottom: 20px; }
  .section-heading { align-items: start; flex-direction: column; }
  .book-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-monogram { margin-inline: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .announcement-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; }
}

@media (max-width: 500px) {
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .62rem; }
  .brand-mark { width: 32px; height: 32px; }
  .cart-button { font-size: 0; }
  .cart-count { font-size: .76rem; }
  .hero-art { min-height: 340px; }
  .hero-book { width: 170px; }
  .hero-book-one { right: 74px; }
  .hero-seal { width: 92px; }
}
