/* RealignED Wellness Academy: the Course Studio in the Academy's look.
   Loaded after styles.css on that site only (sites/realigned.js, themeCss).
   styles.css stays Self Align by Design's; this file re-points its color
   variables and overrides the few rules that name a typeface or a shape.
   Values come from the brand's design system: four colors with one job each
   (ultraviolet = the Academy and every action, rose = Radical Realignment,
   marigold = Wellness and Education, lagoon = free), Besley for headings,
   Lexend for reading, Caveat for one handwritten line. */
:root {
  --cream:      #FFFDF8;   /* paper */
  --cream-mid:  #F4F0FB;
  --cream-dark: #DDD8E8;   /* line */
  --forest:     #17132B;   /* ink */
  --sage:       #6C3BFF;   /* ultraviolet: links and emphasis */
  --sage-mid:   #6C3BFF;
  --sage-pale:  #C9B8FF;
  --sage-ghost: #ECE6FF;   /* ultraviolet tint */
  --terra:      #6C3BFF;   /* primary button */
  --terra-light:#5627E6;   /* primary button hover */
  --text:       #2B2740;   /* body ink */
  --text-mid:   #5E5A72;   /* muted */
  --text-muted: #5E5A72;   /* one muted only: the lighter gray does not read on paper */
  --border:     #DDD8E8;
  --ra-rose: #FF1D58; --ra-gold: #FFB703; --ra-lagoon: #00B3AD; --ra-lagoon-deep: #007A77;
  --ra-rose-tint: #FFE6EC; --ra-gold-tint: #FFF1CC; --ra-lagoon-tint: #D9F3F1;
  --ra-serif: 'Besley', Georgia, 'Times New Roman', serif;
  --ra-sans: 'Lexend', 'Helvetica Neue', Arial, sans-serif;
  --ra-hand: 'Caveat', 'Brush Script MT', cursive;
}

/* Type */
body { font-family: var(--ra-sans); }
h1, h2, h3, h4,
.outline .sec-title, .post-title, .hub-stats strong, .hub-steps .n, .plan-amount,
.lesson-body blockquote { font-family: var(--ra-serif); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; text-wrap: balance; }
h1 { font-weight: 800; }
.post-title { font-weight: 700; }
.lesson-body blockquote { font-weight: 700; }
/* Emphasis is italic ink, not a second color. */
em, .italic { color: inherit; }
.hub-head h1 em { color: inherit; }
.eyebrow { color: var(--text-mid); font-size: 12px; }
.nav-name { color: var(--text-mid); }

/* The name, set in type: there is no logo. */
.nav { background: rgba(255, 253, 248, 0.94); }
.brand-word { font-family: var(--ra-serif); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: 0; color: var(--forest); }
.brand-word span { display: block; margin-top: 3px; font-family: var(--ra-sans); font-weight: 400; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mid); }
.nav-menu-btn { font-weight: 400; color: var(--forest); }
.nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { color: var(--sage); }
.nav-links > a { color: var(--forest); }
.nav-links > a:hover { color: var(--sage); }
.nav-links > a.btn, .nav-links > a.btn:hover { color: #fff; }

/* Buttons are pills. Ultraviolet is the only action color. */
.btn { border-radius: 999px; font-weight: 600; }
.btn-ghost { color: var(--forest); border: 2px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.badge { font-weight: 600; letter-spacing: .1em; }
.badge-free { background: var(--ra-lagoon); color: var(--forest); }
.badge-published { background: var(--sage-ghost); color: var(--sage); }
.badge-post { border-color: var(--border); }
.flash-success { border-color: rgba(108, 59, 255, 0.25); }
.included .tick { background: var(--ra-lagoon); color: var(--forest); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* Cards keep a hairline; no shadows anywhere. */
.card, .course-card, .post-row, .hub-pillar, .side-outline, .nav-menu-panel { box-shadow: none; }
.course-card:hover, .post-row:hover, .hub-pillar:hover { box-shadow: none; border-color: var(--sage); }

/* The footer opens with the four color bands, always in this order. */
.footer { border-top: 10px solid; border-image: linear-gradient(90deg, #FF1D58 0 25%, #FFB703 25% 50%, #6C3BFF 50% 75%, #00B3AD 75% 100%) 1; }

/* ─── The Academy's front door (sites/realigned/views/hub.ejs) ─────────────── */
.hub-head { text-align: left; padding: 8px 0 34px; max-width: 780px; }
.hub-head h1 { font-size: clamp(38px, 6vw, 64px); }
.hub-head p { margin: 16px 0 0; max-width: 34em; font-size: 19px; color: var(--text); }
.hub-head .ra-hand { display: block; font-family: var(--ra-hand); font-weight: 700; color: var(--sage); font-size: 1.35em; line-height: .95; margin-top: .05em; }
.hub-pillars { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hub-pillar { border: 0; border-top: 10px solid var(--c, var(--sage)); border-radius: 0 0 14px 14px; background: var(--t, var(--sage-ghost)); padding: 26px 26px 24px; }
.hub-pillar:hover { transform: none; border-color: var(--c, var(--sage)); }
.hub-pillar.rr { --c: var(--ra-rose); --t: var(--ra-rose-tint); }
.hub-pillar.we { --c: var(--ra-gold); --t: var(--ra-gold-tint); }
.hub-pillar h2 { font-size: 30px; }
.hub-pillar .eyebrow { margin-bottom: 0; }
.hub-pillar-text { font-size: 16.5px; color: var(--text); }
.hub-pillar-inside { color: var(--text-mid); }
.hub-pillar-go { font-weight: 600; color: var(--sage); }
.hub-overview .card p { font-size: 15.5px; color: var(--text); }
.hub-steps { gap: 12px; font-size: 15.5px; color: var(--text); }
.hub-steps .n { font-weight: 800; font-size: 22px; color: var(--sage); min-width: 22px; }
.hub-cta { text-align: left; }
.hub-cta .cta-row { justify-content: flex-start; }
.ra-notice { margin-top: 28px; background: var(--sage-ghost); border-radius: 12px; padding: 14px 18px; font-size: 15.5px; line-height: 1.5; color: var(--text); max-width: 780px; }
.ra-notice b { font-weight: 600; color: var(--forest); }

/* The Blog desk sets a few faces in its own page styles; `body` in front makes
   these win over them. */
body .rhythm .v, body .guide summary { font-family: var(--ra-serif); font-weight: 700; }
body .notebox textarea, body .prose h4, body .prose .k { font-family: var(--ra-sans); }
