/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/* FONTS */


@font-face {
  font-family: 'arida-web';
  src:  url('fonts/Arida-Black.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'arida-web';
  src:  url('fonts/Arida-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'arida-web';
  src:  url('fonts/Arida-RegularIt.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'br-sonoma-web';
  src:  url('fonts/BRSonoma-Regular.woff') format('woff');
        font-weight: 400;
        font-style: normal;
}
@font-face {
  font-family: 'br-sonoma-web';
  src:  url('fonts/BRSonoma-RegularItalic.woff') format('woff');
        font-weight: 400;
        font-style: italic;
}
@font-face {
  font-family: 'br-sonoma-web';
  src:  url('fonts/BRSonoma-Bold.woff') format('woff');
        font-weight: 700;
        font-style: normal;
}
@font-face {
  font-family: 'br-sonoma-web';
  src:  url('fonts/BRSonoma-BoldItalic.woff') format('woff');
        font-weight: 700;
        font-style: italic;
}



/* EVERYTHING ELSE */

body, a.fancy:nth-of-type(n+2) span.intro {
  background-color: #EEE8E8;
  font-family: 'br-sonoma-web', sans-serif;
  /* font-size: 19px;
  line-height: 30px; */
  font-size: 19px;
  line-height: 32px;
}

article p {
  letter-spacing: 0.01em;
}

a {
  color: #4E4BFF;
  text-decoration: none;
  font-weight: 700;
}

p a {
  /* font-weight: 500; */
  font-weight: inherit;
  /* opacity: .7; */
  color: inherit;
  /* background-color: #4E4BFF1F; */
  /* background-image: linear-gradient(to right, #4E4BFF 100%, transparent 100%);
  background-position: 0 0.92em;
  background-repeat: repeat-x;
  background-size: 100% 2px; */
  /* border-bottom: 1.5px solid #4E4BFF; */
  border-bottom: 1.5px solid #9f9f9f;
}

p a:hover {
  /* opacity: 1; */
  /* border-bottom: 1.5px solid #4E4BFF; */
  border-bottom-color: #4E4BFF;
}

p.metadata {
  font-style: italic;
}

nav a:hover {
  /* background-image: linear-gradient(to right, #4E4BFF 100%, transparent 100%);
  background-position: 0 0.82em;
  background-repeat: repeat-x;
  background-size: 100% 2px; */
  border-bottom: 2px solid #4E4BFF;
}

body, a.fancy {
  color: #222;
}

.home a.fancy {
  display: block;
  margin-bottom: .5em;
  grid-column: span 2;
}

.home a.fancy:nth-of-type(n+2) {
  grid-column: span 1;
}

.home a.fancy:nth-of-type(n+2) .fake-h1 {
  font-size: 36px;
  line-height: 38px;
  letter-spacing: 0.01em;
}

.home a.fancy:nth-of-type(n+2) .intro {
  /* font-size: 24px;
  line-height: 32px; */
}

.home a.fancy:nth-of-type(n+2) .intro::after {
  background-position: 0 1.08em;
}

.home a.fancy:nth-of-type(n+2) .fake-h3 {
  font-size: 16px;
  margin-bottom: .5em;
}

a.fancy .intro::after, a.fancy h2::after {
  /* display: inline-block;
  content: '';
  width: 26px;
  height: 20px;
  margin: 2px 12px;
  background-image: url('chevron.svg');
  white-space: nowrap; */
  display: inline;
  content: '';
  padding-left: 26px;
  padding-top: 18px;
  margin: 2px 12px;
  background-repeat: no-repeat;
  background-position: 0 1em;
  background-image: url('chevron.svg');
}

/* .archives a.fancy p {
  margin-bottom: 0;
} */
.archives a.fancy h2 {
  margin-bottom: .2em;
}

a:hover {
  color: #4E4BFF;
}

.masthead {
	/* width: 146px;
  height: 166px; */
  /* width: 141px;
  height: 160px; */
  width: 123px;
  height: 140px;
  fill: #222;
  position: relative;
  left: -15px;
  top: 4px;
}

.masthead:hover {
  fill: #4E4BFF;
}

.container {
  margin: 0 auto;
  max-width: 1080px;
}

.contentpage {
	display: grid;
	/* grid-template-columns: 178px auto; */
  grid-template-columns: 170px auto;
    grid-column-gap: 22px;
    grid-row-gap: 46px;
    margin: 4% 6% 4% 0;
}

.content.archives {

}

article.content p:last-child::after {
  display: inline;
  content: '';
  padding-left: 28px;
  padding-top: 8px;
  margin: 0 6px;
  background-repeat: no-repeat;
  background-position: 0 0.7em;
  background-image: url('iuf-endmark.svg');
}

img {
    max-width: 100%;
    height: auto;
}

/* h1, h2, h3, h4, h5, .intro, .fake-h1, .fake-h2 { */
h1, h2, h3, h4, h5, .fake-h1, .fake-h2 {
  font-family: 'arida-web', serif;
  /* margin: 0 0 .35em 0; */
  margin: 0 0 22px 0;
}

/* h3 {
  font-weight: 700;
} */

.fake-h1, .fake-h2, .fake-h3, span.intro {
  display: block;
}

h1, .fake-h1 {
  font-size: 54px;
  line-height: 54px;
  font-weight: 700;
  margin-bottom: 8px;
  max-width: 740px;
}

/* h2, .fake-h2, .intro {
  font-size: 34px;
  line-height: 40px;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 1em;
  letter-spacing: .012em;
} */

h2, .fake-h2, .intro {
  font-size: 28px;
  line-height: 38px;
  font-weight: 400;
  font-style: normal;
  margin-top: .5em;
  margin-bottom: 1.1em;
  letter-spacing: .012em;
}

article h2 {
  font-weight: 700;
  margin-bottom: .25em;
}

h3, .fake-h3, nav li, .pagination, p .uppercase, span.lead-in {
  font-family: 'br-sonoma-web';
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 1em;
  font-weight: 700;
}

p .uppercase, span.lead-in {
  font-weight: 700;
}

.intro + h3 {
  margin-top: 18px;
}

p, ul {
  margin: 0 0 18px 0;
}

nav ul {
  margin: -.3em 0 0 0;
  padding: 0;
  display: flex;
}

nav li {
  list-style-type: none;
  /* display: flex;
  align-items: center; */
  margin-bottom: 0.8em;
}

nav li + li {
  margin-left: 3em;
}

a.subscribe-link {
  width: 21px;
  height: 13px;
  background-image: url('icon-mail.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100%;
  padding: 30px 0 0 0;
  display: block;
  opacity: 0;
}

.subscribe-overlay {
  display: none;
}

.subscribe {
  font-size: 17px;
  line-height: 28px;
  color: rgba(0, 0, 0, .5);
  display: grid;
  grid-template-columns: 42px 1fr;
}

button.modal-close {
  background: none;
  background-image: url('icon-close.svg');
  background-repeat: no-repeat;
  border: none;
  width: 21px;
  height: 21px;
  margin-top: 8px;
}

.subscribe p {
  margin-bottom: 8px;
}

.subscribe .inputs {
  display: flex;
  margin: -8px;
}

input {
  background: none;
  border: 2px solid rgba(0, 0, 0, .4);
  border-radius: 5px;
  padding: 5px 12px;
  margin: 8px;
}

input[type=button], input[type=submit] {
  color: #4E4BFF;
  border-color: #4E4BFF;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .14em;
  font-weight: 700;
  line-height: 20px;
}

.content {
  min-height: 50vh;
}

.archive-section, .home .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 33px;
}

hr {
  border-top: 1.5px solid #222;
  margin: 2.5em 0 3.25em 0;
}

hr.wp-block-separator {
  /* border: none; */
  margin: 1.15em 46% 1.35em 46%;
}

/* hr.wp-block-separator::after {
  display: block;
  position: relative;
  height: 16px;
  width: 16px;
  content: '';
  margin: 0 auto;
  top: -8px;
  background-image: url('iufdot.svg');
  background-position: center;
  background-repeat: no-repeat;
} */

.pagination {
  display: flex;
  justify-content: space-between;
  padding-right: 8%;
}

.pagination a.prev, .pagination a.next {
  color: inherit;
  background-repeat: no-repeat;
  background-size: 1.4em;
}

.pagination a:hover {
  color: #4E4BFF;
}

.pagination .current {
  font-weight: 700;
  /* color: #EEE8E8;
  background-color: #222;
  padding: 0 10px;
  border-radius: 15px; */
}

.pagination .next {
  background-image: url('chevron.svg');
  padding-right: 30px;
  background-position: right .4em;
}

.pagination .prev {
  background-image: url('chevron-left.svg');
  padding-left: 30px;
  background-position: left .4em;
}

figure {
  margin: 0 0 1.5em 0;
}

footer {
  margin: 4.5em 0 .5em 0;
  padding: 1.5em 0 .5em 0;
  border-top: 1.5px solid #222;
  grid-column: span 2;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: baseline;
}

.footer-logo svg {
  width: 270px;
  height: 19px;
  margin-right: 16px;
}

.footer-logo h3 {
  font-weight: 400;
  position: relative;
  bottom: .05em;
}

/* img.big.alignnone { */
  /* width: 100% !important; */
/* } */

/* RESPONSIVE LAYOUT */

@media only screen and (max-width: 420px) {
  .contentpage {
      margin: 4% 6%
  }

  .content {
    grid-column: 1 / span 2;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -0.15em;
  }

  nav li {
    margin: inherit;
  }

  nav li + li {
    margin: 4px 0 0 0;
  }

  .subscribe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #EEE8E8;
    padding: 1em;
  }

  .subscribe p {
    margin-bottom: .9em;
  }

  .subscribe .inputs {
    flex-direction: column;
    margin: -4px;
  }

  .subscribe .inputs input {
    margin: 4px;
  }

  .masthead {
    left: -30px;
  }

  .footer, .footer-logo {
    flex-direction: column;
  }

  .archive-section, .home .content {
    display: block;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
