/*
	Method & Craft CSS
	Copyright (c) 2021 Phil Coffman. All rights reserved.
*/

/* Eric Meyer Reset */
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, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

@font-face {
    font-family: 'rebar';
    src: url('/assets/fonts/Rebar-Regular.woff2') format('woff2'),
         url('/assets/fonts/Rebar-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'rebar';
    src: url('/assets/fonts/Rebar-Bold.woff2') format('woff2'),
         url('/assets/fonts/Rebar-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

img {
    max-width: 100%;
}

:root {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Fonts */
    --bodyFont: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",sans-serif;
    --navFont: input-mono-1, input-mono-2, monospace;
    --headerFont: 'rebar';
    --mono: input-mono-1, input-mono-2, monospace;

    /* Colors */
    --siteBkgd: #12162d;
    --siteColor: #b9a179;

    /* Layout */
    --siteWidthMax: 1700px;
	--mainWidthMax: 760px;
	--dotPattern: linear-gradient(90deg, var(--siteBkgd) 2px, transparent 1%) center, linear-gradient(var(--siteBkgd) 2px, transparent 1%) center, var(--siteColor);
    --dotSize: 1px;
    --dotSpace: 3px;

    /* Spacing */
    --sitePadding: 32px;
    --headerPadding: 32px;
    --postPadding: 32px;
	--dividerSpacing: 16px;
    --footerPadding: 32px;
	--postElementPadding: 24px;
	--postTextIndent: 24px;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    padding: 0 var(--sitePadding);
	max-width: var(--siteWidthMax);
    margin: 0 auto;
    background-color: var(--siteBkgd);
    font-family: var(--bodyFont);
    font-size: 16px;
    color: var(--siteColor);
	background-image: url(../assets/img/dust-light.png);
	background-size: 238px;
}

@media (max-width: 720px) {
	:root {
		--sitePadding: 24px;
		/* --postElementPadding: 16px; */
		--headerPadding: 24px;
	}
}

a {
    color: var(--siteColor);
}

p {
    line-height: 1.524;
}

.mono {
    font-family: var(--mono);
}

.bold {
    font-weight: bold;
}

/* Layout */
.header--mainNav {
    padding-top: var(--headerPadding);
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    grid-row-gap: 32px;
    align-items: center;
    position: relative;
}

.header--mainNav:after {
    content: "";
    display: block;
    grid-column: 1 / 4;
    height: 21px;
    width: 100%;
    background: var(--dotPattern);
    background-size: var(--dotSpace) var(--dotSpace);
	opacity: .5;
}

.pc__branding {

}

.pc__logo {
    line-height: 0;
}

.pc__logo--lg svg {
    width: 48px;
    fill: var(--siteColor);
}

.mc__tagline {
    font-size: 13px;
    line-height: 1.25;
	justify-self: right;
	text-align: right;
    max-width: 200px;
    font-family: var(--mono);
}

.header--mainNav nav {
	justify-self: center;
}

.header--mainNav nav ul li {
    display: inline-block;
    font-family: var(--navFont);
}

.header--mainNav nav ul li a {
    font-size: 20px;
    font-weight: bold;
    color: var(--siteColor);
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 20px;
}

@media (max-width: 720px) {
	.header--mainNav {
		grid-template-columns: auto 1fr;
		grid-row-gap: 12px;
	}
	.mc__logo--lg svg {
		width: 72px;
	}
	.mc__tagline {
		grid-column: 1 / 3;
		grid-row: 2 / 3;
		text-align: left;
		justify-self: left;
		max-width: 100%;
	}
	.header--mainNav nav {
		grid-column: 2 / 3;
		grid-row: 1 / 2;
		justify-self: right;
	}
	.header--mainNav nav ul {

	}
	.header--mainNav nav ul li a {
		font-size: 16px;
		margin-right: 0;
	}
}

.pageTitle {
	font-family: var(--mono);
	font-size: 40px;
	padding: 48px 0;
	text-align: center;
}

.pageTitle span {
	display: block;
	font-size: 14px;
	margin-bottom: 16px;
	text-transform: uppercase;
}

@media (max-width: 720px) {
	.pageTitle {
		font-size: 26px;
	}
}

.breadcrumb {
	font-family: var(--mono);
	font-size: 20px;
    margin: 32px auto 0;
}

.breadcrumb:after {
	content: "";
    display: block;
    height: 9px;
    width: 100%;
    background: var(--dotPattern);
    background-size: var(--dotSpace) var(--dotSpace);
    margin-top: 16px;
	opacity: .5;
}

.postList, .default {
    max-width: var(--mainWidthMax);
	padding: var(--postPadding) 0;
    margin: 0 auto;
}

.post {
	padding: var(--postPadding) 0;
    /* margin-bottom: 80px; */
	font-size: 21px;
}

@media (max-width: 720px) {
	.postList, .default {
		padding-top: 0;
	}
	.post {
		font-size: 18px;
	}
}

.postDivider {
    display: block;
    height: 9px;
    width: 100%;
    background: var(--dotPattern);
    background-size: var(--dotSpace) var(--dotSpace);
    margin: var(--dividerSpacing) 0;
	opacity: .5;
}

.postDivider:last-of-type  {
	display: none;
}

.post h2 {
    font-family: var(--headerFont);
    font-size: 56px;
	line-height: 1.1em;
	letter-spacing: -2px;
    margin-bottom: var(--postElementPadding);
	position: relative;
	left: -4px;
}

@media (max-width: 720px) {
	.post h2 {
		font-size: 32px;
		left: -2px;
	}
}

.post h2 a {
    text-decoration: none;
}

.post .meta,
.post .tags {
    font-family: var(--mono);
    font-size: 14px;
    text-indent: 0;
}

@media (max-width: 720px) {
	.post .tags {
		font-size: 13px;
	}
}

/* .post .meta a,
.post .tags a {
    font-weight: bold;
} */

.post .tags {
    margin-top: var(--postElementPadding);
}

.post p {
    text-indent: var(--postTextIndent);
}

.post ul {
	margin: var(--postElementPadding) 0;
}

.post ol {
	margin: var(--postElementPadding) 0;
	padding-left: 26px;
}

.post ul li {
	margin-bottom: var(--postElementPadding);
	line-height: 1.524;
	margin-left: 32px;
	position: relative;
}

.post code {
	font-family: var(--mono);
	font-size: 18px;
	padding: 2px 4px;
	background-color: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 4px;
	word-break: break-word;
}

@media (max-width: 720px) {
	.post code {
		font-size: 16px;
	}
}

.post ol li {
	list-style-type: decimal;
	margin-bottom: var(--postElementPadding);
	line-height: 1.524;
}

.post ul li:before {
	content: "–";
	display: block;
	position: absolute;
	left: -32px;
	top: -1px;
}

.video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin: var(--postElementPadding) 0;
}

.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

figure {
    margin: var(--postElementPadding) 0;
}

figure img {
	display: block;
}

figure figcaption, .caption {
	font-family: var(--mono);
	font-size: 13px;
	margin-top: 8px;
	text-indent: 0 !important;
}

.gallery {
	margin: var(--postElementPadding) 0;
}

.imageGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	grid-gap: 8px;
}

.imageGrid figure {
	margin: 0;
}

.post blockquote {
    padding: 0 var(--postElementPadding);
    margin: var(--postElementPadding) 0;
}

.post blockquote p {
	display: inline;
    background-color: rgba(255,255,255,.1);
	font-family: var(--mono);
	font-size: 16px;

}

.goodsItem {
	margin-bottom: 80px;
	line-height: 0;
	display: grid;
	grid-template-rows: auto auto;
}

.goodsItem__info {
	padding: 24px;
	background-color: #eaeaea;
	grid-row: 2 / 3;
}

.goodsItem li:nth-child(3), .goodsItem li:nth-child(4) {
	display: none;
}

@media (min-width: 720px) {
	.goodsItem {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		/* grid-row-gap: 16px;
		grid-column-gap: 4px; */
	}
	.goodsItem__info {
		grid-column: 1 / 4;
	}
	.goodsItem li:nth-child(3), .goodsItem li:nth-child(4) {
		display: inline-block;
	}
}

@media (min-width: 1300px) {
	.goodsItem {
	    grid-template-columns: repeat(4, 1fr);
	}
	.goodsItem__info {
		grid-column: 1 / 2;
		grid-row: auto;
	}
}

.goodsItem__info h2 a {
    text-decoration: none;
}

.fontItem__spec {
    font-family: var(--mono);
    font-size: 14px;
    margin-bottom: 14px;
}

.goodsListing .pageTitle {
	text-transform: uppercase;
}

.goodsListing .goodsItem__info h2 {
    font-family: var(--headerFont);
    font-size: 32px;
	line-height: 32px;
    margin-bottom: 16px;
}

.fontDetail {
	padding: var(--postPadding) 0;
}

.fontDetail .fontItem__info {
	display: grid;
	grid-gap: 16px;
	margin-bottom: 24px;
}

.fontDetail .fontItem__spec span {
	display: block;
	margin-bottom: 16px;
}

.fontDetail .fontItem__spec a {
	/* display: block; */
	margin-top: 16px;
}

.fontItem__desc {
	margin-bottom: 16px;
}

.fontItem__info h1 {
	font-family: var(--headerFont);
	font-size: 40px;
}

.fontItem__desc p {
	font-size: 21px;
}

@media (max-width: 720px) {
	.fontItem__desc p {
		font-size: 18px;
	}
}

@media (min-width: 720px) {
	.fontDetail h1 {
		grid-column: 1 / 4;
	}
	.fontDetail .fontItem__info {
		grid-template-columns: repeat(3, 1fr);
	}
	.fontItem__desc {
		grid-column: 1 / 4;
	}
	.fontItem__spec--license {
		grid-column: 1 / 4;
	}

}

@media (min-width: 1100px) {
	.fontDetail h1 {
		grid-column: 1 / 7;
	}
	.fontDetail .fontItem__info {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: repeat(3, auto);
		grid-column-gap: 80px;
	}
	.fontItem__desc {
		grid-column: 1 / 4;
		grid-row: 2 / 4;
	}
	.fontItem__spec--license {
		grid-column: 4 / 7;
	}

}

.fontImg__grid {
	display: grid;
	grid-gap: 10px;
}

@media (min-width: 720px) {
	.fontImg__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.fontImg__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.default h2 {
	font-size: 21px;
	font-weight: bold;
	margin: 32px 0 16px;
}

@media (max-width: 720px) {
	.default h2 {
		font-size: 18px;
		margin: 24px 0 8px;
	}
}

.default p {
	font-size: 21px;
	text-indent: var(--postTextIndent);
}

@media (max-width: 720px) {
	.default p {
		font-size: 18px;
	}
}


footer {
    padding-bottom: var(--footerPadding);
    font-family: var(--mono);
    font-size: 13px;
	line-height: 1.25;
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-row-gap: 40px;
}

@media (max-width: 720px) {
	footer {
		grid-row-gap: 12px;
	}
}

footer:before {
    content: "";
    display: block;
	grid-column: 1 / 3;
    width: 100%;
    height: 9px;
    background: var(--dotPattern);
    background-size: var(--dotSpace) var(--dotSpace);
	opacity: .5;
}

.mc__credits {
	grid-column: 1 / 2;
}

.mc__loc {
    grid-column: 2 / 3;
	text-align: right;
}

.mc__loc p {
    font-size: 13px;
    line-height: 1.25;
    font-family: var(--mono);
}

footer p {
    margin-bottom: .5rem;
}

footer a {
    /* font-weight: bold; */
    color: var(--siteColor);
}
