:root {
  --rh-ink: #16161f;
  --rh-muted: #646477;
  --rh-paper: #ffffff;
  --rh-wash: #f6f5fb;
  --rh-line: #e8e6f0;
  --rh-violet: #6842e8;
  --rh-violet-dark: #4b28bd;
  --rh-coral: #c83249;
  --rh-mint: #15856a;
  --rh-shadow: 0 22px 60px rgba(35, 25, 79, 0.1);
  --rh-radius: 22px;
  --rh-shell: min(1180px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rh-ink);
  background: var(--rh-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rh-violet-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--rh-coral);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button-link,
.wp-element-button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(104, 66, 232, 0.42);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--rh-ink);
  border-radius: 8px;
}

.site-shell {
  width: var(--rh-shell);
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(2.5rem, 7vw, 6.5rem);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(232, 230, 240, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.custom-logo {
  width: auto;
  max-height: 42px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rh-ink);
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rh-violet), var(--rh-coral));
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(104, 66, 232, 0.25);
}

.primary-navigation ul,
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.primary-navigation a {
  color: var(--rh-ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--rh-violet);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--rh-ink);
  border-radius: 2px;
}

.entry-header,
.article-header,
.archive-header {
  max-width: 820px;
  margin: 0 auto clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.entry-title,
.archive-header h1,
.error-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 7vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-article,
.article-layout {
  max-width: 840px;
  margin-inline: auto;
}

.rh-wide-page .page-article {
  max-width: 1180px;
}

.rh-wide-page .page-article > .entry-header {
  max-width: 840px;
}

.prose {
  color: #292836;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  overflow-wrap: anywhere;
}

.prose > * {
  max-width: 760px;
  margin-inline: auto;
}

.prose > .alignwide {
  max-width: 1080px;
}

.prose > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.prose h2,
.prose h3 {
  margin-top: 2.25em;
  color: var(--rh-ink);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.prose h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

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

.prose blockquote {
  padding: 1.25rem 1.5rem;
  border: 0;
  border-left: 5px solid var(--rh-violet);
  background: var(--rh-wash);
  border-radius: 0 14px 14px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.8rem;
  text-align: left;
  border: 1px solid var(--rh-line);
}

.entry-meta,
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  color: var(--rh-muted);
  font-size: 0.9rem;
}

.article-header > a,
.article-header > span {
  color: var(--rh-violet-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-image {
  margin: 0 auto 2.5rem;
  overflow: hidden;
  border-radius: var(--rh-radius);
  box-shadow: var(--rh-shadow);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rh-line);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(35, 25, 79, 0.06);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rh-wash);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.025);
}

.post-card-content {
  padding: 1.35rem;
}

.post-card-meta {
  justify-content: flex-start;
}

.post-card-title {
  margin: 0.55rem 0 0.65rem;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.post-card-title a {
  color: var(--rh-ink);
  text-decoration: none;
}

.post-card-excerpt {
  color: var(--rh-muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  gap: 0.35rem;
  font-weight: 750;
  text-decoration: none;
}

.post-navigation,
.comments-area {
  max-width: 840px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rh-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: block;
  padding: 1rem;
  color: var(--rh-ink);
  background: var(--rh-wash);
  border-radius: 14px;
  text-decoration: none;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  margin-block: 1rem;
  padding: 1rem;
  background: var(--rh-wash);
  border-radius: 14px;
}

.search-form {
  display: flex;
  max-width: 640px;
  margin: 1.5rem auto 0;
  gap: 0.65rem;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--rh-ink);
  background: #fff;
  border: 1px solid #cbc7da;
  border-radius: 12px;
}

.search-submit,
.button-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--rh-violet);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.error-page,
.empty-state {
  max-width: 760px;
  text-align: center;
}

.error-page .button-link {
  margin-top: 1.25rem;
}

.eyebrow {
  color: var(--rh-coral);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rh-page-intro {
  max-width: 820px !important;
  margin: 0 auto 2rem !important;
  color: var(--rh-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  text-align: center;
}

.rh-home-hero,
.rh-home-section,
.rh-home-cta {
  width: var(--rh-shell);
  max-width: 1180px;
  margin-inline: auto;
}

.rh-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 680px;
  padding-block: clamp(4rem, 10vw, 8rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.rh-home-hero h1 {
  max-width: 780px;
  margin: 0.2rem 0 1.25rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.rh-home-lead {
  max-width: 690px;
  margin: 0;
  color: var(--rh-muted);
  font-size: clamp(1.08rem, 2vw, 1.27rem);
}

.rh-home-actions {
  display: flex;
  margin-top: 1.75rem;
  align-items: center;
  gap: 0.8rem;
}

.rh-home-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.8rem 1.15rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--rh-violet);
  border: 1px solid var(--rh-violet);
  border-radius: 12px;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(104, 66, 232, 0.22);
}

.rh-home-button:hover {
  color: #fff;
  background: var(--rh-violet-dark);
}

.rh-home-button--secondary {
  color: var(--rh-violet-dark);
  background: #fff;
  border-color: #c8c1e5;
  box-shadow: none;
}

.rh-home-button--secondary:hover {
  color: var(--rh-violet-dark);
  background: var(--rh-wash);
}

.rh-home-fineprint {
  margin: 0.7rem 0 0;
  color: var(--rh-muted);
  font-size: 0.82rem;
}

.rh-home-demo {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(145deg, #201938, #30215c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(40, 25, 83, 0.28);
  transform: rotate(1.4deg);
}

.rh-demo-label,
.rh-demo-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.rh-demo-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rh-demo-before,
.rh-demo-after {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
}

.rh-demo-after {
  background: #fff;
}

.rh-demo-before span,
.rh-demo-after span {
  color: #b9acd9;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.rh-demo-after span {
  color: var(--rh-violet-dark);
}

.rh-demo-before p,
.rh-demo-after p {
  margin: 0.35rem 0 0;
  font-weight: 750;
  line-height: 1.4;
}

.rh-demo-before p {
  color: rgba(255, 255, 255, 0.83);
}

.rh-demo-after p {
  color: var(--rh-ink);
}

.rh-demo-arrow {
  margin: 0.5rem 0 -0.5rem;
  color: #d4c8ff;
  font-size: 1.5rem;
  text-align: center;
}

.rh-demo-note {
  margin-top: 1rem;
  text-align: center;
}

.rh-home-section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.rh-home-section--wash {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - 1180px) / 2));
  background: var(--rh-wash);
}

.rh-section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.rh-section-heading h2,
.rh-split-copy h2,
.rh-home-cta h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.rh-section-heading > p:last-child,
.rh-split-copy p {
  color: var(--rh-muted);
  font-size: 1.06rem;
}

.rh-feature-grid,
.rh-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.rh-feature-grid article,
.rh-topic-grid article {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--rh-line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(35, 25, 79, 0.06);
}

.rh-feature-grid article > span {
  color: var(--rh-coral);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.rh-feature-grid h3,
.rh-topic-grid h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.rh-feature-grid p,
.rh-topic-grid p {
  margin: 0;
  color: var(--rh-muted);
}

.rh-inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--rh-violet-dark);
  font-weight: 800;
  text-decoration: none;
}

.rh-split-copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  max-width: 1180px;
  margin-inline: auto;
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.rh-home-cta {
  display: flex;
  margin-block: clamp(4rem, 9vw, 7rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #4c2abf, #7a4eea 58%, #d84971);
  border-radius: 24px;
  box-shadow: var(--rh-shadow);
}

.rh-home-cta .rh-kicker {
  color: rgba(255, 255, 255, 0.72) !important;
}

.rh-home-cta h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.rh-home-cta .rh-home-button {
  flex: none;
  color: var(--rh-violet-dark);
  background: #fff;
  border-color: #fff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #17141f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem 2.5rem;
}

.brand-mark--footer {
  color: #fff;
}

.footer-brand p {
  max-width: 420px;
}

.footer-nav h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
}

.footer-nav ul {
  display: grid;
  gap: 0.45rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  padding-block: 1.25rem 2rem;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--rh-line);
    border-radius: 16px;
    box-shadow: var(--rh-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 0;
  }

  .primary-navigation a {
    display: block;
    padding: 0.8rem;
    border-radius: 10px;
  }

  .primary-navigation a:hover {
    background: var(--rh-wash);
  }

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

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

  .rh-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rh-home-demo {
    max-width: 640px;
    transform: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --rh-shell: min(100% - 1.25rem, 1180px);
  }

  .site-header {
    backdrop-filter: none;
  }

  .post-grid,
  .footer-grid,
  .post-navigation .nav-links,
  .rh-feature-grid,
  .rh-topic-grid,
  .rh-split-copy {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom,
  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }

  .entry-title,
  .archive-header h1,
  .error-page h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .rh-home-hero {
    padding-block: 3.5rem;
  }

  .rh-home-hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.2rem);
  }

  .rh-home-actions,
  .rh-home-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .rh-home-button {
    width: 100%;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

@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;
  }
}
