@import url("https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&display=swap");

/* ============================================================
   CORA Blog styles
   Shared across /blog/* pages. weav-format skin 2026-07-10:
   real CORA palette (plum ink / rust / moss / creams, NOT teal)
   and General Sans, so blog pages match the main site.
   ============================================================ */

:root {
  --black: #481827;
  --green: #481827;            /* plum ink (display + primary) */
  --terra: #ab482d;            /* blood-orange accent */
  --terra-dk: #8a3a22;         /* AA-safe CTA / hover */
  --moss: #6a7049;
  --cream: #ebe2cf;
  --cream-deep: #f3e9d6;
  --ink: #481827;
  --muted: #5c3c44;
  --light-txt: #5c3c44;
  --rule: #e1d6c1;
  --rule-soft: #ece4d2;
  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--terra); color: var(--cream-deep); }

a { color: var(--terra-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--green); color: var(--cream-deep);
  padding: 10px 18px; border-radius: 100px; z-index: 200;
  text-decoration: none; font-weight: 500; font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- header / footer ---- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.site-head .bar {
  max-width: 1100px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.05em; color: var(--ink); text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terra); position: relative; }
.head-nav a { color: var(--muted); text-decoration: none; font-weight: 400; font-size: 0.95rem; margin-left: 22px; }
.head-nav a:hover { color: var(--terra-dk); }
@media (max-width: 600px) { .head-nav a { margin-left: 14px; font-size: 0.88rem; } }

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 72px; padding: 36px var(--gutter);
  color: var(--light-txt); font-size: 0.9rem; text-align: center;
}
.site-foot a { color: var(--light-txt); }

/* ---- shared wrap ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- blog hub ---- */
.hub-hero { padding: 64px 0 24px; }
.hub-hero .kicker, .post-kicker { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra-dk); margin: 0 0 14px; }
.hub-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.04; letter-spacing: -0.05em; margin: 0 0 16px; color: var(--ink); }
.hub-hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.post-list { list-style: none; padding: 0; margin: 32px 0 0; }
.post-card { border-top: 1px solid var(--rule); padding: 28px 0; }
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card .meta { font-size: 0.82rem; color: var(--light-txt); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.post-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.12; letter-spacing: -0.04em; margin: 0 0 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--terra-dk); }
.post-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.post-card.soon { opacity: 0.62; }
.post-card.soon h2 { color: var(--muted); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--moss); background: var(--cream-deep); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.tag.soon-tag { color: var(--terra-dk); }

/* ---- article ---- */
.post-hero { padding: 56px 0 8px; }
.post-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.06; letter-spacing: -0.05em; margin: 0 0 18px; color: var(--ink); }
.post-meta { font-size: 0.9rem; color: var(--light-txt); margin-bottom: 8px; }
.post-lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 8px; font-weight: 300; }

article.post { padding-top: 8px; }
article.post h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; line-height: 1.1; letter-spacing: -0.045em; margin: 44px 0 14px; color: var(--ink); }
article.post h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.035em; margin: 30px 0 10px; color: var(--ink); }
article.post p { margin: 0 0 1.2em; }
article.post ul, article.post ol { margin: 0 0 1.3em; padding-left: 1.3em; }
article.post li { margin-bottom: 0.5em; }
article.post strong { font-weight: 600; }
article.post a { color: var(--terra-dk); }
article.post blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 3px solid var(--terra); background: var(--cream-deep); border-radius: 0 12px 12px 0; color: var(--muted); }
article.post table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.96rem; }
article.post th, article.post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
article.post th { font-family: var(--font-body); font-weight: 600; background: var(--cream-deep); }

.callout { border: 1.5px solid var(--rule); border-radius: 16px; padding: 22px 24px; margin: 1.6em 0; background: var(--cream-deep); }
.callout h3 { margin-top: 0; }

/* ---- Individual membership signpost (course pages) ---- */
.individual-note { border: 1.5px solid var(--rule); border-radius: 16px; padding: 26px 26px 24px; margin: 1.6em 0; background: var(--cream-deep); }
.individual-note h3 { font-size: 1.15rem; letter-spacing: -0.03em; margin: 0 0 10px; color: var(--ink); }
.individual-note > p { margin: 0 0 22px; color: var(--muted); }
.individual-note a { font-weight: 600; }

.individual-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ip-plan {
  border: 1.5px solid var(--rule); border-radius: 12px; background: var(--cream);
  padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; position: relative;
}
.ip-plan .ip-badge {
  position: absolute; top: -11px; left: 12px; background: var(--terra-dk); color: var(--cream-deep);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}
.ip-plan.ip-featured { border-color: var(--terra-dk); border-width: 2px; background: #fff; }
.ip-plan .ip-term { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ip-plan .ip-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-top: 2px; }
.ip-plan .ip-price .ip-per { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.ip-plan .ip-rate { font-size: 0.82rem; color: var(--muted); min-height: 2.2em; }
.ip-plan.ip-monthly .ip-rate { font-style: italic; }
.ip-plan .btn { margin-top: 8px; margin-left: 0; width: 100%; justify-content: center; padding: 10px 14px; font-size: 0.9rem; }
.ip-plan .btn-ghost { background: transparent; color: var(--terra-dk); border: 1.5px solid var(--terra-dk); }
.ip-plan .btn-ghost:hover { background: var(--terra-dk); color: var(--cream-deep); }
@media (max-width: 720px) { .individual-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .individual-plans { grid-template-columns: 1fr; } }

/* ---- CTA box ---- */
.cta-box { margin: 48px 0 8px; padding: 32px; border-radius: 20px; background: var(--green); color: var(--cream-deep); }
.cta-box h2 { color: var(--cream-deep); margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -0.045em; }
.cta-box p { color: #e6d9c2; margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; padding: 13px 26px; border-radius: 100px; }
.btn-primary { background: var(--terra-dk); color: var(--cream-deep); }
.btn-primary:hover { background: #742f1c; color: var(--cream-deep); }
.btn-ghost { background: transparent; color: var(--cream-deep); border: 1.5px solid rgba(243,233,214,0.5); margin-left: 8px; }
.btn-ghost:hover { color: var(--cream-deep); border-color: var(--cream-deep); }
@media (max-width: 520px) { .btn-ghost { margin-left: 0; margin-top: 10px; } .cta-box .btn { display: block; text-align: center; justify-content: center; } }

.post-faq { margin-top: 48px; }
.post-faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.post-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.post-faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.03em; cursor: pointer; color: var(--ink); }
.post-faq summary::marker { color: var(--terra); }
.post-faq p { margin: 12px 0 0; color: var(--muted); }

.back-link { display: inline-block; margin: 40px 0 0; font-weight: 500; color: var(--terra-dk); text-decoration: none; }

/* ---- Related courses block (course pages) ---- */
.related-courses { margin: 48px 0 8px; padding-top: 32px; border-top: 1.5px solid var(--rule); }
.related-courses h2 { margin: 0 0 18px; }
.related-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 4px; }
.related-list li { border-bottom: 1px solid var(--rule-soft); padding: 10px 0; }
.related-list a { font-weight: 600; text-decoration: none; color: var(--terra-dk); }
.related-list a:hover { text-decoration: underline; }
.related-hub-link { margin: 0; font-weight: 600; }

/* ---- Author byline (course pages + blog posts) ---- */
.byline { display: flex; align-items: center; gap: 14px; margin: 0 0 32px; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.byline .byline-text { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.byline .byline-name { display: block; font-weight: 700; }
.byline .byline-name a { color: var(--ink); text-decoration: none; }
.byline .byline-name a:hover { color: var(--terra-dk); text-decoration: underline; }
.byline .byline-role { display: block; }

/* ---- Hub pages: cross-links between the six category hubs ---- */
.hub-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hub-links a { font-weight: 600; text-decoration: none; color: var(--terra-dk); }
.hub-links a:hover { text-decoration: underline; }
.hub-plain { color: var(--muted); }

/* ============================================================
   MAROON SURFACES (2026-07-19)
   Diagnosis: maroon (var(--green), #481827) was living almost
   entirely as TEXT colour on course/hub/blog pages, cream owned
   every background. This block puts maroon on backgrounds too,
   matching the column-width "panel" treatment index.html already
   uses (a full-width-of-the-content-column card with rounded
   corners, not a viewport-edge bleed, since the homepage's own
   panels are the same: full width of its .column, not the raw
   viewport). CSS only. No HTML, class names or layout changed.
   Accent on maroon uses #f0a599 (a light rust/salmon), the same
   token index.html already uses for emphasis on dark grounds
   (--weav-accent-on-dark). var(--terra-dk) does not have enough
   contrast against maroon to use for links here.
   ============================================================ */

/* Page header: the first thing on every course/hub/blog page,
   now a maroon band instead of cream. */
.post-hero, .hub-hero {
  background: var(--green) !important;
  border-radius: 20px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 40px) clamp(28px, 4vw, 40px);
  margin: 0 0 32px;
}
.post-hero .post-kicker, .hub-hero .kicker { color: #f0a599 !important; }
.post-hero h1, .hub-hero h1 { color: var(--cream-deep) !important; }
.post-hero .post-meta { color: rgba(243,233,214,0.72) !important; }
.post-hero .post-lead, .hub-hero p { color: rgba(243,233,214,0.9) !important; }

/* CTA box: already maroon (var(--green)); give it a bit more
   presence so it reads as a deliberate surface, not an afterthought. */
.cta-box { padding: 40px clamp(28px, 4vw, 44px); }

/* Related courses: second maroon surface on the 79 course pages. */
.related-courses {
  margin: 48px 0 8px;
  padding: 36px clamp(24px, 4vw, 40px);
  border-top: none;
  border-radius: 20px;
  background: var(--green) !important;
}
.related-courses h2 { color: var(--cream-deep) !important; }
.related-courses .related-list li { border-bottom: 1px solid rgba(243,233,214,0.18) !important; }
.related-courses .related-list a { color: #f0a599 !important; }
.related-courses .related-list a:hover { color: var(--cream-deep) !important; }
.related-courses .related-hub-link { color: var(--cream-deep); }
.related-courses .related-hub-link a { color: #f0a599 !important; }
