/*
Theme Name: Mad Zeeks Storyhouse
Theme URI: https://example.com/mad-zeeks-storyhouse
Author: Mad Zeeks
Author URI: https://example.com
Description: A polished and family-friendly author website theme with a clean structure and whimsical storytelling details.
Version: 1.0.5
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mad-zeeks-storyhouse
*/

/* Mad Zeeks Books brand colors — Brand Theme Guide */
:root {
  /* MAD ZEEKS TEAL — large backgrounds, headers */
  --mz-teal: #1f6c7e;
  /* ZEEKS ORANGE — primary brand typography, headings, CTAs */
  --mz-orange: #f06d3f;
  /* MADZEEKS BOOKS TEAL — secondary text, sub-headers */
  --mz-teal-dark: #19525c;
  /* ZEEKS BLACK — default presentation background */
  --mz-black: #000000;
  /* ZOMBIE GREEN — mascot accent only; use sparingly */
  --mz-zombie: #7cb342;

  --mz-bg: var(--mz-black);
  --mz-surface: #0c2228;
  --mz-surface-raised: #11282f;
  --mz-ink: #e2f0f2;
  --mz-muted: #7eb8c3;
  --mz-primary: var(--mz-orange);
  --mz-accent: var(--mz-zombie);
  --mz-radius: 14px;
  --mz-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --mz-border: rgba(31, 108, 126, 0.5);
  --mz-max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  color: var(--mz-ink);
  background: var(--mz-bg);
  line-height: 1.72;
}

a {
  color: var(--mz-orange);
  text-decoration-thickness: 2px;
}

a:hover,
a:focus-visible {
  color: #ff8f66;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--mz-teal);
  border-bottom: 1px solid var(--mz-teal-dark);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-breadcrumbs {
  position: relative;
  z-index: 20;
  width: 100%;
  text-align: left;
  background: var(--mz-bg);
  border-bottom: 1px solid var(--mz-border);
  padding: 0.4rem 0 0.55rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.site-breadcrumbs__nav {
  text-align: left;
}

.site-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.2rem;
  row-gap: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--mz-muted);
}

.site-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-breadcrumbs__item:not(:last-child)::after {
  content: "›";
  color: #6a949e;
  font-size: 0.95em;
  margin: 0 0.1rem 0 0.15rem;
  font-weight: 400;
}

.site-breadcrumbs__link {
  color: #8cb8c0;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.1rem 0.15rem;
  margin: -0.1rem -0.15rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-breadcrumbs__link:hover,
.site-breadcrumbs__link:focus-visible {
  color: var(--mz-orange);
  background: rgba(0, 0, 0, 0.15);
  outline: none;
}

.site-breadcrumbs__link.is-current,
.site-breadcrumbs__link[aria-current="page"] {
  color: var(--mz-orange);
  font-weight: 600;
  cursor: default;
}

.site-header__announcement {
  background: var(--mz-teal-dark);
  color: #e8f5f7;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.4rem 1rem;
}

.site-header__announcement a {
  color: var(--mz-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header__announcement a:hover,
.site-header__announcement a:focus-visible {
  color: #ff9a72;
}

.site-header__announcement-inner {
  max-width: min(var(--mz-max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.header-widget-area {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #b0d4dc;
}

.header-widget-area--nav {
  max-width: 20rem;
}

.header-widget-area .widget {
  margin: 0;
}

.header-widget-area .widget-inner > :last-child {
  margin-bottom: 0;
}

.header-widget-area .widget-title {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8cb8c0;
  margin: 0 0 0.2rem;
}

.site-header__inner,
.site-main,
.site-footer [class*="site-footer__inner"],
.site-breadcrumbs__inner--constrained {
  width: min(var(--mz-max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1rem;
}

.site-header__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .site-header__end {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem 1.2rem;
  }
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-branding__mark {
  flex-shrink: 0;
  line-height: 0;
}

.site-branding__mark .custom-logo-link {
  display: block;
  line-height: 0;
}

.site-branding__mark .custom-logo,
.site-branding__mark img.custom-logo {
  display: block;
  height: auto;
  max-height: var(--mz-header-logo-max-height, 2.5rem);
  width: auto;
  max-width: var(--mz-header-logo-max-width, 10rem);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.site-branding__badge {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--mz-zombie);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.site-title {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: var(--mz-header-site-title-size, 1.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--mz-orange);
  text-transform: uppercase;
  font-weight: 700;
}

.site-title a {
  font-size: inherit;
  color: var(--mz-orange);
  text-decoration: none;
}

.site-tagline {
  display: block;
  color: #b0d4dc;
  font-size: 0.86rem;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.primary-menu li {
  position: relative;
  padding-bottom: 0.3rem;
}

.primary-menu a {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-weight: 600;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: rgba(0, 0, 0, 0.25);
  color: var(--mz-orange);
}

.primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  min-width: 220px;
  position: absolute;
  top: calc(100% - 0.05rem);
  left: 0;
  background: var(--mz-teal-dark);
  border: 1px solid var(--mz-teal);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 40;
}

.primary-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.45rem;
  height: 0.5rem;
}

.primary-menu .sub-menu li {
  width: 100%;
}

.primary-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  color: #e8f5f7;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
  color: var(--mz-orange);
  background: rgba(0, 0, 0, 0.2);
}

.primary-menu li:hover > .sub-menu {
  display: block;
}

.site-main {
  flex: 1;
  padding: 2rem 0 3rem;
  background: var(--mz-bg);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--mz-teal-dark);
  color: var(--mz-orange);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease,
    background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--mz-black);
  border-color: var(--mz-orange);
  color: #ff9a72;
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--mz-orange);
  outline-offset: 2px;
}

.back-to-top__icon {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}

@media (min-width: 900px) {
  .back-to-top {
    right: 1.5rem;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

.hero {
  background: var(--mz-surface-raised);
  border-radius: 20px;
  box-shadow: var(--mz-shadow);
  padding: clamp(1.2rem, 4vw, 3rem);
  margin-bottom: 1.8rem;
  border: 1px solid var(--mz-border);
}

.hero--featured-book {
  position: relative;
  min-height: clamp(260px, 38vw, 420px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--featured-book .hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  margin-bottom: 1.8rem;
}

.hero-carousel__track {
  position: relative;
}

.hero-carousel [data-hero-slide] {
  display: none;
  margin-bottom: 0;
}

.hero-carousel [data-hero-slide].is-active {
  display: block;
}

.hero-carousel__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero-carousel__button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(22, 25, 33, 0.55);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.hero-carousel__button:hover {
  background: rgba(31, 108, 126, 0.85);
}

.hero-carousel__dots {
  position: absolute;
  left: 1rem;
  bottom: 1.2rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero-carousel__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-carousel__dot.is-active {
  background: #ffffff;
}

.hero--featured-book .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(25, 82, 92, 0.55) 45%, rgba(31, 108, 126, 0.25) 100%);
}

.hero--featured-book .hero__content {
  position: relative;
  z-index: 2;
  max-width: 58ch;
}

.hero--featured-book h1,
.hero--featured-book p,
.hero--featured-book .hero__eyebrow {
  color: #ffffff;
}

.hero--featured-book .button--secondary {
  background: #ffffff;
  color: var(--mz-teal-dark);
}

.hero__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--mz-orange);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  font-size: 0.75rem;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero p {
  max-width: 64ch;
  color: var(--mz-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  line-height: 1.3;
  color: var(--mz-orange);
}

/* Hero carousel: headings stay on-brand light over photography */
.hero--featured-book h1,
.hero--featured-book h2 {
  color: #ffffff;
}

.hero--featured-book .hero__hook {
  margin: 0.65rem 0 0;
  line-height: 1.6;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
}

.button--primary {
  background: var(--mz-orange);
  color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #e55a2a;
  color: #fff;
}

.button--secondary {
  color: var(--mz-orange);
  background: transparent;
  border: 2px solid var(--mz-orange);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(240, 109, 63, 0.15);
  color: #ff9a72;
}

.content-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.4rem;
}

/* Home: News and Updates — three even columns; cards fill row height */
.content-grid--titled.content-grid--home-news {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .content-grid--titled.content-grid--home-news {
    grid-template-columns: 1fr;
  }
}

.content-grid__headline,
.story-list__headline {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mz-orange);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--mz-border);
}

.story-list__headline {
  margin-bottom: 0.25rem;
}

.card {
  background: var(--mz-surface-raised);
  border-radius: var(--mz-radius);
  box-shadow: var(--mz-shadow);
  border: 1px solid var(--mz-border);
  padding: 1.1rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--mz-muted);
}

.card--home-news {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.card--home-news .card__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--mz-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card--home-news .card__text p {
  margin: 0 0 0.6rem;
}

.card--home-news .card__text p:last-child {
  margin-bottom: 0;
}

.card--home-news .card__title {
  margin: 0 0 0.6rem;
}

.card--home-news .card__cta {
  margin: 0;
  margin-top: auto;
  padding-top: 0.85rem;
}

.card--home-news .card__cta .button {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.story-list {
  display: grid;
  gap: 1rem;
}

.story-list--titled {
  margin-top: 0.4rem;
}

.story {
  background: var(--mz-surface-raised);
  border-left: 4px solid var(--mz-orange);
  border-radius: 12px;
  box-shadow: var(--mz-shadow);
  padding: 1rem;
}

/* Blog list: ~20% featured image, ~80% text; featured image is centered in its frame */
.story--has-media .story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}

.story__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.story__img-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--mz-border);
  background: rgba(0, 0, 0, 0.2);
}

.story__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.story__placeholder {
  position: absolute;
  inset: 0;
  min-height: 8.5rem;
  background: linear-gradient(145deg, var(--mz-teal-dark) 0%, #0d2024 100%);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.story__content {
  min-width: 0;
}

.story h2 a,
.story h3 a,
.story .story__title a {
  color: var(--mz-orange);
}

.story__title {
  margin: 0 0 0.5rem;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.story h3.story__title {
  font-size: 1.1rem;
}

.story__meta {
  color: var(--mz-muted);
  font-size: 0.88rem;
}

.story__excerpt {
  color: var(--mz-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.story__excerpt p {
  margin: 0 0 0.4rem;
  color: #b5d0d6;
}

.story__excerpt p:last-child {
  margin-bottom: 0;
}

.entry-content {
  background: var(--mz-surface-raised);
  border-radius: var(--mz-radius);
  box-shadow: var(--mz-shadow);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--mz-border);
  color: var(--mz-ink);
}

.entry-content p,
.entry-content li {
  color: #b5d0d6;
}

.entry-title {
  margin-top: 0;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  color: var(--mz-orange);
}

/* Single blog post: featured image top-right, text wraps */
.entry-content.single-post {
  max-width: 100%;
  overflow: visible;
}

.entry-content.single-post .single-post__header {
  margin: 0 0 0.5rem;
}

.entry-content.single-post .single-post__header .entry-title {
  margin-bottom: 0;
}

.entry-content.single-post .single-post__thumb {
  float: right;
  max-width: min(84%, 40rem);
  width: 100%;
  margin: 0.15rem 0 0.85rem 1.35rem;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mz-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.entry-content.single-post .single-post__thumb-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48rem;
  object-fit: cover;
  object-position: center center;
}

.entry-content.single-post::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content.single-post .alignfull,
.entry-content.single-post .alignwide {
  clear: both;
}

.site-footer {
  background: var(--mz-black);
  color: #b0d4dc;
  border-top: 1px solid var(--mz-teal-dark);
}

.site-footer__inner--top {
  padding: 1.1rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.site-footer__body .site-footer__inner,
.site-footer__body .site-footer__inner--body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0 0.2rem;
  gap: 0.4rem;
}

.site-footer__inner--bottom {
  padding: 0.6rem 0 1.15rem;
}

.site-footer__after {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 0 1.1rem;
  border-top: 1px solid rgba(25, 82, 92, 0.5);
  align-items: stretch;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  border-top: 1px solid rgba(25, 82, 92, 0.6);
  padding-top: 0.9rem;
}

.site-footer__row--socials {
  display: flex;
  justify-content: center;
  border-top: 0;
  padding-top: 0;
  margin: 0;
  width: 100%;
}

.site-footer__row--meta {
  display: grid;
  align-items: center;
  column-gap: 1.2rem;
  row-gap: 0.9rem;
  width: 100%;
  border-top: 1px solid rgba(25, 82, 92, 0.6);
  padding-top: 0.9rem;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-footer__row--meta.has-in-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.site-footer__in-row {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #b0d4dc;
  justify-self: center;
  text-align: center;
}

.site-footer__in-row .widget {
  margin: 0;
  text-align: center;
}

.site-footer__in-row .widget .widget-title:not(.screen-reader-text) {
  margin: 0 0 0.3rem;
  color: #8cb8c0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__copyright {
  margin: 0;
  min-width: 0;
  font-size: 0.88rem;
  color: #8cb8c0;
  justify-self: start;
  text-align: left;
  line-height: 1.45;
}

.site-footer__menu {
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.inline-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  justify-content: flex-end;
  align-items: center;
}

.inline-menu a {
  color: var(--mz-orange);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.inline-menu a:hover,
.inline-menu a:focus-visible,
.inline-menu .current-menu-item > a {
  color: #ff9a72;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Social bar */
.social-icons {
  line-height: 0;
}

.social-icons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.site-header__end .social-icons--header .social-icons__list,
.social-icons--header .social-icons__list {
  justify-content: flex-end;
}

.social-icons__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #e8f5f7;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.social-icons__link:hover,
.social-icons__link:focus-visible {
  color: var(--mz-orange);
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--mz-orange);
  outline: none;
}

.site-footer .social-icons__link {
  color: #b0d4dc;
  background: rgba(25, 82, 92, 0.35);
  border-color: var(--mz-teal);
}

.site-footer .social-icons__link:hover,
.site-footer .social-icons__link:focus-visible {
  color: #ffffff;
  border-color: var(--mz-orange);
}

.screen-reader-text,
.screen-reader-text:focus,
.screen-reader-text:active,
.screen-reader-text:hover {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
  position: fixed !important;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100000;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.5rem 0.9rem;
  overflow: visible !important;
  white-space: normal !important;
  background: var(--mz-black);
  color: #e8f5f7;
  font-weight: 600;
  border: 1px solid var(--mz-orange);
  border-radius: 6px;
  text-decoration: none;
}

.skip-link.screen-reader-text:focus-visible {
  outline: 2px solid var(--mz-orange);
  outline-offset: 2px;
}

.site-footer a {
  color: var(--mz-orange);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ff9a72;
}

.entry-content img,
.entry-content iframe,
.entry-content video,
.story img:not(.story__image) {
  max-width: 100%;
  height: auto;
}

.entry-content .wp-block-image img {
  border-radius: 10px;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  max-width: 100%;
}

.series-page {
  display: grid;
  gap: 1.3rem;
}

.series-intro {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
  align-items: stretch;
}

.series-intro__image,
.series-intro__about {
  border-radius: var(--mz-radius);
  overflow: hidden;
}

.series-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-intro__image-placeholder {
  background: var(--mz-teal-dark);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #8ec8d2;
  border: 1px dashed var(--mz-teal);
}

.series-books {
  display: grid;
  gap: 1rem;
}

.series-books h2,
.series-related-posts h2 {
  margin: 0;
}

.series-books__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-content: start;
}

@media (max-width: 900px) {
  .series-books__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .series-books__grid {
    grid-template-columns: 1fr;
  }
}

.series-book {
  position: relative;
  min-height: 280px;
  border-radius: var(--mz-radius);
  overflow: hidden;
  background: var(--mz-teal-dark);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--mz-border);
}

.series-book__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.series-book__content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
}

.series-book__content h3 {
  margin: 0;
  font-size: clamp(1.12rem, 2.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.series-book__content p {
  color: #ffffff;
  margin: 0;
}

.series-book__titlelink {
  color: var(--mz-orange) !important;
  text-decoration: none;
  font-weight: 800;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 0.5);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.series-book__titlelink:hover,
.series-book__titlelink:focus-visible {
  text-decoration: underline;
  color: #ff9a70 !important;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.95),
    0 2px 4px rgba(0, 0, 0, 0.85);
}

.series-book__age-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a1a1e !important;
  background: var(--mz-zombie);
  display: inline-block;
  width: fit-content;
  margin: 0.35rem 0 0 !important;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.series-book__hookline {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e2f0f2 !important;
  font-style: italic;
  margin: 0.45rem 0 0 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}

.series-book__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.series-book--catalog .button--secondary {
  color: var(--mz-orange) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: transparent;
}

.series-related-posts {
  display: grid;
  gap: 1rem;
}

.featured-series {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.featured-series__header {
  background: var(--mz-surface-raised);
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius);
  box-shadow: var(--mz-shadow);
  padding: 1rem;
}

.featured-series__header h2 {
  margin: 0 0 0.45rem;
}

.featured-series__header p {
  margin: 0;
  color: var(--mz-muted);
}

.featured-series__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.featured-series__card {
  position: relative;
  min-height: 250px;
  border-radius: var(--mz-radius);
  overflow: hidden;
  border: 1px solid var(--mz-border);
  background: var(--mz-teal-dark);
  background-size: cover;
  background-position: center;
}

.featured-series__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(25, 82, 92, 0.9) 100%);
}

.featured-series__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
}

.featured-series__content h3,
.featured-series__content p {
  margin: 0;
  color: #ffffff;
}

.featured-series__content .button {
  align-self: flex-start;
}

/* —— Books storefront (catalog) —— */
.book-page-intro {
  margin-bottom: 1.5rem;
}

.book-page-lede {
  color: var(--mz-muted);
  margin: 0.5rem 0 0;
}

.book-storefront {
  display: grid;
  gap: 1.25rem;
}

.book-storefront__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--mz-teal);
  border: 1px solid var(--mz-teal-dark);
  border-radius: var(--mz-radius);
  box-shadow: var(--mz-shadow);
}

.book-storefront__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.book-storefront__sub {
  margin: 0;
  color: #b8dde5;
  font-size: 0.95rem;
}

.book-storefront__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--mz-surface-raised);
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius);
  box-shadow: var(--mz-shadow);
  overflow: hidden;
}

.book-card__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
}

.book-card__image-wrap {
  background: #0a1a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1rem;
}

.book-card__cover {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.book-card__cover--placeholder {
  width: 200px;
  height: 300px;
  background: linear-gradient(145deg, var(--mz-teal-dark), #0a2328);
  border: 1px dashed var(--mz-teal);
  border-radius: 4px;
  margin: 0 auto;
}

.book-card__body {
  padding: 1rem 1.1rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.book-card__name {
  margin: 0;
  font-size: 1.2rem;
}

.book-card__name a {
  color: var(--mz-orange);
  text-decoration: none;
}

.book-card__name a:hover {
  text-decoration: underline;
}

.book-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.2rem;
}

a.book-card__series {
  display: inline-block;
  color: #b8ecf2;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  padding: 0.15rem 0.5rem;
  background: rgba(31, 108, 126, 0.45);
  border: 1px solid var(--mz-teal);
  border-radius: 999px;
}

a.book-card__series:hover {
  color: var(--mz-orange);
  border-color: var(--mz-orange);
}

span.book-card__category {
  display: inline-block;
  font-size: 0.85rem;
  color: #8ec8d2;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.book-card__age {
  margin: 0;
  display: inline-block;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a1a1e;
  background: var(--mz-zombie);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.book-card__hook {
  margin: 0;
  color: #c8e4e9;
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
}

.book-card__excerpt p {
  margin: 0 0 0.4rem;
  color: #b0d0d6;
  font-size: 0.92rem;
  line-height: 1.55;
}

.book-card__read-more {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.book-card__read-more:hover {
  text-decoration: underline;
}

.book-card__actions {
  margin-top: auto;
  padding: 0.85rem 1.1rem 1.1rem;
  border-top: 1px solid var(--mz-border);
  background: rgba(0, 0, 0, 0.2);
}

.book-card__actions .button--primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.book-card__no-buy {
  font-size: 0.85rem;
  color: #8ec8d2;
}

.book-storefront--empty p {
  color: var(--mz-muted);
}

/* Single book */
.book-single {
  max-width: 100%;
}

.book-single__header {
  margin-bottom: 1.25rem;
}

.book-single__categories {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.book-single__cat-sep {
  color: var(--mz-teal);
  margin: 0 0.15rem;
}

.book-single__age {
  margin: 0.35rem 0 0;
  color: var(--mz-zombie);
  font-weight: 600;
  font-size: 0.95rem;
}

.book-single__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.book-single__image {
  text-align: center;
}

.book-single__cover {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.book-single__hook {
  font-size: 1.1rem;
  color: #c8e4e9;
  margin: 0 0 1rem;
}

.book-single__actions {
  margin: 1.25rem 0 0.75rem;
}

.book-single__back {
  margin: 0 0 0.5rem;
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-widget-area {
    max-width: 100%;
    width: 100%;
  }

  .site-header__end {
    width: 100%;
    align-items: flex-start;
  }

  .site-header__end .social-icons--header .social-icons__list,
  .social-icons--header .social-icons__list {
    justify-content: flex-start;
  }

  .site-footer__row--meta,
  .site-footer__row--meta.has-in-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer__copyright,
  .site-footer__menu,
  .site-footer__in-row {
    justify-self: center;
    text-align: center;
  }

  .inline-menu {
    justify-content: center;
  }

  .story--has-media .story__inner {
    grid-template-columns: 1fr;
  }

  .story__img-link,
  .story__image,
  .story__placeholder {
    min-height: 6.5rem;
  }

  .entry-content.single-post .single-post__thumb {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0.25rem 0 1.1rem 0;
  }

  .site-main {
    padding-top: 1.2rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero--featured-book {
    min-height: 240px;
  }

  .hero-carousel__controls {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .hero-carousel__dots {
    left: 0.7rem;
    bottom: 0.85rem;
  }

  .entry-content,
  .story,
  .card {
    padding: 0.9rem;
  }

  .series-intro {
    grid-template-columns: 1fr;
  }

  .featured-series__header {
    padding: 0.9rem;
  }

  .book-storefront__grid {
    grid-template-columns: 1fr;
  }

  .book-single__grid {
    grid-template-columns: 1fr;
  }
}
