:root {
  --bg: #f4f1eb;
  --ink: #1f2833;
  --muted: #5e6a78;
  --paper: #fffdf8;
  --sand: #ece6dc;
  --line: #d9d0c3;
  --brand: #b53a2d;
  --brand-deep: #8d2418;
  --brand-soft: #f6d6d0;
  --card-shadow: 0 18px 35px rgba(23, 29, 33, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(181, 58, 45, 0.11), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(32, 75, 88, 0.14), transparent 32%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 55%, #efe9de 100%);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  align-items: center;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid rgba(217, 208, 195, 0.75);
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  margin: 1rem auto;
  max-width: 1160px;
  padding: 0.95rem 1.25rem;
  box-shadow: 0 8px 26px rgba(31, 40, 51, 0.08);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  font-size: 1rem;
  padding: 0.45rem 0.7rem;
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  list-style: none;
}

.nav-links a {
  border-radius: 11px;
  color: var(--muted);
  display: inline-block;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0.45rem 0.72rem;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand);
  color: #fff8f7;
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 64ch;
}

.hero {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 2.3rem;
}

.about-hero {
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
}

.blogs-hero-compact {
  gap: 0.9rem;
}

.blogs-hero-compact .hero-copy {
  padding: 1.3rem;
}

.blogs-hero-compact .hero-media {
  min-height: 260px;
}

.hero-copy {
  background: linear-gradient(140deg, rgba(255, 253, 247, 0.96), rgba(255, 246, 240, 0.92));
  border: 1px solid rgba(217, 208, 195, 0.75);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

.about-hero .hero-copy {
  height: 100%;
  min-height: 360px;
}

.about-media-stack {
  display: grid;
  gap: 1rem;
  height: 100%;
}

.about-media-stack figure {
  margin: 0;
}

.about-hero .about-media-stack .hero-media {
  height: 100%;
  min-height: 0;
}

.about-detail-row {
  align-items: stretch;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr 1fr;
}

.about-post-wrap {
  height: 100%;
  margin: 0;
  max-width: none;
}

.about-detail-row figure {
  margin: 0;
}

.about-detail-row .customer-logo-wall {
  height: 100%;
  min-height: 0;
}

.about-detail-row .customer-logo-wall img {
  padding: 0.15rem;
}

.hero-copy .kicker {
  color: var(--brand);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.hero-media {
  background: #111;
  border-radius: 26px;
  min-height: 360px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
}

.hero-media.hero-banner {
  background: #f2ece2;
}

.hero-media.hero-portrait {
  background: #e9e3d8;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transform: scale(1.02);
}

.hero-media.hero-banner img {
  object-fit: contain;
  transform: none;
}

.hero-media.hero-portrait img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.hero-media img.timeline-fit {
  background: #0b1220;
  object-fit: contain;
  object-position: center;
  padding: 0.2rem;
  transform: none;
}

.hero-media .caption {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 80%);
  bottom: 0;
  color: #f4f4f4;
  font-size: 0.9rem;
  left: 0;
  padding: 1.5rem 1.2rem 1rem;
  position: absolute;
  width: 100%;
}

.customer-logo-wall {
  background: #0b1220;
  min-height: 280px;
}

.customer-logo-wall img {
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  padding: 0.62rem 1.03rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff8f7;
}

.btn.primary:hover {
  background: var(--brand-deep);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn.secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.section {
  margin-top: 3.1rem;
}

.section-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.card {
  background: var(--paper);
  border: 1px solid rgba(217, 208, 195, 0.85);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(23, 29, 33, 0.06);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  animation: rise 700ms ease forwards;
}

.card-inner {
  padding: 1rem;
}

.card-image {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.home-books-strip {
  align-items: end;
  background: linear-gradient(145deg, #0f172a, #1f2937);
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.7rem;
}

.home-books-strip img {
  background: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  height: 200px;
  object-fit: contain;
  width: 100%;
}

.card p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.meta {
  color: var(--brand-deep);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout {
  background: linear-gradient(140deg, #f7f1e8, #f9ddd6);
  border: 1px solid #ebc9c2;
  border-radius: 18px;
  padding: 1rem;
}

.endorsement-card {
  background: linear-gradient(150deg, #fff9f2 0%, #f7ebe3 45%, #efe3d8 100%);
  border: 1px solid #e8d6c3;
}

.endorsement-inner {
  padding: 1.4rem;
}

.endorsement-card h3 {
  font-size: 1.7rem;
  margin-top: 0.15rem;
}

.endorsement-date {
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.endorsement-quote {
  border-left: 4px solid var(--brand);
  color: #2a323d;
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
}

.contact-equal-cards {
  align-items: stretch;
}

.contact-equal-cards .card {
  display: flex;
  height: 100%;
}

.contact-equal-cards .card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.35rem;
}

input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 0.66rem 0.76rem;
}

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

footer {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 3rem;
  text-align: center;
}

.blog-post {
  display: grid;
  justify-items: center;
}

.post-wrap {
  background: var(--paper);
  border: 1px solid rgba(217, 208, 195, 0.85);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(23, 29, 33, 0.08);
  max-width: 860px;
  padding: 1.4rem;
}

.post-content {
  margin-top: 1rem;
}

.post-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(217, 208, 195, 0.85);
  display: block;
  margin-top: 1rem;
  object-fit: cover;
  width: 100%;
}

.hero-media img.book-cover-fit,
.card-image.book-cover-fit,
.post-hero-image.book-cover-fit {
  background: #f5f0e5;
  object-fit: contain;
  object-position: center;
  padding: 0.4rem;
  transform: none;
}

.post-hero-image.bond-image-fit {
  background: #0b1220;
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
  transform: none;
}

.post-content p {
  color: var(--ink);
  margin-bottom: 1rem;
}

.detail-list {
  margin: 0.5rem 0 1rem 1.2rem;
}

.detail-list li {
  margin-bottom: 0.45rem;
}

.detail-list ul {
  margin: 0.35rem 0 0.6rem 1.1rem;
}

.blog-interactions {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.interaction-head {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.interaction-head h3 {
  font-size: 1.2rem;
}

.like-btn {
  cursor: pointer;
}

.comment-form {
  display: grid;
  gap: 0.6rem;
}

.comment-list {
  list-style: none;
  margin-top: 0.8rem;
}

.comment-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  padding: 0.75rem;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.comment-empty {
  color: var(--muted);
  margin-top: 0.7rem;
}

.identity-block {
  background: linear-gradient(145deg, #fff4ef, #f7efe4);
  border: 1px solid #efcfc5;
  border-radius: 18px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.identity-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.identity-tags span {
  background: #fff;
  border: 1px solid #e8cfc3;
  border-radius: 999px;
  color: #7f2a20;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.identity-quote {
  border-top: 1px solid #e9cfc4;
  color: #7f2a20;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: none;
    left: 1.2rem;
    padding: 0.8rem;
    position: absolute;
    right: 1.2rem;
    top: 4.2rem;
  }

  .nav-links.open {
    display: grid;
    gap: 0.4rem;
  }

  .hero-copy {
    padding: 1.4rem;
  }
}
