/*
Theme Name: Routine Made Simple
Author: Routine Made Simple
Description: A lightweight editorial block theme for practical habits, time-restricted eating and informed wellness content.
Version: 0.4.2
Text Domain: routine-made-simple
*/

:root {
  --br-shadow: 0 18px 50px rgba(35, 58, 47, 0.10);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.2em; }
.wp-site-blocks { min-height: 100vh; }
.br-header { border-bottom: 1px solid rgba(35, 58, 47, 0.12); }
.br-brand a { text-decoration: none; }
.br-main {
  min-height: 62vh;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}
.br-card {
  border: 1px solid rgba(35, 58, 47, 0.12);
  border-radius: 18px;
  box-shadow: var(--br-shadow);
}
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(35,58,47,.18); }
.br-footer a { color: inherit; }
.br-eyebrow {
  color: #386021;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.br-eyebrow-light { color: #bedf62; }
.br-hero-cover .wp-block-cover__image-background { object-position: center center; }
.br-hero {
  background-color: #f7f3e9 !important;
  background-image: linear-gradient(90deg, rgba(247,243,233,.12), rgba(247,243,233,0)), url('assets/routine-made-simple-hero-v1.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: clamp(620px, 67vw, 820px);
  padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
  padding-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.br-hero-copy {
  background: rgba(247, 243, 233, .92);
  border: 1px solid rgba(35, 58, 47, .12);
  border-radius: 24px;
  box-shadow: var(--br-shadow);
  color: #234033;
  margin-left: 0 !important;
  max-width: 520px !important;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.br-hero-copy h1,
.br-hero-copy p { color: #234033; }
.br-hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.6rem) !important;
  line-height: .98;
  margin-bottom: 1.25rem;
}
.br-hero-copy .has-large-font-size {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem) !important;
  line-height: 1.55;
}
.br-hero-copy .wp-block-buttons { margin-top: 1.35rem; }
.br-hero-copy .has-small-font-size { line-height: 1.45; }
.br-hero-image img {
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  box-shadow: var(--br-shadow);
  object-fit: cover;
}
.br-hero-image { position: relative; }
.br-hero-image figcaption {
  background: rgba(247,243,233,.94);
  border-radius: 999px;
  bottom: 1rem;
  color: #234033;
  font-size: .78rem;
  left: 1rem;
  margin: 0;
  padding: .55rem .85rem;
  position: absolute;
}
.br-microcopy { color: #405348; margin-top: 1rem; }
.br-benefit-strip { border-bottom: 1px solid rgba(35,58,47,.18); border-top: 1px solid rgba(35,58,47,.18); }
.br-number { color: #f4a63a; font-size: 2rem; font-weight: 850; line-height: 1; margin: 0; }
.br-number-card { height: 100%; }
.br-weight-map {
  align-items: stretch;
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
}
.br-weight-map .wp-block-column { position: relative; }
.br-weight-map .wp-block-column:not(:last-child)::after {
  color: #7da132;
  content: '\2192';
  font-size: 2rem;
  font-weight: 800;
  position: absolute;
  right: -1.65rem;
  top: 44%;
  z-index: 2;
}
.br-weight-map .br-number-card {
  border-top: 6px solid #bedf62;
  padding: 1.65rem;
}
.br-weight-map .wp-block-column:nth-child(1) .br-number::after,
.br-weight-map .wp-block-column:nth-child(2) .br-number::after,
.br-weight-map .wp-block-column:nth-child(3) .br-number::after {
  color: #59685f;
  display: block;
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  margin-top: .45rem;
}
.br-weight-map .wp-block-column:nth-child(1) .br-number::after { content: 'FOUNDATION'; }
.br-weight-map .wp-block-column:nth-child(2) .br-number::after { content: 'STRUCTURE'; }
.br-weight-map .wp-block-column:nth-child(3) .br-number::after { content: 'SUPPORT'; }
.br-guide-cover img { border-radius: 12px; box-shadow: 0 22px 55px rgba(0,0,0,.25); }
.br-photo-steps { margin-top: 2.5rem; }
.br-photo-steps .wp-block-column { display: flex; flex-direction: column; }
.br-photo-steps figure { margin-bottom: 1.25rem; }
.br-photo-steps img {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  box-shadow: var(--br-shadow);
  object-fit: cover;
  width: 100%;
}
.br-photo-steps h3 { margin-bottom: .4rem; }
.br-photo-steps p { margin-top: 0; }
.br-guide-intro {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.55;
  max-width: 28rem;
}
.br-disclosure { border-top: 1px solid rgba(35,58,47,.18); padding-top: 1.5rem; }

.br-product-section {
  margin: 1rem auto 5rem;
  max-width: 1160px;
  padding: clamp(2.25rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.br-product-heading { margin: 0 auto 2.5rem; max-width: 760px; text-align: center; }
.br-product-heading h1,
.br-product-heading h2 { font-size: clamp(2.2rem, 4vw, 3.35rem); margin: .35rem 0 1rem; }
.br-product-lead { color: #405348; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.br-product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-product-card {
  background: #fff;
  border: 1px solid rgba(35,58,47,.13);
  border-radius: 24px;
  box-shadow: var(--br-shadow);
  overflow: hidden;
}
.br-product-card img { aspect-ratio: 16 / 10; display: block; object-fit: cover; width: 100%; }
.br-product-card-copy { padding: clamp(1.5rem, 3vw, 2.25rem); }
.br-product-card-copy h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: .35rem 0 .8rem; }
.br-product-label { color: #386021; font-size: .75rem; font-weight: 800; letter-spacing: .09em; }
.br-product-details {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  margin-top: 2.5rem;
}
.br-outcomes { margin-top: 3.5rem; text-align: center; }
.br-outcomes > h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.br-outcomes-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.75rem; }
.br-outcomes-grid > div { background: #f7f3e9; border: 1px solid rgba(35,58,47,.12); border-radius: 18px; padding: 1.5rem; text-align: left; }
.br-outcomes-grid strong { color: #234033; display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; margin-bottom: .5rem; }
.br-outcomes-grid span { color: #405348; display: block; }
.br-results-caveat { color: #59685f; font-size: .85rem; margin: 1rem auto 0; max-width: 760px; }
.br-routine-example { background: #fff; border: 1px solid rgba(35,58,47,.12); border-radius: 24px; box-shadow: var(--br-shadow); display: grid; gap: 2.5rem; grid-template-columns: minmax(230px,.7fr) minmax(0,1.3fr); margin-top: 3rem; padding: clamp(1.5rem,4vw,3rem); }
.br-routine-copy h2 { font-size: clamp(1.8rem,3vw,2.5rem); }
.br-timeline { border-left: 2px solid #bedf62; list-style: none; margin: 0; padding-left: 1.5rem; }
.br-timeline li { margin: 0 0 1.5rem; position: relative; }
.br-timeline li:last-child { margin-bottom: 0; }
.br-timeline li::before { background: #bedf62; border: 4px solid #fff; border-radius: 50%; content: ''; height: 12px; left: -1.95rem; position: absolute; top: .25rem; width: 12px; }
.br-timeline span { color: #386021; display: block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.br-timeline strong { color: #234033; display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; margin-top: .2rem; }
.br-timeline p { margin: .25rem 0 0; }
.br-eating-windows { background: #e7ddc9; border-radius: 24px; margin-top: 2rem; padding: clamp(1.5rem,4vw,3rem); }
.br-eating-windows > div:first-child { margin: 0 auto 1.75rem; max-width: 760px; text-align: center; }
.br-eating-windows h2 { font-size: clamp(1.8rem,3.5vw,2.7rem); margin: .3rem 0 .8rem; }
.br-window-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.br-window-grid > div { background: rgba(255,255,255,.78); border-radius: 16px; padding: 1.25rem; text-align: center; }
.br-window-grid strong { color: #234033; display: block; font-family: Georgia,'Times New Roman',serif; font-size: 2rem; }
.br-window-grid span { display: block; line-height: 1.45; margin: .35rem 0 .65rem; }
.br-window-grid small { color: #59685f; display: block; }
.br-product-details ol { padding-left: 1.25rem; }
.br-product-details li { margin-bottom: .75rem; }
.br-product-note { background: #e7ddc9; border-radius: 18px; padding: 1.5rem; }
.br-product-note p { margin-bottom: 0; }
.br-shop-panel {
  align-items: center;
  background: #234033;
  border-radius: 24px;
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.br-shop-panel h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .25rem 0 .5rem; }
.br-shop-panel p { margin: 0; }
.br-shop-actions { align-items: center; display: flex; flex-direction: column; flex-shrink: 0; gap: .8rem; }
.br-shop-button {
  background: #bedf62;
  border-radius: 999px;
  color: #234033;
  display: inline-block;
  font-weight: 750;
  padding: .9rem 1.35rem;
  text-align: center;
  text-decoration: none;
}
.br-shop-button:hover { box-shadow: 0 10px 22px rgba(0,0,0,.22); transform: translateY(-2px); }
.br-details-link { color: #fff; font-size: .9rem; }
.br-referral-note { color: #59685f; font-size: .78rem; line-height: 1.55; margin: 1rem auto 0; max-width: 900px; text-align: center; }
.rms-feel-great-intro { margin: 0 auto 3.25rem; max-width: 800px; text-align: center; }
.rms-feel-great-intro h1 { font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; margin: .5rem 0 1.1rem; }
.rms-feel-great-intro .has-large-font-size { font-size: clamp(1.08rem,1.8vw,1.35rem) !important; line-height: 1.55; }
.rms-product-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 2.5rem 0 4rem; }
.rms-product-card { background: #fff; border: 1px solid rgba(35,58,47,.13); border-radius: 24px; box-shadow: var(--br-shadow); overflow: hidden; }
.rms-theme-image { margin: 0; }
.rms-theme-image img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.rms-product-card-copy { padding: clamp(1.4rem,3vw,2.25rem); }
.rms-product-card-copy h3 { font-size: clamp(2rem,4vw,3rem); margin: .35rem 0 .75rem; }
.rms-product-card-copy li { margin-bottom: .55rem; }
.rms-role-label { color: #386021; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.rms-day-map { align-items: start; background: #234033; border-radius: 26px; color: #fff; display: grid; gap: 3rem; grid-template-columns: .85fr 1.15fr; margin: 4rem 0 2rem; padding: clamp(2rem,5vw,4rem); }
.rms-day-map h2, .rms-day-map strong { color: #fff; }
.rms-day-map ol { border-left: 2px solid #bedf62; list-style: none; margin: 0; padding-left: 1.5rem; }
.rms-day-map li { margin: 0 0 1.7rem; position: relative; }
.rms-day-map li:last-child { margin-bottom: 0; }
.rms-day-map li::before { background: #bedf62; border: 4px solid #234033; border-radius: 50%; content: ''; height: 12px; left: -1.95rem; position: absolute; top: .25rem; width: 12px; }
.rms-day-map span { color: #bedf62; display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rms-day-map strong { display: block; font-family: Georgia,'Times New Roman',serif; font-size: 1.3rem; margin-top: .25rem; }
.rms-day-map li p { margin: .35rem 0 0; }
.rms-fasting-panel, .rms-safety-note { background: #e7ddc9; border-radius: 20px; margin: 2rem 0; padding: clamp(1.5rem,4vw,2.5rem); }
.rms-safety-note { border-left: 6px solid #f4a63a; }
.rms-how-intro { margin: 0 auto 3.5rem; max-width: 860px; text-align: center; }
.rms-how-intro h1 { font-size: clamp(3rem,5vw,4.7rem); line-height: 1; margin: .5rem 0 1.2rem; }
.rms-how-intro .has-large-font-size { font-size: clamp(1.08rem,1.8vw,1.35rem) !important; line-height: 1.55; }
.rms-process { display: grid; gap: 1.4rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.rms-process article { background: #fff; border: 1px solid rgba(35,58,47,.13); border-radius: 22px; box-shadow: var(--br-shadow); padding: clamp(1.5rem,3vw,2.3rem); }
.rms-process article > span { color: #7da132; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.rms-process article h2 { font-size: clamp(1.7rem,3vw,2.35rem); margin: .5rem 0 .8rem; }
.rms-process article > strong { color: #386021; display: block; margin-top: 1.2rem; }
.rms-process article > p:last-child { margin-bottom: 0; }
.rms-equation { align-items: center; background: #234033; border-radius: 24px; color: #fff; display: grid; gap: 1rem; grid-template-columns: 1fr auto 1fr auto 1fr; margin: 3rem 0; padding: clamp(1.5rem,4vw,2.8rem); text-align: center; }
.rms-equation span { color: #bedf62; display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.rms-equation strong { color: #fff; display: block; font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.15rem,2vw,1.5rem); margin-top: .35rem; }
.rms-equation b { color: #f4a63a; font-size: 2rem; }
.rms-practical-note { background: #e7ddc9; border-radius: 22px; margin: 2rem 0; padding: clamp(1.6rem,4vw,3rem); }
.rms-health-check { border: 1px solid rgba(35,58,47,.16); border-left: 6px solid #f4a63a; border-radius: 18px; margin: 2rem 0; padding: clamp(1.5rem,3vw,2.25rem); }
.rms-guide-landing { align-items: center; box-sizing: border-box; display: grid; gap: clamp(2rem,4vw,4rem); grid-template-columns: minmax(0,1fr) minmax(260px,320px); left: 50%; margin: 1rem 0 3.5rem; max-width: 1080px; position: relative; transform: translateX(-50%); width: min(1080px,calc(100vw - 3rem)); }
.rms-guide-landing h1 { font-size: clamp(2.8rem,4.4vw,4.2rem); line-height: .98; margin: .5rem 0 1.25rem; max-width: 12ch; }
.rms-guide-landing .has-large-font-size { font-size: clamp(1.12rem,1.8vw,1.35rem) !important; line-height: 1.55; max-width: 34rem; }
.rms-guide-landing li { margin-bottom: .6rem; }
.rms-guide-landing aside { background: #234033; border-radius: 26px; box-shadow: var(--br-shadow); color: #fff; padding: clamp(2rem,4vw,3rem); }
.rms-guide-landing aside span { color: #bedf62; display: block; font-size: 3rem; font-weight: 850; line-height: 1; }
.rms-guide-landing aside strong { color: #fff; display: block; font-family: Georgia,'Times New Roman',serif; font-size: 1.7rem; line-height: 1.15; margin: 1rem 0; }
.rms-download-button { background: #bedf62; border-radius: 999px; color: #234033; display: inline-block; font-weight: 800; margin-top: 1rem; padding: 1rem 1.45rem; text-decoration: none; }
.rms-download-button:hover { box-shadow: 0 10px 22px rgba(35,58,47,.18); transform: translateY(-2px); }
.rms-download-note { color: #59685f; font-size: .82rem; margin-top: .85rem; }
.rms-signup-section { background: #eef2ec; border: 1px solid rgba(35,58,47,.12); border-radius: 28px; box-sizing: border-box; left: 50%; margin: 2rem 0 4rem; max-width: 900px; padding: clamp(1.5rem,4vw,3rem); position: relative; scroll-margin-top: 2rem; transform: translateX(-50%); width: min(900px,calc(100vw - 3rem)); }
.rms-signup-copy { margin: 0 auto 1.75rem; max-width: 650px; text-align: center; }
.rms-signup-copy h2 { font-family: Georgia,'Times New Roman',serif; font-size: clamp(2rem,3.5vw,3rem); line-height: 1.08; margin: .5rem 0 1rem; }
.rms-signup-copy .rms-download-note { margin-left: auto; margin-right: auto; max-width: 38rem; }
.rms-signup-frame { background: #fff; border-radius: 18px; box-shadow: var(--br-shadow); margin: 0 auto; max-width: 650px; min-width: 0; overflow: hidden; }
.rms-signup-frame iframe { border: 0; display: block; height: 680px; width: 100%; }
.rms-email-preview { background: #e7ddc9; border-radius: 22px; padding: clamp(1.8rem,4vw,3rem); }
.rms-page-intro { margin: 0 auto 3.5rem; max-width: 860px; text-align: center; }
.rms-page-intro h1 { font-size: clamp(3rem,5vw,4.7rem); line-height: 1; margin: .5rem 0 1.15rem; }
.rms-page-intro .has-large-font-size { font-size: clamp(1.08rem,1.8vw,1.35rem) !important; line-height: 1.55; }
.rms-about-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.rms-about-grid section { background: #fff; border: 1px solid rgba(35,58,47,.13); border-radius: 20px; box-shadow: var(--br-shadow); padding: clamp(1.5rem,3vw,2.25rem); }
.rms-about-grid section h2 { font-size: clamp(1.6rem,3vw,2.1rem); margin-top: 0; }
.rms-faq-list { display: grid; gap: 1rem; margin: 0 auto; max-width: 920px; }
.rms-faq-list details { background: #fff; border: 1px solid rgba(35,58,47,.14); border-radius: 16px; box-shadow: 0 8px 25px rgba(35,58,47,.06); padding: 1.15rem 1.35rem; }
.rms-faq-list summary { color: #234033; cursor: pointer; font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.18rem,2vw,1.45rem); font-weight: 700; }
.rms-faq-list details p { margin-bottom: .35rem; }
.rms-contact-panel, .rms-policy { background: #fff; border: 1px solid rgba(35,58,47,.13); border-radius: 22px; box-shadow: var(--br-shadow); margin: 0 auto; max-width: 900px; padding: clamp(1.7rem,4vw,3rem); }
.rms-policy h2:not(:first-child) { border-top: 1px solid rgba(35,58,47,.13); margin-top: 2rem; padding-top: 1.7rem; }

@media (max-width: 781px) {
  .br-header-row { align-items: flex-start !important; gap: 1rem !important; }
  .br-header-row .wp-block-navigation { justify-content: flex-start; }
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: max(1.5rem, env(safe-area-inset-top))
      max(2.25rem, env(safe-area-inset-right))
      2rem
      max(1.5rem, env(safe-area-inset-left));
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    padding-top: 4rem;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    align-items: flex-end;
    width: 100%;
  }
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item,
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    max-width: 100%;
    text-align: right;
    white-space: normal;
  }
  .wp-block-navigation__responsive-container-close {
    right: max(2.25rem, env(safe-area-inset-right));
    top: max(1.5rem, env(safe-area-inset-top));
  }
  .br-hero-cover {
    align-items: flex-start;
    background: #f7f3e9;
    min-height: 930px !important;
    padding-top: 225px;
  }
  .br-hero {
    background-position: 63% top;
    min-height: 880px;
    padding-bottom: 2rem !important;
    padding-top: 310px !important;
  }
  .br-hero-cover .wp-block-cover__image-background {
    object-fit: contain !important;
    object-position: center top;
  }
  .br-hero-copy { margin: 1rem !important; padding: 1.4rem; }
  .br-hero-copy h1 { font-size: clamp(2.6rem, 12vw, 3.6rem) !important; }
  .br-benefit-strip .wp-block-group { justify-content: center !important; gap: .5rem 1.4rem !important; }
  .br-benefit-strip p { margin: 0; }
  .br-product-section { padding-left: 0; padding-right: 0; }
  .br-product-grid,
  .br-product-details,
  .br-outcomes-grid,
  .br-routine-example,
  .br-window-grid { grid-template-columns: 1fr; }
  .br-weight-map .wp-block-column:not(:last-child)::after {
    bottom: -1.8rem;
    content: '\2193';
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }
  .br-shop-panel { align-items: stretch; flex-direction: column; }
  .br-shop-actions { align-items: stretch; }
  .br-shop-button { width: auto; }
  .rms-product-grid,
  .rms-day-map,
  .rms-process { grid-template-columns: 1fr; }
  .rms-equation { grid-template-columns: 1fr; }
  .rms-equation b { line-height: .7; transform: rotate(90deg); }
  .rms-feel-great-intro h1 { font-size: clamp(2.7rem,12vw,4rem); }
  .rms-how-intro h1 { font-size: clamp(2.7rem,12vw,4rem); }
  .rms-guide-landing { grid-template-columns: 1fr; width: min(100%,calc(100vw - 2rem)); }
  .rms-guide-landing h1 { font-size: clamp(2.55rem,11vw,3.7rem); }
  .rms-guide-landing aside { padding: 2rem; }
  .rms-signup-section { padding: 1rem; width: min(100%,calc(100vw - 1rem)); }
  .rms-signup-copy { padding: .75rem .5rem 0; }
  .rms-signup-frame iframe { height: 760px; }
  .rms-about-grid { grid-template-columns: 1fr; }
  .rms-page-intro h1 { font-size: clamp(2.7rem,12vw,4rem); }
}
