/* ============================================================
   The Inner Science — Course stylesheet
   Built on the Chill & Shine Visual Design System (June 2026)
   Tokens mirror public_html/assets/css/base.css
   ============================================================ */

:root {
  /* surfaces */
  --cream: #FDFBF8;
  --cream-dark: #F1EDE9;
  --white: #FFFFFF;
  /* text */
  --dark: #2E2A26;
  --warm-gray: #5C554E;
  --warm-gray-light: #9A9189;
  /* accents */
  --gold: #A8615A;          /* dusty clay-rose: primary */
  --gold-deep: #934F49;     /* hover */
  --gold-light: #EAE4DD;    /* hairlines, soft fills */
  --gold-glow: rgba(168,97,90,0.20);
  --rose-tint: rgba(168,97,90,0.12);
  --soft-green: #6E8466;    /* sage: secondary */
  --sage-tint: rgba(110,132,102,0.12);
  /* footer (light earthtone bookend) */
  --footer-bg: #E7DCCB;            /* warm sand earthtone */
  --footer-text: #5C554E;          /* body on sand */
  --footer-heading: #2E2A26;       /* ink */
  --footer-border: #D6C7B0;        /* hairline on sand */
  /* shadows */
  --shadow-sm: 0 1px 3px rgba(46,42,38,0.05);
  --shadow-md: 0 4px 12px rgba(46,42,38,0.08);
  --shadow-lg: 0 8px 30px rgba(46,42,38,0.10);
  --shadow-gold: 0 4px 20px rgba(168,97,90,0.15);
  /* radius + motion */
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* type */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--warm-gray);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 400;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-deep); }

img { max-width: 100%; display: block; }

/* ---------- Layout containers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center;
  background: rgba(253,251,248,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-light);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; color: var(--dark); }
.brand:hover { color: var(--dark); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  font-size: 0.9rem; color: var(--warm-gray); font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-secondary { background: var(--white); color: var(--dark); border-color: var(--gold-light); }
.btn-secondary:hover { border-color: var(--gold); color: var(--dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 600; color: var(--gold); margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 84px 0 72px;
  text-align: center;
}
.hero h1 { font-size: 2.7rem; margin-bottom: 18px; }
.hero .lead {
  max-width: 640px; margin: 0 auto 28px;
  font-size: 1.12rem; font-weight: 300; color: var(--warm-gray);
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero h1 { font-size: 2.1rem; } }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section.band { background: var(--cream-dark); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; font-weight: 300; }

/* ---------- Module grid (hub) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1024px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }

.module-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid transparent;
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.module-card:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: var(--shadow-md); }
.module-card .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rose-tint); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 16px;
}
.module-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.module-card p { font-size: 0.94rem; margin-bottom: 16px; flex: 1; }
.module-card .meta { font-size: 0.78rem; color: var(--warm-gray-light); display: flex; gap: 14px; }
.module-card.optional { border-style: dashed; border-color: var(--gold-light); background: var(--cream); }
.module-card .tag {
  align-self: flex-start; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--soft-green); background: var(--sage-tint);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.8rem; color: var(--warm-gray-light); padding: 22px 0 0; }
.breadcrumb a { color: var(--warm-gray-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Lesson / article ---------- */
.lesson { padding: 16px 0 64px; }
.lesson-head { max-width: 760px; margin: 0 auto 36px; padding: 0 24px; }
.lesson-head .kicker { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.lesson-head h1 { font-size: 2.2rem; margin: 10px 0 16px; }
.lesson-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--warm-gray-light);
  border-top: 1px solid var(--gold-light); border-bottom: 1px solid var(--gold-light);
  padding: 12px 0;
}
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article p { margin-bottom: 1.15rem; }
.article h2 { font-size: 1.6rem; margin: 2.2rem 0 0.9rem; }
.article h3 { font-size: 1.2rem; margin: 1.8rem 0 0.7rem; color: var(--dark); }
.article ul, .article ol { margin: 0 0 1.15rem 1.3rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: var(--dark); font-weight: 600; }
.article em.pali { font-style: italic; color: var(--soft-green); }
.article blockquote {
  margin: 1.6rem 0; padding: 18px 24px;
  background: var(--cream-dark); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--dark); line-height: 1.45;
}
.article blockquote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 0.82rem; font-style: normal; color: var(--warm-gray-light); }

/* ---------- Callout boxes ---------- */
.callout {
  margin: 1.8rem 0; padding: 22px 24px;
  border-radius: var(--radius); border: 1px solid var(--gold-light);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.callout .callout-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  margin-bottom: 10px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-term   { background: var(--cream-dark); border-color: var(--gold-light); }
.callout-term .callout-label { color: var(--soft-green); }
.callout-practice { border-left: 4px solid var(--gold); }
.callout-practice .callout-label { color: var(--gold); }
.callout-reflect  { border-left: 4px solid var(--soft-green); background: var(--sage-tint); }
.callout-reflect .callout-label { color: var(--soft-green); }
.callout-note { background: var(--cream-dark); border-style: dashed; }
.callout-note .callout-label { color: var(--warm-gray-light); }

.takeaways { background: var(--cream-dark); border-radius: var(--radius); padding: 24px 28px; margin: 2.2rem 0 0; }
.takeaways h3 { margin-top: 0; }
.takeaways ul { margin-bottom: 0; }

/* ---------- Prev / next ---------- */
.pager { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
.pager a {
  flex: 1; max-width: 48%; background: var(--white); border: 1px solid var(--gold-light);
  border-radius: var(--radius); padding: 16px 20px; transition: all var(--transition);
}
.pager a:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pager .dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--warm-gray-light); }
.pager .title { color: var(--dark); font-weight: 500; font-size: 0.95rem; margin-top: 4px; }
.pager a.next { text-align: right; margin-left: auto; }
.pager a.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Lesson list (module page) ---------- */
.lesson-list { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; }
.lesson-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--gold-light);
  border-radius: var(--radius); padding: 18px 22px; transition: all var(--transition);
}
.lesson-row:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateX(3px); }
.lesson-row .ln { font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; flex: none; width: 34px; }
.lesson-row .lc h3 { font-size: 1.08rem; margin-bottom: 3px; }
.lesson-row .lc p { font-size: 0.85rem; color: var(--warm-gray-light); }
.lesson-row .lt { margin-left: auto; font-size: 0.76rem; color: var(--warm-gray-light); white-space: nowrap; flex: none; }

/* ---------- TOC / what you'll practice ---------- */
.panel { background: var(--white); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* ---------- Footer (light earthtone bookend) ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 32px; margin-top: 72px; border-top: 1px solid var(--footer-border); }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); color: var(--footer-heading); font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-col h4 { color: var(--footer-heading); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--footer-border); margin-top: 36px; padding-top: 20px; font-size: 0.78rem; color: var(--warm-gray-light); }

/* ---------- Images / figures ---------- */
.hub-hero-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 8px 0 0; display: block; }
.module-hero, .lesson-hero { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 8px auto 28px; display: block; }
figure.figure { margin: 1.9rem 0; }
figure.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
figure.figure figcaption { font-size: 0.8rem; color: var(--warm-gray-light); text-align: center; margin-top: 10px; font-style: italic; }
/* optional watercolor thumbnail bleeding to the top of a hub module card */
.module-card .card-img { width: calc(100% + 56px); height: 148px; object-fit: cover; margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.module-card.optional .card-img { border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Image placeholders (swap for a real <figure>/<img> before publishing) ---------- */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px; margin: 8px auto 28px;
  background: var(--cream-dark); border: 2px dashed var(--gold);
  border-radius: var(--radius); color: var(--warm-gray); min-height: 200px;
}
.img-placeholder .ph-icon { font-size: 1.7rem; line-height: 1; }
.img-placeholder .ph-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--gold); }
.img-placeholder code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.8rem; color: var(--dark); background: var(--white); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--gold-light); }
.img-placeholder .ph-desc { font-size: 0.85rem; color: var(--warm-gray); font-style: italic; max-width: 48ch; }
.img-placeholder.ph-hub { min-height: 320px; }
.img-placeholder.ph-banner { min-height: 220px; }
.img-placeholder.ph-spot { min-height: 200px; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.source-note { max-width: 760px; margin: 0 auto; font-size: 0.85rem; color: var(--warm-gray-light); }
.divider { height: 1px; background: var(--gold-light); border: 0; max-width: 760px; margin: 40px auto; }
