.g-guide-page {
  --guide-accent: #6f399c;
  --guide-wash: #f6f0fc;
}

.g-guide-qr {
  --guide-accent: #91415c;
  --guide-wash: #f7f1ed;
}

.g-guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 7vw, 100px) 0;
  background: #f9f5f2;
}

.g-guide-hero::before,
.g-guide-botanical::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(150px, 23vw, 340px);
  aspect-ratio: 2 / 3;
  background: url('/landing/botanical-branch.webp') center / contain no-repeat;
  pointer-events: none;
}

.g-guide-hero::before {
  right: clamp(-60px, -3vw, -18px);
  bottom: -22%;
  opacity: 0.23;
  transform: rotate(-12deg);
}

.g-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(28px, 5.5vw, 82px);
  align-items: center;
}

.g-guide-intro h1,
.g-guide-section h2 {
  margin: 0;
  font-family: var(--g-serif);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.g-guide-intro h1 {
  font-size: clamp(2.55rem, 5.3vw, 5rem);
  line-height: 0.99;
}

.g-guide-intro h1 em {
  display: block;
  margin-top: 0.12em;
  color: var(--guide-accent);
  font-size: 0.84em;
}

.g-guide-intro p {
  max-width: 49ch;
  margin: 24px 0 0;
  color: #4c4659;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.75;
}

.g-guide-page .g-guide-jump {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 27px;
  padding: 5px 6px 5px 17px;
  border: 1px solid rgba(105, 54, 143, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--guide-accent);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.g-guide-jump span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--guide-wash);
  transition: transform 260ms ease, background-color 220ms ease;
}

.g-guide-jump:is(:hover, :focus-visible) {
  background: #fff;
  box-shadow: 0 8px 24px rgba(53, 31, 70, 0.1);
}

.g-guide-jump:is(:hover, :focus-visible) span {
  transform: translateY(2px);
}

.g-guide-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.g-guide-visual img {
  width: 100%;
}

.g-guide-guestbook .g-guide-visual {
  position: relative;
  justify-self: center;
  width: min(80%, 330px);
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  box-shadow: 0 12px 26px rgba(53, 31, 70, 0.12);
}

/* Crop the existing guestbook illustration to its center card. */
.g-guide-guestbook .g-guide-visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 246%;
  max-width: none;
  transform: translate(-50%, -51.3%);
}

.g-guide-section {
  position: relative;
  isolation: isolate;
  padding: clamp(50px, 7vw, 104px) 0;
}

.g-guide-tinted {
  background: var(--guide-wash);
}

.g-guide-botanical {
  overflow: hidden;
}

.g-guide-botanical::before {
  left: -56px;
  bottom: -34%;
  opacity: 0.19;
  transform: rotate(17deg) scaleX(-1);
}

.g-guide-botanical:not(.g-guide-tinted)::before {
  right: -56px;
  left: auto;
  transform: rotate(-17deg);
}

.g-guide-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.66fr);
  gap: clamp(26px, 4.8vw, 80px);
  align-items: start;
}

.g-guide-section h2 {
  max-width: 17ch;
  font-size: clamp(2.05rem, 3.75vw, 3.75rem);
  line-height: 1.04;
}

.g-guide-section p {
  color: #4c4659;
  line-height: 1.7;
}

.g-guide-copy p,
.g-guide-section-heading p {
  max-width: 66ch;
  margin: 0;
}

.g-guide-section-heading p,
.g-guide-copy > * + p {
  margin-top: 15px;
}

.g-guide-section a {
  color: var(--guide-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-guide-steps,
.g-guide-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-guide-steps {
  counter-reset: guide-step;
}

.g-guide-steps li {
  padding: clamp(18px, 2.1vw, 30px);
  border: 1px solid rgba(120, 73, 136, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 13px 32px rgba(53, 31, 70, 0.055);
  counter-increment: guide-step;
}

.g-guide-steps li::before {
  content: counter(guide-step, decimal-leading-zero) / '';
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border: 1px solid rgba(120, 73, 136, 0.12);
  border-radius: 15px;
  background: linear-gradient(140deg, #fff1e7, #f3eaff);
  color: var(--guide-accent);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.g-guide-steps h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.g-guide-steps p {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.g-guide-checklist {
  max-width: 62ch;
  margin: 0;
  padding-inline-start: 1.4rem;
}

.g-guide-checklist li {
  padding-inline-start: 0.55rem;
}

.g-guide-checklist li::marker {
  font-weight: 700;
}

.g-guide-checklist li + li {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--g-line);
}

.g-guide-checklist h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.g-guide-checklist p {
  margin: 6px 0 0;
}

.g-guide-questions {
  gap: 9px 15px;
}

.g-guide-questions li {
  padding: 14px 17px;
  border: 1px solid rgba(120, 73, 136, 0.13);
  border-radius: 15px 15px 15px 4px;
  background: #fffdfb;
  box-shadow: 0 5px 16px rgba(53, 31, 70, 0.04);
  line-height: 1.5;
}

.g-guide-questions li:last-child {
  grid-column: 1 / -1;
}

.g-guide-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.41fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.g-guide-sample {
  width: min(100%, 172px);
  margin: 0 auto;
  border: 1px solid rgba(120, 73, 136, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(53, 31, 70, 0.1);
}

.g-guide-sample img {
  width: 100%;
}

@media (max-width: 900px) {
  .g-guide-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-guide-section h2 {
    max-width: 23ch;
  }
}

@media (max-width: 740px) {
  .g-guide-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-guide-hero::before {
    right: -32px;
    bottom: -26px;
  }

  .g-guide-botanical::before {
    bottom: -36px;
  }
}

@media (max-width: 540px) {
  .g-guide-steps,
  .g-guide-questions {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-guide-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-guide-sample {
    width: min(48%, 146px);
    margin: 5px auto 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .g-guide-intro h1,
  .g-guide-intro p,
  .g-guide-visual,
  .g-guide-section-grid.is-revealed > :first-child,
  .is-revealed :is(.g-guide-steps, .g-guide-questions) > li,
  .is-revealed .g-guide-checklist,
  .is-revealed .g-guide-copy,
  .is-revealed .g-guide-sample {
    animation: g-guide-arrival 650ms cubic-bezier(0.2, 0.68, 0.2, 1) var(--guide-delay, 0ms) both;
  }

  .g-guide-intro p {
    --guide-delay: 65ms;
  }

  .g-guide-visual,
  .is-revealed .g-guide-checklist,
  .is-revealed .g-guide-copy,
  .is-revealed .g-guide-sample {
    --guide-delay: 105ms;
  }

  .is-revealed li:nth-child(4n + 2) { --guide-delay: 60ms; }
  .is-revealed li:nth-child(4n + 3) { --guide-delay: 120ms; }
  .is-revealed li:nth-child(4n + 4) { --guide-delay: 180ms; }

  @keyframes g-guide-arrival {
    from { opacity: 0.35; translate: 0 15px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-guide-jump,
  .g-guide-jump span {
    transition: none;
  }
}
