:root {
  --rp-bg: #07111c;
  --rp-bg-soft: #0c1725;
  --rp-surface: rgba(10, 18, 29, 0.78);
  --rp-surface-strong: rgba(14, 24, 38, 0.96);
  --rp-border: rgba(203, 220, 255, 0.12);
  --rp-text: #f4f7fb;
  --rp-muted: #a8b3c8;
  --rp-accent: #e6bd6a;
  --rp-accent-2: #7ea2ff;
  --rp-accent-3: #67d7c8;
  --rp-max: 1180px;
  --rp-radius: 28px;
  --rp-radius-sm: 18px;
  --rp-shadow: 0 26px 90px rgba(0, 0, 0, 0.35);
}

html {
  font-family: 'Manrope', sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: 'Manrope', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-title a,
.entry-title,
.widget-title,
.ast-site-identity .site-title a {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

body.rp-light-theme {
  background: #ffffff !important;
  color: #000000 !important;
}

body.rp-light-theme .site,
body.rp-light-theme #page,
body.rp-light-theme .site-content,
body.rp-light-theme .site-main {
  background: transparent !important;
}

body.rp-light-theme .site-header,
body.rp-light-theme .ast-primary-header-bar,
body.rp-light-theme .main-header-bar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.rp-light-theme .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill,
body.rp-light-theme .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon,
body.rp-light-theme .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.rp-light-theme .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
body.rp-light-theme .ast-mobile-header-wrap [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill .ast-mobile-svg {
  fill: #0a0a0a !important;
  color: #0a0a0a !important;
}

body.rp-light-theme :is(div, section, article, header, footer, .wp-block-group, .wp-block-column, .wp-block-columns, .wp-block-cover) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: #0a0a0a !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

body.rp-light-theme [class*="has-background"],
body.rp-light-theme [class*="has-"] {
  background-color: transparent !important;
  color: #0a0a0a !important;
}

body.rp-light-theme .entry-title,
body.rp-light-theme .ast-archive-description {
  display: none !important;
}

.rp-light-theme {
  --rp-bg-light: #ffffff;
  --rp-text-light: #0a0a0a;
  --rp-muted-light: #4a4a4a;
  --rp-accent-light: #121212;
  --rp-border-light: rgba(0, 0, 0, 0.08);

  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

.rp-light-theme .rp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.rp-light-theme .rp-dot-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.rp-light-theme.rp-grain::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.rp-light-theme .rp-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  color: #888;
  margin-bottom: 16px;
}

/* Restore flex on WP block button wrappers — must not be reset by the :is() rule */
body.rp-light-theme .wp-block-buttons,
body.rp-light-theme .block-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  border: none !important;
  background: transparent !important;
  margin-top: 24px !important;
}

body.rp-light-theme .wp-block-button,
body.rp-light-theme .block-button {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  display: inline-block !important;
}

/* Mobile shell padding */
@media (max-width: 767px) {
  .rp-light-theme .rp-shell {
    padding: 0 18px;
  }
}

body.rp-light-theme p:empty,
body.rp-light-theme div:empty {
  display: none !important;
}
