/* 
    the values in this file are for all the pages in this website
    in order to eliminate double items etc.
    */
/* last updated: March 14, 2022 small tweaks */

/* we start with the small screens */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Maison-Neue-Book", sans-serif;
  font-size: 14px;
  max-width: 999px;
  min-width: 320px;
  padding: 0 1rem;
  margin: 0.5rem auto;
  color: black;
}

body {
  color: rgb(82, 70, 70);
  width: 100%;
  min-height: 100vh;
  border: 0 solid green;
}

main {
  background-color: #fff;
  border: 0 solid green; /* use for debugging layout */
  margin: 5px auto;
  max-width: 1024px;
}

hr {
  margin-bottom: 2em;
  width: 50%;
  margin-left: 25%;
}

/* --------------------------------- */
/* -----ERROR PAGE ITEMS------------ */
/* --------------------------------- */

.errors li {
  line-height: 12em;
  margin-left: 2em;
  list-style: disc;
}
/* --------------------------------- */
/* -----ERROR PAGE ITEMS------------ */
/* --------------------------------- */

nav#header-navigation btn {
  width: 99%;
  background-color: #fff;
  border: 0 red solid; /* use for debugging layout */
  clear: left;
  height: 24px;
  margin: 0 auto;
  padding-top: 0;
}

ul#main-menu {
  background-color: white;
  border-top: 0 #444 solid; /* use for debugging layout */
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
}

li.menu-item {
  display: -ms-inline-flexbox;
  background-color: #fff;
  outline: 1px solid gray;
  border: 0 solid red; /* #fdd887;*/
  display: block;
  height: 20px;
  margin-top: 0;
  padding-top: 2px;
  text-align: center;
  width: calc(100% / 7);
}

li.menu-item a {
  border: 0 dotted brown; /* use for debugging layout */
  color: #000;
  font-family: "Maison-Neue-Book", sans-serif;
  font-size: 0.8rem;
  font-variant: small-caps;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  text-decoration: none;
}

#main-menu a:hover,
#main-menu a.current,
li.menu-item.current {
  border: 0;
  padding: 2px 10px;
  background-color: #86754690; /*#fdd887*/
  color: white;
}

h1 {
  font-family: "Maison-Neue-Light";
  font-variant: small-caps;
  font-size: 1.5em;
  padding: 0.5em 0;
}

h1.wide-only {
  display: none;
}

figure.intro-image img {
  grid-area: picture;
  margin: 1em auto;
  margin-bottom: 0.3em;
  width: 100%;
  padding-bottom: 0;
}

figure.intro-image {
  padding-left: 1em;
}

figure.support-intro-image img {
  width: 99%;
  margin: 0 auto;
  margin-bottom: 1em;
}

figcaption {
  clear: both;
  font-size: 0.9em;
  text-align: center;
}

/* --------------------------------------*/
/* ---------  about page additions  -----*/
/* --------------------------------------*/
#one-accross {
  border: 0 solid red;
  /* DEBUG  */
  display: grid;
  grid-area: one-accross;
  grid-template-columns: 1fr;
  grid-template-areas: "intro";
  height: auto;
  /*set as is appropriate */
  margin: 1em auto;
  width: 95%;
}

#one-accross article {
  float: right;
  background-color: rgb(238, 238, 238);
  clear: both;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(221, 221, 221);
  border-image: initial;
  border-radius: 10px;
  padding: 1em 1em 0px;
  margin: 5px;
}

p.footnote {
  margin: 0;
  padding: 0;
  margin-top: -1em;
  font-size: smaller;
  text-align: right;
}

.headshot {
  border: 1px solid #ccc;
  border-radius: 50%;
  float: left;
  height: 100%;
  margin: 20px 50px 5px 5px;
  padding: 2px;
  width: 120px;
}
/* --------------------------------------*/
/* ---------  about page ENDS here  -----*/
/* --------------------------------------*/

article.main-article {
  grid-area: intro;
}

#site-title img {
  width: 100%;
  height: auto;
}

/* show the image, but hide the text for the screen reader */
header {
  background-color: #fff;
}

/* --------------------------------------------------=-----*/
/* ---------  MAIN NEWSLETTER PAGE INDIVIDUAL BUTTONS -----*/
/* --------------------------------------------------------*/

h2.newsletter {
  padding-top: 1rem;
  margin-top: 0;
  color: rgb(54, 51, 34);
  font-family: "Maison-Neue-Book";
  font-variant: small-caps;
  text-align: center;
  font-weight: 300;
  font-size: 1.5rem;
}

h2 {
  padding-top: 1rem;f
  margin-top: 0;
  color: brown;
  font-family: "Maison-Neue-Book";
  margin-bottom: 1rem;
  font-weight: 100;
  font-size: 1.5rem;
  letter-spacing: 0.0625rem;
}

article {
  padding: 0;
  margin: 0 2em 0 1em;
}

article p {
  font-family: "Maison-Neue-Light";
  font-size: 1em;
  font-weight: 100;
  letter-spacing: 0.05em;
  line-height: 1.6em;
  padding-bottom: 1em;
}

.article p:first-of-type::first-letter {
  color: #393222;
  display: block;
  float: left;
  font-size: 5rem;
  line-height: 0.9;
  margin: 0.4rem 0.4rem 0 0;
}

article img {
  /* Black shadow with 10px blur */
  margin: 0 1rem 0 0;
  float: left;
  width: 40%;
}

footer {
  border-top: 1px dotted black;
  padding: 0.5em;
}

footer#page-footer {
  background-color: #fff;
  border-top: 2px solid rgb(82, 70, 70);
  clear: left;
  height: 43px;
  margin: 0;
  text-align: center;
}

footer#page-footer p:first-child {
  padding-top: 0.5em;
}

footer#page-footer p,
footer#page-footer a {
  text-align: center;
  color: #666;
  font-size: 0.7em;
  line-height: 1.3em;
  margin: 0;
}

/* =================================================== */
/* =====  WIDE SCREENS  SCREENS > 771 PX ------------- */
/* =================================================== */

@media screen and (min-width: 771px) {
  html {
    font-size: 16px;
  }

  header {
    box-shadow: 12px 0 15px -4px rgba(204, 204, 204, 0.6),
      -12px 0 8px -4px rgba(204, 204, 204, 0.6);
  }

  main {
    margin: 0 auto;
    text-align: left;
    line-height: 1.5rem;
    font-weight: lighter;
    box-shadow: 12px 0 15px -4px rgba(204, 204, 204, 0.6),
      -12px 0 8px -4px rgba(204, 204, 204, 0.6);
  }

  nav#header-navigation {
    width: 99%;
    background-color: #fff;
    border: 0 rgb(132, 0, 255) solid; /* use for debugging layout */
    clear: left;
    height: 24px;
    margin: 0 auto;
    padding-top: 0;
  }

  #main-menu a {
    font-size: 1em;
  }

  h1 {
    font-family: "Maison-Neue-Light";
    font-variant: small-caps;
    font-size: 2em;
    padding-bottom: 0.5em;
  }

  h1.wide-only {
    /* used on newsletter.html */
    display: block;
  }

  .article img {
    float: left;
    width: 25%;
    padding: 0 5px 0 0;
  }

  img.article-portrait {
    float: right;
    width: 35%;
    padding: 0 0 0 15px;
  }

  figure.support-intro-image img {
    float: left;
    width: 40%;
    padding-bottom: 0;
    margin-right: 1em;
  }

  figure.book-article img {
    float: left;
    width: 40%;
    padding-bottom: 0;
    margin-right: 1em;
  }

  figure.office-image img {
    margin: 0.1em;
    padding-top: 1.2em;
    width: 100%;
  }

  footer#page-footer p,
  footer#page-footer a {
    font-size: 0.85em;
  }

  /* --------------------------------------*/
  /* ---------  about page additions  -----*/
  /* --------------------------------------*/
  p.footnote {
    margin: 0;
    padding: 0;
    margin-top: -1em;
    font-size: smaller;
    text-align: right;
  }

  article p {
    font-size: 1rem;
    line-height: 1.5rem;
    padding-bottom: 0.75rem;
  }
} /* end of WIDE SCREENS */
