/*--------------------------------------------------------------------
         GE RICCI - MEDIA QUERIES
         By Ge Ricci, 2019
-------------------------------------------------------------------- */

@media screen and (min-width: 450px) {
  h2 {
    font-size: 2.5em;
    font-size: calc(4vmax + 1rem);
  }
  nav li {font-size: 0.95em;}
  div.summary p {font-size: calc(1vmax + 0.75rem);}
}

@media screen and (min-width: 600px) {

  div.site-id {
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
  }
    #home h1 {margin-right: 10%;}
    div.site-id .content {text-align: left;}

  nav ul {display: flex;}
  nav li {font-size: 1.5em;}

  div.summary {
    position: relative; 
    max-width: 45em; 
    margin: 0 0 8vmax 0;
  }

  div.list-of-works {
    margin-left: auto;
    margin-right: auto;
  }

  div.summary::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: -33px;
    left: -14px;
    width: 4px;
    height: 100%;
    background: var(--hot-color);
    transform: rotate(45deg);
  }
  ul.images-list dl {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 0.5fr 2fr;
    gap: 0 2rem;
  }
  ul.images-list dt {grid-column-start: 2;}
  ul.images-list dd:first-of-type {grid-row-start: 1; grid-row-end: 3;}

  div.site-id {padding: 0 5vmax; margin-bottom: 2vmax;}
  section.featuring {display: flex;}
  section.featuring h2 {flex-basis: 50%; margin-right: 5%;}
  section.featuring p.illustration {flex-basis: 45%; text-align: center;}

  div.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw 5vw;
    align-items: center;
    margin-bottom: 5vw;
  }
  div.gallery figure {margin: 0;}
}


@media screen and (min-width: 650px) {
	.list-of-works.thumbs {padding-top: 0.5rem;}
	.list-of-works.thumbs li {width: 29%; margin: 0.5em auto;}

  figure.work {flex-basis: 24%;}

  div.two-4-three {
  	display: grid;
  	grid-template-columns: 1fr 1fr;
  	grid-template-rows: 1fr 1fr;
  	grid-gap: 2vw;
  	gap: 2vw;
  }

  	div.two-4-three p {margin-bottom: 0;}
  	div.two-4-three > :nth-child(1) {
  		grid-column-start: 1;
  		grid-column-end: 2;
  		grid-row-start: 1;
  		grid-row-end: 2;
  	}
  	div.two-4-three > :nth-child(2) {
  		grid-column-start: 2;
  		grid-column-end: 3;
  		grid-row-start: 1;
  		grid-row-end: 3;
      align-self: center;
  	}
  	div.two-4-three > :nth-child(3) {
  		grid-column-start: 1;
  		grid-column-end: 2;
  		grid-row-start: 2;
  		grid-row-end: 3;
  		align-self: end;
  	}
}


@media screen and (min-width: 700px) {
  p, li, dt, dd {font-size: 1.1em;}
}

@media screen and (min-width: 800px) {
  article.k-entry {
    display: grid;
    gap: 0 10%;
    grid-template-columns: 1.5fr 2fr;
    grid-template-rows: auto 1fr;
    align-items: baseline;
  }
  div.p-summary {
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    margin-left: 0;
  }

  ul.images-list dl {gap: 4vmax;}
  ul.images-list li + li {margin-top: 5vmax;}

  figure.multiple {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
    figure.multiple > * {flex-basis: 45%;}
    figure.multiple > figcaption {flex-basis: 100%;}

  figure:not(.work) figcaption {font-size: 1em;}
  figure figcaption small {
    transform: rotate(-90deg);
    right: -151px;
    top: 130px;
  }

  #letter-g {fill: #000;}
	#g-shadow {fill: #FFF;}
	#drop {transform: translate(15px, 25px);}
}

@media screen and (min-width: 1000px) {
  p, li, dt, dd {font-size: 1.4em;}
  blockquote p {font-size: 1.8em;}
  cite {font-size: 90%;}

  figure.highlight {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }
    figure.highlight figcaption {flex-basis: 30%; margin: 0;}
    figure.highlight ul.palette {flex-basis: 60%;}

  nav {position: static;}
  nav ul {
    justify-content: flex-end;
    gap: 4rem;
    background-color: var(--body-bg);
    padding: 0;
    box-shadow: none;
  }
  nav li {font-size: 1.5em;}
  nav	a {
		color: var(--body-text);
		background-color: var(--body-bg);
  }
  nav a:visited {
		color: var(--n-dark);
		background-color: var(--body-bg);
  }

  #home {padding-top: 6rem;}
  #home nav {
  	position: absolute;
  	bottom: auto;
    top: 0;
  }
  #home nav ul {
    justify-content: space-between;
    color: var(--text-inv);
    background-color: var(--n-dark);
    padding: 0 15%;
  }
  #home nav li {font-size: 1.5em; margin: 0;}
  #home nav	a, #home nav a:visited {
		color: var(--text-inv);
		background-color: var(--n-dark);
  }

  #swirls {opacity: 1;}
}

@media screen and (min-width: 1150px) {
  /* div.summary, .e-content, article.k-entry {margin-left: 30%;}
  
  div.list-of-works {
    margin-left: 30%;
  }

  aside {margin-left: 30%;} */

  .e-content {
    margin: 0 auto;
  }

  blockquote {margin-left: -15%;}

  #container header {border: none;}
  article > figure {margin-top: -2vmax;}

  footer p:not(.no-ai) {max-width: 100%}
  
  div.twitter {
    text-align: left;
  	margin: 4rem auto 0;
  }
    div.twitter p {font-size: 0.95em;}

  div.highlight {
    box-sizing: border-box;
    float: right;
    width: 25rem;
    background-color: var(--n-light);
    padding: 2rem;
    margin: 6vw -6vw 6vw 6vw;
  }
  div.highlight::after {
    top: auto;
    bottom: 12px;
    left: 62%;
    width: 40%;
    height: 10px;
    background: var(--hot-color);
  }
  div.highlight p {font-size: 1.2em;}
}

@media screen and (min-width: 1200px) {
	#g-shadow {opacity: 0;}
	#swirls {opacity: 0;}
	#drop {transform: translate(4px, -11px);}
	#things {transform: translate(720px, -720px); opacity: 0;}
	.cls-1 {opacity: 1;}
}


@media screen and (min-width: 1500px) {
  #container {margin: 0 auto 2rem;}
}

/* ------------- PRINT VERSION --------------- */

  @page {
    margin-top: 150px;
    margin-bottom: 200px;
  }

  @page :first {
    margin-top: 50px;
  }

@media print {
  * {widows: 3;}
  nav, footer ul, p.top, div.twitter {
    display: none;
  }
  #container > header {border: none;}
  #container > header::after {
    content: "Ge Ricci's Personal Web Site";
    position: absolute;
    width: 50%;
    right: 10%;
    font: 1em var(--stack-h);
    text-align: right;
  }
  h2 {font-size: 38px;}
  div.summary p {font-size: 14px;}
  a {text-decoration: none;}
  a::after {
    content: "("attr(href)")";
    margin-left: 10px;
  }
  #container > header a::after {content: none;}
  article.k-entry a::after {content: none;}
}
