@import "reset.css";

/* Variables ==================================== */

:root {
    --mattcoBlue: #66899C;
    --mattcoBlueLight: #EFF3F5;
    --mattcoBlueMedium: #AABEC8;
    --mattcoBlueDark: #284150;
    --mattcoRed: #FA694B;
}

/* Misc ========================================= */

::selection {
  background: rgba(0,0,0,0.15);
}
::-moz-selection {
  background: rgba(0,0,0,0.15);
}
.work-body ::selection {
  background: var(--mattcoBlueMedium);
}
.work-body ::-moz-selection {
  background: var(--mattcoBlueMedium);
}
.about-body ::selection {
  background: rgba(0,0,0,0.25);
}
.about-body ::-moz-selection {
  background: rgba(0,0,0,0.25);
}
.contact-body ::selection {
  background: rgba(0,0,0,0.15);
}
.contact-body ::-moz-selection {
  background: rgba(0,0,0,0.15);
}

/* Fonts ======================================== */

@font-face {
  font-family: mark;
  src: url(../fonts/mark-bold.woff);
  font-weight: 600;
}
@font-face {
  font-family: mark;
  src: url(../fonts/mark-medium.woff);
  font-weight: 500;
}
@font-face {
  font-family: abril-text;
  src: url(../fonts/abril-text-italic.woff);
  font-style: italic;
  font-weight: normal;
}

/* Body Styles ================================== */

body {
	-webkit-font-smoothing: antialiased;
	background: var(--mattcoBlue) url("../images/sketch.svg") no-repeat fixed bottom;
}
.work-body {
	background: var(--mattcoBlueLight);
}
.contact-body {
	background: var(--mattcoRed);
}
.about-body {
	background: var(--mattcoBlueDark);
}

/* Logo/Nav Container =========================== */

.logo-nav-container {
	display: flex;
	margin: 10% 10% 7% 10%;
}

/* Mattco Mark ================================== */

.mattco-mark {
	width: 30%;
	text-align: right;
}
.mattco-mark svg {
	fill: white;
	width: calc(52px + (52 - 24) * (100vw - 400px) / (800 - 400));
  height: calc(90px + (90 - 70) * (100vw - 400px) / (800 - 400));
}
.mattco-mark a:hover svg {
	fill: rgba(255, 255, 255, 0.5);
	/*fill: var(--mattcoBlueLight);*/
}
.work-body .mattco-mark svg {
	fill: var(--mattcoBlue);
}
.work-body .mattco-mark a:hover svg {
	fill: var(--mattcoBlueMedium);
}

/* Navigation =================================== */

.main-nav {
	display: flex;
	align-self: flex-end;
	font: 600 22px "mark", sans-serif;
	width: 70%;
}
.main-nav a {
	color: var(--mattcoBlueMedium);
	text-decoration: none;
	padding-left: 50px;
	font-size: calc(24px + (22 - 18) * (100vw - 400px) / (800 - 400) );
}
.main-nav li:first-of-type a {
	padding-left: 0px;
}
.main-nav a:hover {
	color: white;
}
.main-nav a.on {
	color: white;
}

.work-body .main-nav a {
	color: var(--mattcoBlue);
}
.work-body .main-nav a:hover {
	color: var(--mattcoBlueMedium);
}
.work-body .main-nav a.on {
	color: var(--mattcoBlueDark);
}
.work-body .main-nav a.on:hover {
	color: var(--mattcoBlue);
}

.contact-body .main-nav a {
	color: white;
	opacity: 0.5;
}
.contact-body .main-nav a:hover {
	opacity: 1;
}
.contact-body .main-nav a.on {
	opacity: 1;
}
.contact-body .main-nav a.on:hover {
	opacity: 0.5;
}

/* Typography =================================== */

h1 {
	font: 600 9vw/10vw "mark", sans-serif;
	color: white;
	margin: 15% 10%;
	letter-spacing: -1px;
}
h2 {
	font-family: "mark", sans-serif;
	font-weight: 600;
	font-size: calc(40px + (44 - 22) * (100vw - 400px) / (800 - 400) );
	color: var(--mattcoBlueDark);
	letter-spacing: -2px;
	margin-bottom: 5%;
}
.work-intro p,
.contact-intro p {
	font: italic 18px/28px "abril-text-italic", serif;
	color: var(--mattcoBlue);
	border-left: 2px solid var(--mattcoRed);
}
.contact-intro p {
	color: white;
}
.contact-intro h2,
.about-body h2 {
	color: white;
}
.about-body h2 {
	margin: 0 10%;
}

/* Work List ==================================== */

/*.work-list-container {
	margin: 10%;
}*/
.work-list {
	display: flex;
	gap: 10px;
	padding: 0 10%;
	flex-wrap: wrap;
}
.work-list img {
	width: 24%;
}
.work-list a {
	display: contents;
	background-color: #fff;
	-webkit-transform: translatez(0);
}
.work-list a:hover div,
.work-list a:hover div p {
	display: contents;
	z-index: 10;
	opacity: 75%;
  background-color: white;
}
.work-list a:hover div p {
	opacity: 1;
}
.work-list a:hover img {
	/*filter: blur(5px);
  -webkit-filter: blur(5px);*/
  opacity: 0.5;
  transition: 0.35s;
}




/* Work Detail ================================== */

.work-back-arrow {
	width: 70%;
	align-self: center;
}
.work-back-arrow svg {
	fill: var(--mattcoBlueMedium);
}
.work-back-arrow a:hover svg {
	fill: var(--mattcoBlue);
}

.work-intro {
	margin: 10%;
}
.work-intro p {
	font-size: calc(14px + (14 - 11) * (100vw - 400px) / (800 - 400) );
}

.work-block {
	display: flex;
	margin: 17px 10% 0 10%;
}
.work-block img {
	width: 100%;
}
.work-block div {
	flex: 100%;
	flex-wrap: nowrap;
}
.work-block div:last-of-type {
	margin-left: 20px;
}

.work-detail {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10%;
  gap: 20px;
  justify-content: space-between;
}
.work-detail img {
	width: 100%;
}
.work-detail img.half {
	width: 49%;
}

.project-inquiries {
	margin: 0 10%;
	font: 600 24px "mark", sans-serif;
	letter-spacing: -1px;
	clear: both;
	padding-top: 163px;
}
.project-inquiries a {
	text-decoration: none;
	color: var(--mattcoBlue);
}
.project-inquiries a:hover {
	color: var(--mattcoRed);
}

/* Contact ====================================== */

.contact-intro {
	margin: 5% 10%;
}
form {
	margin: 0 10%;
}
input,
label,
textarea {
	display: flex;
	width: 100%;
	background: transparent;
}
input,
textarea {
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	font: 600 28px/30px "mark", sans-serif;
	color: white;
	padding-bottom: 5px;
}
input:focus,
textarea:focus {
	border: none;
	border-bottom: 1px solid white;
	outline: none;
}
label {
	font: italic 500 18px "abril", serif;
	color: white;
	margin: 10px 0 40px 0;
}
textarea {
	resize: none;
	max-height: 29px;
}
button {
	font: 600 24px "mark", sans-serif;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	padding: 12px 22px 13px 22px;
	margin-top: 40px;
}
button:hover {
	border: 1px solid white;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	outline: none;
}

/* About Detail ================================= */

.about-content {
	margin: 5% 10%;
	font: 400 16px/26px "mark", sans-serif;
	color: white;
}
.about-image-col {
	width: 30%;
}
.about-body-text-col {
	width: 70%;
	margin-left: 60px;
}
.about-image-col img {
	max-width: 100%;
	height: auto;
	margin-bottom: 60px;
}
.about-body-text-col p {
	margin-bottom: 26px;
}
.about-body-text-col a {
	text-decoration: none;
	border-bottom: 1px solid var(--mattcoBlueMedium);
	color: white;
}
.about-body-text-col a:hover {
	color: var(--mattcoBlueMedium);
	border: none;
}

/* Modal Menu =================================== */

#menu-toggle {
	position: relative;
	z-index: 1;
	-webkit-user-select: none;
	user-select: none;
}
#menu-toggle a {
	text-decoration: none;
	color: var(--mattcoBlue);
	transition: color 0.3s ease;
}
#menu-toggle a:hover {
	color: var(--mattcoBlueMedium);
}
#menu-toggle input {
	display: block;
	width: 40px;
	height: 32px;
	position: absolute;
	top: -7px;
	left: -5px;
	cursor: pointer;
	opacity: 0;
	z-index: 2;
	-webkit-touch-callout: none;
}
#menu-toggle span {
	position: relative;
	display: block;
	width: 33px;
	height: 4px;
	margin-bottom: 5px;
	background-color: rgba(255, 255, 255, 0.5);
	z-index: 1;
	transform-origin: 4px 0px;
	/*transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
		opacity 0.55s ease;*/
}
#menu-toggle input:hover ~ span {
	background-color: white;
}
.work-body #menu-toggle span {
	background-color: var(--mattcoBlueMedium);
}
.work-body #menu-toggle input:hover ~ span {
	background-color: var(--mattcoBlue);
}
#menu-toggle span:first-child {
	transform-origin: 0% 0%;
}
#menu-toggle span:nth-last-child(2) {
	transform-origin: 0% 100%;
}
#menu-toggle input:checked ~ span {
	opacity: 1;
		transform: rotate(45deg) translate(-2px, -1px);
		background-color: var(--mattcoBlueMedium);
}
#menu-toggle input:checked ~ span:nth-last-child(3) {
	opacity: 0;
	transform: rotate(0deg) scale(0.2, 0.2);
}
#menu-toggle input:checked ~ span:nth-last-child(2) {
	transform: rotate(-45deg) translate(0, -1px);
}
#menu {
	position: absolute;
	top: -72px;
	left: -100px;
	height: 100vh;
	width: 100vw;
	padding: 150px 0 0 100px;
	background-color: var(--mattcoBlueLight);
	-webkit-font-smoothing: antialiased;
	transform-origin: 0% 0%;
	transform: translate(-100%, 0);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
#menu li {
	padding: 10px 0;
	font: 600 8vw/10vw "mark", sans-serif;
	letter-spacing: -1.5px;
}
#menu-toggle input:checked ~ ul {
	transform: none;
}

/* Footer ======================================= */

footer {
	display: flex;
	flex-wrap: wrap;
	margin: 8% 10%;
	color: var(--mattcoBlue);
	font: italic 400 13px/18px "abril-text-italic", serif;
	letter-spacing: -0.2px;
}
footer li {
	display: inline-block;
	padding: 0 30px 60px 0;
	padding-right: 30px;
}
footer a {
	font: 600 20px "mark", sans-serif;
	letter-spacing: -1px;
	text-decoration: none;
	color: var(--mattcoBlueMedium);
}
footer a:hover {
	color: var(--mattcoBlue);
}
footer a.on {
	color: var(--mattcoBlue);
}

.contact-body footer div {
	width: 100%;
	color: white;
}
.work-body footer div {
	width: 100%;
}

/* Breakpoints ================================== */

@media only screen and (max-width: 600px) {
	
	/* Hide -----------*/
	.main-nav li {
		display: none;
	}
	.work-list img {
		width: 100%;
	}

	/* Show -----------*/
	#menu-toggle {
		display: block
	}
	.work-block {
		margin: 10px 10px 0 10px;
	}
	.work-block div:last-of-type {
		margin-left: 10px;
	}
	.work-intro p {
		width: 90%;
		padding-left: 7.5%;
	}
	.work-detail img.half {
		width: 100%;
	}
	.about-content {
		display: block;
	}
	.about-image-col {
		width: 100%;
	}
	.about-body-text-col {
		width: 100%;
		margin-left: 0;
	}
	.about-image-col img {
		max-width: 340px;
	}
	footer ul, footer div {
		width: 100%;
	}
}
@media only screen and (min-width: 600px) {
	
	/* Hide -----------*/
	.main-nav li {
		display: none;
	}
	.work-list img {
		width: 48.8%;
	}
	
	/* Show -----------*/
	#menu-toggle {
		display: block;
	}
	.work-block {
		margin: 10px 10px 0 10px;
	}
	.work-intro p {
		width: 90%;
		padding-left: 7.5%;
	}
	.work-detail img.half {
		width: 100%;
	}
	.about-content {
		display: block;
	}
	.about-image-col {
		width: 100%;
	}
	.about-body-text-col {
		width: 100%;
		margin-left: 0;
	}
	.about-image-col img {
		max-width: 340px;
	}
	footer ul, footer div {
		width: 100%;
	}
	footer div {
	margin-top: 7px;
	text-align: left;
	}
}
@media only screen and (min-width: 768px) {
	
	/* Hide -----------*/
	#menu-toggle {display: none;}

	/* Show -----------*/
	.main-nav li {
		display: inline;
	}
	.work-detail img.half {
		width: 100%;
	}
	.work-list img {
		width: 48.3%;
	}
	.work-block {
		margin: 20px 10% 0 10%;
	}
	.work-intro p {
		width: 70%;
		padding-left: 5%;
		margin-bottom: 10%;
	}
	.about-content {
		display: flex;
	}
	.about-image-col {
		width: 30%;
	}
	.about-body-text-col {
		width: 70%;
		margin-left: 60px;
	}
	.about-image-col img {
		max-width: 100%;
	}
	footer ul, footer div {
		width: 50%;
	}
	footer div {
	margin-top: 7px;
	}
}
@media only screen and (min-width: 992px) {
	
	/* Hide -----------*/
	#menu-toggle {display: none;}

	/* Show -----------*/
	.main-nav li {
		display: inline;
	}
	.work-list img {
		width: 32.2%;
	}
	.work-block {
		margin: 20px 10% 0 10%;
	}
	.work-intro p {
		width: 70%;
		padding-left: 5%;
		margin-bottom: 10%;
	}
	.work-detail img.half {
		width: 48%;
	}
	.about-content {
		display: flex;
	}
	.about-image-col {
		width: 30%;
	}
	.about-body-text-col {
		width: 70%;
		margin-left: 60px;
	}
	.about-image-col img {
		max-width: 100%;
	}
	footer ul, footer div {
		width: 50%;
	}
}
@media only screen and (min-width: 1200px) {
	
	/* Hide -----------*/
	#menu-toggle {display: none;}

	/* Show -----------*/
	.main-nav li {
		display: inline;
	}
	.work-list img {
		width: 24%;
	}
	.work-block {
		margin: 20px 10% 0 10%;
	}
	.work-intro p {
		width: 70%;
		padding-left: 5%;
		margin-bottom: 10%;
	}
	.work-detail img.half {
		width: 48.9%;
	}
	.about-content {
		display: flex;
	}
	.about-image-col {
		width: 30%;
	}
	.about-body-text-col {
		width: 70%;
		margin-left: 60px;
	}
	.about-image-col img {
		max-width: 100%;
	}
	footer ul, footer div {
		width: 50%;
	}
	footer div {
	margin-top: 7px;
	}
}