/* =========================================================
   KMD PRESS
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --ink: #242028;
  --muted: #67616a;
  --paper: #fbf5ea;
  --surface: #ffffff;

  --navy: #22264e;
  --navy-dark: #171a38;

  --rose: #845064;
  --rose-dark: #63384a;
  --blush: #efdfe0;

  --gold: #b88945;
  --gold-soft: #ead8b9;

  --sage: #768978;
  --sage-soft: #e8eee6;

  --plum: #845064;
  --plum-dark: #63384a;

  --ecovimo: #16bf00;
  --ecovimo-dark: #118c00;

  --line: #ddd3c5;
  --danger: #8c2f39;

  --shadow:
    0 22px 60px rgba(44, 33, 42, 0.14);

  --radius-sm: 0.55rem;
  --radius: 1rem;
  --radius-lg: 1.65rem;

  --max: 1180px;

  --font-display:
    Georgia,
    "Times New Roman",
    serif;

  --font-body:
    "Trebuchet MS",
    "Segoe UI",
    Arial,
    sans-serif;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--ink);
  background: var(--paper);

  font-family: var(--font-body);
  line-height: 1.65;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


/* Keep all images proportional */

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--plum);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--plum-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;

  padding: 0.7rem 1rem;

  border-radius: var(--radius-sm);

  background: var(--ink);
  color: white;

  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   LAYOUT
   ========================================================= */

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

.narrow {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
}

.section {
  padding:
    clamp(3.5rem, 8vw, 7rem)
    0;
}

.section-sm {
  padding: 2.5rem 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.eyebrow {
  margin: 0 0 0.65rem;

  color: var(--rose-dark);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.heading-xl,
.heading-lg,
h1,
h2,
h3 {
  font-family: var(--font-display);

  font-kerning: normal;
  text-rendering: optimizeLegibility;

  line-height: 1.12;

  text-wrap: balance;
}

.heading-xl,
h1 {
  margin: 0 0 1rem;

  font-size:
    clamp(2.55rem, 7vw, 5.8rem);

  font-weight: 700;

  letter-spacing: 0.012em;
}

.heading-lg,
h2 {
  margin: 0 0 1rem;

  font-size:
    clamp(2rem, 4vw, 3.55rem);

  letter-spacing: 0.016em;
}

h3 {
  margin: 0 0 0.55rem;

  font-size:
    clamp(1.35rem, 2vw, 1.85rem);

  letter-spacing: 0.01em;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 760px;

  color: var(--muted);

  font-size:
    clamp(1.08rem, 2vw, 1.3rem);
}

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

.small {
  font-size: 0.9rem;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom:
    1px solid rgba(132, 80, 100, 0.15);

  background:
    rgba(251, 245, 234, 0.94);

  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;

  gap: 0.55rem;

  color: var(--ink);

  font-family: var(--font-body);

  font-size: 1rem;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: auto;

  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--plum);
  color: white;

  font-family: var(--font-display);

  font-size: 1rem;

  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;

  gap: 0.25rem;
}

.site-nav a {
  padding:
    0.65rem
    0.78rem;

  border-radius: 999px;

  color: var(--ink);

  font-size: 0.95rem;
  font-weight: 700;

  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f1e4df;
  color: var(--navy);
}


/* Free Coloring Pages navigation button */

.site-nav .nav-freebie {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0.58rem
    0.95rem;

  border-radius: 999px;

  background: var(--navy);
  color: white;

  font-weight: 800;

  white-space: nowrap;

  text-decoration: none;
}

.site-nav .nav-freebie:hover,
.site-nav .nav-freebie:focus-visible {
  background: var(--navy-dark);
  color: white;
}


/* Mobile navigation button */

.nav-toggle {
  display: none;

  width: 44px;
  height: 44px;

  border:
    1px solid var(--line);

  border-radius: 50%;

  background: var(--surface);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";

  display: block;

  width: 20px;
  height: 2px;

  margin: 4px auto;

  background: var(--ink);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  padding:
    clamp(4.5rem, 11vw, 9rem)
    0
    clamp(4rem, 9vw, 7.5rem);

  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(185, 136, 67, 0.19),
      transparent 25%
    ),
    radial-gradient(
      circle at 9% 84%,
      rgba(114, 138, 116, 0.2),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #fffaf2 0%,
      #f6ecdf 100%
    );
}

.hero-grid {
  display: grid;

  grid-template-columns:
    1.2fr 0.8fr;

  align-items: center;

  gap:
    clamp(2rem, 6vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  color: var(--navy);
  max-width: 760px;
}

.hero-books {
  padding:
    clamp(4rem, 8vw, 7.5rem)
    0;

  background:
    radial-gradient(
      circle at 82% 25%,
      rgba(239, 223, 224, 0.9),
      transparent 27%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(234, 216, 185, 0.65),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #fcf8f0,
      #f6eadf
    );
}

.hero-books::after {
  content: "✦";

  position: absolute;

  left: 5%;
  top: 10%;

  color:
    rgba(132, 80, 100, 0.15);

  font-size: 4rem;

  transform: rotate(15deg);
}


/* =========================================================
   ORIGINAL HERO ART
   ========================================================= */

.hero-art {
  min-height: 420px;

  position: relative;

  display: grid;
  place-items: center;
}

.hero-orbit {
  width: min(100%, 430px);

  aspect-ratio: 1;

  border:
    1px solid rgba(93, 48, 77, 0.18);

  border-radius: 50%;

  position: relative;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";

  position: absolute;

  inset: 12%;

  border:
    1px dashed
    rgba(93, 48, 77, 0.24);

  border-radius: 50%;
}

.hero-orbit::after {
  inset: 28%;
  border-style: solid;
}

.hero-badge {
  position: absolute;

  display: grid;
  place-items: center;

  border-radius: 50%;

  box-shadow: var(--shadow);

  background: var(--surface);

  text-align: center;

  font-family: var(--font-display);

  font-weight: 700;
}

.hero-badge.one {
  width: 150px;
  height: 150px;

  top: 3%;
  right: 5%;

  color: var(--plum);

  transform: rotate(4deg);
}

.hero-badge.two {
  width: 120px;
  height: 120px;

  bottom: 4%;
  left: 4%;

  color: var(--ecovimo);

  transform: rotate(-5deg);
}

.hero-badge.three {
  width: 170px;
  height: 170px;

  inset:
    50% auto auto 50%;

  transform:
    translate(-50%, -50%);

  background: var(--plum);

  color: white;
}


/* =========================================================
   FIVE-BOOK HOMEPAGE HERO
   Christmas book centered at bottom
   ========================================================= */

.hero-all-books {
  position: relative;
}

.hero-cover-collection {
  position: relative;

  width: 100%;
  max-width: 600px;

  min-height: 590px;

  margin: 0 auto;
}

.hero-glow {
  position: absolute;

  inset: 8% 2% 5% 8%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.96),
      rgba(239, 223, 224, 0.55) 55%,
      transparent 72%
    );
}

.hero-book {
  position: absolute;

  display: block;

  width: 32%;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.hero-book img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 5px;

  box-shadow:
    0 18px 38px
    rgba(0, 0, 0, 0.23);
}

.hero-book:hover {
  z-index: 30;

  filter: brightness(1.03);
}


/* Fairies & Flowers Volume One */

.hero-book-1 {
  left: 11%;
  top: 5px;

  transform: rotate(-5deg);

  z-index: 5;
}

.hero-book-1:hover {
  transform:
    rotate(-5deg)
    translateY(-10px)
    scale(1.05);
}


/* Fairies & Flowers Volume Two */

.hero-book-2 {
  right: 11%;
  top: 5px;

  transform: rotate(5deg);

  z-index: 5;
}

.hero-book-2:hover {
  transform:
    rotate(5deg)
    translateY(-10px)
    scale(1.05);
}


/* Christmas Holiday Fun Word Search */

.hero-book-3 {
  left: 34%;
  top: 350px;

  transform: rotate(0deg);

  z-index: 8;
}

.hero-book-3:hover {
  transform:
    translateY(-10px)
    scale(1.05);
}


/* Pixel Pests */

.hero-book-4 {
  left: 3%;
  top: 205px;

  transform: rotate(6deg);

  z-index: 4;
}

.hero-book-4:hover {
  transform:
    rotate(6deg)
    translateY(-10px)
    scale(1.05);
}


/* Recipes Dinosaurs Love */

.hero-book-5 {
  right: 3%;
  top: 205px;

  transform: rotate(-6deg);

  z-index: 4;
}

.hero-book-5:hover {
  transform:
    rotate(-6deg)
    translateY(-10px)
    scale(1.05);
}


/* Message below books */

.hero-note {
  display: flex;
  flex-direction: column;

  max-width: 280px;

  padding:
    0.85rem 1.1rem;

  border:
    1px solid
    rgba(132, 80, 100, 0.18);

  border-radius: 1rem;

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 12px 35px
    rgba(44, 33, 42, 0.14);

  color: var(--navy);
}

.hero-all-books .hero-note {
  position: relative;

  z-index: 30;

  max-width: 310px;

  margin: 0 auto;

  text-align: center;
}

.hero-note strong {
  font-size: 0.92rem;
}


/* =========================================================
   BUTTONS / LINKS
   All active action buttons use one consistent style.
   ========================================================= */

.button-row {
  display: flex;
  flex-wrap: wrap;

  gap: 0.8rem;

  margin-top: 1.6rem;
}


/* Main button style */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    0.75rem
    1.15rem;

  border:
    1px solid var(--navy);

  border-radius: 999px;

  background: var(--navy);

  color: white;

  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;

  line-height: 1.2;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--navy-dark);

  background: var(--navy-dark);

  color: white;

  transform: translateY(-2px);

  box-shadow:
    0 9px 25px
    rgba(60, 31, 50, 0.18);
}


/*
   Older button classes are intentionally
   normalized to the main button appearance.
*/

.btn-secondary,
.btn-light,
.btn-eco {
  border-color: var(--navy);

  background: var(--navy);

  color: white;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-light:hover,
.btn-light:focus-visible,
.btn-eco:hover,
.btn-eco:focus-visible {
  border-color: var(--navy-dark);

  background: var(--navy-dark);

  color: white;
}


/* Compact version used in catalogue cards */

.btn-small,
.book-card .btn-small {
  min-height: 40px;

  padding:
    0.55rem
    0.9rem;

  font-size: 0.88rem;
}


/* Inactive / coming-soon buttons */

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;

  cursor: not-allowed;

  pointer-events: none;

  transform: none;

  box-shadow: none;
}


/*
   Buttons on the dark CTA panels use the same
   shape and typography, but reverse to white
   so they remain clearly visible.
*/

.cta-band .btn,
.cta-band .btn-secondary,
.cta-band .btn-light,
.cta-band .btn-eco {
  border-color: white;

  background: white;

  color: var(--navy);
}

.cta-band .btn:hover,
.cta-band .btn:focus-visible,
.cta-band .btn-secondary:hover,
.cta-band .btn-secondary:focus-visible,
.cta-band .btn-light:hover,
.cta-band .btn-light:focus-visible,
.cta-band .btn-eco:hover,
.cta-band .btn-eco:focus-visible {
  border-color: #f7eee5;

  background: #f7eee5;

  color: var(--navy);
}


/* Ordinary inline text links */

.text-link {
  font-weight: 800;

  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}


/* =========================================================
   FEATURE STRIP
   ========================================================= */

.feature-strip {
  border-block:
    1px solid rgba(184, 137, 69, 0.22);

  background: white;
}

.feature-strip-grid {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 0.75rem;

  padding:
    1.25rem 0;
}

.feature-item {
  display: inline-flex;
  align-items: center;

  padding: 0;

  border: 0;

  color: var(--navy);

  font-family: var(--font-display);

  font-size:
    clamp(1rem, 1.5vw, 1.12rem);

  font-weight: 700;

  letter-spacing: 0.012em;

  text-align: center;
}

.feature-item:not(:last-child)::after {
  content: "✦";

  margin-left: 0.75rem;

  color: var(--gold);

  font-family: var(--font-body);

  font-size: 0.68rem;
}


/* =========================================================
   GENERIC GRIDS
   ========================================================= */

.grid-2 {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(1.25rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1.35rem;
}

.grid-4 {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 1.2rem;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
  border:
    1px solid var(--line);

  border-radius:
    var(--radius-lg);

  background:
    var(--surface);

  box-shadow:
    0 8px 30px
    rgba(44, 33, 42, 0.06);

  overflow: hidden;
}

.card-body {
  padding: 1.3rem;
}

.card-hover {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-hover:hover {
  transform:
    translateY(-5px);

  box-shadow:
    var(--shadow);
}

.icon-card {
  padding: 1.4rem;
}

.icon-chip {
  display: inline-grid;
  place-items: center;

  width: 46px;
  height: 46px;

  margin-bottom: 1rem;

  border-radius: 14px;

  background: #f0e1e4;

  color: var(--navy);

  font-weight: 900;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-head {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 2rem;
}

.section-head > div {
  max-width: 760px;
}


/* =========================================================
   FEATURED SERIES
   ========================================================= */

.featured-series {
  background: #fffaf2;
}

.featured-series-head {
  max-width: 900px;

  margin:
    0 auto 3rem;

  text-align: center;
}

.featured-series-label {
  display: inline-block;

  margin-bottom: 1rem;

  padding:
    0.5rem
    1.15rem;

  border-radius: 999px;

  background: var(--rose-dark);

  color: white;

  font-family: var(--font-body);

  font-size: 0.84rem;
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.featured-series-head h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;

  color: var(--navy);

  font-size:
    clamp(2.2rem, 5vw, 3.8rem);

  line-height: 1.08;

  letter-spacing: 0.018em;
}

.featured-series-tagline {
  margin:
    0 0 1rem;

  color: var(--ink);

  font-size:
    clamp(1.2rem, 2.5vw, 1.55rem);

  font-weight: 600;
}

.featured-series-head .lead {
  max-width: 720px;

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   SPOTLIGHT / FEATURED BOOKS
   ========================================================= */

.spotlight-grid {
  display: grid;

  gap: 1.5rem;
}

.spotlight-card {
  display: grid;

  grid-template-columns:
    minmax(250px, 0.72fr)
    minmax(0, 1.28fr);

  gap:
    clamp(1.5rem, 4vw, 4rem);

  align-items: center;

  padding:
    clamp(1.25rem, 3vw, 2.25rem);

  border:
    1px solid var(--line);

  border-radius:
    var(--radius-lg);

  background: white;

  box-shadow:
    0 12px 42px
    rgba(44, 33, 42, 0.07);
}

.spotlight-card.reverse
.spotlight-cover {
  order: 2;
}

.spotlight-cover {
  max-width: 330px;

  margin-inline: auto;
}

.spotlight-cover img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 0.35rem;

  box-shadow:
    var(--shadow);
}

.spotlight-copy h3 {
  color: var(--navy);

  font-size:
    clamp(1.8rem, 3vw, 2.8rem);

  letter-spacing: 0.014em;
}

.clean-list {
  list-style: none;

  padding: 0;

  margin:
    1rem 0 1.5rem;
}

.clean-list li {
  position: relative;

  padding-left: 1.45rem;
}

.clean-list li + li {
  margin-top: 0.5rem;
}

.clean-list li::before {
  content: "✦";

  position: absolute;

  left: 0;

  color: var(--rose);
}


/* =========================================================
   FREE COLORING PAGES HOMEPAGE CTA
   ========================================================= */

.free-coloring-home {
  text-align: center;
}

.free-coloring-home .lead {
  max-width: 720px;

  margin-left: auto;
  margin-right: auto;
}

.free-coloring-home .button-row {
  justify-content: center;
}

.free-coloring-home h2 {
  letter-spacing: 0.02em;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
  background:
    linear-gradient(
      180deg,
      #f5e9e3,
      #fbf5ea
    );
}

.sample-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(1.25rem, 4vw, 3rem);
}

.sample-card {
  margin: 0;

  padding: 1rem;

  border:
    1px solid var(--line);

  border-radius:
    var(--radius-lg);

  background: white;

  box-shadow:
    var(--shadow);
}

.sample-card img {
  display: block;

  width: 100%;
  height: auto;

  border:
    1px solid #d6cec3;

  background: white;
}

.sample-card figcaption {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  padding:
    0.9rem
    0.2rem
    0.1rem;

  color: var(--navy);
}

.sample-card figcaption span {
  color: var(--muted);

  font-style: italic;
}


/* =========================================================
   COLOR REVEAL GALLERY
   ========================================================= */

.color-reveal-images {
  position: relative;

  overflow: hidden;
}

.color-reveal-images img {
  display: block;

  width: 100%;
  height: auto;
}

.color-reveal-images
.color-version {
  position: absolute;

  inset: 0;

  opacity: 0;

  transition:
    opacity 0.45s ease;
}

@media (hover: hover) {

  .color-reveal:hover
  .color-version {
    opacity: 1;
  }

}

.color-reveal.is-colored
.color-version {
  opacity: 1;
}

.color-toggle {
  margin-top: 0.75rem;

  border: 0;

  background: transparent;

  color: var(--navy);

  font: inherit;
  font-weight: 700;

  cursor: pointer;

  text-decoration: underline;

  text-underline-offset: 0.2em;
}

.preview-badge {
  position: absolute;

  top: 0.8rem;
  left: 0.8rem;

  z-index: 5;

  padding:
    0.35rem
    0.65rem;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.92);

  color: var(--rose-dark);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}


/* =========================================================
   BOOK CATALOGUE
   ========================================================= */

.book-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1.5rem;
}

.book-card {
  display: flex;

  flex-direction: column;

  min-height: 100%;
}

.book-cover-wrap {
  position: relative;

  aspect-ratio: 0.77;

  overflow: hidden;

  background: #ede6dc;
}

.book-cover {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.book-badge {
  position: absolute;

  top: 0.75rem;
  left: 0.75rem;

  padding:
    0.35rem
    0.65rem;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.93);

  color: var(--plum-dark);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.book-card .card-body {
  display: flex;

  flex: 1;

  flex-direction: column;

  padding: 1.35rem;
}


/* Smaller catalogue book titles */

.book-card h2 {
  margin:
    0 0 0.8rem;

  color: var(--ink);

  font-size:
    clamp(1.55rem, 2vw, 2.15rem);

  line-height: 1.12;

  letter-spacing: 0.01em;
}


/* Small category heading above title */

.book-card .eyebrow {
  margin-bottom: 0.55rem;

  font-size: 0.72rem;

  letter-spacing: 0.13em;
}


/* Catalogue description */

.book-card .card-body > p:not(.eyebrow) {
  font-size: 0.96rem;

  line-height: 1.65;
}


/* Catalogue tags */

.book-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 0.45rem;

  margin:
    0.65rem
    0
    0.9rem;
}

.tag {
  display: inline-flex;

  padding:
    0.25rem
    0.55rem;

  border-radius: 999px;

  background: var(--sage-soft);

  color: #36513a;

  font-size: 0.76rem;
  font-weight: 750;
}


/* Keep catalogue buttons aligned near bottom */

.book-card .button-row {
  margin-top: auto;
}

.book-card .btn-small {
  min-height: 40px;

  padding:
    0.55rem
    0.9rem;

  font-size: 0.88rem;
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
  display: grid;

  grid-template-columns:
    1.4fr
    repeat(2, minmax(160px, 0.6fr));

  gap: 0.8rem;

  margin-bottom: 2rem;

  padding: 1rem;

  border:
    1px solid var(--line);

  border-radius:
    var(--radius);

  background: white;
}

.field label {
  display: block;

  margin-bottom: 0.35rem;

  font-size: 0.85rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;

  min-height: 46px;

  border:
    1px solid #bfb4a7;

  border-radius: 0.7rem;

  background: white;

  color: var(--ink);

  padding:
    0.7rem
    0.8rem;
}

.field textarea {
  min-height: 130px;

  resize: vertical;
}

.results-note {
  margin:
    0 0 1rem;

  color: var(--muted);
}

.empty-state {
  padding: 2rem;

  border:
    1px dashed var(--line);

  border-radius:
    var(--radius);

  text-align: center;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
  padding:
    clamp(3.5rem, 8vw, 7rem)
    0
    3rem;

  background:
    linear-gradient(
      135deg,
      #fbf5ea,
      #f3e4df
    );

  border-bottom:
    1px solid var(--line);
}

.book-page-hero {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(239, 223, 224, 0.8),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #fbf5ea,
      #f5e8dd
    );
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumbs {
  margin-bottom: 1rem;

  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;

  gap: 0.45rem;

  list-style: none;

  padding: 0;
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";

  margin-left: 0.45rem;

  color: #998e83;
}


/* =========================================================
   BOOK DETAIL PAGES
   ========================================================= */

.book-detail {
  display: grid;

  grid-template-columns:
    minmax(250px, 0.72fr)
    minmax(0, 1.28fr);

  gap:
    clamp(2rem, 6vw, 5rem);

  align-items: start;
}

.book-detail-cover {
  position: sticky;

  top: 110px;
}

.book-detail-cover img {
  display: block;

  width: min(100%, 430px);
  height: auto;

  margin-inline: auto;

  border-radius: 0.3rem;

  box-shadow:
    var(--shadow);
}

.detail-list {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0.7rem;

  padding: 0;

  list-style: none;
}

.detail-list li {
  padding: 0.75rem;

  border-radius:
    var(--radius-sm);

  background:
    var(--sage-soft);
}

.notice {
  padding:
    1rem
    1.15rem;

  border-left:
    4px solid var(--gold);

  border-radius:
    0
    var(--radius-sm)
    var(--radius-sm)
    0;

  background:
    #fff5df;
}

.inline-badge {
  position: static;

  display: inline-flex;
}

.book-opening {
  color: var(--navy);

  font-family:
    var(--font-display);

  font-size: 1.55rem;

  font-style: italic;
}


/* =========================================================
   BRAND PANELS
   ========================================================= */

.brand-panel {
  position: relative;

  padding:
    clamp(1.5rem, 4vw, 3rem);

  border-radius:
    var(--radius-lg);

  color: white;

  overflow: hidden;
}

.brand-panel.kmd {
  background:
    linear-gradient(
      135deg,
      var(--plum),
      #8a506f
    );
}

.brand-panel.eco {
  background:
    linear-gradient(
      135deg,
      var(--ecovimo),
      #3f8d78
    );
}

.brand-panel::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -80px;
  bottom: -100px;

  border:
    2px solid
    rgba(255, 255, 255, 0.18);

  border-radius: 50%;

  box-shadow:
    0 0 0 34px
      rgba(255, 255, 255, 0.06),
    0 0 0 68px
      rgba(255, 255, 255, 0.04);
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-panel a {
  color: white;
}


/* =========================================================
   BRAND SHOWCASES
   ========================================================= */

.brands-section {
  background: white;
}

.brand-showcase-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1.35rem;
}

.brand-showcase {
  display: grid;

  grid-template-columns:
    145px 1fr;

  gap: 1.3rem;

  align-items: center;

  min-height: 250px;

  padding: 1.5rem;

  border-radius:
    var(--radius-lg);

  overflow: hidden;
}

.brand-showcase img {
  max-height: 145px;

  width: 100%;
  height: auto;

  object-fit: contain;
}

.kmd-showcase {
  background:
    linear-gradient(
      135deg,
      #f8eee6,
      #ecdfe1
    );

  border:
    1px solid #e5ccd3;
}

.eco-showcase {
  background:
    linear-gradient(
      135deg,
      #f4fff0,
      #e3f8dd
    );

  border:
    1px solid #cfeac6;
}

.brand-showcase h3 {
  color: var(--navy);
}

.brand-showcase a {
  font-weight: 800;

  text-decoration: none;
}


/* =========================================================
   ECOVIMO
   ========================================================= */

.eco-page-hero {
  background:
    linear-gradient(
      135deg,
      #f4fff0,
      #e9f9e4
    );
}

.eco-hero-grid {
  display: grid;

  grid-template-columns:
    1.2fr 0.8fr;

  align-items: center;

  gap: 3rem;
}

.eco-logo-card {
  padding: 2.2rem;

  border:
    1px solid #cfebc8;

  border-radius:
    var(--radius-lg);

  background: white;

  box-shadow:
    0 18px 45px
    rgba(20, 120, 20, 0.1);
}

.eco-text {
  color: #168900;
}

.eco-chip {
  background: #e5f8df;

  color: #168900;
}

.eco-products {
  background: #fbfff9;
}

.eco-empty {
  border-color: #cfeac7;

  background: white;
}

.eco-empty img {
  max-width: 270px;
  height: auto;

  margin:
    0 auto 1rem;
}


/* =========================================================
   PROSE / CONTENT PAGES
   ========================================================= */

.prose h2 {
  margin-top: 2.3rem;
}

.prose h3 {
  margin-top: 1.7rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose blockquote {
  margin:
    1.5rem 0;

  padding:
    1rem
    1.25rem;

  border-left:
    4px solid var(--sage);

  background: white;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta-band {
  padding:
    clamp(2rem, 5vw, 4rem);

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      var(--navy),
      #40335b
    );

  color: white;
}

.cta-band h2 {
  letter-spacing: 0.02em;
}

.cta-band p {
  color: #e7e1e5;
}

.cta-band .eyebrow {
  color: #ecd9b8;
}

.cta-band a:not(.btn) {
  color: white;
}


/* =========================================================
   CONNECT SECTION
   ========================================================= */

.connect-section {
  background: #fbf5ea;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    0.72fr
    1.28fr;

  gap: 2rem;
}

.contact-form {
  padding: 1.4rem;

  border:
    1px solid var(--line);

  border-radius:
    var(--radius-lg);

  background: white;
}

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1rem;
}

.form-grid .full {
  grid-column:
    1 / -1;
}

.form-note {
  margin-top: 1rem;

  color: var(--muted);

  font-size: 0.88rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 4rem;

  padding:
    3.5rem
    0
    1.5rem;

  background:
    #211b22;

  color:
    #f4edf2;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.3fr
    repeat(3, 0.7fr);

  gap: 2rem;
}

.footer-brand img {
  max-width: 100px;
  height: auto;

  margin-bottom: 0.75rem;
}

.footer-title {
  margin-bottom: 0.7rem;

  color: white;

  font-family: var(--font-display);

  font-size: 1.2rem;
}

.footer-links {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  color: #e9d6e4;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  margin-top: 2.5rem;

  padding-top: 1.3rem;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.12);

  color: #cfc4cb;

  font-size: 0.88rem;
}


/* =========================================================
   TOOL PAGES
   ========================================================= */

.tool-shell {
  min-height: 100vh;

  background: #f5f3ef;

  padding:
    2rem 0;
}

.tool-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 1rem;

  align-items: start;
}

.tool-panel {
  padding: 1.2rem;

  border:
    1px solid var(--line);

  border-radius:
    var(--radius);

  background: white;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 0.65rem;

  margin-top: 1rem;
}

.output-box {
  min-height: 260px;

  white-space: pre-wrap;

  word-break: break-word;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size: 0.82rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1020px) {

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

  .footer-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hero-grid,
  .spotlight-card,
  .eco-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 600px;

    max-width: 620px;

    width: 100%;

    margin-inline: auto;
  }

  .brand-showcase-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card.reverse
  .spotlight-cover {
    order: 0;
  }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 820px) {

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;

    inset:
      82px 1rem auto;

    display: none;

    flex-direction: column;

    align-items: stretch;

    padding: 0.8rem;

    border:
      1px solid var(--line);

    border-radius:
      var(--radius);

    background: white;

    box-shadow:
      var(--shadow);
  }

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

  .site-nav a {
    border-radius:
      var(--radius-sm);
  }

  .site-nav .nav-freebie {
    margin-top: 0.25rem;

    border-radius:
      var(--radius-sm);

    text-align: center;
  }

  .hero-grid,
  .book-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-orbit {
    width: 340px;
  }

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

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE FIVE-BOOK HOMEPAGE HERO
   ========================================================= */

@media (max-width: 760px) {

  .hero-cover-collection {
    min-height: 500px;

    max-width: 450px;
  }

  .hero-book {
    width: 34%;
  }

  .hero-book-1 {
    left: 10%;
    top: 5px;
  }

  .hero-book-2 {
    right: 10%;
    top: 5px;
  }

  .hero-book-4 {
    left: 1%;
    top: 175px;
  }

  .hero-book-5 {
    right: 1%;
    top: 175px;
  }

  .hero-book-3 {
    left: 33%;
    top: 305px;
  }

  .featured-series-head {
    margin-bottom: 2rem;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .hero-showcase {
    min-height: 500px;
  }

  .hero-cover {
    width:
      min(62%, 270px);

    height: auto;
  }

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

  .brand-showcase {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .brand-showcase img {
    max-width: 220px;
    height: auto;

    margin-inline: auto;
  }

  .spotlight-card {
    padding: 1.1rem;
  }

  .sample-card figcaption {
    flex-direction: column;

    gap: 0.15rem;
  }

}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 600px) {

  .container,
  .narrow {
    width:
      min(
        calc(100% - 1.25rem),
        var(--max)
      );
  }

  .heading-xl,
  h1 {
    font-size:
      clamp(
        2.35rem,
        14vw,
        3.7rem
      );
  }

  .book-grid,
  .grid-2,
  .grid-4,
  .footer-grid,
  .form-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .book-card h2 {
    font-size: 1.65rem;
  }

  .section-head {
    align-items: start;

    flex-direction: column;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-orbit {
    width: 280px;
  }

  .hero-badge.one {
    width: 110px;
    height: 110px;
  }

  .hero-badge.two {
    width: 95px;
    height: 95px;
  }

  .hero-badge.three {
    width: 130px;
    height: 130px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .feature-strip-grid {
    justify-content: flex-start;

    padding:
      1rem 0;
  }

}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .brand span {
    display: none;
  }

  .brand-logo {
    width: 62px;
    height: auto;
  }

  .hero-cover-collection {
    min-height: 420px;
  }

  .hero-book {
    width: 35%;
  }

  .hero-book-1 {
    left: 9%;
    top: 4px;
  }

  .hero-book-2 {
    right: 9%;
    top: 4px;
  }

  .hero-book-4 {
    left: 0;
    top: 145px;
  }

  .hero-book-5 {
    right: 0;
    top: 145px;
  }

  .hero-book-3 {
    left: 32.5%;
    top: 260px;
  }

  .hero-note {
    max-width: none;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration:
      0.01ms !important;

    transition-duration:
      0.01ms !important;
  }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

  .site-header,
  .site-footer,
  .button-row,
  .filters {
    display: none !important;
  }

  body {
    background: white;

    color: black;
  }

  .section {
    padding:
      1rem 0;
  }

  a {
    color: black;

    text-decoration: none;
  }

}