/*

Styles for The Flux Group
By Matt Safian · desk@mattsafian.com
January 2018 · restyled to match the live site 2024

*/

/* Reset Styles
--------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, picture, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, figure, figurecaption, form, label, legend, section, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  border: 0;
  outline: 0;
  background: transparent;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
	text-decoration: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
 }

 /* Fonts
 --------------------------------------------- */

 @font-face {
	font-family: 'Graphik Web';
	src: url('Graphik-Regular-Web.eot');
	src: url('Graphik-Regular-Web.eot?#iefix') format('embedded-opentype'),
	url('Graphik-Regular-Web.woff2') format('woff2'),
	url('Graphik-Regular-Web.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-stretch: normal;
}

 /* Master Styles
--------------------------------------------- */
body {
	font-family: "Graphik Web", "Helvetica Neue", "Arial", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: black;
}

a {
	box-shadow: 0px 1px 0px #7823D1;
	color: black;
	line-height: 24px;
	-webkit-transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-moz-transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-o-transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

a:hover {
	color: #7823D1;
}

p {
	font-size: 14px;
	line-height: 24px;
	margin-bottom: 24px;
}

strong {
	font-weight: 700;
}

em {
	font-style: italic;
}

/* Overlines: page label (h1, purple) and section label (h2, grey) */
h1, h2 {
	font-family: "Roboto Mono", Monaco, monospace;
	font-size: 14px;
	line-height: 100%;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.2px;
}

h1 {
	color: #7823D1;
	margin-top: 80px;
	margin-bottom: 8px;
}

h2 {
	color: #999;
	margin-top: 40px;
	margin-bottom: 16px;
}

/* Section label in the brand accent color (e.g. "Who We've Worked With") */
h2.accent {
	color: #7823D1;
}

 /* Header & Nav
--------------------------------------------- */

header {
	background-color: white;
	box-shadow: 0px 1px 0px #EBEBEB;
}

#header-wrap {
	max-width: 960px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	margin: auto;
	padding: 0 24px;
}

header.header-active {
	background-color: black;
}

header a {
	box-shadow: none;
}

#logo {
	height: 24px;
	display: flex;
	align-items: center;
	-webkit-transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-moz-transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-o-transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#logo:hover {
	opacity: 0.60;
}

/* Block-level image removes inline baseline/descender space,
   so the logo centers cleanly instead of sitting high */
#logo img {
	display: block;
}

.svg-invert {
	filter: invert(1);
}

#menu-icon-container {
	width: 48px;
	height: 48px;
	display: none;
	justify-content: center;
	align-items: center;
	margin-right: -13px;
}

#menu-icon-container:hover {
	cursor: pointer;
}

/* Navigation */

nav a {
	color: black;
	box-shadow: none;
	margin-left: 24px;
	-webkit-transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-moz-transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	-o-transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

nav a.current {
	color: #7823D1;
}

 /* Page Content
--------------------------------------------- */

#content {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Big intro sentences */
.intro-text-home {
	font-family: "Graphik Web", "Helvetica Neue", "Arial", sans-serif;
	font-size: 32px;
	line-height: 44px;
	font-weight: 400;
	margin-top: 290px;
	margin-bottom: 32px;
	max-width: 664px;
}

.intro-text {
	font-family: "Graphik Web", "Helvetica Neue", "Arial", sans-serif;
	font-size: 28px;
	line-height: 42px;
	font-weight: 400;
	margin-bottom: 40px;
}

/* Secondary intro sentence (What We Do) */
.intro-secondary {
	font-size: 24px;
	line-height: 36px;
	font-weight: 400;
	margin-bottom: 64px;
}

/* Two-column layout (Our Approach tenets, Who We Are bio) */
.col-2-container {
	display: flex;
}

.col-2-container > div {
	flex: 1;
}

.col-2-container > div:first-child {
	margin-right: 24px;
}

/* Next-page & inline text buttons */
.intro-button {
	margin-top: 56px;
	margin-bottom: 64px;
	clear: both;
}

.intro-button a {
	font-family: "Roboto Mono", Monaco, monospace;
	font-size: 14px;
	line-height: 100%;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #7823D1;
	box-shadow: none;
	vertical-align: middle;
}

.intro-button img {
	margin-left: 4px;
	vertical-align: middle;
}

/* Home hero button sits tight under the intro line */
.intro-text-home + .intro-button {
	margin-top: 0;
	margin-bottom: 0;
}

/* Inline link buttons (Listen / Read / Explore) — spacing comes from the
   preceding description's 16px bottom margin, matching the live site */
.link-button {
	margin-top: 0;
	margin-bottom: 0;
}

.link-button a {
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

/* Client roster (What We Do) */
.client-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 16px;
	row-gap: 24px;
	margin-top: 24px;
	margin-bottom: 40px;
}

.client-industry {
	font-family: "Roboto Mono", Monaco, monospace;
	font-size: 12px;
	line-height: 100%;
	font-weight: 400;
	color: #999;
	margin-bottom: 12px;
}

#content .client-grid ul {
	margin: 0;
}

#content .client-grid li {
	font-size: 18px;
	line-height: 32px;
	color: black;
	margin: 0;
}

/* Spotlight & featured projects (Our Work) */
.spotlight-name {
	font-family: "Graphik Web", "Helvetica Neue", "Arial", sans-serif;
	font-size: 24px;
	line-height: 36px;
	font-weight: 400;
	margin-bottom: 8px;
}

.spotlight-description {
	font-size: 18px;
	line-height: 32px;
	margin-top: 8px;
	margin-bottom: 16px;
}

.featured-projects {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 24px;
	row-gap: 32px;
	margin-top: 6px;
}

.project-name {
	font-family: "Graphik Web", "Helvetica Neue", "Arial", sans-serif;
	font-size: 18px;
	line-height: 32px;
	font-weight: 400;
	margin-bottom: 8px;
}

.project-description {
	margin-bottom: 16px;
}

/* Link lists (Featured Articles & Interviews) */
#content ul {
	margin-bottom: 24px;
}

#content ul li {
	margin-bottom: 16px;
	line-height: 24px;
}

 /* Footer
--------------------------------------------- */
footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #EBEBEB;
	margin: 56px 0;
	padding-top: 8px;
	font-family: "Roboto Mono", Monaco, monospace;
	font-size: 12px;
	line-height: 20px;
	color: #C2C2C2;
}

footer a {
	color: #C2C2C2;
	box-shadow: none;
}

footer a:hover {
	color: #7823D1;
}

/* misc.
--------------------------------------------- */
hr, .hide {
    display: none;
}

a img {
    border: none;
}

img {
    max-width: 100%;
}

/* self-clear floats */

.group:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

 /* Media Queries
--------------------------------------------- */

@media screen and (max-width: 767px) {
	header.header-active {
		background-color: black;
	}

	#menu-icon-container {
		display: flex;
	}

	nav {
		display: none;
		position: absolute;
		left: 0;
		top: 64px;
		width: 100%;
		height: 100%;
		background-color: black;
		padding: 48px 24px 0 24px;
	}

	nav.mobile-nav-active {
		display: block;
	}

	nav a {
		display: block;
		color: white;
		font-size: 28px;
		line-height: 42px;
		margin-left: 0;
		margin-bottom: 12px;
	}

	.intro-text-home {
		font-size: 28px;
		line-height: 42px;
		margin-top: 200px;
	}

	.intro-text {
		font-size: 24px;
		line-height: 36px;
	}

	.intro-secondary {
		font-size: 18px;
		line-height: 32px;
		margin-bottom: 48px;
	}

	p {
		font-size: 16px;
		line-height: 28px;
	}

	.col-2-container {
		flex-direction: column;
	}

	.col-2-container > div:first-child {
		margin-right: 0;
	}

	.spotlight-name {
		font-size: 18px;
		line-height: 32px;
	}

	.spotlight-description {
		font-size: 16px;
		line-height: 28px;
	}

	.client-grid {
		grid-template-columns: 1fr;
	}

	.featured-projects {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 479px) {
	footer {
		display: block;
		padding-top: 12px;
	}

	.contact-links {
		display: inline-block;
		margin-top: 8px;
	}

	.intro-text-home {
		font-size: 24px;
		line-height: 36px;
	}
}
