@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap");

:root {
  --page-bg: #f6f6f6;
  --page-blue: #bde9fb;
  --page-card: #ffffff;
  --page-ink: #281a39;
  --page-muted: #5c5168;
  --page-subtle: #8f8898;
  --page-line: rgba(40, 26, 57, 0.12);
  --page-shadow: 0 24px 60px rgba(40, 26, 57, 0.18);
  --page-shadow-soft: 0 12px 30px rgba(40, 26, 57, 0.1);
  --button-bg: #281a39;
  --button-hover: #433153;
  --header-height: 82px;
  --max-width: 980px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--page-ink);
  font-family: "Avenir Next", Avenir, "Nunito Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page-wrap {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(40, 26, 57, 0.08);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-brand__links {
  display: inline-flex;
  gap: 8px;
}

.site-brand__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--page-line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--page-ink);
  font-weight: 800;
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  background: rgba(40, 26, 57, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__backdrop {
  flex: 1;
}

.menu-panel {
  width: min(540px, 100%);
  height: 100%;
  padding: 20px 24px 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -24px 0 60px rgba(40, 26, 57, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
  overflow-y: auto;
}

body.menu-open .menu-panel {
  transform: translateX(0);
}

.menu-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.menu-panel__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-subtle);
}

.menu-close {
  border: 0;
  background: transparent;
  color: var(--page-ink);
  font-weight: 800;
  cursor: pointer;
}

.menu-section + .menu-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--page-line);
}

.menu-section__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--page-subtle);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-list a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-list a.is-active {
  color: #0d5aa7;
}

main {
  min-height: calc(100vh - var(--header-height));
}

main h1,
main h2,
main h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

main h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

main h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
}

main p {
  margin: 0;
  color: var(--page-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--page-ink);
  border: 1px solid var(--page-line);
}

.button--ghost:hover {
  background: rgba(40, 26, 57, 0.04);
}

.home-hero {
  position: relative;
  margin: 0 auto;
  background: #cbc6cf;
}

.home-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.home-hero__copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: clamp(90px, 15vw, 150px);
  text-align: center;
}

.home-hero__copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  text-shadow: 0 6px 12px rgba(40, 26, 57, 0.22);
}

.home-hero__copy p {
  margin-top: 18px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(40, 26, 57, 0.16);
  backdrop-filter: blur(8px);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 700;
  color: #35486a;
  text-shadow: none;
}

.home-hero__copy .button {
  margin-top: 34px;
}

.section-blue {
  background: var(--page-blue);
  padding: 58px 0 72px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 28px;
  align-items: center;
}

.image-card,
.text-card,
.info-card,
.module-card,
.content-panel,
.post-card,
.footer-card,
.placeholder-card,
.author-card,
.contact-card {
  background: var(--page-card);
  border-radius: var(--radius-md);
  box-shadow: var(--page-shadow-soft);
}

.image-card {
  padding: 18px;
}

.image-card img {
  width: 100%;
  border-radius: 10px;
}

.text-card {
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--page-subtle);
}

.text-card p + p,
.content-panel p + p,
.article-stack p + p,
.post-body p + p {
  margin-top: 16px;
}

.text-card .button,
.content-panel .button {
  margin-top: 22px;
}

.section-heading {
  margin: 68px 0 28px;
  text-align: center;
}

.link-grid,
.module-grid,
.footer-grid,
.placeholder-grid {
  display: grid;
  gap: 22px;
}

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

.info-card {
  padding: 28px 24px;
  text-align: center;
}

.info-card h3 {
  font-size: 1.2rem;
}

.info-card p {
  margin-top: 12px;
  min-height: 72px;
}

.info-card .button {
  margin-top: 18px;
}

.section-white {
  padding: 62px 0 76px;
}

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

.module-card {
  overflow: hidden;
}

.module-card img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.module-card__body {
  padding: 22px 22px 26px;
}

.module-card__body p {
  margin-top: 12px;
}

.page-section {
  padding: 74px 0;
}

.page-section--compact {
  padding: 54px 0;
}

.page-title {
  text-align: center;
}

.page-title p {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: 1.04rem;
}

.content-panel {
  padding: 30px;
}

.article-stack {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.article-stack h2 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.article-stack ul,
.article-stack ol,
.content-panel ul,
.post-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--page-muted);
}

.article-stack li + li,
.content-panel li + li,
.post-body li + li {
  margin-top: 8px;
}

.image-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--page-shadow);
}

.image-hero img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.image-hero__title {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  box-shadow: 0 16px 30px rgba(40, 26, 57, 0.15);
}

.book-layout,
.feature-layout,
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: start;
}

.book-cover,
.feature-image {
  padding: 16px;
  background: var(--page-card);
  border-radius: var(--radius-md);
  box-shadow: var(--page-shadow);
}

.book-cover img,
.feature-image img {
  width: 100%;
  border-radius: 10px;
}

.feature-image {
  align-self: center;
}

.centered-placeholder {
  min-height: calc(100vh - var(--header-height) - 160px);
  display: grid;
  place-items: start center;
  padding-top: 90px;
  text-align: center;
}

.centered-placeholder img {
  width: min(100%, 520px);
  margin: 28px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
}

.research-band {
  margin-top: 44px;
  background: var(--page-blue);
  padding: 52px 0;
  text-align: center;
}

.research-band p {
  max-width: 820px;
  margin: 18px auto 0;
  font-size: 1.04rem;
}

.research-band a {
  text-decoration: underline;
  font-weight: 800;
}

.author-layout {
  background: var(--page-blue);
  border-radius: var(--radius-lg);
  padding: 30px;
  align-items: stretch;
}

.author-photo {
  min-height: 460px;
  border-radius: var(--radius-md);
  background: #dde7ef center/cover no-repeat;
}

.author-card,
.contact-card {
  padding: 34px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.contact-card {
  margin-top: 24px;
}

.post-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.post-meta,
.post-subtitle {
  color: var(--page-subtle);
  font-size: 14px;
  font-weight: 700;
}

.post-card h2,
.post-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.post-body {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.post-body h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}

.footer {
  background: var(--page-blue);
  padding: 64px 0 78px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.footer-card {
  padding: 28px;
}

.footer-card h2,
.footer-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.footer-card p + p {
  margin-top: 14px;
}

.google-form-embed {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(40, 26, 57, 0.08);
}

.google-form-frame {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #fff;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.social-row a:hover {
  text-decoration: underline;
}

.caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--page-subtle);
}

.legacy-redirect {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.legacy-redirect__card {
  max-width: 540px;
  padding: 34px;
  background: var(--page-card);
  border-radius: var(--radius-md);
  box-shadow: var(--page-shadow-soft);
}

@media (max-width: 900px) {
  .split-panel,
  .book-layout,
  .feature-layout,
  .author-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .author-photo {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .page-wrap {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-brand__links {
    display: none;
  }

  .site-brand__name {
    font-size: 18px;
  }

  .home-hero__copy {
    padding-top: 64px;
  }

  .home-hero img {
    min-height: 360px;
    object-position: center center;
  }

  .section-blue,
  .section-white,
  .page-section,
  .footer {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .menu-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}
