/* css customisation for 'show map and go sideways' */

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

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

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

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

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

#map {
  /* filter: grayscale(75%); */
  background-image: url("/img/show-map-and-go-sideways.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  /* overflow: auto; */
  /* background-image: url("/img/show-map-and-go-sideways.png"); */
  /* background-attachment: fixed; */
  /* background-repeat: no-repeat; */
  /* object-fit: cover; */
  z-index: -1;
}

#textual {
    position: relative;
    padding-top: 50%;
    /* scroll snapping to paras */
    scroll-snap-type: y proximity;
    scroll-snap-stop: always;
    /* scroll-padding: 50%; */
}

#textual section {
  position: relative;
  height: 100vh;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

#textual p {
 background-color:  rgb(132 154  197 / 80%);
 padding: 1em;
 margin: 3em;
 /* texting */
 font-family: Baskervville;
 font-style: italic;
 color:  #3f4a3c;
 text-shadow: #00e5ff 1px 0 30px;
 font-size: 3em;
 line-height: 1.2;
}

.full-bleed {
    position: fixed;
    left: 0px;
}

.go-sideways {
    transform: rotate(90deg);
    transform-origin: 3% 0%;
}

[data-theme-preference="map"] blockquote {
  margin: 3.7em, auto;
  padding: 1.1em;
  background: #fff;
  border: 0.2em solid transparent;
  box-shadow: 5px 3px 33px 33px rgb(132 154  197 / 50%);
  font-size: 1.4em;
  font-family: var(--font-pullquote);
  font-style: italic;
  line-height: 1.3;
}

html[data-theme-preference="map"] {
  /* colours for specific routes */
  --colour-text: #a3af9e;
  --colour-text-accent: #39ff25; /* rgba(57, 255, 37, 1) */
  --colour-bg: #3f4a3c;
  --colour-bg-accent: #00e5ff;
  --colour-bg-shadow: #00acff;  /* rgba(0, 172, 255, 1) */
  --colour-primary: #00e5ff;
  --colour-secondary: #7095b2;

  /* override custom properties */
  --main-background-colour: #fff;
  --main-text-colour: var(--colour-text);
  --main-heading-colour: var(--colour-text-accent);
  --link-colour: var(--colour-text-accent);
  --link-hover-colour: var(--colour-bg-accent);

  /* thus... */
  --font-text: plex, sans-serif;
  --font-heading: baskervville, serif;
  --font-sidenote: plex, sans-serif;
  --heading-font-style: italic;
  --highlight-colour: rgb(57 255 37 / 15%);
  --route-background-colour: var(--colour-bg); /* rgba(0, 0, 0, 0.05); */
  --route-padding: 0.2em 0.8em;
  --route-border-radius: var(--space-xs);
  --route-font-weight: bold;
  --font-author: baskervville, serif;
  --text-author-size: var(--step-0);
  --author-colour: var(--colour-text);
  --author-font-style: italic;
  --font-date: plex, sans-serif;
  --date-colour: var(--colour-text);
  --date-font-style: italic;
  --text-date-size: var(--step--1);

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

  /* 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;
}
