/* css customisation for crystal route */

@font-face {
  font-family: Baskervville;
  src: url("/fonts/Baskervville-Regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Baskervville;
  src: url("/fonts/Baskervville-Italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: krylon;
  src: url("/fonts/Krylon-Regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: plex;
  src: url("/fonts/IBMPlexSans-LightItalic-Latin1.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: plex;
  src: url("/fonts/IBMPlexSans-BoldItalic-Latin1.woff2") format("woff2");
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: plex;
  src: url("/fonts/IBMPlexSans-Light-Latin1.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

span.image-container {
  background: linear-gradient(#999, red);
  background-blend-mode: screen;
}

img {
  /* mix-blend-mode: screen; */
  /* opacity: 0.75; */
  filter: grayscale(45%);
  width: 100%;
}

a {
  text-decoration: underline wavy;
}


table {
  width: 100%;
}

th,
td {
  vertical-align: top;
  border: 1px dotted #ddd;
}

ul.route {
  background-color: transparent;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.route a {
  text-decoration: none;
}

.fleuron {
  text-align: center;
  font-size: 1.5em;
}

#footer {
    bottom: 1em;
    right:  1em;
    position: fixed;
}

/* prismatic specifics */


p.prismatic {
    /* text-align: right !important; */
    font-size: 1.6em !important;
    color: var(--colour-8) !important;
    text-shadow: 1px 1px 8px rgba(100 30 90 / 60%);
}

h1.prismatic {
    color:  var(--colour-s2) !important;
}

h3.prismatic {
    text-align: right !important;
    font-size: 3.3em !important;
    color: var(--colour-8) !important;
    text-shadow: 1px 1px 18px rgba(100 30 90 / 50%);
}

.prismatic a {
    /* text-align: right !important; */
    font-size: 0.8em !important;
    color:  var(--colour-8) !important;
    text-decoration: none;
}

.prismatic a:hover {
    /* text-align: right !important; */
    font-size: 1.3em !important;
    color:  var(--colour-s2) !important;
}



[data-theme-preference="crystal"] blockquote {
  margin: 3.7em, auto;
  padding: 1.1em;
  /* background: #eef; */
  background: linear-gradient(-30deg, rgba(247 206 91 / 45%), rgb(184 150 214 / 45%)) padding-box, url("/img/bkgsm-03.jpg") border-box  0 / cover;
  border: 0.2em solid transparent;
  box-shadow: 1px 1px 0 0  rgb(20 87 97 / 15%);
  font-size: 1.4em;
  font-family: var(--font-pullquote);
  font-style: italic;
  line-height: 1.3;
  color: var(--colour-4);
}

[data-theme-preference="crystal"] blockquote a {
  color: var(--colour-5);
  text-decoration: underline wavy;
}

[data-theme-preference="crystal"] h1 {
  color: var(--colour-2);
}

[data-theme-preference="crystal"] h2,h3 {
  background: linear-gradient(30deg, rgba(247 206 91 / 11%), rgb(20 187 97 / 15%), rgb(184 150 214 / 0%));
}

[data-theme-preference="crystal"] .textblock {
   background: linear-gradient(60deg, rgba(247 206 91 / 45%), rgb(20 187 97 / 15%), rgb(184 150 214 / 45%));
}


html[data-theme-preference="crystal"] {
  /* colours for specific routes */
  /* --colour-text: rgba(0 34 51 / 100%); */
  /* --colour-text-accent: rgba(91 136 214 / 100%); /\* rgba(57, 255, 37, 1)*\/ */
  /* --colour-bg: rgba(91 136 160 / 10%); /\* rgb(219,219,249) *\/ */
  /* --colour-bg-accent: rgba(184 150 214 / 100%); */
  /* --colour-bg-shadow: #00acff;  /\* rgba(0, 172, 255, 1) *\/ */
  /* --colour-primary: #00e5ff; */
  /* --colour-secondary: rgba(63 25 89 / 100%); */

  --colour-1:  rgb(21, 10, 69);
  --colour-2:  rgb(16, 14, 93);
  --colour-3:  rgb(17, 30, 117);
  --colour-4:  rgb(20, 55, 142);
  --colour-5:  rgb(22, 87, 167);
  --colour-6:  rgb(25, 126, 191);
  --colour-7:  rgb(27, 172, 216);
  --colour-8:  rgb(41, 215, 229);

  /* shaded & partial */
  --colour-s1: rgba(22 87 167 / 10%);
  --colour-s2:  #B5179E;

  /* override custom properties */
  --main-background-colour: var(--colour-7);

  /* --background-image: url("/img/crystal-background.jpg"); */
  --background-image: linear-gradient(#eef, #dbdcf7, #dee);
  --main-text-colour: var(--colour-1);
  --main-heading-colour: var(--colour-s2);
  --link-colour: var(--colour-7);
  --link-hover-colour: var(--colour-8);

  /* thus... */
  --font-text: plex, sans-serif;
  --font-heading: krylon, serif;
  --font-sidenote: plex, sans-serif;
  --heading-font-style: normal;
  --highlight-colour: rgba(114 229 221 / 25%);
  --route-background-colour: var(--colour-3); /* rgba(0, 0, 0, 0.05); */
  --route-padding: 0.2em 0.8em;
  --route-border-radius: var(--space-xs);
  --route-font-weight: bold;
  --font-author: krylon, serif;
  --text-author-size: var(--step-0);
  --text-body-size: var(--step-0);
  --author-colour: var(--colour-3);
  --author-font-style: normal;
  --font-date: plex, sans-serif;
  --date-colour: var(--colour-4);
  --date-font-style: italic;
  --text-date-size: var(--step--1);

  /* textblocks */
  --textblock-font: plex, sans-serif;
  --textblock-background-colour: var(--colour-s1); /* rgba(0, 172, 255, 0.15) */
  --textblock-padding: 0.8rem; /* 0.8rem; */
  --textblock-text-colour: var(--colour-3);

  /* quotes. margin and inline? */
  --text-pullquote-size: var(--step-1);
  --font-pullquote: baskervville, serif;
  --pullquote-font-style: italic;
  --pullquote-padding: 0.5rem;

  /* citations */
  --font-cite: baskervville;
  --text-cite-size: var(--step-0);
  --cite-font-weight: normal;
  --cite-font-style: italic;
  --cite-padding: 0;

  /* captions */
  --font-caption: var(--font-sidenote);
  --text-caption-size: var(--step--1);   /* var(--text-sidenote-size) */  /* var(--step-0) */
  --caption-font-weight: normal;
  --caption-font-style: normal;
}
