/*
 * 1pct.fr CSS Style
 * https://github.com/nileane/1pct
 * Niléane Dorffer
 * MIT License
 */


/*
 * SUMMARY:
 *
 * 0. Imports
 * 1. Body and General declarations
 * 2. Seperators: <hr>
 * 3. Headlines: <hn>
 * 4. Header: body > nav
 * 5. Site Cover: body > header
 * 7. Pages: body > section
 * 8. Index of posts
 * 9. Post Content
 * 10. Animations
 * 11. Buttons
 */



/*
 * 0. Imports
 * ----------
 */


:root {
    color-scheme: light dark;
    --bg-body-color: #f0f0f0;
    --bg-section-color: #ffffff;
    --fg-post-color: #4d4d4d;
    --fg-link-color: #6C63FF;
    --special-hover-color: #000000;
    --border-color: #dedede;
    --faded-color: #DDD;
}

/* @media (prefers-color-scheme: dark) {
    :root {
        --bg-body-color: #111111;
        --bg-section-color: #1a1a1a;
        --fg-post-color: #ffffff;
        --fg-link-color: #FF6584;
        --special-hover-color: #ffffff;
        --border-color: #1e1e1e;
        --faded-color: #5B5B5B;
    }
} */


/*
 * 1. Body and General declarations
 * --------------------------------
 */

body {
    font: 11pt "Nunito", Cantarell, Roboto, sans-serif;
    background: var(--bg-body-color);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    color: #515151;
    transition: background-color .2s;
}
p,
section .post {
    line-height: 1.6;
}
section .post small {
    line-height: 1.2;
    opacity: .8;
}
ul {
    list-style: outside square;
}
a {
    color: #6C63FF;
    text-decoration: none;
    transition: all .3s;
}
*:active,*:focus,*:hover {
    outline: 0;
}
@media screen and (max-width:500px) {
    body {
        font-size: 9pt;
    }
}



/*
 * 2. Seperators: <hr>
 * -------------------
 */

 hr {
     border: 0;
     height: 4px;
     width: 30%;
     max-width: 200px;
     background-color: var(--border-color);
     border-radius: 4px;
     margin: 2em auto;
 }
aside hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}
hr.large {
    width: 100%;
    max-width: 100%;
    margin: 2em 0 1.5em;
}
hr.title {
    padding: 1.2em 0px;
    border-top: 0;
}
hr.title:first-child {
    padding-top: 0;
    margin-top: 0;
}



/*
 * 3. Headlines: <hn>
 * ------------------
 */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1;
    font-family: "Nunito", sans-serif;
    color: var(--fg-post-color);
}
h1 {
    font-size: 2.8em;
    text-align: center;
}
h2 {
    font-size: 1.7em;
}
div.post h1 {
    font-size: 2em;
    margin: 2em 0 1em;
}
div.post h1:first-child {
    margin: 0 0 .5em;
}
.post h2:not(:first-of-type) {
    font-size: 1.8em;
    margin: 2em 0 1em;
}
.post h3 {
    font-size: 1.5em;
    margin: 1.5em 0 1em;
}
h3 em {
    font-style: normal;
    opacity: .3;
}
hr.title + h1 {
    margin: -1.8em 0 0 !important;
    padding: 0 !important;
    font-size: 1.2em;
    color: #D4D4D4;
    text-shadow:
        3px 0 #fff,
        -2px 0 #fff,
        7px 0 #fff,
        -4px 0 #fff;
    text-transform: uppercase;
    letter-spacing: -.05em;
}
.highlighted {
    box-shadow: inset 0 -0.9em #ff706b57;
}

/*
 * 4. Header: body > nav
 * ------------------------
 */

body > nav {
    max-width: 656px;
    height: 75px;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    box-sizing: border-box;
}
body.post > nav {
    height: 90px;
    display: none;
}
body > nav > div {
    padding: 0;
    box-sizing: border-box;
}
nav .menu {
    padding: 0;
    border-radius: 30px;
    position: absolute;
    right: 0;
    top: 50px;
    text-transform: lowercase;
    white-space: nowrap;
    text-overflow: clip;
    z-index: 1000;
    font-weight: bold;
    font-size: 150%;
}
nav .menu a {
    line-height: 1.5;
    padding: 2px 10px;
    margin: 0 2.5px;
    border-radius: 30px;
    border: 2px solid transparent;
    color: white;
}
nav .menu a.active,
nav .menu a.active:hover,
.post nav .menu > a:nth-of-type(2),
.post nav .menu > a:nth-of-type(2):hover {
    background-color: white;
    color: #333;
}

nav .menu-items {
    border-radius: 30px;
    margin-left: 5px;
    border: 2px solid transparent;
    margin: 0 2.5px;
    background-color: #000;
    transition: all .2s;
}
nav .menu-items {
    background-color: transparent;
    filter: brightness(100);
}

#signature-link {
    position: absolute;
    top: 40px;
}
#signature {
    width: 80px;
    margin: 0;
    display: block;
}

@media screen and (max-width:800px) {
    body > nav {
        max-width: 100%;
        margin: 0 9%;
    }
    body.post > nav {
        height: 110px;
    }
    nav .menu {
        font-size: 120%;
        top: 25px;
    }
    #signature-link {
        float: left;
        position: absolute;
        top: 70px;
    }
}


/*
 * 5. Site Cover: body > header
 * ---------------------------
 */

body > header {
    color: #fff;
    box-sizing: border-box;
    margin: 5rem 0 0;
    padding: 5rem 0 4rem;
    position: relative;
}
@media screen and (max-width:800px) {
    body > header {
        margin-top: 2rem;
        padding: 4rem 9% 4rem;
    }

}
body > header:before,
body > header:after {
    content: " ";
    position: absolute;
    bottom: -50px;
    top: -120px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: -1;
}
body > header:before {
    background: radial-gradient(ellipse at center, #6A1B9A, #340881);
}
body > header h1 {
    color: #fff;
    margin: 0;
    font-size: 5em;
    line-height: 85%;
    vertical-align: middle;
    text-align: center;
}
body.home > aside h1 {
    font-size: 2.7em;
}
body > header h2 {
    color: #fff;
    font-size: 3em;
    text-align: center;
}
body > header .book-title {
    max-width: 656px;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}
body > header .book-title small {
    font-size: 1.1em;
    display: block;
    color: #fff;
    margin: .5em 0 0;
}
body > header .book-title small a {
    color: #ff706b;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
    max-width: 80%;
    overflow: hidden;
}
body > header .book-title img {
    height: 90px;
    border-radius: 6px;
}
body.home > header .book-title img {
    height: 130px;
    box-shadow: none;
}

@media screen and (max-width:500px) {
    body > header .book-title img {
        height: 90px;
    }
    body.home > header .book-title img {
        height: 110px;
    }
    body > header h1 {
        font-size: 3.5em;
    }
}

body.post > header .book-title img {
    height: 110px;
    margin-bottom: 3em;
    border-radius: 5px;
}


/*
 * 6. Home navigation
 * ------------------
 */

.socials {
    text-align: center;
    height: auto;
    font-size: 100%;
    line-height: 32px;
    max-width: 656px;
    margin: 3rem auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-flow: row nowrap;
}
.socials a {
    text-transform: none;
    padding: 0;
    flex: 1 1 80px;
    display: inline-block;
    border-radius: 30px;
    color: var(--fg-post-color);
}

@media screen and (max-width:500px) {
    .socials a {
        padding: .2rem 0;
        font-size: 130%;
    }
    .socials a .title {
        display: none;
    }
}
@media screen and (min-width:501px) {
    .socials a span {
        margin-right: 5px;
    }
}
@media screen and (max-width:800px) {
    .socials {
        padding: 0 9%;
    }
}
.socials a:hover {
    color: #111;
    background-color: #fff;
}


/*
 * 7. Pages: body > section
 * ------------------------
 */

body > section {
    background: var(--bg-section-color);
    width: 100%;
    max-width: 800px;
    border-radius: 6px;
    margin: 0 auto 20px;
    font-size: 13pt;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    transition: all .2s;
}
@media screen and (max-width:800px) {
    body > section {
      border-radius: 0;
    }
}
body > section.faded {
    background: none;
    box-shadow: none;
}

@media screen and (max-width:325px) {
    body > section {
        font-size: 10pt;
    }
}

body.home > section:last-of-type {
    margin-bottom: 0;
    z-index: 2;
}
body > section > * {
    max-width: 1000px;
    margin: auto;
    padding: 3rem 9%;
}


@media screen and (min-width:750px) {
  .introducing .post {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
  }
  .introducing h2 {
      font-size: 2em;
      grid-column: 1 / 3;
      margin-bottom: 0;
      grid-row: 1;
  }
  .introducing p:first-of-type {
      grid-column: 1 / 3;
      grid-row: 2;
      margin-top: 0;
  }
  .introducing p:nth-of-type(2) {
      grid-row: 1 / 3;
      grid-column: 3;
      text-align: right;
  }
}


/*
 * 8. Index of posts
 * -----------------
 */

ul.index {
    list-style: none;
    padding: 0;
    margin: 0;
}
.index li {
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.archive-post .index {
    padding: 10px 0;
}
.archive-post .index > div {
    flex:  50%   2;
}
.index li:last-child {
    border-bottom: none;
}
html[lang=fr] .index li.en-post a > *:not(.lang-indicator) {
    opacity: .3;
}
html[lang=en] .index li.fr-post a > *:not(.lang-indicator) {
    opacity: .3;
}
.lang-indicator {
    position: absolute;
    top: 30px;
    left: -45px;
    text-align: right;
    display: block;
    width: 30px;
}
.episode-num {
    font-weight: 700;
    color: var(--fg-post-color);
}
.episode-art {
    border-radius: 6px;
    float: right;
    width: 200px;
    margin: -10px 0 20px 40px;
}
.post .episode-art {
    margin-top: 10px;
    border-radius: 8px;
}
@media screen and (max-width:700px) {
  .episode-art {
    width: 150px;
  }
}
@media screen and (max-width:540px) {
  .episode-art {
    display: none;
  }
}

header .episode-num {
    font-size: 1.8em;
    color: #fff;
}
.index h2 {
    margin: 0;
    font-size: 2.2em;
    transition: all .2s;
}
.index time {
    font-size: .9em;
    font-weight: 700;
    margin-top: 5px;
    display: inline-block;
    color: #6C63FF;
}
.index h2.year {
  text-align: center;
  font-size: 110%;
  font-weight: bold;
  margin-top: 50px;
}
.index li.year:first-child {
  display: none;
}
.index li.year:last-child {
  display: none;
}
.index a:hover h2 {
    color: var(--special-hover-color);
}
section.archive-post > a {
    padding-top: 0;
    padding-bottom: 0;
    max-width: calc(800px - 11.14%);
}
section.archive-post:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(108, 99, 255, 0.31) !important;
}
section.archive-post {
    margin-bottom: 20px;
}
section.archive-post > a {
    display: block;
    padding-top: 2rem;
    padding-bottom: 1.6rem;
}

.archive-post .miniature {
    position: relative;
    margin-top: 0;
}

.archive-post a .index .excerpt {
    color: var(--fg-post-color);
    font-size: 90%;
    position: relative;
    margin: 1rem 0 0;
    line-height: 1.3;
}

@media screen and (min-width:500px) {
    .archive-post .index {
        display: flex;
        flex-flow: row wrap;
    }
    
    .archive-post a .index .excerpt {
        padding-left: 10px;
        margin-top: 0;
    }
}




/*
 * 9. Post Content
 * ---------------
 */

.post {
    color: var(--fg-post-color);
}
body.post .post {
    text-align: left;
}
body.home .post {
    padding-top: 2.2rem;
    padding-bottom: 2.1rem;
}
img,
iframe {
    max-width:100%;
}
figure {
    margin: 0;
    padding: 0;
}
.post div.post,
.archive-post a .index .excerpt,
.introducing .post {
    font-family: "Nunito", sans-serif;
}
.post time {
    font-weight: bold;
    display: block;
}
.post figure.classic_headimg {
    height: 0;
    overflow: hidden;
    border-radius: 3px;
    margin: .5rem 0;
}
div.post a {
    color: var(--fg-link-color);
    font-weight: bold;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
div.post a:hover {
    border-color: var(--special-hover-color);
    text-decoration: none;
}
.post a img {
    border: 0;
}
.post img {
    border-radius: 3px;
}
.align,
.align.center {
    display: block;
    margin: 0 auto;
}
.align.center {
    margin: 0 auto;
}
.align.inline {
    display: inline-block;
    margin: 0 -5px 0 0;
}

.avatar {
    width: 90px;
    transform: translate(0, -25%);
    border-radius: 8px !important;
}
@media screen and (min-width:260px) {
    .post .avatar {
        float: right;
        margin-left: 0;
        margin-bottom: 1rem;
    }
    .avatar {
        transform: translate(10%, 5%);
    }
}
@media screen and (min-width:330px) {
    .post .avatar {
        margin-left: .5rem;
    }
}
@media screen and (min-width:500px) {
    .align.right {
        float: right;
        margin: 10px 0 10px 30px;
    }
    .align.left {
        float: left;
        margin: 10px 30px 10px 0;
    }
    .post .avatar {
        transform: translate(-8%, -15%);
        margin-bottom: 2rem;
    }
    .avatar {
        width: 120px;
    }
}

em em {
    font-style: normal;
}
pre, code {
    font-family: "Fira Mono", monospace;
}
pre {
    background-color: #242424;
    color: #FFF;
    border-radius: 3px;
    padding: 1em;
    overflow: auto;
}
code {
    padding: 0 .7em;
    font-size: 90%;
    display: inline-block;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: rgb(34, 34, 34);
    color: #fff;
}
pre code {
   background-color: #242424;
   color: #fff;
   padding: 0;
}
pre pre {
    padding: 0 .5em;
    margin: 0;
}
.lineno {
    opacity: 0.2;
    pointer-events: none;
}
blockquote {
    font-weight: 300;
    font-size: 115%;
    margin: 1.8em 1em 1.8em 0;
    border-left: 2px solid #ff706b;
    padding-left: 1em;
    text-align: left;
}
audio {
  width: 100%;
  display: block;
  margin: 1rem 0;
}
.thumbnail-ct {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
        -ms-flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
            flex-flow: row wrap;
}
.thumbnail {
    display: inline-block;
    width: 48%;
        -ms-flex: 1 1 48%;
    -webkit-flex: 1 1 48%;
            flex: 1 1 48%;
    height: 145px;
    background-color: #444;
    margin: .2rem;
    padding: 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    -webkit-transition: all .3s;
            transition: all .3s;
    cursor: pointer;
}
.thumbnail img {
    position: absolute;
    top: 0; left: 0;
    border-radius: 0;
    opacity: .7;
    min-height: 100%;
    -webkit-transition: all .3s;
            transition: all .3s;
}
.thumbnail:not(.align):hover img {
    opacity: .3;
}
.thumbnail p {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4),
        0 2px 1px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: .5em;
    -webkit-transform: translateY(50%);
            -ms-transform: translateY(50%);
            transform: translateY(50%);
    -webkit-transition: all .3s;
            transition: all .3s;
}
.thumbnail p small {
    opacity: 0;
}
.thumbnail:hover p {
    bottom: 50%;
    opacity: 1;
}
.thumbnail:hover p small {
    opacity: 1;
}
.thumbnail strong {
    display: block;
    line-height: 1;
}
.thumbnail.align {
    width: 245px;
}
.thumbnail.align img {
    opacity: .9;
}
@media screen and (max-width: 699px) {
    .thumbnail.align {
        display: none
    }
}

/*
 * 10. Animations
 * --------------
 */

@keyframes slidin-left {
    from {
        transform: translate(50%, 0);
    }
    to {
        transform: translate(0, 0);
    }
}
@keyframes slidin-right {
    from {
        transform: translate(-50%, 0);
    }
    to {
        transform: translate(0, 0);
    }
}
@keyframes slidin-top {
    0% {
        transform: translate(0, 30px);
        opacity: 0;
    }
    50% {
        transform: translate(0, 30px);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}
@keyframes slidin-bottom {
    0% {
        transform: translate(0, -100%);
    }
    50% {
        transform: translate(0, -100%);
    }
    100% {
        transform: translate(0, 0);
    }
}
@keyframes fadin {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*
 * 11. Buttons
 * -----------
 */

.button {
     display: inline-block;
     padding: 5px 1rem;
     margin: 1px 2px .5em;
     border-radius: 50px;
     border-bottom: 0 !important;
     background-color: #e6e4ff;
}
.button:hover {
    background: var(--fg-link-color);
    color: #fff;
}
.button span,
.button i {
    display: inline-block;
    transform: translate(0, 1px);
}
.button.gray {
    background: var(--faded-color);
    color: var(--fg-post-color);
}
.button.gray:hover {
    background: var(--fg-link-color);
    color: #fff;
}
.button.twitter {
    background-color: #cbe1ff;
    color: #408ffa;
}
.button.twitter:hover {
    background-color: #408ffa;
    color: #fff;
}
.button.rss {
    background-color: rgb(255, 215, 196);
    color: rgb(224, 77, 0);
}
.button.rss:hover {
    background-color: rgb(224, 77, 0);
    color: #fff;
}
.button.anchor {
    color: #8940fa;
    background-color: #eee3ff;
}
.button.anchor span {
    transition: all .2s;
}
.button.anchor:hover span {
    filter: brightness(100);
}
.button.anchor:hover {
    background-color: #8940fa;
    color: #fff;
}
.button.spotify {
    color: #1DB954;
    background-color: #def5e5;
}
.button.spotify:hover {
    background-color: #1DB954 !important;
    color: #fff;
}
.button.pocketcasts {
    color: #d9324c;
    background-color: #fcdfe4;
}
.button.pocketcasts:hover {
    background-color: #d9324c !important;
    color: #fff;
}
.button.pocketcasts span {
    transition: all .2s;
}
.button.pocketcasts:hover span {
    filter: brightness(100);
}
.button.overcast {
    color: #d96c00;
    background-color: #ffeedd;
}
.button.overcast:hover {
    background-color: #d96c00 !important;
    color: #fff;
}
.button.overcast span {
    transition: all .2s;
}
.button.overcast:hover span {
    filter: brightness(100);
}
