/* Constellation Trail design tokens v1 (8 Oct 2026). The ONE source for site pages, lesson pages, the
   get-lesson page and email templates. Values are the ones already live on the WordPress chrome and the
   13 lesson pages; the 8 static site pages drift from these and are listed in the vault note. */
:root{
  /* colour: text */
  --ink:#221C13;      /* body text, text on gold buttons (5.11:1 on gold) */
  --soft:#5C523E;     /* secondary text (7.13:1 on cream) */
  /* colour: brand */
  --gold:#B8841A;     /* FILLS ONLY (buttons, rules, stars). Never text on light: 3.06:1 fails AA */
  --gold-d:#8A6110;   /* gold text/links on light (5.13:1 on cream), button hover fill (white text 5.53:1) */
  --teal:#1E5A54;     /* links, headings accents (7.36:1 on cream) */
  --clay:#B45B36;     /* warm accent, sparingly; text ONLY on white (4.68:1); 4.34:1 on cream fails */
  /* colour: night sections (dark ink background only) */
  --gold-lt:#E7C25A;  /* 9.86:1 on ink */
  --teal-lt:#67B3A9;  /* 6.91:1 on ink */
  /* colour: surfaces */
  --cream:#FBF6EA;    /* page background */
  --paper:#FFFFFF;    /* cards, lesson sheets, email body card */
  --line:#D7C9AC;     /* dividers, decorative only: 1.64:1 on white, 1.52:1 on cream; never the only cue */
  /* type */
  --disp:"Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;   /* headings, 700 */
  --body:Georgia,"Times New Roman",serif;                              /* reading text */
  --sans:"Segoe UI",Helvetica,Arial,sans-serif;                        /* buttons, labels, small print */
  --h1:clamp(2rem,6vw,3rem);  --h2:clamp(1.4rem,4vw,1.9rem);  --h3:1.2rem;
  --text:1.0625rem; --small:.85rem; --lh:1.6;
  /* space (4px steps) */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem; --s6:2rem; --s7:3rem; --s8:4rem;
  /* shape */
  --r-pill:999px;   /* buttons and pills */
  --r-card:10px;    /* cards, panels, images in cards */
  --r-input:6px;    /* form fields */
  --measure:46rem;  /* max reading width */
  --shadow:0 6px 20px rgba(34,28,19,.08);
}
/* base typography and links (shared, not just the preview) */
body{background:var(--cream);color:var(--ink);font:var(--text)/var(--lh) var(--body)}
h1,h2,h3{font-family:var(--disp);font-weight:700;line-height:1.1;color:var(--ink)}
h1{font-size:var(--h1)} h2{font-size:var(--h2)} h3{font-size:var(--h3)}
a{color:var(--teal)} a:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.ct-measure{max-width:var(--measure);margin:0 auto;padding:var(--s6) 16px}

/* components */
.ct-btn{display:inline-flex;align-items:center;gap:.5rem;font:700 1rem/1 var(--sans);color:var(--ink);background:var(--gold);
  border:0;border-radius:var(--r-pill);padding:.8rem 1.4rem;text-decoration:none;cursor:pointer}
.ct-btn.ghost{background:none;color:var(--teal);border:1px solid var(--teal)}
.ct-btn:hover,.ct-btn:focus-visible{background:var(--gold-d);color:#fff}
.ct-btn.ghost:hover,.ct-btn.ghost:focus-visible{background:var(--teal);color:#fff}
.ct-btn:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.ct-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-card);padding:var(--s5);box-shadow:var(--shadow)}
.ct-label{display:block;font:600 var(--small) var(--sans);color:var(--ink);margin:0 0 var(--s1)}
.ct-input{font:1rem var(--sans);color:var(--ink);background:#fff;padding:.65rem .75rem;border:1px solid var(--soft);border-radius:var(--r-input);width:100%}
.ct-input::placeholder{color:var(--soft);opacity:1}
.ct-input:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.ct-eyebrow{font:600 .8rem var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--teal)}

/* night sections: ink background. Body text white; links, outlines and focus use the light variants (teal is 2.1:1 on ink) */
.ct-night{background:var(--ink);color:#fff;border-radius:var(--r-card);padding:var(--s5)}
.ct-night h1,.ct-night h2,.ct-night h3{color:var(--gold-lt)}
.ct-night a:not(.ct-btn){color:var(--teal-lt)}
.ct-night a:focus-visible,.ct-night .ct-btn:focus-visible,.ct-night .ct-input:focus-visible{outline-color:var(--gold-lt)}
.ct-night .ct-btn.ghost{color:var(--teal-lt);border-color:var(--teal-lt)}
.ct-night .ct-btn.ghost:hover,.ct-night .ct-btn.ghost:focus-visible{background:var(--teal-lt);color:var(--ink)}

/* lesson PDF print layout (matches the live lesson pages) */
@page{size:letter;margin:.35in}
@media print{body{background:#fff;font-size:12pt;line-height:1.5}
  .sheet{box-shadow:none;margin:0;width:auto;min-height:auto;padding:.5in .55in;page-break-after:always}
  .ct-sitefoot,.ctbar,nav{display:none!important}}

/* C2 (11 Oct, 3-way agreed): ONE join button, three variants. Green = join; gold stays for the free lesson.
   --primary: green fill, cream text (7.36:1). --outline: cream fill, green border + text (7.36:1). --on-green: cream fill on a green card. */
.ct-join{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:700 1rem/1.2 var(--sans);text-decoration:none;padding:.8rem 1.4rem;border-radius:999px;border:2px solid #1E5A54;cursor:pointer}
.ct-join--primary,.ct-btn.ct-join--primary{background:#1E5A54;color:#FBF6EA;border-color:#1E5A54}
.ct-join--primary:hover,.ct-join--primary:focus-visible,.ct-btn.ct-join--primary:hover,.ct-btn.ct-join--primary:focus-visible{background:#163F3B;color:#FBF6EA}
.ct-join--outline{background:#FBF6EA;color:#1E5A54;border-color:#1E5A54}
.ct-join--outline:hover,.ct-join--outline:focus-visible{background:#1E5A54;color:#FBF6EA}
.ct-join--on-green{background:#FBF6EA;color:#1E5A54;border-color:#FBF6EA}
.ct-join--on-green:hover,.ct-join--on-green:focus-visible{background:#FFFFFF;color:#163F3B}
.ct-join:focus-visible{outline:3px solid #B8841A;outline-offset:3px}
