/* Montavellum Publishing Inc. — static site
   Palette: ink green + antique bronze + ivory */

:root {
  --forest: #16382c;
  --forest-2: #23503f;
  --forest-deep: #0e261e;
  --ink: #1f2b25;
  --muted: #64705f;
  --bronze: #96682f;
  --bronze-dark: #77501f;
  --bronze-light: #c39a5c;
  --paper: #fdfaf3;
  --ivory: #f5efe1;
  --cream: #efe7d6;
  --sand: #e2d7c0;
  --line: rgba(22, 56, 44, 0.14);
  --shadow: 0 22px 55px rgba(20, 40, 32, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 {
  margin: 0 0 .7em;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}
h1 { font-size: clamp(2.9rem, 5.4vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.15rem; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.centered { text-align: center; }
.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: fixed;
  left: 18px;
  top: -100px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 18px; }

.eyebrow {
  margin-bottom: .65rem;
  color: var(--bronze-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-heading { max-width: 760px; margin: 0 auto 45px; }
.section-heading h2::after,
.rule-heading::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 18px;
  background: var(--bronze);
}
.centered h2::after { margin-inline: auto; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(22, 56, 44, .08);
  background: rgba(253, 250, 243, .93);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 30px;
}
.brand { flex: 0 0 auto; width: 205px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.primary-nav a {
  position: relative;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--bronze);
  transition: right .22s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav a[aria-current="page"] { color: var(--bronze-dark); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 27px; height: 2px; margin: 5px 0; background: var(--forest); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(150, 104, 47, .32); outline-offset: 3px; }
.button-primary { background: var(--bronze); color: #fff; box-shadow: 0 9px 24px rgba(119, 80, 31, .2); }
.button-primary:hover { background: var(--bronze-dark); }
.button-secondary { border-color: var(--bronze); background: rgba(255, 255, 255, .55); color: var(--forest); }
.button-secondary:hover { background: #fff; }
.button-light { background: #fff; color: var(--forest); }
.button-light:hover { background: var(--ivory); }
.text-button { border: 0; background: transparent; color: var(--bronze-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.inline-link { color: var(--bronze-dark); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background:
    radial-gradient(circle at 18% 22%, rgba(196, 209, 183, .34), transparent 30%),
    linear-gradient(90deg, #fdfbf5 0%, #f4efe1 52%, #e8e0cc 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 720px; align-items: center; gap: 42px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; padding: 72px 0; }
.hero-copy h1 { max-width: 720px; }
.hero-lede { max-width: 625px; color: #3b4740; font-size: 1.15rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; color: #5b665a; font-size: .85rem; }
.hero-proof span::before { content: "◆"; margin-right: 8px; color: var(--bronze); font-size: .55rem; vertical-align: .12em; }

.hero-art { position: relative; align-self: stretch; min-height: 660px; }
.sun-glow { position: absolute; width: 420px; height: 420px; top: 62px; right: 34px; border-radius: 50%; background: rgba(255, 253, 246, .58); filter: blur(4px); }
.hero-books { position: absolute; left: 0; right: 0; bottom: 0; height: 620px; }
.hero-featured-book {
  position: absolute;
  z-index: 5;
  width: 238px;
  left: 33px;
  bottom: 142px;
  transform: perspective(900px) rotateY(-3deg);
  box-shadow: 18px 22px 40px rgba(18, 32, 26, .26);
}
.hero-featured-book::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 3px;
  bottom: 3px;
  width: 12px;
  background: #0a1a14;
  transform: skewY(-18deg);
  transform-origin: right;
}
.hero-featured-book img { width: 100%; border-radius: 2px; }
.upright-spines {
  position: absolute;
  display: flex;
  align-items: flex-end;
  z-index: 3;
  right: 22px;
  bottom: 82px;
  height: 355px;
  filter: drop-shadow(10px 14px 22px rgba(0, 0, 0, .18));
}
.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 59px;
  height: 100%;
  padding: 62px 8px 20px;
  border: 1px solid rgba(0, 0, 0, .17);
  font-family: var(--serif);
  text-align: center;
  box-shadow: inset 8px 0 12px rgba(255, 255, 255, .12), inset -8px 0 13px rgba(0, 0, 0, .08);
}
.spine span { font-size: .76rem; line-height: 1.25; }
.spine b { color: var(--bronze-light); font-size: 1.35rem; font-weight: 500; }
.spine-cream { height: 300px; background: #e7dcc3; color: #4d4636; }
.spine-sage { height: 330px; background: #5c6a52; color: #f1ead8; }
.spine-bronze { height: 316px; background: #7d5a2c; color: #f4e3c1; }
.spine-forest { height: 348px; background: #1c4032; color: #e9d5a8; }
.book-stack { position: absolute; z-index: 7; left: 0; bottom: 66px; width: 300px; }
.book-stack > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 39px;
  margin-top: -1px;
  padding: 0 18px;
  border: 1px solid #08160f;
  background: linear-gradient(90deg, #17332a, #0b1d17);
  color: #dcc189;
  box-shadow: 7px 10px 20px rgba(0, 0, 0, .22);
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.book-stack > div:nth-child(2) { transform: translateX(6px); background: linear-gradient(90deg, #33291c, #171812); }
.book-stack > div:nth-child(3) { transform: translateX(-5px); background: linear-gradient(90deg, #141a17, #0c1110); }
.book-stack small { font-size: .52rem; }
.vase {
  position: absolute;
  right: -12px;
  bottom: 66px;
  z-index: 1;
  width: 90px;
  height: 170px;
  border-radius: 44% 44% 28% 28% / 30% 30% 18% 18%;
  background: linear-gradient(90deg, #b0a486, #d3c8a9 45%, #978d70);
  box-shadow: 10px 15px 28px rgba(52, 60, 30, .16);
}
.vase::after { content: ""; position: absolute; width: 45px; height: 18px; left: 22px; top: -10px; border-radius: 50%; background: #948a6c; }
.stem { position: absolute; left: 44px; bottom: 155px; width: 2px; height: 195px; background: #8a7a4f; transform-origin: bottom; }
.stem::before, .stem::after { content: ""; position: absolute; width: 11px; height: 6px; border-radius: 50%; background: #b09a68; }
.stem::before { top: 33%; left: -9px; transform: rotate(25deg); }
.stem::after { top: 56%; right: -9px; transform: rotate(-25deg); }
.stem-a { transform: rotate(-14deg); }
.stem-b { transform: rotate(8deg); height: 225px; }
.stem-c { transform: rotate(20deg); height: 176px; }
.stem-d { transform: rotate(-27deg); height: 158px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 84px 0 60px;
  background: linear-gradient(135deg, #fdfbf5, #ece4d2);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { max-width: 940px; }
.page-hero p { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 1.1rem; }
.breadcrumb { margin-bottom: 14px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- books ---------- */
.books-section { background: #fdfbf6; }
.book-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 34px; }
.book-tools input, .book-tools select {
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  border-radius: 3px;
}
.book-tools input { width: min(340px, 70vw); }
.book-count { margin: 0 0 26px; color: var(--muted); font-size: .9rem; text-align: center; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 14px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.book-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--ivory);
  cursor: pointer;
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.book-card:hover .book-card-cover img { transform: scale(1.025); }
.book-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 4px 0; }
.book-card h3 { margin-bottom: .25rem; font-size: 1.26rem; }
.book-author { color: #3d483f; margin-bottom: .35rem; font-family: var(--serif); }
.book-genre { color: var(--bronze-dark); font-family: var(--serif); font-size: .94rem; font-style: italic; }
.book-card .text-button { align-self: flex-start; margin-top: auto; padding: 8px 0 0; }
.book-card-link { text-decoration: none; }
.book-card-link:hover { color: var(--bronze-dark); }
.empty-state { grid-column: 1/-1; padding: 50px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }

/* ---------- book detail page ---------- */
.book-detail-section { padding: 54px 0 90px; background: linear-gradient(180deg, #f4eee0, var(--paper) 380px); }
.book-detail-grid { display: grid; grid-template-columns: minmax(240px, 350px) 1fr; gap: 64px; align-items: start; margin-top: 26px; }
.book-detail-cover { position: sticky; top: 128px; }
.book-detail-cover img { width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cover-actions { display: grid; gap: 10px; margin-top: 24px; }
.book-detail-body h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); margin-bottom: .3em; }
.book-detail-subtitle { margin: 0 0 .6rem; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.book-detail-author { margin-bottom: 26px; color: var(--forest-2); font-family: var(--serif); font-size: 1.2rem; }
.book-detail-lede { max-width: 640px; margin-bottom: 26px; padding-left: 18px; border-left: 3px solid var(--bronze); color: #3d483f; font-size: 1.12rem; }
.book-detail-body p { max-width: 640px; color: #414c45; }
.book-detail-h2 { margin-top: 46px; font-size: 1.7rem; }

.praise { display: grid; gap: 18px; margin: 34px 0; }
.praise blockquote { margin: 0; padding: 22px 24px; border: 1px solid var(--line); background: var(--ivory); }
.praise blockquote p { margin: 0 0 .6rem; color: var(--forest); font-family: var(--serif); font-size: 1.12rem; font-style: italic; }
.praise cite { color: var(--bronze-dark); font-size: .82rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.spec-list dd { margin: 0; color: var(--ink); }

.author-note { margin-top: 10px; }

/* ---------- about ---------- */
.about-section { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about-image { overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); }
.about-image img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.about-copy p:not(.eyebrow) { color: #3d483f; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; color: var(--forest); font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }

.timeline { display: grid; gap: 0; max-width: 820px; margin: 0 auto; border-left: 2px solid var(--sand); }
.timeline article { position: relative; padding: 0 0 34px 32px; }
.timeline article::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bronze);
}
.timeline h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.timeline p { color: var(--muted); margin: 0; }
.timeline .year { color: var(--bronze-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- values ---------- */
.values-section { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-card { position: relative; padding: 36px 28px 40px; text-align: center; }
.value-card + .value-card { border-left: 1px solid var(--line); }
.value-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border: 1px solid rgba(150, 104, 47, .32);
  border-radius: 50%;
  background: #faf5ea;
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-size: 1.45rem;
}
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--muted); font-size: .94rem; }

/* ---------- contact / faq ---------- */
.contact-faq-section { background: linear-gradient(90deg, #fdfbf6, #f2ece0); }
.contact-faq-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 68px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 30px 0 34px; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.contact-list li > span { color: var(--bronze-dark); font-size: 1.2rem; }
.contact-list a { text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  list-style: none;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.08rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--bronze-dark); font-family: var(--sans); font-size: 1.5rem; font-weight: 300; }
.accordion details[open] summary::after { content: "–"; }
.accordion details p { padding-right: 30px; color: var(--muted); }

/* ---------- forms ---------- */
.site-form { display: grid; gap: 17px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
.form-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
/* block, not grid: the label text and its "*" must stay on one line */
.site-form label { display: block; color: #35403a; font-size: .88rem; font-weight: 700; }
.site-form label > span { color: #9d3d2e; }
.site-form label > input, .site-form label > select, .site-form label > textarea { margin-top: 6px; }
.site-form input, .site-form select, .site-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(22, 56, 44, .22);
  border-radius: 3px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.site-form input, .site-form select { min-height: 46px; }
.site-form textarea { resize: vertical; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(150, 104, 47, .14); }
.site-form input[aria-invalid="true"], .site-form textarea[aria-invalid="true"], .site-form select[aria-invalid="true"] { border-color: #a8342f; }
.checkbox-label { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px !important; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.checkbox-label input { width: 17px; min-height: auto; height: 17px; margin: 3px 0 0; }
.checkbox-label span { color: var(--ink) !important; }
.form-status { min-height: 1.4em; margin: 0; color: var(--forest); font-weight: 700; }
.form-status.error { color: #a8342f; }
.form-status.success { color: #2b6a45; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-note { margin: 0; color: var(--muted); font-size: .85rem; }
.form-section { display: grid; gap: 16px; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.form-section h3 { margin: 0; }

/* ---------- bands ---------- */
.cta-band { padding: 68px 0; background: var(--forest); color: #fff; }
.cta-band h2, .cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow { opacity: .72; }
.cta-band p { color: rgba(255, 255, 255, .76); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 38px; }
.cta-inner > div { max-width: 760px; }
.cta-inner h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }

.newsletter-section { padding: 52px 0; background: var(--cream); border-bottom: 1px solid rgba(22, 56, 44, .12); }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.newsletter-inner h2 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.5rem); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { min-width: 0; border: 1px solid rgba(22, 56, 44, .18); border-radius: 3px; padding: 0 15px; background: #fff; min-height: 52px; }
.newsletter-form .form-status { grid-column: 1/-1; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255, 255, 255, .78); }
.footer-main { display: grid; grid-template-columns: 280px 1fr auto; gap: 48px; align-items: center; padding: 46px 0 34px; }
.footer-brand img { width: 230px; opacity: .92; }
.footer-brand p { margin: 10px 0 0; font-size: .87rem; color: rgba(255, 255, 255, .6); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { display: grid; gap: 8px; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer-bottom a { text-decoration: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 3000;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #8b2e2a; }

/* ---------- long-form / legal ---------- */
.prose { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.prose h2 { margin-top: 2.2rem; font-size: 2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: #414c45; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5rem; }
.note { padding: 18px 20px; border-left: 3px solid var(--bronze); background: var(--ivory); }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.policy-card { padding: 22px; border: 1px solid var(--line); background: #fff; }
.policy-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.policy-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.side-panel { position: sticky; top: 130px; padding: 28px; background: var(--ivory); border: 1px solid var(--line); }
.side-panel h3 { margin-top: 26px; font-size: 1.1rem; }
.side-panel ul { margin: 0; padding-left: 18px; color: var(--muted); }
.side-panel li { margin-bottom: .5rem; }

.error-page { display: grid; place-items: center; min-height: 70vh; text-align: center; padding: 50px 20px; }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 15vw, 11rem); color: var(--sand); line-height: 1; }
.error-logo { width: 260px; margin: 0 auto 30px; }

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .brand { width: 195px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 45px 0 0; text-align: center; }
  .hero-copy h1, .hero-lede { margin-inline: auto; }
  .button-row, .hero-proof { justify-content: center; }
  .hero-art { min-height: 590px; width: min(650px, 100%); margin-inline: auto; }
  .hero-books { height: 580px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .value-card:nth-child(4) { border-top: 1px solid var(--line); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .contact-faq-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-contact { text-align: center; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 78px; }
  .brand { width: 184px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    display: none;
    left: 14px;
    right: 14px;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-grid { min-height: auto; }
  .hero-art { min-height: 500px; transform: scale(.86); transform-origin: top center; margin-bottom: -70px; }
  .hero-featured-book { width: 205px; left: 5px; }
  .upright-spines { right: -16px; transform: scale(.9); transform-origin: bottom right; }
  .book-stack { width: 260px; }
  .vase { right: -28px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { order: -1; }
  .book-tools .search-field { width: 100%; }
  .book-tools input { width: 100%; }
  .form-grid.two-columns, .form-grid.three-columns { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .newsletter-form { grid-template-columns: 1fr; }
  .book-detail-grid { grid-template-columns: 1fr; gap: 38px; }
  .book-detail-cover { position: static; max-width: 300px; margin-inline: auto; }
  .spec-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .split-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.55rem; }
  .hero-proof { display: none; }
  /* The book arrangement is composed at a fixed 620px width, so shrink the whole
     thing to fit rather than letting the pieces collide or run off the edge. */
  .hero-art {
    width: 620px;
    min-height: 370px;
    /* the fixed-width box is wider than the column, so centre it on the viewport
       by hand — `margin: auto` cannot centre an over-wide block */
    margin: 0 0 0 calc(50% - 310px);
    transform: scale(.70);
    transform-origin: bottom center;
  }
  .book-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card + .value-card { border-left: 0; border-top: 1px solid var(--line); }
  .stats-band { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .contact-faq-grid { gap: 48px; }
  .footer-links { flex-direction: column; }
}

@media (max-width: 430px) {
  .hero-art { min-height: 300px; transform: scale(.56); }
}
