/*
Theme Name: Whispers of Glory
Theme URI: https://example.com/whispers-of-glory
Author: Custom Theme
Description: A standalone author/book theme for Brittany Jenkins' Whispers of Glory website.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: whispers-of-glory
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=EB+Garamond:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600;700&family=Raleway:wght@500;600;700&display=swap');

:root {
  --ink: #1f1f1d;
  --muted: #5d5b57;
  --paper: #ffffff;
  --soft: #faf6f5;
  --sand: #f4ede5;
  --line: #e8e3df;
  --accent: #242420;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #5d7f16; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #dfdfdf;
}

.header-inner {
  max-width: 1290px;
  min-height: 86px;
  margin: 0 auto;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
}

.brand img {
  width: 225px;
  max-width: 100%;
  display: block;
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.45vw, 25px);
  font-family: Raleway, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.current {
  border-color: var(--ink);
  color: #000;
}

.main-nav .buy-link {
  border: 2px solid var(--ink);
  padding: 11px 18px;
  margin-left: 2px;
}

.main-nav .buy-link:hover,
.main-nav .buy-link.current {
  color: #fff;
  background: #4f8400;
  border-color: #4f8400;
}

.container {
  width: min(1208px, calc(100% - 48px));
  margin: 0 auto;
}

.page-main {
  min-height: 54vh;
}

.page-section {
  padding: 70px 0 68px;
}

.page-title {
  margin: 0 0 56px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero img {
  width: 100%;
  display: block;
}

.band-soft { background: var(--soft); }
.band-paper { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 560px 1fr;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

.content .leaf {
  width: 74px;
  display: block;
  margin: -10px 0 26px;
}

.content h1,
.content h2 {
  margin: 0 0 22px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 400;
}

.content h3 {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.content p {
  margin: 0 0 24px;
}

.book-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 400;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 3px solid #111;
  background: #fff;
  color: #111;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #111;
  color: #fff;
}

.book-cover {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.home-book-section {
  padding: 76px 0 78px;
}

.home-book-layout {
  width: min(1220px, calc(100% - 48px));
  grid-template-columns: minmax(500px, 620px) minmax(380px, 1fr);
  gap: 72px;
}

.home-book-layout .book-cover {
  max-height: 720px;
}

.home-book-layout .book-title {
  font-size: clamp(38px, 4.3vw, 54px);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
}

.home-book-layout .eyebrow {
  font-size: 18px;
}

.home-book-layout .content h3 {
  font-size: 18px;
}

.home-book-layout .content p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.55;
}

.book-page-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.book-page {
  width: min(1050px, calc(100% - 56px));
}

.book-page-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 400;
  width: min(500px, 100%);
  margin: 0 0 58px;
  text-align: left;
}

.book-page-layout {
  display: grid;
  grid-template-columns: minmax(370px, 500px) minmax(390px, 540px);
  gap: clamp(64px, 8vw, 130px);
  align-items: center;
  justify-content: center;
}

.book-page-copy {
  text-align: center;
}

.book-page-copy .book-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 400;
  margin-bottom: 22px;
}

.book-page-copy h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 28px;
}

.book-page-copy p {
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.book-page-copy .button {
  margin-top: 30px;
  min-height: 50px;
  padding: 0 28px;
  border-width: 3px;
  font-size: 13px;
}

.book-page-layout .book-cover {
  max-height: 650px;
}

.portrait {
  width: 100%;
  display: block;
  object-fit: cover;
}

.meet-section {
  padding: 0;
}

.meet-layout {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 74px;
  align-items: center;
  min-height: 540px;
}

.meet-portrait {
  height: 540px;
  object-fit: contain;
  object-position: center top;
  background: var(--soft);
}

.meet-layout .content h2 {
  font-size: 33px;
  margin-bottom: 28px;
}

.meet-layout .content p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.55;
}

.meet-layout .button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 13px;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.author-page {
  width: min(1206px, calc(100% - 48px));
  max-width: 1206px;
}

.author-page-section {
  padding-top: 24px;
  padding-bottom: 68px;
}

.author-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(42px, 4vw, 58px);
  margin-bottom: 24px;
}

.author-copy {
  max-width: 670px;
  padding-top: 0;
}

.author-copy p {
  font-size: 15px;
  line-height: 1.5;
}

.author-layout > .portrait {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  align-self: start;
}

.leaf-centered {
  display: block;
  width: 80px;
  margin: 0 auto 30px;
}

.leaf-bottom {
  display: block;
  width: 80px;
  margin: 34px auto 0;
}

.wisdom-section {
  padding-bottom: 50px;
}

.wisdom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.wisdom-item {
  min-height: 168px;
  padding: 0 48px;
  border-left: 1px solid #d9d3ce;
}

.wisdom-item:first-child {
  border-left: 0;
}

.wisdom-item img {
  height: 52px;
  object-fit: contain;
  margin-bottom: 20px;
}

.wisdom-item h3 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.wisdom-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.center-callout {
  padding-top: 14px;
  text-align: center;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 4px;
  word-spacing: -4px;
  text-transform: uppercase;
}

.center-callout em {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  word-spacing: -1px;
  text-transform: none;
}

.center-callout img {
  display: block;
  width: 78px;
  margin: 28px auto 0;
}

.home-gallery {
  width: min(1180px, 100%);
  margin: 46px auto 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.excerpt-page-section {
  padding-top: 74px;
  padding-bottom: 86px;
}

.excerpt-page {
  width: min(1026px, calc(100% - 48px));
}

.excerpt-title {
  margin-bottom: 34px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(42px, 4.3vw, 58px);
  font-weight: 400;
}

.excerpt-flipbook {
  position: relative;
  width: 100%;
  height: min(680px, 74vw);
  min-height: 420px;
  background: #787876;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.flip-stage {
  width: calc(100% - 48px);
  height: calc(100% - 64px);
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.flip-spread {
  height: 100%;
  max-height: 610px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 100%;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .24));
  transform-style: preserve-3d;
}

.flip-page {
  width: auto;
  height: 100%;
  max-width: none;
  aspect-ratio: 549 / 684;
  object-fit: contain;
  background: #fff;
  display: block;
  transition: transform .34s ease, opacity .24s ease;
}

.flip-page.is-hidden {
  display: none;
}

.flipbook-turning .flip-page {
  opacity: .68;
  transform: rotateY(-7deg);
}

.flip-left {
  transform-origin: right center;
}

.flip-right {
  transform-origin: left center;
}

.flip-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 64px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .42);
  cursor: pointer;
}

.flip-prev {
  left: 10px;
}

.flip-next {
  right: 10px;
}

.flip-arrow:disabled {
  opacity: .28;
  cursor: default;
}

.flip-toolbar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translateX(-50%);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .2);
  font-family: Arial, sans-serif;
  color: #8a8a8a;
}

.flip-toolbar button,
.flip-count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.flip-count {
  min-width: 48px;
  justify-content: start;
  font-size: 12px;
}

.placeholder-copy {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  font-style: italic;
}

.gallery-page-section {
  padding-top: 92px;
  padding-bottom: 96px;
}

.gallery-page {
  width: min(1290px, calc(100% - 48px));
}

.gallery-title {
  margin: 0 0 36px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 400;
}

.gallery-content,
.gallery-masonry {
  max-width: 1120px;
  margin: 8px auto 0;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
}

.gallery-masonry-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
}

.gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-content .wp-block-gallery,
.gallery-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
}

.gallery-content .wp-block-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.gallery-content .wp-block-image,
.gallery-content .wp-block-gallery figure,
.gallery-content .gallery-item {
  margin: 0;
}

.gallery-content .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: auto !important;
  flex-grow: 0;
}

.gallery-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: auto;
}

.gallery-content img,
.gallery-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.events-page-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.events-page {
  width: min(960px, calc(100% - 48px));
}

.events-title {
  margin: 0 0 28px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 400;
  text-transform: none;
}

.events-placeholder {
  min-height: 116px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  color: #46443f;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.events-placeholder p,
.events-content p {
  margin: 0 0 18px;
}

.events-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.reviews {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.review-carousel {
  position: relative;
  width: min(760px, 100%);
  min-height: 260px;
  margin: 4px auto 0;
  padding: 0 74px 34px;
  touch-action: pan-y;
}

.review-window {
  position: relative;
  min-height: 230px;
}

.review-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.review-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.review-stars {
  margin-bottom: 16px;
  color: #c79216;
  font-family: Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-slide h2 {
  max-width: 590px;
  margin: 0 auto 18px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 400;
}

.review-slide p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: #46443f;
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
}

.review-slide span {
  color: #67635d;
  font-family: Raleway, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.review-arrow {
  position: absolute;
  top: 90px;
  z-index: 2;
  width: 42px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242420;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 58px;
  font-weight: 400;
  line-height: .8;
}

.review-arrow:hover {
  background: transparent;
  color: #5d7f16;
}

.review-prev {
  left: 0;
}

.review-next {
  right: 0;
}

.review-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.review-dots button {
  width: 6px;
  height: 6px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dddddd;
}

.review-dots button.is-active {
  background: #242420;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.contact-page-section {
  padding-top: 92px;
  padding-bottom: 106px;
}

.contact-page {
  width: min(920px, calc(100% - 48px));
}

.contact-title {
  margin: 0 0 40px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 400;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(390px, 1fr);
  gap: 58px;
  align-items: start;
}

.contact-grid .portrait {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
}

.contact-form {
  padding-top: 14px;
}

.contact-form h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.form-row {
  margin-bottom: 9px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 3px solid #eeeeee;
  min-height: 42px;
  padding: 7px 10px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 13px;
  background: #fff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

@media (max-width: 980px) {
  .contact-page {
    width: min(100% - 40px, 800px);
  }

  .contact-grid {
    grid-template-columns: minmax(240px, 300px) minmax(330px, 1fr);
    gap: 36px;
  }

  .contact-grid .portrait {
    height: 420px;
  }

  .contact-form h2 {
    font-size: 21px;
  }
}

.notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #f4ede6;
  border-left: 4px solid #111;
}

.single-post {
  max-width: 950px;
  margin: 0 auto;
}

.single-post h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
}

.single-post p {
  font-size: 15px;
  line-height: 1.65;
}

.post-meta {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  color: #818181;
  font-size: 16px;
}

.comments-area {
  margin-top: 62px;
  padding: 36px 32px;
  background: #fafafa;
}

.newsletter {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 34px;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 350px 1fr 360px;
  gap: 38px;
  align-items: center;
}

.newsletter h2 {
  margin: 0 0 16px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.newsletter img {
  width: 82px;
  display: block;
  margin: 0 0 24px;
}

.newsletter p {
  margin: 0;
  max-width: 300px;
  font-size: 13px;
}

.newsletter-fields {
  display: grid;
  gap: 8px;
}

.newsletter button {
  width: 100%;
  height: 86px;
  background: #242420;
  color: #fff;
  border-color: #242420;
  font-family: Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.site-footer {
  padding: 34px 0 44px;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.copyright {
  font-size: 12px;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  color: #777;
}

@media (max-width: 1400px) {
  .header-inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 18px;
    justify-items: stretch;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    justify-self: end;
    margin-left: auto;
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background:
      linear-gradient(#111, #111) center 12px / 24px 2px no-repeat,
      linear-gradient(#111, #111) center 20px / 24px 2px no-repeat,
      linear-gradient(#111, #111) center 28px / 24px 2px no-repeat;
    color: transparent;
    overflow: hidden;
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    background:
      linear-gradient(#111, #111) center 12px / 24px 2px no-repeat,
      linear-gradient(#111, #111) center 20px / 24px 2px no-repeat,
      linear-gradient(#111, #111) center 28px / 24px 2px no-repeat;
    outline: 1px solid #111;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 0 12px;
    border-top: 1px solid var(--line);
    white-space: normal;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .buy-link {
    margin: 12px 0 0;
    text-align: center;
  }
}

@media (max-width: 820px) {
  body { font-size: 14px; }
  .container { width: min(100% - 32px, 1208px); }
  .page-section { padding: 52px 0; }
  .page-title { margin-bottom: 36px; font-size: 34px; }
  .content h1,
  .content h2 { font-size: 30px; }
  .author-page { width: min(100% - 32px, 1208px); }
  .author-title { font-size: 42px; }
  .author-copy p { font-size: 14px; }
  .split,
  .split.reverse,
  .author-layout,
  .meet-layout,
  .contact-grid,
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .book-page-layout { grid-template-columns: 1fr; gap: 36px; }
  .book-page-title { font-size: 38px; margin-bottom: 40px; }
  .book-page-copy p { font-size: 14px; }
  .home-book-layout,
  .meet-layout { width: min(100% - 32px, 1120px); }
  .home-book-layout .book-cover {
    width: min(78%, 360px);
    max-height: 430px;
    margin: 0 auto;
  }
  .home-book-layout .book-title { font-size: 38px; }
  .home-book-layout .content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
  .home-book-layout .content .leaf {
    margin-left: auto;
    margin-right: auto;
  }
  .home-book-layout .content .button {
    margin-left: auto;
    margin-right: auto;
  }
  .excerpt-page { width: min(100% - 32px, 1026px); }
  .excerpt-page-section { padding-top: 48px; }
  .excerpt-flipbook { height: min(620px, 118vw); min-height: 430px; }
  .flip-stage { width: calc(100% - 32px); height: calc(100% - 64px); }
  .flip-page { max-height: 100%; max-width: 100%; }
  .review-carousel { padding: 0 44px 34px; }
  .review-arrow { top: 98px; }
  .contact-page-section { padding-top: 52px; }
  .contact-title { margin-bottom: 30px; }
  .contact-grid .portrait {
    width: min(100%, 360px);
    height: auto;
    max-height: 500px;
    margin: 0 auto;
  }
  .contact-form { padding-top: 0; }
  .meet-section { padding: 52px 0; }
  .meet-portrait { height: auto; max-height: 520px; }
  .author-copy { padding-top: 0; }
  .wisdom-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-masonry {
    column-count: 2;
  }
  .wisdom-item:nth-child(odd) { border-left: 0; }
  .wisdom-item { padding: 24px; }
  .home-gallery { grid-template-columns: 1fr 1fr; }
  .newsletter {
    padding: 26px 0 30px;
  }
  .newsletter p {
    max-width: none;
  }
  .newsletter button { height: 64px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 86px;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand img {
    width: 200px;
  }

  .hero {
    height: clamp(216px, 68vw, 270px);
  }

  .hero img {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }

  .home-book-layout .book-cover {
    width: min(68%, 235px);
    max-height: 300px;
  }

  .main-nav { font-size: 12px; }
  .main-nav .buy-link { padding: 10px 14px; }
  .page-section { padding: 44px 0; }
  .page-title,
  .gallery-title,
  .events-title,
  .excerpt-title,
  .author-title,
  .contact-title {
    font-size: 32px;
    line-height: 1.06;
  }
  .gallery-page-section,
  .events-page-section,
  .contact-page-section {
    padding-top: 50px;
  }
  .book-page {
    width: min(100% - 32px, 1050px);
  }
  .book-page-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .book-page-copy .book-title,
  .home-book-layout .book-title {
    font-size: 34px;
  }
  .button,
  button,
  input[type="submit"] {
    min-height: 46px;
    padding: 0 18px;
    font-size: 11px;
  }
  .contact-grid .portrait,
  .meet-portrait {
    width: 100%;
    max-height: none;
  }
  .contact-form h2 {
    font-size: 20px;
  }
  .center-callout {
    font-size: 14px;
    letter-spacing: 2px;
    word-spacing: 0;
  }
  .center-callout em {
    font-size: 14px;
    letter-spacing: 0;
    word-spacing: 0;
  }
  .excerpt-flipbook {
    height: min(560px, 122vw);
    min-height: 360px;
  }
  .flip-toolbar {
    width: calc(100% - 24px);
    justify-content: space-around;
  }
  .review-carousel { padding: 0 18px 34px; }
  .review-window { min-height: 300px; }
  .review-arrow { display: none; }
  .review-slide h2 { font-size: 27px; }
  .review-slide p { font-size: 14px; }
  .newsletter h2 { font-size: 20px; }
  .newsletter button {
    height: 58px;
    font-size: 14px;
  }
  .wisdom-grid,
  .gallery-grid,
  .home-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-masonry {
    column-count: 1;
    column-gap: 14px;
  }
  .gallery-masonry-item {
    margin-bottom: 14px;
  }
  .wisdom-item { border-left: 0; }
}
