/* inconsolata-regular - latin-ext_latin */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-regular.svg#Inconsolata') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* inconsolata-200 - latin-ext_latin */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 200;
  src: url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-200.svg#Inconsolata') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* inconsolata-900 - latin-ext_latin */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 900;
  src: url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/inconsolata/inconsolata-v20-latin-ext_latin-900.svg#Inconsolata') format('svg'); /* Legacy iOS */
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  src: url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* libre-baskerville-italic - latin-ext_latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  src: url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-italic.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* libre-baskerville-700 - latin-ext_latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  src: url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/webfonts/librebaskerville/libre-baskerville-v9-latin-ext_latin-700.svg#LibreBaskerville') format('svg'); /* Legacy iOS */
  font-display: swap;
}

@font-face {
  font-family: 'dejavusansmonobook';
  src: local("DejaVu Sans Mono"),
      url('/webfonts/dejavusansmono/DejaVuSansMono-webfont.eot?') format('eot'),
      url('/webfonts/dejavusansmono/DejaVuSansMono-webfont.woff') format('woff'),
      url('/webfonts/dejavusansmono/DejaVuSansMono-webfont.ttf') format('truetype');
  font-display: swap;
}/********** colours ********/
:root {
  /* basic palette */
  --text:         #002a38;
  --darkest:      #213e48;
  --darker:       #294d59;
  --dark:         #355a65;
  --intermediate: #7a8184;
  --light:        #b0a986;
  --lighter:      #d0cab4;
  --lightest:     #e9e4db;
  --background:   #b4afa8;
  --accent:       #a54747;

  /* legacy until all references are removed */
  --accent-dark: #a54747;
  --intermediate-light: #b1cfd8;
  --intermediate-dark: #14556a;

  /* additional colours for frames */
  --red: #c72323;
  --light-red: #fff1ed;

  --orange: #eea828;
  --light-orange: #fffaf2;

  --yellow: #e8e852;

  --green: #47b787;
  --light-green: #fafffd;

  --blue: #5057ba;
  --light-blue: #f0f1ff;

  --purple: #7d517d;
  --lila: #ffe3ff;

  --flat-red: #a54747;
  --flat-green: #88b4a8;
  --charcoal: #333333;
}
summary {
  background-color: #fff;
  border: 1.5px var(--text) solid;
  border-radius: 7px;
  cursor: pointer;
  padding: 10px;
}

details {
  border-left: 2px var(--intermediate) dotted;
  left: -5px;
  padding-left: 5px;
  position: relative;
}

button {
  background-color: var(--text);
  color: var(--background);
  border:none;
  padding: 5px;
  border-radius:4px;
}.share {
  padding-top: 50px;
  text-align: center;
}

.share > p {
  font-size: 1.5em;
  font-weight: 700;
}

.share a {
  background-color: var(--text);
  color: var(--background); 
  padding: 5px;
  border-radius: 2px;
}

::selection
{
  color: var(--background);
  background: var(--text);
}

*, *:before, *:after {
  box-sizing: border-box;
}
html {
  background-color: -color: var(--lighter);
  /*background-image: url("../../images/ecolo_bg.png")*/
  background-repeat: no-repeat;
  background-size: 100%;
  box-sizing: border-box;
  color: var(--text);
  font-family: "DejaVu Sans Mono", "Consolas", monospace;
  font-size: 18px;
  line-height: 1.5;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

section h1, section h2, section h3, section h4, section h5, section h6 {
  font-family: "Inconsolata", monospace;
}

section h1 {
  color: var(--accent-dark);
  font-size: 5.5em;
  font-weight: 200;
  line-height: 0.8;
  margin: 0;
  padding-bottom: 50px;
  padding-top: 50px;
  text-align: left;
  text-transform: uppercase;
}

main h2 {
  font-size: 2.611rem;
  line-height: 1.14;
  margin-bottom: 0.15em;
  margin-top: 0.57em;
  position: relative;
}

main h3 {
    font-size: 1.7em;
    margin-bottom: 0.2em;
}

main h4 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
p {
  max-width: 80ch;
  margin-bottom: 0;
  margin-top: 0;
}

p + p, .footnote + p {
  margin-top: 1.5em;
}

strong {
  font-weight: 900;
}

mark{
  background-color: var(--yellow);
}a {
  color: #333;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  text-decoration: none;
  transition-duration: 0.1s;
  transition-timing-function: ease-out;
}

a:active {
}

a:visited {
  border-bottom: 1.5px dotted var(--text);
}

a:hover {
  color: var(--background);
  /*background: var(--text);*/
  box-shadow: inset 0 -1.3em var(--text);
}

a[href^='http']:not([href*='localhost:8000']):not([href*='nemecl.eu']):after {
  color: var(--intermediate);
  content: "🔗";
  font-size:0.7em;
  font-weight: 900;
  padding-left: 2px;
}

main > ul {
  list-style: none;
}

ul, ol {
  margin-bottom: 1.5em;
  margin-top: 0;
}

.article-list li a {
  border: none;
}

section ul li::before {
  content: ">";
  color: var(--intermediate);
  font-family: "Inconsolata", monospace;
  padding-right: 10px;
}

.article-list li::before {
    content: none;
}


table {
  border-collapse: collapse;
  text-align: center;
}

table thead {
  background-color: var(--flat-red);
  color: var(--background);
}

table tbody tr:nth-child(even) {
  background-color: var(--lighter);
  color: var(--color);
}


.align-left {
  float: left;
  padding: 20px;
  position: initial;
  width: 400px;
}

.align-right {
  float: right;
  padding: 20px;
  position: initial;
  width: 400px;
}

.align-center {
  text-align: center;
}

.figure.align-left, .figure.align-right {
  background-color: #d7d3d3;
  border-top: var(--background) 10px dotted;
  border-bottom: var(--background) 10px dotted;
}

.block  {
  background-color: var(--text); 
  color: var(--background);
  padding: 2px;
  border-radius: 2px
}

.inverted-block {
  border: 1px solid var(--text);
  border-radius: 2px;
  padding: 2px;
}

.pull-quote {
  font-style: italic;
}

.pull-quote::before {
  content: "« ";
}

.pull-quote::after {
  content: " »";
}

.drop-cap-word {
  float: left;
  font-size: 1.5em;
  font-weight: 900;
  margin: 5px 5px 0 0;
  padding: 1px 5px 1px 5px;
  text-transform: uppercase;
}

.drop-cap-word::before {
  content: "˙";
}

.drop-cap-word::after {
  content: "˙"
}

/********** layouts ********/
.flex-1line {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}

.flex-1line > * {
  flex: 1 1 0px;
  padding: 5px;
}

@media only screen and (max-width: 700px) {
    /* For mobile phones: */
  .flex-1line > * {
    flex-direction: column;
  }
}

.flex-masonry-20 {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}

.flex-masonry-20 a {
  overflow: hidden;
}

.flex-masonry-20 a img {
  max-height: 20vh;
  object-fit: cover;
  transform: scale(1);
  transition: all 0.3s ease;
  width: auto;
}

.flex-masonry-20 a img:hover {
  transform: scale(1.05);
 }

/*https://medium.com/@iamryanyu/how-to-align-last-flex-item-to-right-73512e4e5912*/
.flex-masonry-20:last-child {
  margin-left: auto;
}

.flex-masonry-20 > a {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  flex: auto;
  margin: 1px;
  /*flex-wrap: wrap;
  align-content: stretch;*/
}


body > header {
  align-content: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

nav > a {
  border-bottom: 1.5px solid var(--text);
  font-family: "Inconsolata", monospace;
}

nav > span {
  background-color: #333;
  background-color: var(--text);
  border-radius: 2px;
  color: #f8f8f8;
  color: var(--background);
  font-family: "Inconsolata", monospace;
  margin-right: 10px;
  padding: 2px;
}

.sitename {
  font-family: "Inconsolata", monospace;
  font-size: 2em;
  line-height: 1;
  padding: 5px 0 5px 0;
}


.sitename > a {
  background-color: var(--text) !important;
  border-bottom: none;
  border-radius: 2px;  
  color: var(--background) !important;
  padding: 2px;
  text-decoration: none;
}

.sitename > a:visited {
  border-bottom: none !important;
}

.sitenav {
  margin-top: auto;
}

/********** frames ********/
.alert {
  background-color: var(--light-red);
  border-radius: 2px;
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0px 0px var(--accent);
  color: var(--accent);
  padding: 5px;
}

.alert-full {
  background-color: var(--accent);
  border-radius: 2px;
  color: var(--light-red);
  padding: 5px;
}

.alert::before, .alert-full::before {
  content: "×";
  font-size: 1em;
  font-weight: 900;
  margin-right: 10px;
}

.warning {
  background-color: var(--light-orange);
  border-radius: 2px;
  border: 2px solid var(--orange);
  box-shadow: 4px 4px 0px 0px var(--orange);
  color: var(--orange);
  padding: 5px;
}

.warning-full {
  background-color: var(--orange);
  border-radius: 2px;
  color: var(--light-orange);
  padding: 5px;
}

.warning:before, .warning-full:before {
  content: "!";
  font-size: 1em;
  font-weight: 900;
  margin-right: 10px;
}

.success {
  background-color: var(--light-green);
  border-radius: 2px;
  border: 2px solid var(--green);
  box-shadow: 4px 4px 0px 0px var(--green);
  color: var(--green);
  padding: 5px;
}

.success-full {
  background-color: var(--green);
  border-radius: 2px;
  color: var(--light-green);
  padding: 5px;
}

.success::before, .success-full::before {
  content: "✓";
  font-size: 1em;
  font-weight: 900;
  margin-right: 10px;
}

.blue {
  background-color: var(--light-blue);
  border-radius: 2px;
  border: 2px solid var(--blue);
  box-shadow: 4px 4px 0px 0px var(--blue);
  color: var(--blue);
  padding: 5px;
}

.blue-full {
  background-color: var(--blue);
  border-radius: 2px;
  color: var(--light-blue);
  padding: 5px;
}

.dark {
  background-color: white;
  border-radius: 2px;
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0px 0px var(--dark);
  color: var(--dark);
  padding: 5px;
}

.dark-full {
  background-color: var(--dark);
  border-radius: 2px;
  color: white;
  padding: 5px;
}

.charcoal {
  background-color: white;
  border-radius: 2px;
  border: 2px solid var(--charcoal);
  box-shadow: 4px 4px 0px 0px var(--charcoal);
  color: var(--charcoal);
  padding: 5px;
}

.charcoal-full {
  background-color: var(--charcoal);
  border-radius: 2px;
  color: white;
  padding: 5px;
}

/* code highlighting */
pre {
  background-color: #333;
  background-color: var(--text);
  border-radius: 2px;
  color: #f9f9f9;
  color: var(--background);
  font-family: "dejavusansmonobook", monospace;
  font-size: 0.8em;
  letter-spacing: 0;
  line-height: 1.4;
  padding: 5px;
  white-space: pre-wrap;
}

/* line numbers */
pre > .ln {
  background-color: var(--intermediate);
  color: var(--background);
  display: inline-block;
  margin-right: 5px;
  padding-left: 10px;
  user-select: none;
}

.ln:first-child {
  border-radius: 2px 2px 0 0;
}

.ln:last-child {
  border-radius: 0 0 2px 2px;
}

.ln:only-child {
  border-radius: 2px;
}

pre:hover > .ln {
  visibility: hidden;
}

pre > .s1 {
  color: #8a7fa7;
}

pre > .nb {
  color: #8fbcbb;
}

pre > .kn {
  color: #45b6fb;
}

pre > .n {
  color: #8fbcbb;
}

pre > .o {
  color: #7eb2b8;
}

pre > .sd {
  color: #a6c274;
}

pre > .c1 {
  color: #b48ead;
}


tt, code {
  font-family: "Inconsolata", monospace;
  background-color: var(--text);
  color: var(--background);
  padding: 2px;
  border-radius: 2px;
  white-space: pre-wrap;
}

tt::selection,
code::selection,
tt > .pre::selection,
code > .pre::selection {
  background-color: var(--red);
}

tt > .pre {
  color: var(--green);
}

pre::selection
{
  color: var(--text);
  background: var(--background);
}

/*@media print {
  a[href^="http"]:not([href*="txt.nemecl.eu"])::after {
    content: " (" attr(href) ")";
  }
}*/

@media only screen and (min-width: 1025px) {
  /* anything above tablets */

}

@media only screen and (min-width: 1600px) {
  h2 {
    left: -3ch;
    display: flex; /* ensure that the title doesn't go under its :before*/
  }
  
  section h2::before {
    content: ".:";
    color: var(--lightest);
  }

  h3 {
    position: relative;
    left: -3ch;
  }

  section h3::before {
    content: ".::";
    color: var(--lightest);
  }

  pre::before {
    content: "code:";
    position: relative;
    left: -4em;
    color: var(--lightest);
    margin-right: -5ch;
  }
  /* left and right hanging elements

  /* looks confusing, but simply puts the element next to the text */
  .align-left {
    position: absolute;
    right: calc(800px + (100vw - 800px)/2);
  }

  /* looks confusing, but simply puts the element next to the text */
  .align-right {
    left: calc(800px + 3rem);
    position: absolute;
  }

  .desktop-only {
    display: initial;
  }

  .footnote {
    left: calc(800px + (100vw - 800px)/2);
    padding: 20px;
    position: absolute;
  }

  .footnote > tbody {
    position: absolute;
    top: -1.5em;
    width: 300px;
  }
}


@media only screen and (max-width: 700px) {
    /* For mobile phones: */

    html {
      font-size: 20px;
    }

    body {
      width: initial;
    }

    nav {
      text-align: center;
    }


    body > header {
      justify-content: center;
      flex-direction: column-reverse;
      align-items: center;
    }

    header > nav {
      text-align: center;
      font-size: 1.5em;
      align-items: flex-end;
    }

    .tag {
      font-size: 1.3em;
    }
    
    .category {
      font-size: 1.3em;
    }
    .article-list article {
    }

    .article-list h2 {
      display: block;
    }

    section h1 {
      font-size: 3.5em;
      font-weight: 900;
      line-height: 1.2;
      text-align: center;
      padding-bottom: 10px;
      padding-top: 10px;
    }

    main h2 {
      left: initial;
    }

    main {
      margin-top: 30px;
    }

    .contents .simple {
      padding-left: 0;
    }

    .align-left {
      float: initial;
      margin: 30px auto;
      position: initial;
      padding: 20px;
      width: 100%;
    }

    .align-left a img {
      height: initial !important;
      width: 100%;
    }

    .align-right {
      float: initial;
      margin: 30px auto;
      position: initial !important;
      padding: 20px;
      width: 100%;
    }

    .align-right a img {
      height: initial !important;
      width: 100%;
    }

    .desktop-only {
      display: none;
    }

    footer nav a {
      font-size: 1.3em;
    }

}
@media print {
  /* print styles go here */
  
  :root {
    --text: #000;
    --intermediate: #00f;
  }

  html {
    background-color: white;
  }

  body {
    font-size: 24px;
    background-color: white !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  body > header > nav {
    display: none;
  }
  
  h2 {
    page-break-before: always;
    page-break-after: avoid;
    position: initial !important;
  }

  ul {
    page-break-inside: avoid;
  }

  p {
    max-width: initial !important; 
    orphans: 3;
    widows: 4;
  }

  body > *:not(main) {
    display: none;
  }

  a[href^='http']:not([href*='localhost:8000']):not([href*='nemecl.eu']):after {
    content: ' (' attr(href) ')';
    color: var(--intermediate);
  }
  
  .align-right, .align-left {
    position: initial;
    margin: auto;
    float: none !important;
    border: none !important;
    width: initial !important;
    font-style: italic;
    text-align: center !important;
  }

  .align-right img, .align-left img {
    max-height: 700px;
    width: auto !important;
  }
  
  details {
    border: none;
  }
  
  details, details > * {
    display:block !important;
  }

  
  footer nav {
    display: none;
  }
}:focus {
  outline: 3px dashed var(--accent);
  outline-offset: 4px;
}
