@import url('https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&display=swap');

html {
  --textcolor: rgb(110, 69, 8);
  --backgroundcolor: whitesmoke;
  --accentcolor: rgb(255, 146, 78);
}

body { 
  font-family: "ComputerModern Typewriter", ui-monospace, monospace;   
  background-color: var(--backgroundcolor);
  color: var(--textcolor);
  line-height: 1.1;
  font-size: 1.25em;
}

/* grille 2 colonnes */

body.article main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 3rem;
  align-items: start;
}

/* colonne gauche */

body.article .top-nav {
  grid-column: 1;
  margin: 0;
}

/* mots-clés */
body.article .keywords {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 3rem;
  padding: 0;
}

/* 1 lien par ligne + animation */
body.article .keywords a {
  display: block;
  font-family: "Gensco";
  font-weight: 600;
  text-decoration: none;
  animation: flashColor 1.6s infinite;
}

/* hover stop animation */
body.article .keywords a:hover {
  animation: none;
  color: var(--accentcolor);
}

/* pour aller plus loin */
body.article .readmore {
  grid-column: 1;
  margin-top: 3rem;
  font-family: "Fluxisch Else";
}

/* 
   COLONNE DROITE
   ========================================================= */

body.article header,
body.article .text,
body.article .biography,
body.article .footnotes {
  grid-column: 2;
  max-width: 65ch;
}


header {
  font-family: "Fluxisch Else";
}

header h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--accentcolor);
  text-wrap: balance;
}

.authors {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-family: "Fluxisch Else";
  color: var(--accentcolor);
}

.top-nav a {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: "Fluxisch Else";
}

.text {
  font-family: "Gensco";
  font-variation-settings: "wght" 500, "wdth" 88, "opsz" 96;
  margin: 1em auto;
}

.text .quote {
  color: #000;
}

.footnotes {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: "Fluxisch Else";
}


@keyframes flashColor {
  0%, 100% {
    color: #6b4a2d;
    text-shadow: none;
  }
  50% {
    color: #ff7a00;
    text-shadow: 0 0 3px rgba(255, 122, 0, 0.6);
  }
}


body.article footer .articles-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
}


a {
  color: var(--accentcolor);
  text-decoration: none;
}


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



@media (max-width: 900px) {
  body.article main {
    grid-template-columns: 1fr;
  }

  body.article .top-nav,
  body.article .keywords,
  body.article .readmore,
  body.article header,
  body.article .text,
  body.article .biography,
  body.article .footnotes {
    grid-column: 1;
  }
}

/* liens girlyyy */

body.article footer .articles-prev-next a {
  animation: flashColor 1.6s infinite;
  font-weight: 600;
}

body.article footer .articles-prev-next a:hover {
  animation: none;
  color: var(--accentcolor);
  text-shadow: none;
}
