/* ======= Structure ================== */
body {
  margin: 0 auto;
  padding: 1em;
  line-height: 1.6em;
  font-size: 18px;
  text-align: left;
  font-weight: normal;
  background-color: #FAF9F5;
  color: #212121;
  /*font-family: sans-serif;*/
  font-family: Lora, "Palatino Linotype", "Book Antiqua", "New York", "DejaVu serif", serif;
  text-rendering: optimizeLegibility;
  -webkit-font-variant-ligatures: common-ligatures;
      font-variant-ligatures: common-ligatures;
  -webkit-font-feature-settings: "kern";
      font-feature-settings: "kern";
      font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
page-content {
  display: block;
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  box-sizing: border-box;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 0;
  /*border-top: 1px solid #e2e2e2;*/
  padding-top: 2rem;
}
.w100 {width: 100%}
.w80 {width: 80%}
.w20 {width: 20%; margin-left:4rem;}
.flex {
  min-height: 6 rem;
  flex-direction: row;
  align-items: center;
  margin; 1rem 0 4rem 0;
  display: flex
  position: static;
  margin-bottom: 3rem;
}
.title {
  max-width: 650px;
  margin: 2em auto 0;
  text-align: center;
}
.articletitle {
  line-height: 1.2;
}
.title h1 {
  text-transform: uppercase;
  letter-spacing: 0.25em;
}
/* ================ MENU ============= */
.logowhite img, .logodark img {
  display: block;
  width: 200px;
  margin: 2em auto;
}
.logodark img {
  display: none;
}
.title a, nav a, footer a {
  text-decoration: none;
  color: #212121;
}
nav a {
  color: #736b63;
}
nav a:hover {
  text-decoration: underline;
}
nav, footer {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.nav ul li {
    display: inline-block;
    padding-right: 1rem;
    font-family: sans-serif;
    text-transform: lowercase;
}
.tagline {
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: .25em;
  font-size: 126%;
  line-height: 100%;
  display: inline-block;
  border-top: 2.2px solid #212121;
  border-bottom: 2.2px solid #212121;
  padding: .5em .2em;
  max-width: 55vW;
}
#menu {
}

ul#menu {
  margin: 0;
  padding: 0;
  margin-top: 2rem;
}


.footnotes {
  font-size: 0.8em;
  line-height: 1.2em;
}

footer, footer a {
  font-size: 0.8em;
  font-family: sans-serif;
  color: #736b63;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin-bottom: 0;
}
blockquote {
  border-left: 5px solid #736b43;
  padding-left: 2em;
  font-family: sans-serif;
  font-size: 0.9em;
}
.footnote-ref {
  font-size:0.8em;
}
/* ============== HOMEPAGE ====================== */

h2.home {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-top: 2.5em;
  display: block;
}
ul.home {
  margin-block-start: 0;
  padding-inline-start: 0;
  font-size: 0.9em;
  line-height: 150%;
}
.lihome {
  list-style-type: none;

}
.lihome a, .lihome a:visited {
}

.lihome h4 {
  margin-bottom: 0;
  font-weight: normal;
  font-style: normal;
}
.lihome .latest h4 {
  font-size: 1em;
  display: inline-block;
}
.date-latest {
  font-size: 0.9em; 
  font-style: italic;
  display: inline-block;
}
h4.date-latest {
  font-size: 1em;
}
span.date-latest {
  margin-right: 1em;

}
.homearchivelink {
  margin-top: 2em;
}

/* ========== Meta des posts ================= */
.article-meta {
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 1rem;
}

.date {
  color: rgba(0,0,0,0.3);/*var(--light-text);*/
  font-size: 1rem;
  font-weight: lighter;
}
.genre, .author {
  color: var(--light-text);
  margin-bottom: 1.2rem;
  font-size: .9em;
  text-align: left;
}
.date-single {
  color: var(--light-text);
  font-size: .6em;
  text-align: left;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.data {
  font-size: 0.8em;
  font-weight: lighter;
  color: rgba(0,0,0,0.3);
}
.author {
  line-height: 1rem;
}
/*============= misc elements ============ */
.entry a, .entry a:visited, .entry-link, page-content a, page-content a:visited {
  color: #212121;
}
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags li {
    display: inline-block;
}

.post-tags a,
.paginav {
    border-radius: var(--radius);
    background: #e8eaf0;
    border: 1px solid var(--border);
}

.post-tags a {
    display: block;
    padding: 0 14px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 24px;
}
.imagecenter {
  display: block;
  text-align: center;
}
.post-content hr {
  max-width: 40%;
  color: #e2e2e2;
}

img {
  max-width: 100%;
}
/* ========= ARCHIVES ======== */
.archive-posts {
    width: 100%;
    font-size: 16px;
}

.archive-year {
    margin-top: 40px;
}

.archive-year:not(:last-of-type) {
    border-bottom: 2px solid var(--border);
}

.archive-month {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.archive-month-header {
    margin: 25px 0;
    width: 200px;
}

.archive-month:not(:last-of-type) {
    border-bottom: 1px solid var(--border);
}

.archive-entry {
    position: relative;
    padding: 5px;
    margin: 10px 0;
}

.archive-entry-title {
    margin: 5px 0;
    font-weight: 400;
}

.archive-count,
.archive-meta {
    color: var(--secondary);
    font-size: 14px;
}
/* ============= READINGS PAGE ======================== */
.book {
  display: grid;
  grid-column-gap: 5px;
  grid-row-gap: 5px;
  grid-template-columns: 1fr 0.75fr min-content 70px;
  font-family: sans-serif;
  font-weight: lighter;
  font-size: 16px;
}

.book > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book a,
.book a:visited {
  font-weight: 500;
}
.book a:hover {
  text-decoration: underline;
}
/* =========================================
* ========== @MEDIAS =======================
* ========================================== */

@media screen and (max-width: 1200px) {
    .toplogo {display:none; }
    #menu {
    }

    #menu li {
        text-align: center;
    }

    #menu li + li {
        margin-inline-start: 0;
    }

    .ulhome {
      display: inline-block;
      text-align: left; 
      padding: 10px 20px; 
      list-style-type: none; 
      
    }
   .w80 {width:99%}
}



/* ==== Dark mode following user preferences ==== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: rgb(40, 44, 53, 1);
    color: rgb(226, 226, 226, 1);
    .brand h1, .article-meta h1, h1 {color: rgb(226, 226, 226, 1);}
    #hamburger-input:checked ~ #menu {
      background: rgb(40, 44, 53, 1);}

  }
  .entry a, page-content a, .entry a:visited, page-content a:visited {
    color: rgba(226, 226, 226, 0.8);
  }
  .post-tags a {color: #939398; background: #414858; border: 1px solid #22262e}
  .logowhite img {display:none;}
  .logodark img {display: block;}
  #menu a, footer a {
    color: rgba(226, 226, 226, 0.8);
  }
  .date, .data {color: rgba(255, 255, 255,.7)}
}


