/*
Theme Name: MaryMo Space
Theme URI: https://marymo.space/
Author: Mary Mo
Description: WordPress theme for MaryMo.space, the official home for Mary Mo books, deals, and reader updates.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: marymo-space
*/

:root {
  --ink: #1d2730;
  --muted: #5e6972;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #dfe3df;
  --coral: #e56f55;
  --coral-dark: #b94f3a;
  --blue: #326d8c;
  --green: #547d55;
  --gold: #d7a441;
  --shadow: 0 18px 45px rgba(29, 39, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(29, 39, 48, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(29, 39, 48, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.brand-text {
  font-size: 1rem;
  overflow-wrap: normal;
  white-space: nowrap;
}

.nav,
.menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
}

.nav {
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(29, 39, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switcher__link {
  min-width: 34px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.language-switcher__link:hover {
  color: var(--coral-dark);
}

.language-switcher__link.is-current {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle i {
  position: relative;
}

.nav-toggle i::before,
.nav-toggle i::after {
  position: absolute;
  left: 0;
}

.nav-toggle i::before {
  top: -5px;
}

.nav-toggle i::after {
  top: 5px;
}

.menu a,
.nav > a {
  white-space: nowrap;
}

.nav a:hover,
.footer a:hover,
.social-links a:hover,
.topic-grid a:hover,
.card-actions a:hover {
  color: var(--coral-dark);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 10vw, 132px) clamp(18px, 6vw, 72px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.94) 0%, rgba(255, 250, 242, 0.8) 36%, rgba(255, 250, 242, 0.08) 72%),
    linear-gradient(0deg, rgba(255, 250, 242, 0.72) 0%, rgba(255, 250, 242, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  flex: 0 1 720px;
}

.hero-cover-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 170px));
  gap: 16px;
  align-items: center;
  justify-content: end;
  width: min(370px, 36vw);
}

.hero-cover-card {
  display: grid;
  gap: 8px;
  transform: rotate(-2deg);
}

.hero-cover-card:nth-child(even) {
  transform: translateY(22px) rotate(3deg);
}

.hero-cover-card:nth-child(n + 5) {
  display: none;
}

.hero-cover-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 45px rgba(29, 39, 48, 0.22);
}

.hero-cover-card span {
  justify-self: center;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 8px 18px rgba(29, 39, 48, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.6vw, 6.4rem);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 6.2vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #39444c;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.marymo-localized-informational h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.4vw, 5rem);
}

.marymo-localized-informational .hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.3vw, 4.8rem);
}

.hero-actions,
.card-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.filter-button,
.card-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button {
  padding: 13px 18px;
  border: 1px solid transparent;
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(185, 79, 58, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(29, 39, 48, 0.18);
}

.section,
.band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.band {
  background: #fff;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.start-here-section {
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(42px, 6vw, 76px);
  background: #fff;
}

.start-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.start-path-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 12px 28px rgba(29, 39, 48, 0.08);
}

.start-path-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

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

.start-path-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.page-copy {
  display: grid;
  gap: 18px;
}

.page-content {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.page-content h2,
.page-content h3 {
  color: var(--ink);
}

.page-content ul {
  margin: 0;
  padding-left: 20px;
}

.split,
.deal-layout,
.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro p,
.about-copy,
.deals p,
.newsletter p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.social-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.about-page h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
}

.about-intro {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-focus-grid article {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.about-focus-grid h2 {
  font-size: clamp(2.1rem, 3vw, 3.25rem);
}

.about-focus-grid p {
  color: var(--muted);
}

.author-profile-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.author-photo-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, 0.85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.author-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.author-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-photo-card-1 {
  grid-row: 1 / span 2;
}

.author-photo-card-1 img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.author-photo-card-2 img,
.author-photo-card-3 img {
  aspect-ratio: 3 / 4;
}

.author-photo-card-3 {
  align-self: end;
}

.author-profile-copy {
  display: grid;
  gap: 16px;
}

.author-profile-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
}

.author-social-links {
  margin-top: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-panel,
.contact-topic-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.contact-panel p,
.contact-topic-grid p {
  color: var(--muted);
}

.reader-message-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.consent-field {
  color: var(--muted);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.reader-message-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.reader-message-form .button {
  width: fit-content;
}

.reader-message-form.is-sending .button {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-social-panel {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.prefooter-signup {
  background: #eaf5f1;
  border-top: 1px solid rgba(84, 125, 85, 0.14);
  border-bottom: 1px solid rgba(84, 125, 85, 0.14);
}

.reader-signup-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.reader-signup-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
}

.reader-signup-copy h2 {
  max-width: 680px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.reader-signup-form {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(84, 125, 85, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(50, 109, 140, 0.12);
}

.reader-signup-form > label {
  color: var(--muted);
  font-weight: 800;
}

.reader-signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.reader-signup-row input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

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

.contact-topic-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.contact-topic-grid h2 {
  margin: 0;
  font-size: clamp(1.95rem, 2.45vw, 2.75rem);
  line-height: 1.08;
  overflow-wrap: normal;
}

.contact-topic-grid p {
  margin: 0;
}

.contact-topic-grid .protected-email-link {
  width: 100%;
  margin-top: auto;
  padding-inline: 12px;
  font-size: clamp(0.78rem, 0.88vw, 0.96rem);
  overflow-wrap: anywhere;
  text-align: center;
}

.protected-email-link [data-protected-email-text] {
  min-width: 0;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.disclosure-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.disclosure-panel {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.disclosure-panel p {
  color: var(--muted);
}

.disclosure-statement {
  margin-top: 0;
  color: var(--ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.policy-summary,
.policy-sections article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.policy-summary {
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.policy-summary p,
.policy-sections p {
  color: var(--muted);
}

.policy-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.policy-sections article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.policy-sections h2 {
  font-size: 1.35rem;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs strong {
  color: var(--ink);
}

.book-rail {
  display: grid;
  grid-auto-columns: minmax(132px, 164px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 18px;
  margin: 0 0 26px;
  scroll-snap-type: inline mandatory;
}

.book-rail-card {
  display: grid;
  gap: 10px;
  align-content: start;
  scroll-snap-align: start;
}

.book-rail-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(29, 39, 48, 0.16);
}

.book-rail-card span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.product-path-rail {
  display: grid;
  grid-auto-columns: minmax(230px, 300px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 18px;
  scroll-snap-type: inline mandatory;
}

.product-path-rail-card,
.product-path-card,
.manual-picks-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(29, 39, 48, 0.08);
}

.product-path-rail-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: start;
  padding: 20px;
  scroll-snap-align: start;
}

.product-path-rail-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-path-rail-card strong {
  font-size: 1.28rem;
  line-height: 1.08;
}

.product-path-rail-card small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-path-rail-card em {
  width: fit-content;
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid rgba(29, 39, 48, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.quick-related-path {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quick-related-path h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.12;
}

.quick-related-path p {
  margin: 0;
}

.quick-related-path a {
  width: fit-content;
  color: var(--accent);
  font-weight: 900;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.catalog-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 39, 48, 0.08);
}

.catalog-controls .toolbar {
  margin-bottom: 0;
}

.catalog-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
  font-size: 1rem;
  text-transform: none;
}

.catalog-count,
.catalog-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.catalog-empty {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-empty.is-hidden {
  display: none;
}

.not-found-page .hero-copy {
  max-width: 760px;
}

.not-found-search {
  max-width: 720px;
  margin: 26px 0 24px;
}

.not-found-search .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.not-found-search .search-field {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
}

.not-found-search .search-submit {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.search-results-form {
  margin-bottom: 0;
}

.search-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.search-result-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-result-card h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.search-result-card h3 a {
  color: var(--ink);
}

.search-result-card p:not(.book-kicker) {
  margin: 0;
  color: var(--muted);
}

.search-empty-note {
  max-width: 820px;
}

.filter-button {
  padding: 9px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.92rem;
}

.filter-button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.book-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-card,
.product-card,
.deal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.book-card,
.product-card {
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.book-card.is-hidden,
.product-card.is-hidden {
  display: none;
}

.book-cover img {
  width: min(180px, 78%);
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(29, 39, 48, 0.18);
}

.book-cover {
  display: grid;
  min-height: 286px;
  place-items: center;
  padding: 16px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.book-cover-placeholder {
  display: grid;
  width: min(160px, 72%);
  aspect-ratio: 3 / 4;
  align-content: space-between;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.book-cover-author,
.book-cover-topic {
  font-size: 0.68rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-cover-title {
  display: grid;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 72px;
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cover-blue {
  background: linear-gradient(135deg, var(--blue), #7eb8c5);
}

.cover-green {
  background: linear-gradient(135deg, var(--green), #b5ba63);
}

.cover-coral {
  background: linear-gradient(135deg, var(--coral), var(--gold));
}

.cover-sky {
  background: linear-gradient(135deg, #4f8fb5, #dfb35b);
}

.cover-forest {
  background: linear-gradient(135deg, #426c57, #c46957);
}

.cover-rose {
  background: linear-gradient(135deg, #a95764, #5e7e91);
}

.book-copy {
  display: flex;
  min-height: 268px;
  flex-direction: column;
  padding: 22px;
}

.book-copy p,
.product-copy p {
  color: var(--muted);
}

.product-picks-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 6vw, 5.8rem);
}

.product-picks-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.product-picks-hero .breadcrumbs {
  grid-column: 1 / -1;
}

.product-picks-hero .section-heading,
.product-picks-hero .hero-copy,
.product-picks-hero .hero-actions {
  grid-column: 1;
}

.product-picks-hero .picks-trust-grid {
  grid-column: 2;
  grid-row: 2 / span 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  margin-top: 0;
}

.product-picks-hero .picks-trust-grid article {
  min-height: 174px;
  padding: 16px;
}

.product-picks-hero .picks-trust-grid strong {
  font-size: 1rem;
}

.product-picks-hero .picks-trust-grid p {
  font-size: 0.9rem;
}

.picks-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 5vw, 42px);
}

.picks-trust-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(29, 39, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(29, 39, 48, 0.08);
}

.picks-trust-grid span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.picks-trust-grid strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.12;
}

.picks-trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.marymo-localized-informational .picks-trust-grid article {
  min-width: 0;
}

.product-category-section {
  padding-top: clamp(42px, 7vw, 84px);
}

.home-featured-picks {
  background: #f3f8f5;
  border-top: 1px solid rgba(84, 125, 85, 0.14);
  border-bottom: 1px solid rgba(84, 125, 85, 0.14);
}

.home-product-grid {
  margin-bottom: 26px;
}

.product-pick-block {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px) 0;
  border-top: 1px solid var(--line);
}

.product-pick-block:first-of-type {
  border-top: 0;
}

.product-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-path-card,
.manual-picks-note {
  padding: 22px;
}

.product-path-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
}

.product-path-card p,
.manual-picks-note p {
  color: var(--muted);
}

.manual-picks-note {
  max-width: 820px;
}

.seo-intent-section {
  background: #f7faf6;
  border-top: 1px solid rgba(84, 125, 85, 0.14);
  border-bottom: 1px solid rgba(84, 125, 85, 0.14);
}

.seo-focus-section {
  background: #fffaf2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-intent-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 39, 48, 0.07);
}

.seo-intent-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.12;
}

.seo-intent-card p:not(.book-kicker) {
  margin: 0;
  color: var(--muted);
}

.product-image {
  display: grid;
  min-height: 214px;
  place-items: center;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(50, 109, 140, 0.95), rgba(215, 164, 65, 0.92)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 32%);
  font-weight: 900;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.product-image span {
  display: grid;
  width: min(170px, 72%);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1.15;
}

.product-image strong,
.product-image small {
  display: block;
}

.product-image strong {
  font-size: 1.05rem;
}

.product-image small {
  max-width: 12ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  line-height: 1.2;
}

.product-copy {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 22px;
}

.product-reason {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(29, 39, 48, 0.08);
  border-radius: 8px;
  background: #fffaf2;
}

.product-reason span {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-reason p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.book-kicker {
  margin: 0 0 8px;
  color: var(--coral-dark) !important;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.catalog-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf2;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.card-actions {
  margin-top: auto;
  padding-top: 16px;
}

.card-actions a {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
}

.deal-panel {
  padding: clamp(22px, 4vw, 36px);
}

.deal-panel-cover {
  margin: 0 0 22px;
}

.deal-panel-cover .book-cover {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-panel-cover .book-cover img {
  width: min(170px, 72%);
}

.deal-panel-cover .book-cover-placeholder {
  width: min(150px, 70%);
}

.deal-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.deal-feature-copy {
  min-width: 0;
}

.deal-feature-copy .section-heading {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.deals-page .hero-copy {
  margin-top: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(28px, 5vw, 44px);
}

.deal-trust-list,
.read-trust-list,
.release-trust-list,
.catalog-trust-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.deal-trust-list article,
.read-trust-list article,
.release-trust-list article,
.catalog-trust-list article {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.deal-trust-list span,
.read-trust-list span,
.release-trust-list span,
.catalog-trust-list span {
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-trust-list p,
.read-trust-list p,
.release-trust-list p,
.catalog-trust-list p {
  margin: 0;
  color: var(--muted);
}

.deal-label {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-panel h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.release-panel-cover .book-cover {
  min-height: 238px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.release-panel-cover .book-cover img {
  width: min(150px, 82%);
}

.release-panel-cover .book-cover-placeholder {
  width: min(132px, 76%);
  padding: 14px;
}

.release-panel-cover .book-cover-title {
  min-height: 58px;
  font-size: 0.9rem;
}

.release-panel-copy {
  min-width: 0;
}

.release-panel-copy h2 {
  font-size: clamp(1.85rem, 2.7vw, 2.8rem);
}

.release-panel-copy dl {
  margin: 18px 0;
}

.release-panel-copy .hero-actions {
  margin-top: 18px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 900;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-grid a {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.path-grid img {
  width: min(190px, 72%);
  aspect-ratio: 2 / 3;
  margin: 18px auto 0;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(29, 39, 48, 0.14);
}

.path-grid span {
  display: block;
  padding: 16px;
  font-weight: 900;
}

.signup-form {
  width: 100%;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.signup-form input {
  min-width: min(100%, 320px);
  flex: 1;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.book-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.book-detail-cover .book-cover {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.book-detail-cover {
  position: sticky;
  top: 112px;
}

.book-detail-cover .book-cover-placeholder {
  width: min(260px, 72%);
}

.book-detail-cover .book-cover-title {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.book-detail-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-detail-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
}

.book-meta-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.book-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.book-content {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.format-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.format-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.format-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.format-status {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.format-card dl {
  gap: 8px;
  margin: 12px 0 0;
}

.format-card dl div {
  gap: 12px;
  padding-bottom: 8px;
}

.format-card dt,
.format-card dd {
  font-size: 0.86rem;
}

.reader-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.reader-fit-grid section,
.book-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reader-fit-grid section {
  padding: 18px;
}

.reader-fit-grid h2,
.book-faq h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.reader-fit-grid p {
  margin: 0;
  color: var(--muted);
}

.reader-path-panel {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reader-path-panel .section-heading {
  gap: 8px;
}

.reader-path-panel h2 {
  font-size: 1.25rem;
}

.reader-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reader-path-grid article {
  min-height: 178px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.reader-path-grid h3 {
  font-size: 1rem;
  line-height: 1.16;
}

.reader-path-grid p:not(.book-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.related-reading-paths {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.related-reading-paths .section-heading {
  gap: 8px;
}

.related-reading-paths h2 {
  font-size: 1.2rem;
}

.related-reading-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-reading-paths-grid a {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf2;
}

.related-reading-paths-grid span {
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.related-reading-paths-grid strong {
  font-size: 1.02rem;
  line-height: 1.16;
}

.related-reading-paths-grid small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.matching-picks-panel {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.matching-picks-panel .section-heading {
  gap: 8px;
}

.matching-picks-panel h2 {
  font-size: 1.25rem;
}

.matching-picks-panel p:not(.book-kicker) {
  margin: 0;
  color: var(--muted);
}

.matching-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.matching-pick-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.matching-pick-card h3 {
  font-size: 1rem;
  line-height: 1.18;
}

.matching-pick-card p:not(.book-kicker) {
  margin-top: 10px;
  font-size: 0.92rem;
}

.reader-reviews-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.62fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reader-reviews-panel h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.reader-reviews-panel p:not(.book-kicker) {
  margin: 0 0 16px;
  color: var(--muted);
}

.book-feedback-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.book-faq {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.book-faq details {
  padding: 14px 16px;
}

.book-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.book-faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.marketplace-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.marketplace-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.marketplace-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.marketplace-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.marketplace-links small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.book-seo-summary {
  padding-top: 0;
}

.book-seo-summary-panel {
  display: grid;
  gap: 14px;
  max-width: 980px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.book-seo-summary-panel .section-heading {
  gap: 8px;
}

.book-seo-summary-panel h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.book-seo-summary-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.related-books {
  padding-top: 0;
}

.affiliate-note {
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.affiliate-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.affiliate-note a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.affiliate-note span {
  display: inline-block;
  margin-left: 8px;
}

.cookie-notice {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(620px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(29, 39, 48, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(29, 39, 48, 0.2);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-notice .book-kicker {
  margin-bottom: 4px;
}

.cookie-notice a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-notice .button {
  min-width: 78px;
}

.footer {
  padding: 28px clamp(18px, 4vw, 56px);
  background: #151b20;
  color: rgba(255, 255, 255, 0.82);
}

.footer-layout {
  display: grid;
  gap: 22px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1.5fr) minmax(220px, auto);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer p {
  margin: 0;
  font-weight: 900;
}

.footer nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
  gap: 12px 16px;
  min-width: 0;
  font-size: 0.92rem;
}

.footer .menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
  gap: 12px 16px;
  min-width: 0;
}

.footer nav a,
.footer .menu a {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.footer-social a {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-topic-group {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.footer-topics p {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.footer-topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
  gap: 10px;
}

.footer-topic-links a {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.footer-topic-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 1100px) {
  .picks-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-topics {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow: visible;
    padding: 4px 0 0;
  }

  .menu {
    width: 100%;
    min-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header.has-nav-toggle .nav {
    display: none;
  }

  .site-header.has-nav-toggle.is-nav-open .nav {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header .menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .site-header .menu a,
  .nav > a {
    display: block;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    line-height: 1.15;
    white-space: normal;
  }

  .language-switcher {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }

  .language-switcher__link {
    flex: 1 1 0;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .hero .hero-copy {
    margin-top: 16px;
  }

  .hero .hero-actions {
    margin-top: 22px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.96) 0%, rgba(255, 250, 242, 0.76) 48%, rgba(255, 250, 242, 0.12) 100%);
  }

  .hero-cover-strip {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    align-self: center;
    margin-top: -124px;
    width: min(100%, 420px);
  }

  .hero-cover-card:nth-child(even),
  .hero-cover-card {
    transform: none;
  }

  .hero-cover-card:nth-child(n + 4) {
    display: none;
  }

  .hero-cover-card span {
    font-size: 0.72rem;
  }

  .split,
  .deal-layout,
  .newsletter-layout,
  .deal-feature-layout,
  .release-panel,
  .about-hero-layout,
  .about-focus-grid,
  .author-profile-layout,
  .contact-layout,
  .page-layout,
  .contact-topic-grid,
  .disclosure-layout,
  .policy-layout,
  .policy-sections,
  .start-path-grid,
  .book-detail-layout,
  .book-grid,
  .product-grid,
  .search-result-grid,
  .product-path-grid,
  .reader-fit-grid,
  .reader-path-grid,
  .related-reading-paths-grid,
  .seo-intent-grid,
  .matching-picks-grid,
  .reader-reviews-panel,
  .path-grid,
  .picks-trust-grid,
  .product-picks-hero .section-inner,
  .section-heading-row,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .product-picks-hero .picks-trust-grid {
    grid-column: 1;
    grid-row: auto;
    margin-top: clamp(24px, 5vw, 42px);
  }

  .book-detail-cover {
    position: static;
  }

  .reader-signup-cta,
  .reader-signup-row {
    grid-template-columns: 1fr;
  }

  .book-card {
    grid-template-rows: auto 1fr;
  }

  .contact-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .menu {
    gap: 8px;
    font-size: 0.86rem;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .site-header .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header .menu a,
  .nav > a {
    min-height: 42px;
  }

  .footer {
    padding-inline: 14px;
  }

  .footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
  }

  .footer .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .footer nav a,
  .footer nav li,
  .footer .menu a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-topic-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .footer-topic-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px;
    font-size: 0.76rem;
  }

  .footer-social {
    width: 100%;
  }

  .footer-social a {
    flex: 1 1 92px;
    text-align: center;
  }

  h1 {
    font-size: 3rem;
  }

  .marymo-localized-informational h1,
  .marymo-localized-informational .hero h1 {
    font-size: 2.55rem;
  }

  .deal-panel h2 {
    font-size: 2.35rem;
  }

  .hero {
    min-height: auto;
    gap: 8px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-cover-strip {
    margin-top: -150px;
  }

  .hero .hero-copy {
    margin-top: 14px;
  }

  .hero .hero-actions {
    margin-top: 18px;
  }

  .author-photo-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .author-photo-card-1,
  .author-photo-card-2,
  .author-photo-card-3 {
    grid-row: auto;
  }

  .button,
  .filter-button,
  .card-actions a {
    width: 100%;
  }

  .not-found-search .search-form {
    grid-template-columns: 1fr;
  }

  .not-found-search .search-submit {
    width: 100%;
  }
}
