/* ============================================================
   Section Themes — visual catalogue
   ============================================================

   How to use
   ----------
   Add one theme class next to .section (or .hero):

     <section class="section theme-water-abstract">

   Changing theme-water-abstract to theme-plaster (or any other
   theme below) is normally all that is needed to retarget the
   section's background, text contrast, overlay and nav treatment.

   Structure
   ---------
   1. Contrast types (.theme-type-light / .theme-type-dark)
      set text, muted, emphasis, rule, default overlay RGB, and nav.
      Every named theme is listed under one type.
   2. Individual themes only set background, overlay strength,
      non-default focal points, and any local overrides.

   Brand colours come from :root in css/style.css.
   Section token defaults also live on .section / .hero there.
   Focal mobile values inherit desktop unless set explicitly.

   Available tokens
   ----------------
     --section-bg-image
     --section-bg-image-mobile   (optional; falls back to desktop)
     --section-bg-colour
     --section-bg-x / --section-bg-y
     --section-bg-x-mobile / --section-bg-y-mobile
     --section-text-colour
     --section-muted-colour
     --section-emphasis-colour   (pull quotes, positioning lines)
     --section-rule-colour       (kintsugi rule)
     --section-overlay-colour    (R G B components)
     --section-overlay-opacity
     --section-nav-theme         (light | dark)

   Focal-point utilities (optional local overrides)
   ------------------------------------------------
     .bg-focus-left | .bg-focus-right | .bg-focus-top | .bg-focus-bottom

   ============================================================ */


/* ==================================================
   Contrast types
   ================================================== */

.theme-type-light,
.theme-parchment,
.theme-plaster,
.theme-sage,
.theme-light-texture,
.theme-light-texture-2,
.theme-light-texture-3,
.theme-long-texture,
.theme-long-texture-2,
.theme-long-texture-3,
.theme-long-texture-4,
.theme-abstract-light,
.theme-abstract-mid,
.theme-water-abstract,
.theme-water-abstract-bold,
.theme-wood-abstract,
.theme-wood-abstract-bold,
.theme-wood-abstract-bold-landscape,
.theme-fire-abstract,
.theme-fire-abstract-bold,
.theme-fire-abstract-bold-landscape,
.theme-earth,
.theme-earth-2,
.theme-plaster-image,
.theme-plaster-vertical,
.theme-verdigris,
.theme-kintsugi,
.theme-kintsugi-light,
.theme-kintsugi-crack,
.theme-mountains,
.theme-face,
.theme-couch {
  --section-text-colour: var(--charcoal);
  --section-muted-colour: var(--smoke);
  --section-emphasis-colour: var(--deep-earth);
  --section-rule-colour: var(--gold);
  --section-overlay-colour: var(--parchment-rgb);
  --section-nav-theme: light;
}

.theme-type-dark,
.theme-charcoal,
.theme-deep-earth,
.theme-abstract-dark,
.theme-bowl,
.theme-water,
.theme-wood,
.theme-fire,
.theme-lake,
.theme-kintsugi-dark {
  --section-text-colour: var(--parchment);
  --section-muted-colour: color-mix(in srgb, var(--parchment) 50%, transparent);
  --section-emphasis-colour: var(--parchment);
  --section-rule-colour: var(--gold);
  --section-overlay-colour: var(--charcoal-rgb);
  --section-nav-theme: dark;
}


/* ==================================================
   Solid grounds
   ================================================== */

.theme-parchment {
  --section-bg-image: none;
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0;
}

.theme-plaster {
  --section-bg-image: none;
  --section-bg-colour: var(--plaster);
  --section-emphasis-colour: var(--charcoal);
  --section-overlay-colour: var(--plaster-rgb);
  --section-overlay-opacity: 0;
}

.theme-sage {
  --section-bg-image: none;
  --section-bg-colour: var(--sage);
  --section-emphasis-colour: var(--charcoal);
  --section-overlay-colour: var(--sage-rgb);
  --section-overlay-opacity: 0;
}

.theme-charcoal {
  --section-bg-image: none;
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0;
}

.theme-deep-earth {
  --section-bg-image: none;
  --section-bg-colour: var(--deep-earth);
  --section-overlay-colour: var(--deep-earth-rgb);
  --section-overlay-opacity: 0;
}


/* ==================================================
   Light textures
   ================================================== */

.theme-light-texture {
  --section-bg-image: url("../../images/backgrounds/light%20texture%20background%20landscape.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/light%20texture%20background.webp");
  --section-bg-colour: var(--plaster);
  --section-overlay-opacity: 0.22;
}

.theme-light-texture-2 {
  --section-bg-image: url("../../images/backgrounds/light%20texture%20background%20landscape2.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/light%20texture%20background2.webp");
  --section-bg-colour: var(--plaster);
  --section-overlay-opacity: 0.22;
  /* Anchor toward the quieter upper field; crop the busy bottom edge */
  --section-bg-y: 18%;
  --section-bg-y-mobile: 12%;
}

.theme-light-texture-3 {
  --section-bg-image: url("../../images/backgrounds/light%20texture%20background%20landscape3.png");
  --section-bg-image-mobile: url("../../images/backgrounds/light%20texture%20background3.png");
  --section-bg-colour: var(--plaster);
  --section-overlay-opacity: 0.22;
}


/* ==================================================
   Long textures (reading passages)
   ================================================== */

.theme-long-texture {
  --section-bg-image: url("../../images/backgrounds/long%20texture%201.png");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 0%;
  --section-overlay-opacity: 0.22;
}

.theme-long-texture-2 {
  --section-bg-image: url("../../images/backgrounds/long%20texture2.webp");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 0%;
  --section-overlay-opacity: 0.22;
}

.theme-long-texture-3 {
  --section-bg-image: url("../../images/backgrounds/long%20texture3.png");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 0%;
  --section-overlay-opacity: 0.22;
}

.theme-long-texture-4 {
  --section-bg-image: url("../../images/backgrounds/long%20texture%204.png");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 0%;
  --section-overlay-opacity: 0.22;
}


/* ==================================================
   Abstract fields
   ================================================== */

.theme-abstract-light {
  --section-bg-image: url("../../images/backgrounds/abstract%20light.webp");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 100%;
  --section-overlay-opacity: 0.22;
}

.theme-abstract-mid {
  --section-bg-image: url("../../images/backgrounds/abstract%20mid%20background.png");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.22;
}

.theme-abstract-dark {
  --section-bg-image: url("../../images/backgrounds/abstract%20dark.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.42;
}


/* ==================================================
   Five Element abstracts
   ================================================== */

.theme-water-abstract {
  --section-bg-image: url("../../images/backgrounds/water-abstract-landscape.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/water-abstract.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.22;
}

.theme-water-abstract-bold {
  --section-bg-image: url("../../images/backgrounds/water-abstract-landscape-bold.png");
  --section-bg-image-mobile: url("../../images/backgrounds/water-abstract-bold.png");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.12;
}

.theme-wood-abstract {
  --section-bg-image: url("../../images/backgrounds/wood-abstract-landscape.png");
  --section-bg-image-mobile: url("../../images/backgrounds/wood-abstract.png");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.22;
}

.theme-wood-abstract-bold {
  --section-bg-image: url("../../images/backgrounds/wood-abstract-bold.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.22;
}

.theme-wood-abstract-bold-landscape {
  --section-bg-image: url("../../images/backgrounds/wood-abstract-landscape-bold.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/wood-abstract-bold.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.12;
  /* Prefer the calmer upper field; crop the denser wash at the bottom */
  --section-bg-y: 28%;
  --section-bg-y-mobile: 22%;
}

.theme-fire-abstract {
  --section-bg-image: url("../../images/backgrounds/fire-abstract-landscape.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/fire-abstract.webp");
  --section-bg-colour: var(--plaster);
  --section-overlay-opacity: 0.22;
}

.theme-fire-abstract-bold {
  --section-bg-image: url("../../images/backgrounds/fire-abstract-landscape.webp");
  --section-bg-image-mobile: url("../../images/backgrounds/fire-abstract-bold.png");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.12;
}

.theme-fire-abstract-bold-landscape {
  --section-bg-image: url("../../images/backgrounds/fire-abstract-landscape-bold.png");
  --section-bg-image-mobile: url("../../images/backgrounds/fire-abstract-bold.png");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.12;
}


/* ==================================================
   Photographic washes
   ================================================== */

.theme-earth {
  --section-bg-image: url("../../images/backgrounds/earth.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.58;
}

.theme-earth-2 {
  --section-bg-image: url("../../images/backgrounds/earth%202.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.58;
}

.theme-bowl {
  --section-bg-image: url("../../images/backgrounds/bowl.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.5;
}

.theme-water {
  --section-bg-image: url("../../images/backgrounds/water.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.5;
}

.theme-wood {
  --section-bg-image: url("../../images/backgrounds/wood.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.5;
}

.theme-fire {
  --section-bg-image: url("../../images/backgrounds/fire.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.5;
}

.theme-lake {
  --section-bg-image: url("../../images/backgrounds/lake.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.45;
}

.theme-face {
  --section-bg-image: url("../../images/backgrounds/face.webp");
  --section-bg-colour: var(--parchment);
  --section-bg-y: 40%;
  --section-overlay-opacity: 0.62;
}

.theme-couch {
  --section-bg-image: url("../../images/backgrounds/couch.png");
  --section-bg-colour: var(--plaster);
  --section-bg-x: 35%;
  --section-bg-y: 40%;
  --section-overlay-opacity: 0.48;
}


/* ==================================================
   Plaster / verdigris / kintsugi / mountains
   ================================================== */

.theme-plaster-image {
  --section-bg-image: url("../../images/backgrounds/plaster.webp");
  --section-bg-colour: var(--plaster);
  --section-emphasis-colour: var(--charcoal);
  --section-overlay-colour: var(--plaster-rgb);
  --section-overlay-opacity: 0.42;
}

.theme-plaster-vertical {
  --section-bg-image: url("../../images/backgrounds/plaster%20vertical.webp");
  --section-bg-colour: var(--plaster);
  --section-emphasis-colour: var(--charcoal);
  --section-overlay-colour: var(--plaster-rgb);
  --section-overlay-opacity: 0.42;
}

.theme-verdigris {
  --section-bg-image: url("../../images/backgrounds/verdigris.webp");
  --section-bg-colour: var(--plaster);
  --section-overlay-colour: var(--plaster-rgb);
  --section-overlay-opacity: 0.55;
}

.theme-kintsugi {
  --section-bg-image: url("../../images/backgrounds/kintsugi%20bowl.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.68;
}

.theme-kintsugi-light {
  --section-bg-image: url("../../images/backgrounds/kingsugi%20light.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.88;
}

.theme-kintsugi-crack {
  --section-bg-image: url("../../images/backgrounds/kintsugi%20crack%20vertical.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.58;
}

.theme-kintsugi-dark {
  --section-bg-image: url("../../images/backgrounds/kintsugi%20dark.webp");
  --section-bg-colour: var(--charcoal);
  --section-overlay-opacity: 0.42;
}

.theme-mountains {
  --section-bg-image: url("../../images/backgrounds/mountains%20ink.webp");
  --section-bg-colour: var(--parchment);
  --section-overlay-opacity: 0.18;
}


/* ==================================================
   Focal-point utilities
   Override desktop + mobile focus together
   ================================================== */

.bg-focus-left {
  --section-bg-x: 0%;
  --section-bg-x-mobile: 0%;
}

.bg-focus-right {
  --section-bg-x: 100%;
  --section-bg-x-mobile: 100%;
}

.bg-focus-top {
  --section-bg-y: 0%;
  --section-bg-y-mobile: 0%;
}

.bg-focus-bottom {
  --section-bg-y: 100%;
  --section-bg-y-mobile: 100%;
}
