/* ============================================================
   THEME — La Médina   (Premium)
   Terre cuite et ocre, l'enfilade d'arches de la médina.

   Generated by brand/make-themes.py — edit the palette there,
   not here, or the next run will overwrite your changes.
   ============================================================ */

:root {
  /* ---- page palette ---- */
  --gold:        #B9743F;
  --gold-light:  #C79065;
  --gold-dark:   #945D32;
  --cream:       #FAF2E6;
  --cream-dark:  #EEE6DA;
  --white:       #FAF3E8;
  --text:        #4A3428;
  --text-light:  #807168;

  /* ---- typography ---- */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-sans:    'Josefin Sans', sans-serif;

  /* ---- envelope ---- */
  --env-scene-1: #F0DCC1;
  --env-scene-2: #DDB996;
  --env-scene-3: #9B6135;
  --env-reveal:  #FCF8EC;

  --env-paper-1: #FAF1DC;
  --env-paper-2: #FAF0DA;
  --env-paper-3: #E6CBAC;

  --env-card-1:  #FAF1DD;
  --env-card-2:  #FAF0DA;
  --env-card-3:  #ECD5B8;

  --env-flap-1:  #CF9E74;
  --env-flap-2:  #B9743F;
  --env-flap-3:  #8D5830;

  --env-shadow-rgb: 98,55,30;
  --env-seam-rgb:   150,90,49;
  --env-pocket-rgb: 71,40,22;
  --env-glow-rgb:   185,116,63;
  --env-hint:       #89562F;

  --env-card-label: #AE6C3A;
  --env-card-date:  #6B4325;

  --env-texture-opacity: 0.42;
  --env-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'> <g fill='none' stroke='%23A96839' stroke-width='0.7' opacity='0.45'> <path d='M10 60 L10 34 Q10 16 30 10 Q50 16 50 34 L50 60'/> <path d='M70 60 L70 34 Q70 16 90 10 Q110 16 110 34 L110 60'/> <path d='M40 120 L40 94 Q40 76 60 70 Q80 76 80 94 L80 120'/> <path d='M0 120 L0 94 Q0 76 12 71'/><path d='M120 120 L120 94 Q120 76 108 71'/> </g></svg>");
  --env-motif-size: 150px 150px;

  /* ---- form + chip surfaces ---- */
  --field-border:  #DAD0C4;
  --chip-bg:       rgba(255,255,255,0.9);
  --chip-bg-solid: #FAF3E8;
  --chip-menu-bg:  rgba(255,255,255,0.96);
}

/* ---- envelope embossing ---- */
.emboss-g {
  fill: #DDB894;
  stroke: #B06D3B;
  stroke-width: 0.6;
  opacity: 0.85;
}
.emboss-g.emboss-faint { opacity: 0.7; }

/* ---- wax seal ---- */
.wax-s0 { stop-color: #FDF9F0; }
.wax-s1 { stop-color: #FBF2DE; }
.wax-s2 { stop-color: #DFBC99; }
.wax-s3 { stop-color: #A66839; }

.wax-i0 { stop-color: #FCF4E5; }
.wax-i1 { stop-color: #E9D0B2; }
.wax-i2 { stop-color: #B16E3C; }

.wax-rim   { stroke: #AC6B3A; stroke-width: 0.8; }
.wax-rim-2 { stroke: #985F34; stroke-width: 1.2; opacity: 0.6; }
.wax-rim-3 { stroke: #FDF8EE; stroke-width: 0.8; opacity: 0.8; }

/* ---- seal motif ---- */
.seal-motif        { stroke: #6F4626; stroke-width: 0.8; fill: #AE6C3A; opacity: 0.72; }
.seal-leaves       { fill: #AE6C3A; stroke: #6F4626; stroke-width: 0.6; opacity: 0.6; }
.seal-petal-light  { fill: #D1A380; }
.seal-petal-mid    { fill: #C3875A; }
.seal-petal-deep   { fill: #945D32; }
.seal-monogram     { fill: #8D5830; stroke: #684123; stroke-width: 0.5; }
.seal-monogram-amp { fill: #B06D3B; }
