:root {
  --font-sans-serif: 'Barlow Condensed', sans-serif;
  --font-serif: 'Lora', serif;
  --font-size: 22px;

  --container-padding: 1.25rem;
  --opacity-hover: 0.75;

  --white: #fff;
  --body-text-color: #1a2533;
  --bg-color: var(--white);
  --header-bg-color: #1a2533;
  --header-text-color: var(--white);
}

/* Prefers Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --body-text-color: #c9c9c9;
    --bg-color: #1e2536;
    --header-bg-color: #141a26;
    --header-text-color: var(--body-text-color);
  }
  img { opacity: 80%; }
}

*, *:before, *:after { box-sizing: border-box; }
html { font-size: 10px; }

body {
  background-color: var(--bg-color);
  color: var(--body-text-color);
  font-family: var(--font-serif);
  font-size: var(--font-size);
  line-height: 1.6;
  margin: 0;
  border-top: 15px solid var(--header-bg-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  color: var(--body-text-color);
  font-family: var(--font-sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
  line-height: 1;
}

h1, .h1 {
  font-size: 300%;
  margin: 0 0 10rem 0;
  position: relative;
  line-height: .87;
  position: relative;
}

h2, .h2 {
  font-size: 265%;
  margin: 3rem 0;
}
h3, .h3 {
  font-size: 205%;
  margin: 3rem 0;
}
h4, .h4 {
  font-size: 165%;
  margin: 2.4rem 0 1.6rem;
}
h5, .h5 {
  font-size: 115%;
  margin: 2.4rem 0 1.6rem;
}
h6, .h6 {
  font-size: 78%;
  margin: 2.4rem 0 1.6rem;
}

p {
  margin: 0 0 2.7rem 0;
}
p.lead {
  font-size: 150%;
  max-width: 35ch;
  margin-bottom: 4rem;
}

.meta-date {
  font-family: var(--font-sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  padding-right: 4rem;
}

a {
  color: inherit;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  transition: text-decoration-color 0.25s ease-out;
}
a:hover,
a:focus { text-decoration-color: #999; }

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

figure { margin: 0; }
figure + figure { margin-top: 4rem; }
figure + p { margin: 5rem 0; }
figcaption {
  font-style: italic;
  font-size: 72%;
  line-height: 1.4;
  margin: .3rem 0 .6rem;
  opacity: 0.8;
}

blockquote {
  margin: 6rem 3rem;
  padding: 0;
  font-size: 115%;
}

hr {
  border: none;
  border-top: 3px solid var(--body-text-color);
  margin: 4rem 0;
  width: 100%;
}

.page-break {
  border-top: 3px solid var(--body-text-color);
  position: relative;
  margin: max(3rem, 6rem) 0;
  overflow: visible;
}
.page-break:before {
  content: attr(data-content);
  font-family: var(--font-sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  position: absolute;
  left: -0.5rem;
  line-height: 1;
  color: var(--body-text-color);
  background: var(--bg-color);
  padding: 0 1.5rem 0 0.5rem;
  margin-top: -1.5rem;
}

.arrow-back span { font-family: var(--font-sans-serif); }




/* Structure */
header {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  line-height: 1;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;

  width: 100%;
  height: 60px;
  padding: 2rem 0;
}
.header__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
header .logo {
  font-size: 100%;
  margin: 0;
}
header .logo a {
  color: var(--header-text-color);
  font-family: var(--font-sans-serif);
  font-size: var(--font-size);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}
header .tagline {
  font-size: 70%;
  text-align: right;
}
.menu-toggle {
  position: absolute;
  bottom: 80px;
  background: var(--header-bg-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}
.menu-toggle:hover,
.menu-toggle:focus {
  opacity: var(--opacity-hover);
}


main {
  flex: 1;
  padding-top: 10rem;
}
main p {
  max-width: 45ch;
}


.container {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--container-padding), 1fr)
    [outter-start] minmax(0, 11.5rem)
    [inner-start] minmax(0, 76rem)
    [inner-end] minmax(0, 11.5rem)
    [outter-end] minmax(var(--container-padding), 1fr)
    [full-end];
}
.container > * {
  grid-column: outter;
}

/* Larger than 16*48 = 768px  */
@media (min-width: 48em) {
  .container > * {
    grid-column: inner;
  }
}

.full-width {
  grid-column: full;
  padding: 0 var(--container-padding);
}
.outter-width { grid-column: outter; }


.nav--menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 0 15rem 12rem;
}
.nav--menu ul {
  margin: 0 0 3rem 0;
  padding: 0;
  list-style-type: none;
  flex-basis: 45%;
}
.nav--menu strong {
  font-family: var(--font-sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.2rem;
}
.nav--menu a {
  font-size: 85%;
  display: inline-block;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}



.project-details {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  margin: 0 0 4rem 50%;
}
.project-details__list {
  margin: 0 0 3rem 0;
  padding: 0;
  list-style-type: none;
  font-size: 65%;
  line-height: 1.75;
}
.project-details__list strong {
  font-style: italic;
  font-size: 122%;
  margin-bottom: 1rem;
  display: inline-block;
}






/* Featured Images */
.img-feature {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 100%;
  display: block;
  margin: 2rem 0 0 0;
}
.img-feature + figure {
  margin-top: 0;
}

.img-feature--wild {                background-image: url("/../img/wild-flavors/wf-feature.jpg"); }
.img-feature--simple-truth {        background-image: url("/../img/simple-truth/st-feature.jpg"); }
.img-feature--setco {               background-image: url("/../img/setco/setco-feature.jpg"); }
.img-feature--jmc {                 background-image: url("/../img/jmc/jmc-feature.jpg"); }
.img-feature--private-selection {   background-image: url("/../img/private-selection/ps-feature.jpg"); }
.img-feature--time-savers {         background-image: url("/../img/time-savers/ts-feature.jpg"); }
.img-feature--fcc {                 background-image: url("/../img/fcc/fcc-feature.jpg"); }
.img-feature--gensuite {            background-image: url("/../img/gensuite/gs-feature.jpg"); }
.img-feature--virtual-phone {       background-image: url("/../img/virtual-phone/vp-feature.jpg"); }

@media (prefers-color-scheme: dark) {
  .img-feature--wild {                background-image: url("/../img/wild-flavors/wf-feature-dark.jpg"); }
  .img-feature--simple-truth {        background-image: url("/../img/simple-truth/st-feature-dark.jpg"); }
  .img-feature--setco {               background-image: url("/../img/setco/setco-feature-dark.jpg"); }
  .img-feature--jmc {                 background-image: url("/../img/jmc/jmc-feature-dark.jpg"); }
  .img-feature--private-selection {   background-image: url("/../img/private-selection/ps-feature-dark.jpg"); }
  .img-feature--time-savers {         background-image: url("/../img/time-savers/ts-feature-dark.jpg"); }
  .img-feature--fcc {                 background-image: url("/../img/fcc/fcc-feature-dark.jpg"); }
  .img-feature--gensuite {            background-image: url("/../img/gensuite/gs-feature-dark.jpg"); }
  .img-feature--virtual-phone {       background-image: url("/../img/virtual-phone/vp-feature-dark.jpg"); }
}






.pager {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 5rem;
}
.pager a {
  color: var(--header-text-color);
  font-family: var(--font-sans-serif);
  font-size: 70%;
  text-transform: uppercase;
  padding: 1rem;
  background-color: var(--header-bg-color);
  text-decoration: none;
  width: 48%;
}
.pager a:hover,
.pager a:focus {
  opacity: var(--opacity-hover);
}







.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--container-padding);
}
.photo-gallery figure + figure {
  margin: 0;
}
.photo-gallery figure {
  grid-column: 1 / -1;
}
.photo-gallery + p {
  margin: 5rem 0;
}


/* Footer */
footer { margin-top: 5rem; }
.footer__content {
  border-top: 3px solid var(--body-text-color);
  padding: 2.5rem 0 8rem 8rem;
  font-size: 80%;
  text-align: right;
}
.footer__content a {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer__content p { line-height: 1; }



/* Single Class Utilities */
.u-mt-10 { margin-top: 10rem !important; }
.u-mb-5 { margin-bottom: 5rem !important; }
.u-m-0 { margin: 0 !important; }
.u-text-right { text-align: right !important; }
.u-text-center { text-align: center !important; }
.u-hidden { display: none !important; }

/* Animations */
.fade-text {
  opacity: 0;
  animation: fade-text-in 0.35s ease-out forwards
}
@keyframes fade-text-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



/* Larger than 768px */
@media (min-width: 48em) {

  :root {
    --container-padding: 2rem;
  }

  h1, .h1 { font-size: 700%; }

  figure + figure { margin-top: 10rem; }
  figcaption {
    font-size: 80%;
    max-width: 60ch;
  }

  .img-feature {
    padding-top: 85.71%; /* 1200/1400 = .857142857 */
    margin: 2rem 0;
  }

  .photo-gallery figure.img-left  {
    grid-column: 1 / 1;
  }
  .photo-gallery figure.img-right {
    grid-column: 2 / 2;
  }

  .project-details {
    flex-direction: row;
    margin: 0rem 0 10rem 0;
  }
  .project-details__list {
    padding-left: 6rem;
  }

  .nav--menu { flex-direction: row; }

  .pager a {
    font-size: 90%;
    padding: 2rem;
    width: 200px;
  }
}
