:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f7;
  --color-border-subtle: #dde4ee;
  --color-accent: #0c9fb6;
  --color-success: #0f9d58;
  --color-error: #b91c1c;
  --color-accent-soft: #b3ecf5;
  --color-text: #111827;
  --color-muted: #42464e;
  --color-muted-soft: #7b7f88;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-full: 999px;
  --header-height: 64px;
}

/* Reset and base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font: inherit;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Screen reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(245, 247, 250, 0.96);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo-main {
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border-subtle);
}

.logo-plus {
  margin-left: 0.25rem;
  color: var(--color-accent);
}

/* Desktop nav */

.nav {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
  border-bottom-color: var(--color-accent-soft);
}

.nav-link-cta {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(12, 159, 182, 0.18);
  background-color: rgba(12, 159, 182, 0.06);
  color: var(--color-text);
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
  background-color: rgba(12, 159, 182, 0.12);
  border-color: rgba(12, 159, 182, 0.3);
}

/* Mobile nav toggle */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 40px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 999px;
}

/* Mobile nav menu */

@media (max-width: 767px) {
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 160ms ease, opacity 160ms ease;
    opacity: 0;
  }

  body.nav-open .nav {
    max-height: 260px;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-link,
  .nav-link-cta {
    padding: 0.25rem 0.5rem;
    border-bottom-width: 0;
  }
}

/* Desktop header behavior */

@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* Main layout */

main {
  padding-top: calc(var(--header-height) + 1.5rem);
}

/* Hero */

.hero {
  padding-top: 3.5rem;
  position: relative;
  background-image: url("img/hero-banner-1920x1080.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Light overlay so text stays readable over the banner */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(245, 247, 250, 0.5),
    rgba(245, 247, 250, 0.56)
  );
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted-soft);
  margin: 0 0 0.7rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-book {
    /*
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  */
  padding: 1.1rem;
    /*
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
  */
}

.hero-book-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: linear-gradient(135deg, #e0f4fb, #f5f7fa);
}

.hero-banner-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  opacity: 0.35;
}

/* Hero layout on larger screens */

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .hero {
    min-height: calc(100vh - var(--header-height) - 1.5rem);
    display: flex;
    align-items: center;
  }

  .hero-banner-image {
    height: 190px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #08879c;
  border-color: #08879c;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-subtle);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-surface-alt);
  border-color: var(--color-accent-soft);
  text-decoration: none;
}

/* Sections */

.section-header {
  max-width: 640px;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.section-header-left {
  max-width: none;
}

.section-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Book section */

.section-book {
  background-color: var(--color-surface);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr);
  gap: 2.5rem;
}

.book-pitch {
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.book-synopsis p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.book-meta {
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border-subtle);
}

.book-meta-title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.meta-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.meta-item {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
  padding-bottom: 0.6rem;
}

.meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted-soft);
  margin-bottom: 0.1rem;
}

.meta-value {
  font-size: 0.95rem;
}

/* Book layout larger screens */

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero-media {
    max-width: 420px;
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .book-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }
}

.book-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-detail-graphic {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}

.book-detail-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

/* Themes */

.section-themes {
  background-color: var(--color-bg);
}

.card-grid {
  display: grid;
  gap: 1.6rem;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

.theme-card::before {
  content: none;
}

.theme-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
}

.theme-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Themes grid larger screens */

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Reviews */

.section-reviews {
  background-color: var(--color-surface);
}

.reviews-grid {
  grid-template-columns: minmax(0, 1fr);
}

.review-card {
  position: relative;
}

.review-quote {
  margin: 0 0 0.8rem;
  color: var(--color-text);
}

.review-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.review-name {
  font-weight: 600;
}

.review-role {
  margin-left: 0.4rem;
  color: var(--color-muted-soft);
}

/* Quote mark accent */

.review-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 2.5rem;
  color: rgba(12, 159, 182, 0.14);
}

.review-card {
  padding-top: 1.8rem;
}

/* Reviews grid larger screens */

@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Author section */

.section-author {
  background-color: var(--color-bg);
}

.author-layout {
  align-items: center;
  gap: 2.5rem;
}

.author-media {
  flex: 0 0 auto;
}

.author-content {
  flex: 1 1 auto;
}

.author-photo-wrap {
  width: 400px;
  height: 600px;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.author-content p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--color-muted);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-link {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.author-link:hover,
.author-link:focus-visible {
  text-decoration: underline;
}

.author-link-linkedin {
  padding: 0;
}

.author-linkedin-image {
  width: 150px;
  height: 50px;
  display: block;
}

/* Author layout larger screens */

@media (min-width: 900px) {
  .author-layout {
    flex-direction: row;
  }
}

@media (max-width: 899px) {
  .author-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-photo-wrap {
    width: 400px;
    height: 600px;
  }
}

/* Updates section */

.section-updates {
  background-color: var(--color-surface-alt);
}

.updates-inner {
  align-items: center;
  text-align: center;
}

.updates-form {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  font-size: 0.95rem;
  background-color: #f9fafb;
}

.input:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 1px;
  border-color: var(--color-accent);
  background-color: #ffffff;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted-soft);
  padding-bottom: 12px;
}

.form-status {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface-alt);
  color: var(--color-muted);
  text-align: center;
}

.form-status[data-state="loading"] {
  color: var(--color-accent);
  border-color: rgba(12, 159, 182, 0.3);
  background-color: rgba(12, 159, 182, 0.08);
}

.form-status[data-state="success"] {
  color: var(--color-success);
  border-color: rgba(15, 157, 88, 0.35);
  background-color: rgba(15, 157, 88, 0.08);
}

.form-status[data-state="error"] {
  color: var(--color-error);
  border-color: rgba(185, 28, 28, 0.35);
  background-color: rgba(185, 28, 28, 0.08);
}

/* Updates layout larger screens */

@media (min-width: 640px) {
  .form-row {
    flex-direction: row;
    align-items: center;
  }

  .input {
    flex: 1;
  }
}

.social-banner {
  padding: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-banner-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
}

.social-banner-image {
  width: 100%;
  display: block;
}

/* Social icons overlay */

.social-banner-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  margin: 0 auto;
  padding: 1rem 0;
}

.social-banner-label {
  margin: 0;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(8, 8, 8, 0.65);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.25);
}

.social-links-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.25);
}

.social-link img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  background-color: rgba(165, 165, 165, 0.94);
  text-decoration: none;
}

/* Small tweak for mobile so icons don't hug the edge too much */

@media (max-width: 640px) {
  .social-banner-label {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

/* Footer layout larger screens */

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
