/*
Theme Name: RK Slade Books
Theme URI: https://rksladebooks.com
Author: RK Slade
Description: A lightweight author website theme for books, blog posts, newsletter signup, and sample chapters.
Version: 0.1.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: rksladebooks
*/

:root {
  --rks-bg: #214b2f;
  --rks-panel: #ffffff;
  --rks-text: #1d2528;
  --rks-muted: #5f6b6f;
  --rks-quote: #3f484b;
  --rks-line: #d7ddd7;
  --rks-accent: #0f766e;
  --rks-accent-dark: #0b4f4a;
  --rks-gold: #d2a12d;
  --rks-gold-dark: #9c6f13;
  --rks-on-field: #f7fbf4;
  --rks-on-field-muted: #d8e5d6;
  --rks-shadow: 0 18px 45px rgba(5, 24, 14, 0.2);
  --rks-radius: 8px;
  --rks-max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--rks-bg);
  color: var(--rks-on-field);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--rks-gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: #f1ca63;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer {
  border-color: var(--rks-line);
  border-style: solid;
}

.site-header {
  border-width: 0 0 1px;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

main::before {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='36' viewBox='0 0 120 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='white' stroke-width='3' opacity='.82'%3E%3Cpath d='M1.5 0v36M24 0v14M48 0v14M72 0v14M96 0v14'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 36px;
  content: "";
  display: block;
  height: 36px;
  pointer-events: none;
}

.site-footer {
  border-width: 1px 0 0;
  background: #fff;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='36' viewBox='0 0 120 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='white' stroke-width='3' opacity='.82'%3E%3Cpath d='M1.5 36V0M24 36v-14M48 36v-14M72 36v-14M96 36v-14'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 36px;
  content: "";
  height: 36px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -36px;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--rks-max));
  margin-inline: auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.site-title {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title a,
.site-nav a,
.social-links a,
.button {
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.social-links a {
  color: var(--rks-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.35em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus,
.social-links a:hover,
.social-links a:focus {
  color: var(--rks-accent-dark);
  text-decoration-color: var(--rks-gold);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero {
  padding: 4.5rem 0 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.book-hero-grid {
  align-items: start;
}

.book-detail-panel {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  color: var(--rks-text);
  overflow: hidden;
}

.book-detail-panel a {
  color: var(--rks-accent-dark);
}

.book-detail-panel a:hover,
.book-detail-panel a:focus {
  color: var(--rks-accent);
}

.book-detail-banner {
  aspect-ratio: 8 / 1;
  background: #eef1ed;
  overflow: hidden;
}

.book-detail-banner img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  width: 100%;
}

.book-detail-summary {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  padding: 2rem;
}

.book-detail-media {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.book-detail-cover {
  aspect-ratio: 2 / 3;
  background: #eef1ed;
  border-radius: var(--rks-radius);
  overflow: hidden;
}

.book-detail-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.book-detail-media .button-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
}

.book-detail-media .button {
  width: 100%;
}

.book-detail-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.book-detail-copy .lede,
.book-detail-copy .fine-print {
  color: var(--rks-muted);
}

.book-detail-panel .button.secondary {
  border-color: var(--rks-accent-dark);
  color: var(--rks-accent-dark);
}

.book-detail-panel .button.secondary:hover,
.book-detail-panel .button.secondary:focus {
  background: #e4f3f0;
  color: var(--rks-accent-dark);
}

.book-detail-body {
  border-top: 1px solid var(--rks-line);
  margin: 0 2rem;
  max-width: none;
  padding: 2rem 0 2.25rem;
}

.book-detail-body > *,
.book-detail-body .wp-block,
.book-detail-body .wp-block-group,
.book-detail-body .wp-block-columns,
.book-detail-body p,
.book-detail-body h2,
.book-detail-body h3,
.book-detail-body h4,
.book-detail-body ul,
.book-detail-body ol,
.book-detail-body blockquote {
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

.book-detail-body blockquote {
  color: var(--rks-quote);
}

body.single-rks_book .lede {
  color: var(--rks-muted);
}

.hero-stack {
  display: grid;
  gap: 2.2rem;
}

.hero-home-grid {
  align-items: center;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  color: var(--rks-gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  color: var(--rks-on-field-muted);
  font-size: 1.22rem;
  max-width: 42rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  align-items: center;
  background: var(--rks-gold);
  border: 1px solid var(--rks-gold);
  border-radius: var(--rks-radius);
  color: #17231a;
  display: inline-flex;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
}

.button:hover,
.button:focus {
  background: #e0b54d;
  border-color: #e0b54d;
  color: #17231a;
}

.button.secondary {
  background: transparent;
  border-color: rgba(247, 251, 244, 0.72);
  color: var(--rks-on-field);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--rks-on-field);
}

.button.disabled {
  background: #eef1ed;
  border-color: var(--rks-line);
  color: var(--rks-muted);
  cursor: default;
}

.book-card .button.secondary,
.newsletter-cta .button.secondary,
.newsletter-page-card .button.secondary {
  border-color: var(--rks-accent-dark);
  color: var(--rks-accent-dark);
}

.book-card .button.secondary:hover,
.book-card .button.secondary:focus,
.newsletter-cta .button.secondary:hover,
.newsletter-cta .button.secondary:focus,
.newsletter-page-card .button.secondary:hover,
.newsletter-page-card .button.secondary:focus {
  background: #e4f3f0;
  color: var(--rks-accent-dark);
}

.section {
  padding: 3rem 0;
}

.section-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.archive-intro {
  margin-bottom: 2.5rem;
  max-width: 840px;
}

.books-archive-hero {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  max-width: none;
}

.books-archive-image-card {
  align-self: stretch;
  aspect-ratio: 4 / 3;
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.books-archive-image-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.series-intro {
  margin-bottom: 1.5rem;
  max-width: none;
}

.series-intro p {
  color: var(--rks-on-field-muted);
  font-size: 1.1rem;
  margin: 0;
}

.book-series-section + .book-series-section {
  margin-top: 3.5rem;
}

.archive-intro + .book-series-section {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.5rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.book-grid-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.book-card {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.book-card,
.post-list-cards .post-preview,
.newsletter-cta,
.newsletter-page-card {
  color: var(--rks-text);
}

.book-card a,
.post-list-cards .post-preview a,
.newsletter-cta a:not(.button),
.newsletter-page-card a:not(.button) {
  color: var(--rks-accent-dark);
}

.book-card a:hover,
.book-card a:focus,
.post-list-cards .post-preview a:hover,
.post-list-cards .post-preview a:focus,
.newsletter-cta a:not(.button):hover,
.newsletter-cta a:not(.button):focus,
.newsletter-page-card a:not(.button):hover,
.newsletter-page-card a:not(.button):focus {
  color: var(--rks-accent);
}

.book-cover {
  aspect-ratio: 2 / 3;
  background: #eef1ed;
  display: block;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.book-meta,
.post-meta,
.fine-print {
  color: var(--rks-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

.book-card h3 {
  font-size: 1.25rem;
}

.book-card .button {
  margin-top: auto;
  width: 100%;
}

.start-here-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  color: var(--rks-text);
  padding: 1.35rem;
}

.start-here-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.start-here-card p:not(.eyebrow) {
  margin-top: 0;
}

.start-here-card .button-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.start-here-card .button {
  width: 100%;
}

.start-here-card .button.secondary {
  border-color: var(--rks-accent-dark);
  color: var(--rks-accent-dark);
}

.start-here-card .button.secondary:hover,
.start-here-card .button.secondary:focus {
  background: #e4f3f0;
  color: var(--rks-accent-dark);
}

.home-start-here-books {
  margin-top: 1rem;
  padding-top: 0;
}

.home-start-here-books .site-shell {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.5rem;
}

.series-preview {
  display: grid;
  gap: 1.5rem;
}

.series-preview-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.series-book-card {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  color: var(--rks-text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.book-card--featured {
  grid-column: auto;
}

.series-badge {
  background: var(--rks-gold);
  border-radius: 999px;
  color: #17231a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  left: 1rem;
  letter-spacing: 0;
  margin: 0;
  padding: 0.22rem 0.55rem;
  position: absolute;
  text-transform: uppercase;
  top: 1rem;
  z-index: 2;
}

.series-book-cover {
  aspect-ratio: 2 / 3;
  background: #eef1ed;
  display: block;
  overflow: hidden;
}

.book-card--featured .series-book-cover {
  aspect-ratio: 2 / 3;
}

.series-book-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.book-card--featured .series-book-cover img {
  object-position: center;
}

.series-book-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.book-card--featured .series-book-body {
  padding: 1rem;
}

.series-book-body h3 {
  font-size: 1.25rem;
}

.book-card--featured .series-book-body h3 {
  font-size: 1.25rem;
}

.series-book-body a {
  color: var(--rks-accent-dark);
}

.series-book-body a:hover,
.series-book-body a:focus {
  color: var(--rks-accent);
}

.series-book-actions {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
}

.series-book-actions .button {
  width: 100%;
}

.series-book-card .button.secondary {
  border-color: var(--rks-accent-dark);
  color: var(--rks-accent-dark);
}

.series-book-card .button.secondary:hover,
.series-book-card .button.secondary:focus {
  background: #e4f3f0;
  color: var(--rks-accent-dark);
}

.series-learn-more {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  justify-self: center;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-preview {
  align-items: start;
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  color: var(--rks-text);
  display: grid;
  gap: 1rem;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 1rem;
}

.post-preview:not(.has-preview-thumb) {
  grid-template-columns: 1fr;
}

.post-preview a {
  color: var(--rks-accent-dark);
}

.post-preview a:hover,
.post-preview a:focus {
  color: var(--rks-accent);
}

.post-preview-thumb {
  aspect-ratio: 4 / 3;
  background: #eef1ed;
  border-radius: var(--rks-radius);
  display: block;
  overflow: hidden;
}

.post-preview-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-preview h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.post-preview p {
  margin-top: 0;
}

.post-list-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 900px) {
  .post-list-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-list-cards .post-preview {
  background: var(--rks-panel);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.post-list-cards .post-preview:not(.has-preview-thumb) {
  min-height: 100%;
}

.post-list-cards .post-preview-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  max-width: none;
  width: 100%;
}

.post-list-cards .post-preview-body {
  padding: 1rem;
}

.newsletter-band {
  background: rgba(255, 255, 255, 0.06);
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  margin: 3rem 0;
  padding: 2.5rem 0;
}

.newsletter-grid {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: 2rem;
}

.newsletter-cta {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  padding: 1.25rem;
}

.newsletter-cta h3 {
  margin-bottom: 0.6rem;
}

.newsletter-actions {
  margin: 1rem 0 0.7rem;
}

.newsletter-page-header {
  margin: 0 auto 1.15rem;
  max-width: 760px;
  text-align: center;
}

.newsletter-page-card {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  padding: 2rem 1.5rem;
  text-align: center;
}

.newsletter-page-banner {
  aspect-ratio: 6 / 1;
  background: #eef1ed;
  margin: -2rem -1.5rem 1.5rem;
  overflow: hidden;
}

.newsletter-page-banner img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.newsletter-page-card p {
  margin-inline: auto;
  max-width: 620px;
}

.newsletter-page-card .button {
  margin: 0.7rem 0 0.8rem;
}

.content {
  max-width: 760px;
  padding: 3rem 0;
}

.reading-panel {
  background: var(--rks-panel);
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  box-shadow: var(--rks-shadow);
  color: var(--rks-text);
  margin-top: 2rem;
  max-width: 860px;
  padding: 2.25rem;
}

.reading-panel a {
  color: var(--rks-accent-dark);
}

.reading-panel a:hover,
.reading-panel a:focus {
  color: var(--rks-accent);
}

.reading-panel .lede,
.reading-panel blockquote {
  color: var(--rks-muted);
}

.reading-panel .content blockquote {
  color: var(--rks-quote);
}

.post-signature {
  color: var(--rks-muted);
  font-style: italic;
  margin-top: 2rem;
}

.post-newsletter-cta {
  background: #eef4ee;
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  margin-top: 2.25rem;
  padding: 1.35rem;
}

.post-newsletter-cta h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.post-newsletter-cta p {
  color: var(--rks-muted);
  margin-bottom: 1rem;
}

.sample-reading-panel {
  max-width: 960px;
}

.sample-header {
  align-items: start;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 150px minmax(0, 1fr);
}

.sample-book-cover {
  aspect-ratio: 2 / 3;
  background: #eef1ed;
  border-radius: var(--rks-radius);
  display: block;
  overflow: hidden;
}

.sample-book-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sample-book-name {
  color: var(--rks-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin: -0.45rem 0 0.75rem;
}

.sample-content {
  border-top: 1px solid var(--rks-line);
  margin-top: 2rem;
  max-width: none;
  padding: 2rem 0 0;
}

.sample-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.sample-ending {
  background: #eef4ee;
  border: 1px solid var(--rks-line);
  border-radius: var(--rks-radius);
  margin-top: 2.5rem;
  padding: 1.35rem;
}

.sample-ending h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.sample-ending p {
  color: var(--rks-muted);
}

.sample-ending .button.secondary {
  border-color: var(--rks-accent-dark);
  color: var(--rks-accent-dark);
}

.sample-ending .button.secondary:hover,
.sample-ending .button.secondary:focus {
  background: #e4f3f0;
  color: var(--rks-accent-dark);
}

.shop-landing {
  display: grid;
  gap: 2rem;
  max-width: 960px;
  overflow: hidden;
}

.shop-banner {
  aspect-ratio: 3 / 1;
  background: #eef1ed;
  margin: -2.25rem -2.25rem 0;
  overflow: hidden;
}

.shop-banner img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.shop-hero {
  padding-bottom: 0;
}

.shop-preview-grid {
  border-block: 1px solid var(--rks-line);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-block: 1.25rem;
}

.shop-preview-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--rks-radius);
  margin: 0;
  overflow: hidden;
}

.shop-preview-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.shop-seo-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-seo-grid h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.shop-info-item + .shop-info-item {
  margin-top: 1rem;
}

.shop-info-item h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.shop-info-item p {
  color: var(--rks-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.shop-brand-note {
  color: var(--rks-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: -0.75rem 0 0;
}

.content > *:first-child {
  margin-top: 0;
}

.content blockquote {
  border-left: 4px solid var(--rks-accent);
  color: var(--rks-quote);
  margin-left: 0;
  padding-left: 1rem;
}

.content .alignleft,
.content img.alignleft,
.wp-caption.alignleft {
  float: left;
  margin: 0.35rem 1.5rem 1rem 0;
  max-width: min(50%, 320px);
}

.content .alignright,
.content img.alignright,
.wp-caption.alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.5rem;
  max-width: min(50%, 320px);
}

.content .aligncenter,
.content img.aligncenter,
.wp-caption.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.content .alignnone,
.content img.alignnone,
.wp-caption.alignnone {
  margin: 1.5rem 0;
}

.content::after {
  clear: both;
  content: "";
  display: table;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--rks-muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  margin: 0.4rem 0 0;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  .series-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-card--featured {
    grid-column: span 2;
  }

  .book-card--featured .series-book-cover {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .footer-inner,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid,
  .hero-home-grid,
  .books-archive-hero,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  main::before {
    background-image: url("data:image/svg+xml,%3Csvg width='88' height='36' viewBox='0 0 88 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='white' stroke-width='3' opacity='.82'%3E%3Cpath d='M1.5 0v36M18 0v14M35 0v14M53 0v14M70 0v14'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 88px 36px;
  }

  .site-footer::before {
    background-image: url("data:image/svg+xml,%3Csvg width='88' height='36' viewBox='0 0 88 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='white' stroke-width='3' opacity='.82'%3E%3Cpath d='M1.5 36V0M18 36v-14M35 36v-14M53 36v-14M70 36v-14'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 88px 36px;
  }

  .book-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-here-card {
    padding: 1.1rem;
  }

  .series-preview-grid {
    grid-template-columns: 1fr;
  }

  .book-card--featured {
    grid-column: auto;
  }

  .book-card--featured .series-book-cover {
    aspect-ratio: 2 / 3;
  }

  .book-detail-banner {
    aspect-ratio: 6 / 1;
  }

  .book-detail-summary {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .book-detail-cover {
    max-width: none;
    width: 100%;
  }

  .book-detail-body {
    margin: 0 1.35rem;
    padding: 1.35rem 0;
  }

  body.single-rks_book .book-detail-panel {
    background: var(--rks-panel);
    border: 1px solid var(--rks-line);
    border-radius: var(--rks-radius);
    box-shadow: var(--rks-shadow);
    color: var(--rks-text);
    overflow: hidden;
    width: min(calc(100% - 2rem), var(--rks-max));
  }

  body.single-rks_book .book-detail-summary {
    grid-template-columns: 1fr;
  }

  body.single-rks_book .book-detail-body,
  body.single-rks_book .book-detail-body > *,
  body.single-rks_book .book-detail-body .wp-block,
  body.single-rks_book .book-detail-body p {
    max-width: none !important;
  }

  .post-preview {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .post-list-cards {
    grid-template-columns: 1fr;
  }

  .content .alignleft,
  .content img.alignleft,
  .wp-caption.alignleft,
  .content .alignright,
  .content img.alignright,
  .wp-caption.alignright {
    display: block;
    float: none;
    margin: 1.5rem 0;
    max-width: 100%;
  }

  .reading-panel {
    padding: 1.35rem;
  }

  .sample-header {
    grid-template-columns: 1fr;
  }

  .sample-book-cover {
    max-width: 220px;
  }

  .shop-banner {
    margin: -1.35rem -1.35rem 0;
  }

  .shop-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-seo-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .book-grid-featured {
    grid-template-columns: 1fr;
  }

  .post-preview {
    grid-template-columns: 1fr;
  }

  .post-preview-thumb {
    max-width: 180px;
  }

  .shop-preview-grid {
    grid-template-columns: 1fr;
  }
}
