:root {
  --espresso: #262019;
  --parchment: #F1E8D8;
  --parchment-light: #F7F1E5;
  --smoke: #7A7266;
  --rule: rgba(38, 32, 25, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--parchment);
  color: var(--espresso);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wordmark-text { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 6vw; border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--espresso); }
.logo-img { height: 48px; width: auto; display: block; mix-blend-mode: multiply; }
.logo-footer { height: 60px; display: inline-block; }
.wordmark-text { font-size: 1.45rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.site-nav a {
  color: var(--espresso); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase; padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--espresso); }

.hero { text-align: center; padding: 5.5rem 6vw 4.5rem; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--smoke);
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 500; margin-bottom: 1.25rem; }
.hero-sub { max-width: 42rem; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.35rem;
  color: var(--smoke); margin-bottom: 2.25rem;
}
.button {
  display: inline-block; background: var(--espresso); color: var(--parchment);
  text-decoration: none; padding: 0.85rem 2.2rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 0.8rem; font-family: 'Lora', Georgia, serif;
}
.button:hover { background: #3a3228; }

.band { background: var(--espresso); color: var(--parchment); padding: 3.75rem 6vw; text-align: center; }
.band-inner { max-width: 46rem; margin: 0 auto; }
.band h2 { font-size: 2rem; font-weight: 500; margin-bottom: 1rem; }
.band p { color: #E4D9C4; }
.band-note {
  margin-top: 1.25rem; font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1.3rem; color: var(--parchment) !important;
}

.section-title { text-align: center; font-size: 2.1rem; font-weight: 500; margin-bottom: 2.5rem; }
.featured { padding: 4.5rem 6vw 3.5rem; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; max-width: 64rem; margin: 0 auto; }
.book-card { text-align: center; }
.book-card h3 { font-size: 1.35rem; margin: 1.1rem 0 0.5rem; }
.book-card p { font-size: 0.95rem; color: #4a4238; }

.cover {
  aspect-ratio: 345 / 350; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #3a3228, var(--espresso));
  border: 1px solid var(--rule); box-shadow: 4px 5px 0 rgba(38, 32, 25, 0.15);
  padding: 1.25rem; max-width: 260px; margin: 0 auto;
}
.cover span {
  font-family: 'Cormorant Garamond', Georgia, serif; color: var(--parchment);
  font-size: 1.4rem; line-height: 1.3; text-align: center; font-weight: 500;
  border: 1px solid rgba(241, 232, 216, 0.45); padding: 1.4rem 1rem; width: 100%;
}
.cover-2, .cover-5 { background: linear-gradient(160deg, #57503f, #3a3228); }
.cover-3, .cover-6 { background: linear-gradient(160deg, var(--smoke), #57503f); }
.cover-4, .cover-7 { background: linear-gradient(160deg, #4a4238, #262019); }
.cover-8 { background: linear-gradient(160deg, #665d4d, #3a3228); }

.cover-real { padding: 0; overflow: hidden; background: #fff; }
.cover-real img { width: 100%; height: 100%; object-fit: cover; display: block; }

.center { text-align: center; margin-top: 2.25rem; }
.link-more { color: var(--espresso); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid var(--espresso); padding-bottom: 0.2rem; }

.pillars { padding: 3.5rem 6vw 5rem; background: var(--parchment-light); border-top: 1px solid var(--rule); }
.pillar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; max-width: 64rem; margin: 0 auto; text-align: center; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.95rem; color: #4a4238; }

.page { padding: 4rem 6vw 5rem; max-width: 72rem; margin: 0 auto; }
.page-narrow { max-width: 46rem; }
.page-title { text-align: center; font-size: clamp(2.3rem, 5vw, 3.2rem); font-weight: 500; margin-bottom: 1.25rem; }
.page-intro { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; color: #4a4238; }
.prose p { margin-bottom: 1.4rem; font-size: 1.05rem; }

.book-list { display: flex; flex-direction: column; gap: 3.5rem; }
.book-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start;
  border-top: 1px solid var(--rule); padding-top: 3rem;
}
.book-row .cover { max-width: 200px; }
.book-row .cover span { font-size: 1.1rem; padding: 1rem 0.7rem; }
.book-info h2 { font-size: 1.7rem; margin-bottom: 0.25rem; }
.book-kind { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); margin-bottom: 0.9rem; }
.book-info > p:nth-of-type(2) { margin-bottom: 1.1rem; }
.formats { font-size: 0.85rem; letter-spacing: 0.08em; color: #4a4238; }
.availability { font-size: 0.85rem; font-style: italic; color: var(--smoke); margin-top: 0.3rem; }

.site-footer { border-top: 1px solid var(--rule); text-align: center; padding: 3rem 6vw; }
.site-footer p { font-size: 0.9rem; }
.footer-contact { margin-bottom: 0.35rem; }
.footer-contact a { color: var(--espresso); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 0.1rem; }
.footer-contact a:hover { border-bottom-color: var(--espresso); }
.site-footer .logo-footer { margin: 0 auto 0.5rem; }
.footer-tagline { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; color: var(--smoke); margin-top: 0.4rem; }

@media (max-width: 640px) {
  .book-row { grid-template-columns: 1fr; }
  .book-row .cover { max-width: 220px; }
  .site-header { justify-content: center; }
}

/* Our Story page */
.story-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  text-align: center;
  color: var(--smoke);
  max-width: 34rem;
  margin: 0 auto 2.75rem;
}
.story-give {
  background: var(--espresso);
  color: var(--parchment);
  text-align: center;
  padding: 2.5rem 2.25rem 1.4rem;
  margin: 1.25rem 0 3rem;
  box-shadow: 4px 5px 0 rgba(38, 32, 25, 0.15);
}
.story-give .eyebrow { color: #CFC3AC; margin-bottom: 0.9rem; }
.story-give h2 { font-size: 1.7rem; font-weight: 500; line-height: 1.3; margin-bottom: 1.25rem; }
.story-give p { color: #E4D9C4; margin-bottom: 1.1rem; }
.story-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0.5rem;
  margin-bottom: 2.25rem;
}
.story-end { text-align: center; }
.prose .story-closing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
}
.story-cta { text-align: center; margin-top: 1.5rem; }

@media (max-width: 640px) {
  .story-lead { font-size: 1.35rem; }
  .story-give { padding: 2rem 1.35rem 1rem; }
  .story-give h2 { font-size: 1.45rem; }
  .story-quote { font-size: 1.35rem; }
}

/* The Bookend newsletter */
.center-eyebrow { text-align: center; }
.bookend-section { padding: 4rem 6vw; background: var(--parchment-light); border-top: 1px solid var(--rule); }
.bookend-inner { max-width: 34rem; margin: 0 auto; text-align: center; }
.bookend-inner h2 { font-size: 2.1rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.9rem; }
.bookend-lede { color: #4a4238; margin-bottom: 1.75rem; }
.bookend-fine { font-size: 0.85rem; color: var(--smoke); margin-top: 1rem; }
.bookend-card { background: var(--parchment-light); border: 1px solid var(--rule); padding: 1.75rem 2rem; margin: 0 0 2.25rem; }
.bookend-card h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.75rem; }
.bookend-list { list-style: none; }
.bookend-list li { position: relative; padding: 0.5rem 0 0.5rem 1.75rem; border-bottom: 1px solid var(--rule); }
.bookend-list li:last-child { border-bottom: 0; }
.bookend-list li::before { content: "\2766"; position: absolute; left: 0; top: 0.5rem; color: var(--smoke); }
.bookend-form-wrap { text-align: center; }

.bk-form { text-align: left; }
.bk-field { margin-bottom: 1.1rem; border: 0; }
.bk-field label, .bk-field legend, .bk-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; }
.bk-field input[type="text"], .bk-field input[type="email"], .bk-field input[type="tel"], .bk-field input[type="url"],
.bk-field input[type="password"], .bk-field input[type="number"], .bk-field input[type="date"], .bk-field input[type="time"],
.bk-field input[type="datetime-local"], .bk-field textarea, .bk-field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--espresso); background: #fffdf8;
  border: 1px solid rgba(38, 32, 25, 0.35); border-radius: 0; padding: 0.75rem 0.9rem;
}
.bk-field textarea { min-height: 7rem; }
.bk-field input:focus, .bk-field textarea:focus, .bk-field select:focus { outline: 2px solid var(--espresso); outline-offset: 1px; }
.bk-field [aria-invalid="true"] { border-color: #8a2c1a; }
.bk-field .bk-check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; font-size: 0.95rem; line-height: 1.55; cursor: pointer; }
.bk-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--espresso); }
.bk-req { color: var(--smoke); }
.bk-help { font-size: 0.85rem; color: var(--smoke); margin-top: 0.3rem; }
.bk-error, .bk-form-error { color: #8a2c1a; font-size: 0.85rem; margin-top: 0.3rem; }
.bk-error:empty, .bk-form-error:empty { display: none; }
.bk-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.bk-submit { width: 100%; border: 0; cursor: pointer; padding: 1rem 2rem; }
.bk-submit[disabled] { opacity: 0.6; cursor: progress; }
.bk-back { background: none; border: 0; font: inherit; color: var(--espresso); text-decoration: underline; cursor: pointer; }
.bk-step { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--smoke); margin-bottom: 1rem; }
.bk-loading, .bk-closed { color: var(--smoke); font-style: italic; }
.bk-success { text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-style: italic; padding: 1rem 0; }
.bk-success:focus { outline: none; }
.bk-success-link { margin-top: 1.25rem; font-family: 'Lora', Georgia, serif; font-style: normal; font-size: 1rem; }
.bk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-bookend { margin-bottom: 0.35rem; }
.footer-bookend a { color: var(--espresso); }

/* Free coloring pages */
.printables { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; max-width: 64rem; margin: 0 auto 4rem; }
.printable { text-align: center; }
.printable-frame { background: #fff; border: 1px solid var(--rule); box-shadow: 4px 5px 0 rgba(38, 32, 25, 0.12); padding: 0.75rem; }
.printable-frame img { width: 100%; height: auto; display: block; }
.printable h2 { font-size: 1.5rem; margin: 1.1rem 0 0.25rem; }
.printable-from { font-size: 0.95rem; color: #4a4238; margin-bottom: 1rem; }
.printable-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: center; align-items: center; }
.printable-actions button.button { border: 0; cursor: pointer; }
.printable-credit { font-size: 0.8rem; color: var(--smoke); margin-top: 0.9rem; }

@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; }
  .site-header, .site-footer, .page-title, .page-intro, .bookend-section, .printable-actions, .printable h2, .printable-from { display: none !important; }
  .page { padding: 0; max-width: none; }
  .printables { display: block; margin: 0; }
  .printable { break-after: page; page-break-after: always; }
  .printable:last-child { break-after: auto; page-break-after: auto; }
  .printable-frame { border: 0; box-shadow: none; padding: 0; }
  .printable-frame img { width: 7.4in; max-width: 100%; margin: 0 auto; }
  .printable-credit { color: #000; font-size: 9pt; margin-top: 0.12in; }
  body[data-printing] .printable { display: none; }
  body[data-printing="nest"] .printable[data-id="nest"],
  body[data-printing="chip"] .printable[data-id="chip"] { display: block; break-after: auto; page-break-after: auto; }
}

@media (max-width: 640px) {
  .bookend-section { padding: 3rem 6vw; }
  .bookend-inner h2 { font-size: 1.7rem; }
  .bookend-card { padding: 1.4rem 1.25rem; }
}
