/* ===========================================================================
   Theme — Jessi Publications house style
   ---------------------------------------------------------------------------
   Every colour below is sampled directly from the approved design artwork.
   Loaded after site.css, which keeps all layout and component rules; this file
   changes the skin plus the few components that differ structurally (light
   header, illustrated hero, leaf decoration).

   Sampled palette
     hero ground   #f9f6f0     body ground   #fefefe     soft band  #fbf9f7
     primary green #577347     heading green #153315     body text  #344634
     gold          #cca770     wave stroke   #5b6033
     card tints    #f6f5eb  #fbf6ef  #f2f4f0  #f4f7f9
     icon circles  #607848  #c79d56  #677a58  #5d8896
   =========================================================================== */

:root{
  --ink:#153315;          /* headings, footer            */
  --ink-2:#1a361f;
  --ink-3:#577347;        /* primary button / icon green */

  --gold:#cca770;
  --gold-dk:#a8823f;
  --gold-lt:#efd59f;

  --paper:#fefefe;        /* main page ground            */
  --paper-2:#fbf9f7;      /* soft alternating band       */
  --card:#ffffff;
  --line:#eee9de;
  --line-2:#ddd6c6;

  --text:#344634;
  --muted:#6b7768;

  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Lato",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,sans-serif;

  --shadow:0 14px 40px rgba(21,51,21,.08);
  --shadow-sm:0 3px 12px rgba(21,51,21,.05);
  --r:16px;
  --r-lg:22px;

  --hero-ground:#f9f6f0;
}

/* Playfair runs large — ease the display scale back. */
h1{font-size:clamp(36px,4.4vw,56px);font-weight:500}
h2{font-size:clamp(26px,2.9vw,38px);font-weight:500}
h1,h2,h3,h4{color:var(--ink)}
body{background:var(--paper)}

.eyebrow{color:var(--gold-dk);letter-spacing:.17em}
.rule{background:var(--gold);height:2px;width:64px}
.lede{color:var(--text)}
.muted{color:var(--muted)}

/* ---------- buttons ---------- */
.btn{border-radius:7px;letter-spacing:.11em;font-weight:700;padding:14px 24px}
.btn-solid{background:var(--ink-3);color:#fff;border-color:var(--ink-3)}
.btn-solid:hover{background:#48633a}
.btn-ghost{background:#f9f5ed;color:var(--ink);border-color:#e6dfd0}
.btn-ghost:hover{background:#f4eee1;border-color:var(--ink-3);color:var(--ink-3)}

/* ---------- header ---------- */
.site-header{background:var(--hero-ground);border-bottom:1px solid #efe9dd}
.nav{height:92px}
.brand img{height:62px}
.brand .sub{display:none}
.nav-links a{color:#33452f;font-weight:600;font-size:14px;letter-spacing:.03em}
.nav-links a:hover{color:var(--ink-3)}
.nav-links a.on{color:var(--ink-3);border-color:var(--ink-3)}
.burger{color:#33452f}
.nav-cta .btn-ghost{background:var(--gold-lt);border-color:#e6c78a;color:#6d5424;border-radius:999px}
.nav-cta .btn-ghost:hover{background:#e8ca90;color:#5c461c}

/* ---------- hero ---------- */
.hero{background:var(--hero-ground);color:var(--text);overflow:hidden;position:relative}
.hero::after{background:none}

.hero-in{
  grid-template-columns:minmax(0,560px) 1fr;
  padding:44px 0 112px;
  gap:0;
}
.hero h1{color:var(--ink)}
.hero h1 em{color:var(--ink-3);font-style:italic}
.hero .lede{color:var(--text);font-size:17px;max-width:47ch}
.hero .rule{display:none}
.hero .hero-actions{margin-top:24px}
.hero-plate{display:none}

.hero::before{
  content:"";position:absolute;right:0;top:0;bottom:0;
  width:min(68%,1040px);z-index:0;pointer-events:none;
  background:url("../assets/hero-reading.png") no-repeat right center;
  background-size:cover;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.5) 12%,#000 30%);
  mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.5) 12%,#000 30%);
}

.hero .wrap{position:relative;z-index:2}
.hero-wave{
  position:absolute;left:0;right:0;bottom:-1px;height:86px;z-index:3;pointer-events:none;
  background:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 86' preserveAspectRatio='none'%3E%3Cpath d='M0,44 C220,10 470,74 720,58 C980,41 1210,4 1440,22 L1440,86 L0,86 Z' fill='%23fefefe'/%3E%3Cpath d='M0,44 C220,10 470,74 720,58 C980,41 1210,4 1440,22' fill='none' stroke='%235b6033' stroke-width='2'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size:100% 100%;
}

/* ---------- audience cards ---------- */
.aud{align-items:center;text-align:center;border-radius:var(--r-lg);padding:30px 22px;border-color:#eee9de}
.aud .mark{width:56px;height:56px;border:0;color:#fff;font-size:21px;box-shadow:var(--shadow-sm)}
.aud small{color:var(--muted)}
.aud h3{font-size:22px}
.aud p{font-size:13.5px;color:var(--muted)}
.aud .link{color:var(--ink-3)}

.aud-grid > :nth-child(1){background:#f6f5eb}
.aud-grid > :nth-child(1) .mark{background:#607848}
.aud-grid > :nth-child(2){background:#fbf6ef}
.aud-grid > :nth-child(2) .mark{background:#c79d56}
.aud-grid > :nth-child(3){background:#f2f4f0}
.aud-grid > :nth-child(3) .mark{background:#677a58}
.aud-grid > :nth-child(4){background:#f4f7f9}
.aud-grid > :nth-child(4) .mark{background:#5d8896}

/* ---------- bands ---------- */
.band{background:var(--paper-2)}
.band-dark{background:var(--ink)}
.band-dark .eyebrow{color:var(--gold-lt)}
.band-dark h1,.band-dark h2,.band-dark h3{color:#f7f5ee}
.band-dark p,.band-dark .lede{color:rgba(247,245,238,.84)}

#spotlight > .card{
  border-radius:var(--r-lg);border-color:#eee9de;background-color:var(--paper-2);
  background-image:linear-gradient(90deg,var(--paper-2) 0%,var(--paper-2) 44%,rgba(251,249,247,.55) 60%,rgba(251,249,247,.15) 100%),
                   url("../assets/landscape.png");
  background-repeat:no-repeat,no-repeat;
  background-position:left center,right center;
  background-size:auto,cover;
}

/* ---------- cards, chips, directory ---------- */
.card{border-radius:var(--r);border-color:#eee9de}
.dir-row{border-radius:var(--r-lg);border-color:#eee9de}
.dir-mark{background:linear-gradient(150deg,#607848,#33492a);color:#f4ead3;border-radius:12px}
.chip{border-color:#e6e0d3}
.chip.on{background:var(--ink-3);border-color:var(--ink-3);color:#fff}
.tag{background:#dfe6cf;color:#44543f}
.status-approved{background:#e4ecd8;color:#44603c}

/* ---------- series / class heroes ---------- */
.series-hero{background:var(--hero-ground);color:var(--text)}
.series-hero::after{background:none}
.series-hero h1{color:var(--ink)}
.series-hero .lede{color:var(--text)}
.series-hero .crumb{color:var(--muted) !important}
.series-hero .crumb a{color:var(--ink-3) !important}
.series-plate{
  background:#fff;border:1px solid #eee9de;box-shadow:var(--shadow);
  border-radius:var(--r-lg);justify-content:center;min-height:210px;
}
.series-plate .st{color:var(--gold-dk)}
.series-plate strong{color:var(--ink);font-size:36px}
.series-plate em{color:var(--muted)}
.facts div{background:#fff;border-color:#eee9de}
.facts small{color:var(--gold-dk)}
.facts b{color:var(--ink)}
.page-hero{background:var(--hero-ground);border-bottom-color:#efe9dd}
.subnav{background:rgba(254,254,254,.96);border-bottom-color:#eee9de}

/* ---------- book cover mock ---------- */
.book-cover{
  background:linear-gradient(150deg,#5b7548,#2a422e);
  border-left:5px solid var(--gold-dk);border-radius:6px 12px 12px 6px;
}
.book-cover small{color:var(--gold-lt)}
.book-cover strong{color:#fff;font-size:25px}

/* ---------- lesson / misc ---------- */
.lnum{background:var(--ink-3);color:#fff}
.avatar{background:var(--ink-3);color:#fff}
.prompt{background:var(--paper-2);border-left-color:var(--ink-3)}
.checklist li::before{color:var(--ink-3)}
.notice{background:var(--paper-2);border-left-color:var(--gold)}
.lesson-aside{background:var(--paper-2);border-color:#eee9de}
.comp-band{background:var(--paper-2);border-color:#eee9de}
.comp-list span{border-color:#eee9de}
.level.locked{background:var(--paper-2)}
.month-panel{background:var(--paper-2);border-color:#eee9de}
.specs,.spec{border-color:#eee9de}
.rcard{background:#fff;border-color:#eee9de}
.form,.form input,.form select{border-color:#e6e0d3}
.form input,.form select{background:var(--paper-2)}
.bar i{background:var(--ink-3)}
.mj-nav button.on,.mj-nav button:hover,.admin-nav button.on{background:var(--paper-2)}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:rgba(247,245,238,.74)}
.foot-brand img{height:52px;filter:brightness(0) invert(1) opacity(.92)}
.foot-grid h5{color:var(--gold-lt)}
.foot-grid{border-bottom-color:rgba(204,167,112,.24)}

/* ---------- botanical trim -------------------------------------------------
   Placed by hand, one or two per page, chosen for that page's shape. Each sits
   in the page gutter — outside the 1220px content column — so it can never
   overlap text, and is anchored in pixels to a section edge so a long page
   cannot float it into the middle of a list.

   Markup:  <i class="leaf leaf-a leaf-m leaf-bl"></i>  inside a .section
     leaf-a / leaf-b     which sprig
     leaf-s / m / l      88 / 118 / 148px wide
     leaf-tl/tr/bl/br    which corner it hangs from
     leaf-flip/turn      mirror or invert, so no two repeat
--------------------------------------------------------------------------- */
.section,.page-hero,.series-hero{position:relative}
.section > .wrap,.page-hero > .wrap{position:relative;z-index:2}

.leaf{
  position:absolute;z-index:0;pointer-events:none;
  background-repeat:no-repeat;background-position:center;background-size:contain;
  opacity:.58;
}
.leaf-a{background-image:url("../assets/sprig-left.png")}
.leaf-b{background-image:url("../assets/sprig-right.png")}

.leaf-s{width:86px;height:138px}
.leaf-m{width:116px;height:184px}
.leaf-l{width:146px;height:232px}

.leaf-tl{left:-20px;top:38px}
.leaf-tr{right:-20px;top:38px}
.leaf-bl{left:-20px;bottom:38px}
.leaf-br{right:-20px;bottom:38px}

/* the large size is wider than the gutter, so it hangs further off the page
   edge — which also reads more like real printed trim, cropped by the trim line */
.leaf-l.leaf-tl,.leaf-l.leaf-bl{left:-46px}
.leaf-l.leaf-tr,.leaf-l.leaf-br{right:-46px}

.leaf-flip{transform:scaleX(-1)}
.leaf-turn{transform:rotate(180deg)}
.leaf-flip.leaf-turn{transform:scaleX(-1) rotate(180deg)}

/* the gutter closes below this width — hide rather than crowd the text */
@media(max-width:1380px){.leaf{display:none}}

@media(max-width:1180px){
  #spotlight::before{display:none}
  .hero::before{width:100%;opacity:.3;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 40%);
    mask-image:linear-gradient(to bottom,transparent 0%,#000 40%)}
  .hero-in{grid-template-columns:1fr;max-width:none;padding-bottom:96px}
}
@media(max-width:760px){
  .nav{height:76px}
  .brand img{height:44px}
  .hero-wave{height:52px}
}
