:root {
  /* variables */
  /* https://radicalweb.design/ressources/css/plus/variables/ */
  --maxwidth: 60rem;
  /* variables pour fontes variables */
  /* https://radicalweb.design/ressources/typo/variables/ */
  --font-wght: 350;
  --font-wdth: 100;
}




body { 
  background: var(--backgroundcolor);
  color: var(--textcolor);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  margin: 0;
}

*, *::before, *::after {
  font-variation-settings: "wght" var(--font-wght, 400), "wdth" var(--font-wdth, 112.5);
}




:root,
:root[data-force-color-mode="light"] {
  color-scheme: light dark;
  --textcolor: rgb(33, 33, 33);
  --bordercolor: rgb(99, 99, 99);
  --accentcolor: #003cff;;
  --backgroundcolor: white;
}




:root,
:root[data-force-color-mode="light"] {
  color-scheme: light dark;

  --backgroundcolor: #ffffff;
  --textcolor: #1a0bfa;        
  --bordercolor: #9ea4c9;       
  --accentcolor:#1a0bfa;      
  --font-wght: 350;
  --font-wdth: 100;
}


@media (prefers-color-scheme: dark) {
  :root {

   --backgroundcolor: #05004f;
    --textcolor: #ebfd00; ;
    --bordercolor: #d0d4ff;
    --accentcolor: #ebfd00; ;
    --font-wght: 380;
  }
}


:root[data-force-color-mode="dark"] {
  --backgroundcolor: #05004f;
  --textcolor: #ffffff;
  --bordercolor:  #ebfd00; ;
  --accentcolor: #ebfd00; ;
  --font-wght: 380;
}





body { 
  background: var(--backgroundcolor);
  color: var(--textcolor);
  font-family: "Montserrat", monospace;
  line-height: 1.6;
  margin: 0;
}

*, *::before, *::after {
 
  font-variation-settings: "wght" var(--font-wght, 400),
                           "wdth" var(--font-wdth, 112.5);


a {
  color: currentColor;
}



h1 {
  font-size: 3.10rem;
  --font-wght: 400;
  --font-wdth: 90;
  line-height: 1.2;
  text-wrap: balance;
  font-family: "Montserrat";
  font-weight: normal;
}

h2, h3 {
  font-size: 1.90rem;
  --font-wght: 400;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin-bottom: 1.6em;
}

ul {
  padding: 0;
  list-style-type: none;
}
ul li::before {
  content: "— ";
}


.top-nav { 
  border-bottom: 1px solid var(--bordercolor);
  padding: 1em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--backgroundcolor);
}
.top-nav a {
  text-decoration: none;
  letter-spacing: .05em;
}


main { 

}
main > * {
  padding: 1rem;
}



header { 
  border-bottom: 1px solid var(--bordercolor);
  padding: 4rem 1rem 1rem;
}
header h1 { }
header h1 strong { 
  display: block;
  font-weight: inherit;
}

.authors { 
  text-transform: uppercase;
  letter-spacing: .02em
}
.keywords { }
.keywords a { }



.epigraphe { }

.text { 
  color: var(--textcolor);
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 1.6em 1em;
}
.text p { 
  margin: 0;
}
.epigraphe,
.text .quote { 

  --font-wght: 900;
  max-width: max(75%, 23em);
  align-self: flex-end;
}


.text,
.readmore > *,
.biography > *,
.footnotes > * {

  margin-inline: auto;
  max-width: var(--maxwidth);
}



table {
  border-collapse: collapse;
}
th { --font-wght: 600 }
td, th {
  padding-block: .5em;
  vertical-align: top;  
  text-align: left;
  border-bottom: 1px solid var(--bordercolor);
}
td:not(:first-child),
th:not(:first-child) {
  padding-left: .5em;
  border-left: 1px solid var(--bordercolor);
}
td:not(:last-child),
th:not(:last-child) {
  padding-right: .5em;
  border-right: 1px solid var(--bordercolor);
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: none;
}



.readmore {
  border-top: 1px solid var(--bordercolor);
}
.readmore,
.biography,
.footnotes { 
  border-bottom: 1px solid var(--bordercolor);
}

.footnotes ol { 
  padding: 0;
  list-style-position: inside;
}

.footnotes li {
  text-indent: -2em;
  padding-left: 2em;
}



#footer {
  display: flex;
  flex-direction: column;
}
#footer > * {
  padding: 1.6em 1em;
}
.articles-prev-next {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  border-bottom: 1px solid var(--bordercolor);
}



body.article .text {
  display: block;


  column-count: 2;
  column-gap: 2.5rem;   

  color: var(--textcolor);
  padding: 1.6em 1em;
}


body.article .text p {
  margin: 0 0 1rem 0;
  text-align: justify;        
  break-inside: avoid-column; 
}



body.index {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: "Montserrat", sans-serif;
}



body.index > header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bordercolor);
}

body.index > header h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

body.index > header h1 strong {
  display: block;
  --font-wght: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}



body.index > header .subtitle {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  text-transform: none;
  letter-spacing: 0.06em;
}



body.index > header .authors {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.index > header p {
  margin: 0.4rem 0;
  font-size: 0.92rem;
}


body.index .declaration {
  margin-bottom: 3rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

body.index .declaration blockquote {
  margin: 0 0 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--bordercolor);
}

body.index .declaration blockquote p {
  margin: 0 0 0.8rem 0;
}

body.index .declaration blockquote footer {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  font-style: normal;
  opacity: 0.8;
}

body.index .declaration > p {
  margin-top: 1.5rem;
}


@media (min-width: 900px) {
  body.index {
    padding-top: 3.5rem;
  }

  body.index > header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 3rem;
    align-items: flex-start;
  }

  body.index > header h1 {
    margin-bottom: 0;
  }

  body.index > header p {
    margin-top: 0.2rem;
  }
}
