/* CSS file for writing section
   Begun 15/07/2024
*/

.inset {
    float: left;
    margin-right: 4vw;
}

/* header */
div.page-intro {
    margin-right: -4vw;
    margin-left: -4vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid var( --mjas-border );
    border-bottom: 2px solid var( --mjas-border );
}

.page-intro img {
    padding-right: 4vw;
}

/* main */
div#writings {
    margin-top: 1.5em;
}

section#col1 {
    padding: 0 8vw 1.5em;
    margin-bottom: 1.5em;
    background-color: var( --logo-hue );
    color: var( --title-text );
}

section.jottings-menu h3 {
    color: var( --spot-hue );
    text-align: center;
}

section.jottings-menu ul {
    list-style: none;
}

div.spread article {
    border-top: 2px solid var( --spot-hue );
}

section.comments {
    padding: 0 4vw;
    margin-bottom: 1.5em;
    border: 1px solid var( --dark-bg );
    background-color: var( --menu-bg );
}

section.comments h3 {
    color: var( --spot-hue );
    text-align: center;
}

section.comments ul {
    list-style-position: inside;
    list-style-type: " 🔖 ";
}

/* elements */
h1.page-head {
    color: var( --spot-hue );
}

#col1 a, #col1 h4 {
    color: var( --page-bg );
}

h4.title {
    padding: 0.666666666666em 0;
}

h4#first {
    background-color: hsl(16, 100%, 66%);
    color: var( --page-bg );
    text-align: center;
}

h4#second {
    background-color: hsl(357, 77%, 39%);
    color: var( --page-bg );
    text-align: center;
}

h4#third {
    background-color: hsl(56, 38%, 58%);
    color: var( --page-bg );
    text-align: center;
}

li.open span {
    border-top: 1px solid var( --text );
}

h4#fourth {
    background-color: hsl(280, 61%, 50%);
    color: var( --page-bg );
    text-align: center;
}

/* display adjustments */
/* widths variable by design */
@media screen and (min-width: 453px) {
  .inset {
    margin-right: 2vw;
  }
  div.page-intro {
    padding-right: 2vw;
    padding-left: 2vw;
  }
}

@media screen and (min-width: 540px) {
  section.jottings-menu ul {
    display: flex;
    justify-content: space-between;
  }
}

@media screen and (min-width: 640px) {
  div#writings, div.spread {
    display: flex;
    column-gap: 4vw;
  }
  section.jottings-menu {
    flex: 1;
    height: fit-content;
    padding-right: 2vw;
    border-right: 1px dotted;
  }
  section.jottings-menu ul {
    display: block; 
  }
  section.jottings-menu li.central, li.final {
    text-align: left;
  }
  section#col1 {
    padding: 0 2vw;
    flex: 1;
  }
  section#col2 {
    flex: 3;
  }
  section#col3 {
    flex: 2;
  }
  div.spread article {
    flex: 5;
    border-top: none;
  }
  section.comments {
    flex: 2;
    margin-top: 1.5em;
    padding: 0 2vw;
    height: fit-content;
  }
}

@media screen and (min-width: 800px) {
  .inset {
    margin-right: 1vw;
  }
  div.page-intro {
    margin-right: -2vw;
    margin-left: -2vw;
  }
}

@media screen and (min-width: 960px) {
  
}

@media screen and (min-width: 1680px) {
  div.page-intro {
    margin-right: -1vw;
    margin-left: -1vw;
  }
}

@media screen and (min-width: 1760px) {
  div.page-intro {
    margin-right: 0;
    margin-left: 0;
  }
}

/* EOF */