/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
   ========================================================================== */

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;
}

/*
 * 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;
}

img{
  max-width: 100%;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*html{
  background-color: #4a4e69;
}*/
body{
  padding: 0 2.5rem;
  background-color: #ffffff;
  font: 1.6rem/1.4 degular, sans-serif;
  font-weight: 300;
  font-style: normal;
  color: #191919;
}
.page-header{
  margin: 0 0 0 0;
  padding: 4rem 0 4rem 0;
  border-bottom: 1px solid rgba(217, 217, 217, 1);;
}
a{
  color: #0050B3;
  text-decoration: none;
}
.page-header a, 
.footer a{
  padding: 0.6rem 1.0rem;
}
a:hover{
  color: #051923;
}
.active, 
.footer a:hover{
  border-radius: 0.125rem;
  background-color: #051923;
  color: #ffffff;
}
.active:hover{
  color: #ffffff;
}
strong{
  font-weight: 600;
}
/*ol{ 
  margin-top: 2rem;
  padding-left: 0rem;
  counter-reset: item;
  list-style-type: none;
}
ol li { 
  display: block; 
  padding-bottom: 1rem;
}
ol li:before { 
  content: counter(item) " -  "; 
  counter-increment: item;
}*/
.skip-link{
  padding: 1rem;
  position: absolute;
  transform: translateY(-100%);
  background: #051923;
  color: #ffffff;
}
.skip-link:focus{
  transform: translateY(0%);
}
/*footer{
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #1a535c;
}*/
.primary-navigation{
  text-align: right;
  font-size: 2rem; 
  font-weight: 300;
}
.primary-navigation ul, 
footer ul{
  margin: 0;
  padding: 0;
  list-style: none;
  
}
/*.primary-navigation a::before,
footer a::before{
  content: "─ ";
}*/
.main a, .sidebar a{
  border-bottom: 1px solid #000;
}
h1{
  font-family: degular, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 3rem;
}
h2{
  font-family: degular, sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 5rem;
  letter-spacing: -0.2rem;
  line-height: 1;
  display: block;
  margin: 0 0 2rem 0;
  padding-bottom: 0;
}
h2 span{
  font-family: degular, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 3.5rem;
  letter-spacing: 0.02rem;
  display: block;
}
h3{
  font-family: degular, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  padding-bottom: 0
  color: #202020;
}
/*h4{
  font-family: degular, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  padding-bottom: 0;
  color: #202020;
}*/
p{
  margin: 0 0 2rem 0;
  padding: 0;
}
.section-header{
  margin-bottom: 4rem;
}
.section-header p{
  margin-top: 0;
  padding-top: 0;
  font-family: degular, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 2rem;
}
.section-header em{
  font-weight: 700;
  font-style: normal;
  color: #3E5260;
}
.section-header img{
  margin: 0 0 2.5rem 0;
  padding: 0;
  width: 60%;
  border-radius: 0.5rem;
  
}
img{
  margin: 5rem 0 1rem 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  filter: drop-shadow(0px 0px 25px rgba(0,0,0,.15));
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.img-caption{
  margin-bottom: 4em;
  font-family: degular, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.2rem;
  text-align: center;
}
.home-main .section-header{
  margin-bottom: 6rem;
}
/*.home-main h3{
  font-family: degular, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 3rem;
  margin: 3rem 0 1rem 0;
  padding-bottom: 0;
}*/
/*.home-main h4{
  margin-bottom: 0.5rem;
  font-family: degular, sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.03rem;
}
.home-main p{
  font-size: 1.5rem;
}*/
blockquote{
  margin: 0;
  padding: 0;
}


/*h1{
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2rem;
  font-family: degular, sans-serif;
  font-size: 3.6rem; 
  font-weight: 800;
  font-style: normal;
}*/
/*h2{
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  font-family: degular, sans-serif;
  font-weight: 700;
  font-size: 2rem; 
  text-transform: none;
}*/
/*h2:before,
.introduction:before { 
  content: " —  ";
  display: inline-flex;
  margin-right: 1rem;
  }*/
/*h3{
  margin: 2.5rem 0 0 0;
  padding: 0;
  font-family: degular, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.5rem;

}*/
/*h4{
  margin: 2rem 0 0 0;
  padding: 0;
  font-family: degular, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
}*/
/*.list-of-work{
  counter-reset: my-counter;
  margin-top: 2.5rem;
  padding: 0;
  font-size: 1.2rem; 
  font-weight: 300;
}
.list-of-work li{
  counter-increment: my-counter;
  display: flex;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}
.list-of-work li:nth-last-child(1),
.list-of-work li:nth-last-child(2){
  margin-bottom: 0;
}
.list-of-work li::before{
  content: "0" counter(my-counter) "-";
  margin-right: 0.25rem;
  font-family: 'Rubik', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(112, 102, 119, 0.4); 
}
.list-of-work li:first-child::before{
  margin-right: 8px;
}
.list-of-work a{
  display: block;
  margin-top: 0;
  padding-top: 0;
  padding-left: 0.75rem;
  line-height: 1;
}
.list-of-work a::after{
  content: "─";
}
.list-of-work small{
  display: block;
  margin-top: 0.5rem;
  padding-top: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9375rem; 
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #000000;
}*/
footer{
  display: flex;
  flex-direction: row;
  width: 100%;
}

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

/*
 * Match the height of the viewport
 */
 
/*.vp-height{
  height: 200vh;
}*/

/*
 * Hide visually and from screen readers
 */

.hidden,
[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: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

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

/* Viewports 800px and above */
@media only screen and (min-device-width: 50em)  
{
  body{
    padding: 0 7.5rem;
    max-width: 60em;
  }

  /*.list-of-work{
    display: flex;
    flex-wrap: wrap;
  }
  .list-of-work li{
    width: 50%;
    margin-bottom: 2.25rem;
  }*/
  .wrapper{
    min-height: 100vh;
    /*background: #ccc;*/
    display: flex;
    flex-direction: column;
  }
  .page-header{
    display: flex;
    flex-direction: row;
  }
  .page-header h1{
    margin: auto;
    width: 60%;
  }
  .page-header .primary-navigation{
    margin: auto;
    width: 40%;
  }
  nav ul li,
  footer ul li{
    display: inline-flex; 
  }
  nav ul li{
    margin-left: 2rem;
    margin-bottom: 0;
  }
  footer ul li{
    margin-right: 2rem;
    margin-bottom: 0;
  }
  .content {
    flex: 1;
    display: flex;
    color: #000;
  }
  .columns{
    display: flex;
  }
  .main{
    flex: 2;
    margin-bottom: 3rem;
    padding-top: 6rem;
    padding-right: 5rem;
    border-right: 1px solid rgba(217, 217, 217, 1);
  }
  /* To remove border on index without a right column*/
  .home-main{
    border-right: none;
  }

  .main ul li, 
  .main ol li{
    margin-bottom: 0.5rem;
  }
  .sidebar{
    flex:1;
    padding: 1rem 2rem 0 3rem;
    background: rgba(242, 242, 242, 0.2);
  }
  .sidebar h3{
    font-family: degular, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 2.2rem;
    line-height: 1;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0;
  }
  .sidebar ul{
    list-style-type: none;
    margin-left: 2rem;
    padding: 0;
  }
  .sidebar ul li{ 
    margin-bottom: 2rem;
  }
  .sidebar ul li:before{ 
    content: "—";
    position: absolute;
    margin-left: -2rem;
    
  }
  .sidebar ul li a{
    margin: 0 0 2rem 0;
    padding-top: 0;
  }
  .main-item-wrapper{
    display: flex;
    flex-direction: row;
  }
  .main-item img{
    width: 90%;
  }

  .selected-work-summary-wrapper{
    margin: 6rem 0 0 0;
    /*background-color: red;*/
  }
  .selected-work-summary-wrapper h3{
    margin-bottom: 2rem;
    padding: 0;
  }
  .selected-work-summary-row{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 2rem;
  }
  .selected-work-summary-column{
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
  }
  .first-column{
    /*background-color: blue;
    height: 100px;
    width: 90%;*/
    padding-right: 2rem;

  }
  .first-column img{
    margin: 0;
  }
  .second-column{
    /*background-color: green;
    height: 100px;
    width: 70%;*/
    padding-left: 2rem;
  }
  
}
@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: #fff !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;
  }
}

