:root {
  --cream: #fff5ee;
  --ivory: #fffaf6;
  --sand: #ead8cc;
  --soft-gold: #e5a83a;
  --terracotta: #c98764;
  --sage: #b7b69a;
  --warm-brown: #33286f;
  --charcoal: #2d2941;
  --navy: #30266f;
  --orange: #f0a72f;
  --lavender: #c9bddb;
  --blush: #f2d8d2;
  --cover-purple: #33286f;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(51, 40, 111, 0.14);
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, Lato, "Open Sans", Arial, sans-serif;
  --content: min(1120px, calc(100vw - 40px));
  --section-pad: clamp(64px, 9vw, 120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.65;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100vw - 32px));
  padding: 14px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(229, 168, 58, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 18px 48px rgba(51, 40, 111, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--warm-brown);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  color: rgba(48, 43, 39, 0.74);
  font-size: 0.93rem;
}

.site-nav a,
.contact-link,
.site-footer a {
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.contact-link:hover,
.site-footer a:hover {
  color: var(--orange);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(112px, 12vw, 150px) max(20px, calc((100vw - 1120px) / 2)) 76px;
  background: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.section::before,
.closing-cta::before {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 168, 58, 0.22), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero::before {
  right: -160px;
  bottom: -140px;
}

.closing-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-bg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 243, 232, 0.98) 0%, rgba(251, 243, 232, 0.91) 42%, rgba(251, 243, 232, 0.45) 100%),
    linear-gradient(0deg, rgba(51, 40, 111, 0.1), rgba(255, 250, 246, 0.58));
  content: "";
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
blockquote {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--warm-brown);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 8.2vw, 6.85rem);
}

h2 {
  font-size: clamp(2.45rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.subtitle {
  margin: 18px 0 0;
  color: var(--warm-brown);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.hero-lede {
  margin-top: 24px;
  color: var(--warm-brown);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 700;
}

.hero-content p:not(.eyebrow):not(.subtitle) {
  max-width: 650px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 20px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(51, 40, 111, 0.16);
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-secondary {
  border-color: rgba(51, 40, 111, 0.22);
  background: rgba(255, 250, 242, 0.76);
  color: var(--warm-brown);
}

.button-secondary.dark {
  border-color: rgba(0, 0, 128, 0.2);
  background: var(--navy);
  color: var(--white);
}

.hero-product {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 20px;
}

.book-mockup,
.cover-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 0.68;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 245, 238, 0.92) 0%, rgba(242, 216, 210, 0.86) 36%, rgba(229, 168, 58, 0.72) 62%, rgba(201, 189, 219, 0.82) 100%),
    var(--blush);
  box-shadow: var(--shadow);
  color: var(--cover-purple);
  text-align: center;
}

.book-mockup {
  width: min(100%, 390px);
  justify-self: center;
  border-radius: 18px;
  background: transparent;
  transform: none;
  overflow: visible;
  padding: 0;
  box-shadow: none;
}

.book-mockup img,
.cover-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(18px 22px 28px rgba(51, 40, 111, 0.24));
}

.book-mockup::before,
.cover-placeholder.book-cover::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 9%;
  background:
    linear-gradient(90deg, rgba(51, 40, 111, 0.34), rgba(255, 255, 255, 0.16) 42%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%, rgba(51, 40, 111, 0.2));
  content: "";
  pointer-events: none;
}

.book-mockup::after,
.cover-placeholder.book-cover::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(90deg, transparent 0 84%, rgba(51, 40, 111, 0.18));
  box-shadow: inset -10px 0 16px rgba(51, 40, 111, 0.15);
  content: "";
  pointer-events: none;
}

.hero-product p {
  margin: 0;
  color: var(--warm-brown);
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-align: center;
}

.hero-hashtags {
  display: grid;
  gap: 2px;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.hero-hashtags span {
  display: block;
  justify-self: start;
}

.belonging-band {
  display: grid;
  place-items: center;
  padding: 52px 20px;
  background: var(--cover-purple);
  color: var(--ivory);
  text-align: center;
}

.belonging-band p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1;
}

.belonging-band span {
  margin-top: 10px;
  color: rgba(255, 250, 242, 0.78);
}

.section {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.section::before {
  top: 20px;
  left: -260px;
  z-index: -1;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
}

.section-copy p,
.center-copy p,
.product-card p,
.testimonial-card,
.signup-panel p,
.event-panel p,
.closing-content p,
.site-footer p,
.check-list {
  color: rgba(48, 43, 39, 0.76);
}

.pull-quote,
blockquote {
  border-left: 3px solid var(--soft-gold);
  margin: 28px 0 0;
  padding-left: 22px;
  color: var(--warm-brown);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  font-style: italic;
  line-height: 1.2;
}

.photo-collage {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 16px;
}

.photo-collage.single-photo {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(229, 168, 58, 0.28);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(51, 40, 111, 0.09);
}

.photo-collage.single-photo img {
  width: 100%;
  min-height: 540px;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.photo-tile,
.image-panel,
.portrait-panel,
.gallery div {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px solid rgba(229, 168, 58, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 250, 246, 0.82), rgba(242, 216, 210, 0.62)),
    var(--sand);
  box-shadow: 0 16px 45px rgba(51, 40, 111, 0.09);
  color: rgba(51, 40, 111, 0.72);
  font-weight: 800;
  text-align: center;
}

.photo-tile.large {
  grid-row: span 2;
  min-height: 420px;
  background:
    linear-gradient(145deg, rgba(201, 189, 219, 0.72), rgba(255, 250, 246, 0.78)),
    var(--lavender);
}

.photo-tile {
  overflow: hidden;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
}

.center-copy {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.affirmation-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.soft-card,
.testimonial-card,
.product-card,
.signup-panel,
.event-panel {
  border: 1px solid rgba(229, 168, 58, 0.24);
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.78);
  box-shadow: 0 14px 42px rgba(51, 40, 111, 0.08);
}

.soft-card {
  padding: 26px;
}

.soft-card span {
  color: var(--soft-gold);
  font-family: var(--font-display);
  font-size: 2rem;
}

.soft-card p,
.testimonial-card {
  margin: 12px 0 0;
  font-size: 1.02rem;
}

.becoming-line {
  margin: 38px auto 0;
  color: var(--warm-brown);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.12;
  text-align: center;
}

.products-section {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--ivory);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
}

.product-card > div:last-child {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.cover-placeholder {
  width: min(300px, 100%);
  min-height: 440px;
  justify-self: center;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.product-card .cover-placeholder img {
  object-fit: cover;
  object-position: center center;
}

.cover-placeholder.book-cover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.book-mockup::before,
.book-mockup::after,
.cover-placeholder.book-cover::before,
.cover-placeholder.book-cover::after {
  display: none;
}

.product-card h3,
.product-card p {
  max-width: 100%;
}

.product-card h3 {
  text-align: center;
}

.product-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.journal-cover {
  background: transparent;
  box-shadow: none;
}

.journal-cover img {
  filter: drop-shadow(18px 22px 28px rgba(51, 40, 111, 0.24));
}

.product-card .product-subtitle {
  color: var(--warm-brown);
  font-weight: 800;
}

.about-book {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.image-panel,
.portrait-panel {
  min-height: 540px;
}

.image-panel {
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center center;
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-panel::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.34);
  content: "";
  pointer-events: none;
}

.events-section {
  background: rgba(135, 151, 122, 0.18);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--terracotta);
  content: "•";
  font-size: 1.4rem;
  line-height: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery div:nth-child(2),
.gallery div:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(201, 189, 219, 0.32), rgba(255, 250, 246, 0.72)),
    var(--sand);
}

.gallery div {
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
}

.testimonial-card {
  margin: 0;
  padding: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.24;
}

.forms-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: start;
}

.signup-panel,
.event-panel {
  padding: clamp(24px, 4vw, 40px);
}

.signup-panel h2,
.event-panel h2 {
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
}

.stacked-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

label {
  color: var(--warm-brown);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(51, 40, 111, 0.2);
  border-radius: 18px;
  background: var(--ivory);
  color: var(--charcoal);
  font: inherit;
}

input {
  min-height: 52px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  padding: 14px 16px;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(240, 167, 47, 0.18);
}

.lead-magnet,
.contact-link {
  display: inline-block;
  margin-top: 18px;
}

.contact-link {
  border-bottom: 1px solid currentColor;
  color: var(--warm-brown);
  font-weight: 900;
}

.closing-cta {
  position: relative;
  display: grid;
  min-height: 78vh;
  place-items: center;
  padding: var(--section-pad) 20px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.closing-bg::after {
  background:
    linear-gradient(0deg, rgba(51, 40, 111, 0.84), rgba(51, 40, 111, 0.56)),
    rgba(51, 40, 111, 0.62);
}

.closing-cta::before {
  top: -140px;
  left: -120px;
  z-index: -1;
}

.closing-content {
  max-width: 840px;
  color: var(--ivory);
}

.closing-content h2,
.closing-content p {
  color: var(--ivory);
}

.closing-content .eyebrow {
  color: var(--sand);
}

.ubuntu {
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.ubuntu span {
  font-size: 1.05rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr) minmax(180px, 0.5fr);
  gap: 28px;
  padding: 48px max(20px, calc((100vw - 1120px) / 2));
  background: var(--charcoal);
  color: var(--ivory);
}

.site-footer h2 {
  color: var(--ivory);
  font-size: 2rem;
}

.footer-about {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 250, 242, 0.78);
}

.footer-publisher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  margin-top: auto;
  padding-top: 24px;
}

.footer-publisher img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-publisher span {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.15;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-links a:hover {
  border-color: var(--orange);
  background: rgba(240, 167, 47, 0.14);
  color: var(--orange);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.footer-ubuntu {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.sticky-cta {
  position: fixed;
  z-index: 19;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--orange);
  box-shadow: 0 14px 34px rgba(51, 40, 111, 0.24);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .split-section,
  .about-book,
  .forms-section {
    grid-template-columns: 1fr;
  }

  .hero-product {
    width: min(380px, 100%);
    justify-self: center;
  }

  .affirmation-grid,
  .testimonial-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100vw - 28px, 1120px);
  }

  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
    border-radius: 24px;
  }

  .brand span:last-child {
    max-width: 178px;
  }

  .hero {
    padding-top: 122px;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 5rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .cover-placeholder {
    width: min(300px, 100%);
    justify-self: center;
  }

  .photo-collage,
  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-tile.large,
  .image-panel,
  .portrait-panel {
    min-height: 320px;
  }

  .image-panel img,
  .portrait-panel img {
    min-height: 320px;
  }

  .sticky-cta {
    display: none;
  }
}
