
:root {
  --rm-champagne: #f2ede4;
  --rm-ivory: #fffcf7;
  --rm-gold-light: #e6d7a5;
  --rm-gold: #bda56e;
  --rm-gold-hover: #af955d;
  --rm-gold-finish: linear-gradient(108deg, var(--rm-gold-light), var(--rm-gold));
  --rm-gold-outline: #8b713c;
  --rm-gold-deep: #30291d;
  --rm-gold-text: #5f4c29;
  --rm-ink: #2c271e;
  --rm-ink-muted: #5b5347;
  --rm-line: #cbb98e;
  --rm-feature: #e7d9b0;
  --rm-feature-light: #f4ecd6;
}

.subpage-action {
  background: var(--rm-champagne);
  color: var(--rm-ink);
}

.rm-home,
.rm-hero {
  background: linear-gradient(115deg, var(--rm-feature-light) 8%, var(--rm-feature) 100%);
  color: var(--rm-ink);
  border-block: 1px solid var(--rm-line);
}

.rm-home .rm-preview-card {
  background: var(--rm-ivory);
  color: var(--rm-ink);
  border-color: var(--rm-line);
  border-top: 2px solid var(--rm-gold-outline);
  box-shadow: 0 12px 34px rgba(86, 62, 32, .09);
}

.rm-home h2 em,
.rm-hero h1 em,
.rm-home .eyebrow,
.rm-home .rm-steps b,
.subpage-action em {
  color: var(--rm-gold-text);
}

.rm-home .rm-preview-card h3 {
  color: var(--rm-ink);
}

.rm-home .rm-intro > p,
.rm-home .rm-steps span,
.rm-home .rm-preview-card p,
.rm-home .rm-preview-card .muted-small,
.subpage-action p {
  color: var(--rm-ink-muted);
}

.about-portrait figcaption,
.about-portrait figcaption span {
  color: var(--rm-ink);
}

.rm-home .rm-steps {
  border-color: var(--rm-line);
}

.button:where(:not(.secondary, .light)),
.rm-home .rm-preview-card .button,
.floating-whatsapp {
  background: var(--rm-gold-finish);
  color: var(--rm-ink);
  border-color: var(--rm-gold-outline);
}

.button:not(:disabled):hover:where(:not(.secondary, .light)),
.rm-home .rm-preview-card .button:hover,
.floating-whatsapp:hover {
  background: linear-gradient(108deg, #dfcf97, var(--rm-gold-hover));
  color: var(--rm-ink);
}

.button .arrow,
.rm-home .rm-preview-card .button .arrow {
  background: var(--rm-gold-deep);
  color: var(--rm-ivory);
}

.ui-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
}

.button .arrow .ui-icon {
  width: .8em;
  height: .8em;
}

.button.secondary {
  background: #faf4eb;
  border-color: var(--rm-gold-outline);
  color: var(--rm-gold-text);
}

.button.secondary:hover {
  background: var(--rm-feature);
  color: var(--rm-ink);
}

.floating-whatsapp svg {
  stroke: var(--rm-ink);
}

.hero .eyebrow::before {
  background: var(--rm-gold-outline);
}

.location-title,
.location-links .text-link,
.journey-item > span {
  color: var(--rm-gold-text);
}

.location-title svg {
  stroke: var(--rm-gold-text);
}

.location-links .text-link,
.location-links .social-link {
  border-color: var(--rm-gold-outline);
}

.play-circle,
.topic-video-card .play-circle {
  background: var(--rm-gold-deep);
  border-color: var(--rm-gold);
  color: var(--rm-ivory);
}

.story-media:hover .play-circle,
.topic-video-card:hover .play-circle {
  background: var(--rm-gold);
  color: var(--rm-ink);
}

.about-portrait::before {
  background: var(--rm-gold-finish);
}

.footer {
  background: linear-gradient(110deg, var(--rm-feature-light), var(--rm-feature));
  color: var(--rm-ink);
  border-top: 1px solid var(--rm-line);
}

.footer .brand {
  display: block;
  background: transparent;
}

.footer .brand img {
  filter: none;
  mix-blend-mode: multiply;
}

.footer-top > p,
.footer-pages,
.footer-social,
.footer-bottom {
  color: var(--rm-ink);
}

.footer-pages a,
.footer-social a,
.footer-bottom {
  border-color: var(--rm-gold-outline);
}

.footer-pages a,
.footer-social a {
  color: var(--rm-gold-text);
}

.footer a:hover {
  color: var(--rm-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer a:focus-visible {
  outline: 2px solid var(--rm-gold-outline);
  outline-offset: 4px;
}

.journey-layout img.case-comparison {
  background: #e9e1d4;
}

.rm-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, .85fr);
  gap: clamp(36px, 7vw, 108px);
  align-items: center;
}

.rm-hero .subpage-heading h1 {
  font-size: clamp(40px, 4.15vw, 64px);
  text-wrap: balance;
}

.rm-hero .subpage-heading > p + p {
  margin-top: 14px;
}

.rm-hero-portrait {
  width: min(100%, 430px);
  justify-self: end;
  margin: 0;
  background: var(--rm-ivory);
  border: 1px solid var(--rm-line);
  box-shadow: 0 12px 34px rgba(86, 62, 32, .09);
}

.rm-hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 5.6;
  object-fit: cover;
  object-position: center 25%;
}

.rm-hero-portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 14px;
  padding: 12px 16px;
  color: var(--rm-ink);
  font-size: 12px;
}

.rm-hero-portrait figcaption span {
  color: var(--rm-gold-text);
}

.rm-contact {
  background: var(--rm-champagne);
  text-align: center;
  border-block: 1px solid var(--rm-line);
}

.rm-contact h2 {
  max-width: 780px;
  margin-inline: auto;
  text-wrap: balance;
}

.rm-contact h2 em {
  color: var(--rm-gold-text);
}

.rm-contact p {
  max-width: 480px;
  margin: 20px auto 25px;
  color: var(--rm-ink-muted);
}

@media (max-width: 640px) {
  .rm-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rm-hero .subpage-heading h1 {
    font-size: clamp(34px, 9.2vw, 46px);
  }

  .rm-hero-portrait {
    justify-self: center;
  }

  .rm-hero-portrait img {
    aspect-ratio: 5 / 4;
  }
}
