:root {
  --ink: #1d2a27;
  --muted: #586760;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --surface-soft: #eef2e9;
  --surface-sage: #dce7da;
  --forest: #1b4a3d;
  --forest-deep: #0d3028;
  --forest-dark: #08251f;
  --moss: #52745d;
  --accent: #8b5a2b;
  --accent-hover: #6e431f;
  --border: rgba(36, 71, 59, 0.18);
  --focus: #ffca5c;
  --shadow-sm: 0 10px 30px rgba(7, 31, 25, 0.12);
  --shadow: 0 24px 70px rgba(7, 31, 25, 0.2);
  --radius-sm: 0.75rem;
  --radius: 1.4rem;
  --radius-lg: 2rem;
  --content-width: 74rem;
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--forest-dark);
  font-family: var(--body-font);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, rgba(6, 30, 25, 0.9), rgba(17, 58, 47, 0.7)),
    url('/Images/background-forest.jpg') center / cover no-repeat;
}

body::after {
  z-index: -1;
  opacity: 0.7;
  background:
    radial-gradient(circle at 12% 14%, rgba(212, 228, 194, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(167, 194, 159, 0.12), transparent 30rem),
    linear-gradient(to bottom, transparent 60%, rgba(5, 27, 22, 0.48));
}

img,
svg,
video,
canvas,
object {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-hover);
}

button,
input,
textarea {
  font: inherit;
}

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

::selection {
  color: var(--forest-dark);
  background: #d9e7bd;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  color: #111;
  background: var(--focus);
  border-radius: 999px;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 37, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(3, 22, 17, 0.14);
  backdrop-filter: blur(18px) saturate(125%);
}

.navigation {
  width: min(calc(100% - 2rem), var(--content-width));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.site-menu a {
  color: #f8f8f2;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand::before {
  width: 1.65rem;
  height: 1.65rem;
  content: "";
  background:
    linear-gradient(145deg, #c8d6a1, #7ba076);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 75% 15% 70% 25%;
  box-shadow: inset -3px -3px 8px rgba(13, 48, 40, 0.2);
  transform: rotate(-18deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-menu a {
  position: relative;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.site-menu a:hover {
  transform: translateY(-1px);
}

.site-menu a[aria-current="page"]::after {
  position: absolute;
  right: 0.9rem;
  bottom: 0.35rem;
  left: 0.9rem;
  height: 2px;
  content: "";
  background: #c8d6a1;
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  min-width: 5rem;
  padding: 0.62rem 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

main {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 2.5rem 0 6rem;
}

.hero,
.page-heading,
.message-card {
  color: #fff;
  text-align: center;
}

.hero {
  position: relative;
  min-height: clamp(28rem, 70vh, 40rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4rem 1rem 5rem;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(218, 231, 201, 0.18);
  border-radius: 55% 45% 62% 38%;
  pointer-events: none;
}

.hero::before {
  top: 8%;
  left: -12%;
  width: 28rem;
  height: 17rem;
  transform: rotate(18deg);
}

.hero::after {
  right: -10%;
  bottom: 8%;
  width: 24rem;
  height: 15rem;
  transform: rotate(-22deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
}

.hero h1,
.page-heading h1,
.message-card h1,
.profile-card h2,
.book-description h2,
.publications h2 {
  font-family: var(--display-font);
  font-weight: 500;
}

.hero h1,
.page-heading h1,
.message-card h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 11ch;
  margin-inline: auto;
  font-size: clamp(4rem, 10vw, 7.8rem);
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(2, 22, 17, 0.3);
}

.hero p:not(.eyebrow),
.page-heading > p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1.4rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #dce7bd;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  width: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.7;
}

.page-heading {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 4rem;
}

.page-heading h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  text-wrap: balance;
}

.profile-card,
.books > section,
.publications > section,
.contact-card,
.document-viewer,
.message-card {
  background: linear-gradient(145deg, rgba(255, 255, 252, 0.98), rgba(244, 246, 238, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.profile-card::before {
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  content: "";
  opacity: 0.45;
  background: radial-gradient(circle, var(--surface-sage), transparent 68%);
  pointer-events: none;
}

.profile-card .headshot {
  position: relative;
  z-index: 1;
  order: 2;
}

.profile-card .headshot::before {
  position: absolute;
  inset: -0.7rem 0.6rem 0.7rem -0.6rem;
  z-index: -1;
  content: "";
  background: #cbd9b8;
  border-radius: 42% 58% 45% 55% / 55% 43% 57% 45%;
  transform: rotate(-3deg);
}

.profile-card .headshot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(27, 74, 61, 0.13);
  border-radius: 48% 52% 45% 55% / 40% 42% 58% 60%;
  box-shadow: var(--shadow-sm);
}

.profile-card .about {
  position: relative;
  z-index: 1;
  order: 1;
}

.profile-card h2 {
  margin: 0 0 1.4rem;
  color: var(--forest-deep);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-card p {
  margin: 0;
  color: #34433e;
  font-size: 1.01rem;
}

.books,
.publications {
  display: grid;
  gap: 2.25rem;
}

.books > section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "cover copy"
    "quote quote";
  overflow: hidden;
}

.books > section:nth-child(even) {
  grid-template-columns: minmax(0, 1.28fr) minmax(15rem, 0.72fr);
  grid-template-areas:
    "copy cover"
    "quote quote";
}

.book-image-1,
.book-image-2,
.book-image-3 {
  grid-area: cover;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.4rem;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.72), transparent 16rem),
    linear-gradient(145deg, #dce6d3, #bdceb7);
  border-right: 1px solid var(--border);
}

.books > section:nth-child(even) .book-image-1,
.books > section:nth-child(even) .book-image-2,
.books > section:nth-child(even) .book-image-3 {
  border-right: 0;
  border-left: 1px solid var(--border);
}

.book-image-1 img,
.book-image-2 img,
.book-image-3 img {
  width: min(18rem, 75vw);
  border: 1px solid rgba(10, 44, 36, 0.12);
  border-radius: 0.35rem 0.8rem 0.8rem 0.35rem;
  box-shadow: 0 24px 45px rgba(8, 38, 32, 0.24);
  transform: perspective(900px) rotateY(4deg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.books > section:nth-child(even) .book-image-1 img,
.books > section:nth-child(even) .book-image-2 img,
.books > section:nth-child(even) .book-image-3 img {
  transform: perspective(900px) rotateY(-4deg);
}

.books > section:hover .book-image-1 img,
.books > section:hover .book-image-2 img,
.books > section:hover .book-image-3 img {
  box-shadow: 0 30px 55px rgba(8, 38, 32, 0.3);
  transform: perspective(900px) rotateY(0) translateY(-4px);
}

.book-description {
  grid-area: copy;
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.book-description h2 {
  margin: 0 0 1rem;
  color: var(--forest-deep);
  font-size: clamp(2.25rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.book-description p {
  margin: 0;
  color: #3c4d47;
}

.endorsement-gallery {
  position: relative;
  grid-area: quote;
  min-height: 18rem;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6.5rem);
  color: #263832;
  background:
    linear-gradient(135deg, rgba(225, 234, 214, 0.92), rgba(239, 241, 226, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(82, 116, 93, 0.12), transparent 18rem);
  border-top: 1px solid var(--border);
}

.endorsement-gallery::before {
  position: absolute;
  top: 1rem;
  left: clamp(4rem, 8vw, 6.5rem);
  content: "“";
  color: rgba(27, 74, 61, 0.15);
  font-family: var(--display-font);
  font-size: 7rem;
  line-height: 1;
  pointer-events: none;
}

.endorsement-slide {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
}

.endorsement-slide p:first-child {
  margin-top: 0;
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  line-height: 1.65;
}

.endorsement-author {
  margin-bottom: 0;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 800;
  font-style: normal !important;
  letter-spacing: 0.01em;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  color: #fff;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(8, 38, 32, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.carousel-control:hover {
  background: var(--forest-deep);
  transform: translateY(-50%) scale(1.06);
}

.carousel-control.previous {
  left: 1.25rem;
}

.carousel-control.next {
  right: 1.25rem;
}

.publications {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publications > section {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.9rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.publications > section:hover {
  box-shadow: 0 30px 75px rgba(7, 31, 25, 0.26);
  transform: translateY(-5px);
}

.publications img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 0.55rem);
  filter: saturate(0.88) contrast(1.03);
}

.publications h2 {
  margin: 1.25rem 0 0.6rem;
  color: var(--forest-deep);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.publications p {
  flex: 1;
  margin-top: 0;
  color: var(--muted);
}

.publications h2,
.publications p,
.publications .button {
  margin-inline: 0.55rem;
}

.publications .button {
  margin-bottom: 0.55rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  color: #fff;
  background: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(13, 48, 40, 0.14);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  color: #fff;
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  box-shadow: 0 11px 24px rgba(13, 48, 40, 0.22);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(27, 74, 61, 0.35);
  box-shadow: none;
}

.button-secondary:hover {
  color: #fff;
}

.order-button {
  min-width: 9rem;
  background: var(--accent);
  border-color: var(--accent);
}

.order-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.contact-card {
  position: relative;
  width: min(100%, 49rem);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.contact-card::before {
  position: absolute;
  top: -7rem;
  right: -7rem;
  width: 18rem;
  height: 18rem;
  content: "";
  background: radial-gradient(circle, rgba(182, 205, 166, 0.52), transparent 70%);
  pointer-events: none;
}

.contact-card form {
  position: relative;
  z-index: 1;
}

.form-field {
  display: grid;
  gap: 0.48rem;
  margin-bottom: 1.2rem;
}

.form-field label {
  color: var(--forest-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(54, 91, 78, 0.35);
  border-radius: 0.85rem;
  box-shadow: inset 0 1px 2px rgba(13, 48, 40, 0.04);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:hover,
.form-field textarea:hover {
  background: #fff;
  border-color: rgba(54, 91, 78, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(82, 116, 93, 0.13);
  outline: none;
}

.form-field textarea {
  min-height: 12rem;
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 1.6rem;
  margin-bottom: 0;
  font-weight: 750;
}

.form-status.success {
  color: #12632d;
}

.form-status.error {
  color: #a12622;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.document-viewer {
  overflow: hidden;
  min-height: 70vh;
  padding: 0.65rem;
}

.document-viewer object {
  display: block;
  width: 100%;
  min-height: 78vh;
  background: #fff;
  border: 0;
  border-radius: calc(var(--radius-lg) - 0.55rem);
}

.document-fallback {
  padding: 3rem;
  text-align: center;
}

.message-card {
  width: min(100%, 42rem);
  margin: 4rem auto;
  padding: 3rem;
  color: var(--ink);
}

.message-card h1 {
  color: var(--forest-deep);
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

.site-footer {
  padding: 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(5, 27, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(12px);
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

@media (max-width: 62rem) {
  .publications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem);
    gap: 2.5rem;
  }

  .books > section,
  .books > section:nth-child(even) {
    grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
    grid-template-areas:
      "cover copy"
      "quote quote";
  }

  .books > section:nth-child(even) .book-image-1,
  .books > section:nth-child(even) .book-image-2,
  .books > section:nth-child(even) .book-image-3 {
    border-right: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 48rem) {
  .navigation {
    min-height: 4.35rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    padding: 0.65rem;
    background: rgba(8, 37, 31, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .js .site-menu:not(.is-open) {
    display: none;
  }

  .site-menu a {
    width: 100%;
    border-radius: 0.7rem;
  }

  .site-menu a[aria-current="page"]::after {
    display: none;
  }

  main {
    width: min(calc(100% - 1.25rem), var(--content-width));
    padding-top: 1rem;
  }

  .hero {
    min-height: 30rem;
    padding-inline: 0.5rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }

  .page-heading {
    padding: 3.5rem 0.5rem 3rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 1.25rem;
  }

  .profile-card .headshot,
  .profile-card .about {
    order: initial;
  }

  .profile-card .headshot {
    width: min(100%, 19rem);
    margin: 0 auto;
  }

  .profile-card .about {
    padding: 0.5rem;
  }

  .profile-card h2 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .books > section,
  .books > section:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "copy"
      "quote";
  }

  .book-image-1,
  .book-image-2,
  .book-image-3,
  .books > section:nth-child(even) .book-image-1,
  .books > section:nth-child(even) .book-image-2,
  .books > section:nth-child(even) .book-image-3 {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    border-left: 0;
  }

  .book-description {
    padding: 2rem 1.5rem;
  }

  .endorsement-gallery {
    min-height: 24rem;
    padding: 3.5rem 3.35rem 2.25rem;
  }

  .endorsement-gallery::before {
    top: 0.85rem;
    left: 3.3rem;
    font-size: 5rem;
  }

  .carousel-control.previous {
    left: 0.55rem;
  }

  .carousel-control.next {
    right: 0.55rem;
  }

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

  .contact-card {
    padding: 1.25rem;
  }

  .document-viewer,
  .document-viewer object {
    min-height: 60vh;
  }
}

@media (max-width: 25rem) {
  .brand {
    font-size: 1rem;
  }

  .brand::before {
    width: 1.4rem;
    height: 1.4rem;
  }

  .menu-toggle {
    min-width: auto;
  }

  .endorsement-gallery {
    padding-inline: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
