/* ========================================================================
   Verden i Bergen - colour profiles (admin -> Farger).
   templates/vib/palettes.php lists the profiles and which palette class each
   one gives the page bands (t-*) and the frame (footer, booking top bar);
   <html data-palette data-chrome> carries the choice for the page-wide parts.
   The original dark palette (t-dusk) and the dark top bar live in landing.css
   and are untouched; this file only adds the alternatives. The guest menu
   (/meny) has its own copy of these colours in menu-bord.css.
   ===================================================================== */

/* ---- page background behind everything (overscroll, below the footer) ---- */
html[data-palette="mellom"]{--page-bg:#43362b;}
html[data-palette="lys-ramme"],html[data-palette="lys"]{--page-bg:#d6cfc3;}
html[data-palette="regn"]{--page-bg:#cbd0d3;}
html[data-palette="krem"],html[data-palette="krem-ramme"]{--page-bg:#dacbae;}

/* ---- ember: the same warm brown, a few steps lighter ------------------- */
.t-ember{
  --surface:#43362b; --surface-2:#4c3e32; --surface-3:#56473a; --surface-foot:#33291f;
  --text:#f6ede1; --text-soft:#dccfbd; --text-faint:#c7b8a3; /* 4.6:1 on surface-3 (#bcab95 was 4.0) */
  --hairline:rgba(246,237,225,.16); --card:rgba(255,255,255,.06); --card-bd:rgba(255,255,255,.12);
}

/* ---- stone: light, a warm grey-beige rather than cream ------------------ */
.t-stone{
  --surface:#d6cfc3; --surface-2:#ccc4b7; --surface-3:#dfd9cf; --surface-foot:#c2b9aa;
  --text:#221912; --text-soft:#3f3329; --text-faint:#4a3e32;
  --hairline:rgba(34,25,18,.14); --card:#dfd9cf; --card-bd:rgba(34,25,18,.12);
  /* amber text is too pale on a light ground: kickers, links and prices use a
     deep bronze instead (buttons keep the amber) */
  --accent-deep:#6a4208;
}
/* ---- rain: light and cool, wet-slate greys; the gold reads as lamplight - */
.t-rain{
  --surface:#cbd0d3; --surface-2:#c1c7cb; --surface-3:#d5dadc; --surface-foot:#b6bdc2;
  --text:#1b2128; --text-soft:#343d46; --text-faint:#3e4852;
  --hairline:rgba(27,33,40,.14); --card:#d5dadc; --card-bd:rgba(27,33,40,.12);
  --accent-deep:#643f08; /* small amber text: deep ochre, as on stone */
}
/* ---- cream: light and warm, a muted cream (not bright); burgundy for the
   small accent text (kickers, links, prices) and the button labels, the
   gold buttons come from the profile's accent (templates/vib/palettes.php) - */
.t-cream{
  --surface:#dacbae; --surface-2:#d2c2a4; --surface-3:#e2d6bf; --surface-foot:#c9b89a;
  --text:#2b1418; --text-soft:#4a2f2c; --text-faint:#5c403b;
  --hairline:rgba(43,20,24,.15); --card:#e2d6bf; --card-bd:rgba(43,20,24,.12);
  --accent-deep:#7a2232; --on-accent:#5a1422;
}
/* ---- wine: the burgundy frame (top bar, footer) of "Krem med vinrød ramme".
   One shade for the whole frame; deep-accent text in it uses the pale gold --- */
.t-wine{
  --surface:#5e1b28; --surface-2:#5e1b28; --surface-3:#6a2231; --surface-foot:#5e1b28;
  --text:#f3e6ce; --text-soft:#e6d3b9; --text-faint:#d0b89e;
  --hairline:rgba(243,230,206,.16); --card:rgba(255,240,220,.07); --card-bd:rgba(255,240,220,.14);
  --accent-deep:var(--accent-soft);
}
/* cream: the headings are burgundy too, so it is more than small print */
.t-cream :is(.sec-title,.vib-page-head,.evx-head h1,.evx-head h2){color:var(--accent-deep);}
.t-stone .fm-price,.t-stone .res-none,.t-rain .fm-price,.t-rain .res-none,.t-cream .fm-price,.t-cream .res-none{color:var(--accent-deep);}

/* ---- light top bar + phone menu (profile "Lys") ------------------------ */
html[data-chrome="light"]{
  --chrome-bg:rgba(214,207,195,.92); --chrome-solid:#ccc4b7; --chrome-line:rgba(34,25,18,.12);
  --chrome-text:#221912; --chrome-link:#30261d;
  --ctl-bd:rgba(34,25,18,.32); --ctl-bg:rgba(223,217,207,.6); --ctl-text:#221912;
  --ctl-hover:rgba(34,25,18,.08); --ctl-close-bd:rgba(34,25,18,.24);
}
/* ---- rain-grey top bar + phone menu (profile "Regn") ------------------- */
html[data-chrome="rain"]{
  --chrome-bg:rgba(203,208,211,.92); --chrome-solid:#c1c7cb; --chrome-line:rgba(27,33,40,.12);
  --chrome-text:#1b2128; --chrome-link:#2a323a;
  --ctl-bd:rgba(27,33,40,.32); --ctl-bg:rgba(213,218,220,.6); --ctl-text:#1b2128;
  --ctl-hover:rgba(27,33,40,.08); --ctl-close-bd:rgba(27,33,40,.24);
}
/* ---- cream top bar + phone menu (profile "Krem") ---------------------- */
html[data-chrome="cream"]{
  --chrome-bg:rgba(218,203,174,.92); --chrome-solid:#d2c2a4; --chrome-line:rgba(43,20,24,.12);
  --chrome-text:#2b1418; --chrome-link:#3a1f20;
  --ctl-bd:rgba(43,20,24,.32); --ctl-bg:rgba(226,214,191,.6); --ctl-text:#2b1418;
  --ctl-hover:rgba(43,20,24,.08); --ctl-close-bd:rgba(43,20,24,.24);
}
/* ---- burgundy top bar + phone menu (profile "Krem med vinrød ramme") ---- */
html[data-chrome="wine"]{
  --chrome-bg:rgba(94,27,40,.95); --chrome-solid:#5e1b28; --chrome-line:rgba(243,230,206,.14);
  --chrome-text:#f3e6ce; --chrome-link:#ead9bf;
  --ctl-bd:rgba(243,230,206,.5); --ctl-bg:rgba(60,14,24,.4); --ctl-text:#f3e6ce;
  --ctl-hover:rgba(243,230,206,.12); --ctl-close-bd:rgba(243,230,206,.32);
}
/* the Krem profiles' burgundy button label also for the sticky top bar (outside .site) */
html:is([data-palette="krem"],[data-palette="krem-ramme"]) .stage{--on-accent:#5a1422;}
