@import url("/theme/css/fonts.css");
  
:root {
  --page-width: 700px;
  --black: #333333;
  --grey: #909090;
  --darkgrey: #666666;
  --pale: #FFF5E4;
  --info: #068177;
  --warn: #EF803F;
}
@media only screen and (max-width: 700px) {
  :root {
    --page-width: 500px;
  }
}

body {
  overflow-x: hidden;
  color: var(--black);
  background-color: var(--pale);
  font-family: "Source Sans 3", sans-serif;
}
h1 {
  font-family: sans-serif;
}

main section#home ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
main section#home ul li {
  margin-top: 0.5rem;
  font-size: 1rem;
}
main section#home ul li aside /* date of article */,
#container main article aside ul li  /* date and tags blocks */,
main article pre code {
  font-family: monospace;
}

main section#home ul li /* main page, title and date of article */ {
  font-size: 1.2rem;
}
main section#home ul li a /* main page, title of article */ {
  font-weight: bold;
}

main section#home ul li aside {   /* date of an article */
  display: inline-block;
  color: var(--grey);
  font-size: 0.9rem;
  padding-right: 0.4rem;
  margin: 0;
}

main article aside ul {
  color: var(--grey);
  font-size: 0.9rem;
  margin: 0.5em 0;
  padding: 0;
  list-style: none;
}

main article aside ul li {  /* date and tags blocks */
  display: inline-block;
  margin: 0;
  padding: 0;
}


main section#archives ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main section#archives ul li {
  padding: 0.5em 0;
  border-bottom: 1px solid #cecece;
}

main section#archives ul li time,
main section#archives ul li span.count {
  float: right;
  white-space: nowrap;
}

main section#archives ul li:last-child {
  border-bottom: none;
}

@media only screen and (max-width: 800px) {
  #container main section#archives ul li {
    font-size: small;
  }
}

#container {
  max-width: 100vw;
  min-height: 100vh;
}

#container > * {
  max-width: var(--page-width);
  margin: 0 auto;
}

#container header h1 {  /* mart-e top  */
  color: var(--black);
  font-size: 2.8rem;
  margin-bottom: 0;
  display: inline-block;
}

@media only screen and (max-width: var(--page-width)) {
  #container > * {
    width: auto;
    margin: 0 1.2rem;
  }

  #container header ul {
    float: none;
  }

  #container header ul li {
    margin: 0 1rem 0 0;
  }
}

/* unused, top level sections */
#container nav {
  border-bottom: solid 2px #cecece;
  padding-bottom: 0.5rem;
}

#container nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#container nav ul li {
  margin-left: 1em;
  align-items: end;
}

#container nav ul li a.active {
  border-bottom: 0.4em solid var(--darkgrey);
}

#container main {
  line-height: 1.4;
  font-size: 1.08rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--info);
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--info);
}
section#home li.article-list a { /* lien vers articles homepage */
  text-decoration: none;
}

/* trick from boehs.org */
a[href*="//"]:not([href*="mart-e.be"]) {
  --info:var(--warn);
}
p.readmore { /*plus d'article main*/
  text-align: center;
}


#container main article pre {
  background-color: #f5f5f5;
  overflow-x: auto;
  padding: 0.8em 0.1em 0.8em 0.8em;
  box-shadow: 0 -1px 0 #bbbbbb inset;
}

#container main article code {
  background-color: #f5f5f5;
  font-size: 0.9em;
}

#container main h1 {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}
#container main h2 {
  font-size: 1.3rem;
}


#container footer {
  border-top: solid 1px #cecece;
  text-align: center;
}

#container footer h6 {  /* footer CC BY, À propos */  
  font-size: 0.8em;
}


figure {
  margin: auto;
  width: min-content;
  max-width: 100%;
}

figure figcaption {
  margin-top: 0.3em;
  font-size: 0.9rem;
  color: #6d6d6d;
  text-align: center;
}

figure img {
  max-width: calc(min(100vw, var(--page-width)) * 0.95);
}

table {
  width: 100%;
}

table thead {
  background-color: #cecece;
}

blockquote {
  margin: 1em;
  border-left: solid 0.1em #cecece;
  padding: 0.5em 2em;
  position: relative;
  background-color: #efefef;
  box-shadow: 0 -1px 0 #bbbbbb inset;
}

blockquote::before {
  content: '“';
  font-size: 3em;
  color: rgba(192, 192, 192, 0.3);
  position: absolute;
  left: 6px;
  top: 0;
}

@media only screen and (max-width: 800px) {
  blockquote {
    margin: 1em 0;
    padding: 0.5em;
  }
}

dl dd {
  font-style: italic;
}

p.toot {
  margin-top: 2em;
}
