/* GOOGLE FONTS IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&family=Inter&family=Erica+One&family=Kanit:wght@900&family=Mukta&family=Overpass&family=Rammetto+One&family=Roboto&family=Syncopate:wght@700&family=Titillium+Web:wght@900&family=Work+Sans:wght@400;900&display=swap');
@font-face {
  font-family: marigold;
  src: url(https://court-of-fables.neocities.org/assets/CSMarigold.otf); 
}
@font-face {
  font-family: dark;
  src: url(https://court-of-fables.neocities.org/assets/DarkReborn.ttf); 
}

/* GLOBAL PALETTE */
:root {
  --stone: rgba(227, 225, 223, 1);   /* #E3E1DF */
  --fog:   rgba(221, 220, 216, 1);   /* #DDDCD8 */
  --cloud: rgba(225, 218, 210, 1);   /* #E1DAD2 */
  --sand:  rgba(195, 176, 146, 1);   /* #C3B092 */
  --linen: rgba(234, 234, 233, 1);   /* #EAEAE9 */
  --wheat: rgba(213, 209, 193, 1);   /* #D5D1C1 */
  --smalt:  rgba(75, 128, 131, 1);   /* #CBEFDB (accent) */

  /* Semi-transparent variants */
  --sand70: rgba(195, 176, 146, 0.7);
  --sand90: rgba(195, 176, 146, 0.9);
  --wheat70: rgba(213, 209, 193, 0.7);
  --stone80: rgba(227, 225, 223, 0.8);

  --bodyfont: 500 11px/18px 'IBM Plex Sans', sans-serif;
  --serifcaps: 700 10px/10px 'Inria Serif', serif;
  --display: 'DM Serif Display', serif;
}

body {
  margin: 0;
  padding: 0;
  font: var(--bodyfont);
  font-size: 0.8125rem;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #5F6152; 
  background: var(--linen) url() center fixed;
  background-size: cover;
}

/* LINKS */
a {
  position: relative;
  text-decoration: none;
  font: var(--serifcaps);
  text-transform: uppercase;
  color: var(--sand);
}

.btop a {
  color: var(--smalt);
}
.btop a:before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0px;
  width: 0px;
  height: 1px;
  background-color: var(--smalt);
  transition: width 1s .5s;
}
.btop a:hover:before {
  width: 100%;
  height: 1px;
  background-color: var(--smalt);
  transition: width 1s;
}

/* NAVBAR TOP */
.btop {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--wheat);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FOOTER */
.bfooter {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--wheat);
  text-align: center;
  padding: 10px 20px;
}

/* DECORATIVE STRIPS */
.btopr {
  width: calc(100vw - 40px);
  background: transparent;
  height: 40px;
  z-index: 7;
  left: 20px; 
  top: 50px; 
  position: fixed;  
  border-radius: 40px; 
  box-shadow: 0px -20px 0px 0px var(--wheat); 
}

.bbotr {
  width: calc(100vw - 40px);
  background: transparent;
  height: 40px;
  z-index: 3;
  left: 20px; 
  bottom: 40px; 
  position: fixed;  
  border-radius: 40px; 
  box-shadow: 0px 20px 0px 0px var(--wheat); 
}

/* SIDE BARS */
.left, .right {
  width: 23px; 
  height: 100vh; 
  top: 0; 
  position: fixed; 
  background-color: var(--wheat);
}

.left { left: 0; }
.right { right: 0; }

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
  .btopr, .bbotr {
    width: 100vw;
    left: 0;
    border-radius: 0;
  }

  .left, .right {
    display: none;
  }

  #content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 5px !important;
    position: relative;
    z-index: 1;
  }

  .wrapper {
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
  }

  .text, .ftext {
    padding: 5px;
  }

  .text p, .ftext p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* HEADERS */
h2 {
  font-family: 'Kanit', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: #728B83;
  margin: 0;
}
h1{
  font-weight 900;
  font-size:60px;
  font-family:marigold;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px;
  color: #728B83;
  text-align:center;
  }
subh{
  font-family: dark;
  font-weight:bold;
  letter-spacing: 2px;
  }

.header {
  display: block;
  position: relative;
  top: 40px;
  left: 40px;
  z-index: -1;
  width: calc(100vw - 80px);
  height: calc(100vh);
}
.header a.hdr {
  display: block;
  position: fixed;
  top: 95px;
  left: 120px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px;
  color: var(--smalt);
  font: 80px/80px marigold;
  text-transform: uppercase;
}

.header .subhead {
  display: block;
  position: fixed;
  top: 230px;
  left: 170px;
  color: var(--smalt);
  font: var(--serifcaps);
  text-transform: uppercase;
  word-spacing: 3.5px;
}

/* CONTENT AREAS */
#content {
  position: relative;
  z-index: 5;
  width: calc(100% - 160px);
  margin: 0 auto 10px auto;
}

.wrapper {
  margin: 60px auto;
  padding: 20px;
  border-radius: 20px;
  background-color: var(--wheat70);
}
  
.text {
  border-radius: 20px;
  padding: 40px;
  background-color: var(--fog);
}
  
.full {
  z-index: 5;
  margin-top: 60px;
  padding-top: 20px;
  background-color: var(--wheat70);
}

.ftext {
  z-index: 5;
  padding: 80px;
  background-color: var(--fog);
}

article {
  -webkit-columns: 2 200px;
     -moz-columns: 2 200px;
          columns: 2 200px;
  -webkit-column-gap: 2em;
     -moz-column-gap: 2em;
          column-gap: 2em;
  text-align:justify;
}