* {
  	margin: 0;
  	padding: 0;}

/* General Style Guide
========================================================================== */

:root {
  	--padding: 1.5rem;
	--color-black: #000;
	--color-white: #fff;
	--color-grey: #777;
	--color-light: #efefef;
	--color-text: var(--color-black);
	--color-text-grey: var(--color-grey);
	--color-background: var(--color-white);
	--color-code-light-grey:  #cacbd1;
	--color-code-comment:     #a9aaad;
	--color-code-white:       #c5c9c6;
	--color-code-red:         #d16464;
	--color-code-orange:      #de935f;
	--color-code-yellow:      #f0c674;
	--color-code-green:       #a7bd68;
	--color-code-aqua:        #8abeb7;
	--color-code-blue:        #7e9abf;
	--color-code-purple:      #b294bb;
	--font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;}

.bg-light {
	background-color: var(--color-light);}

.color-grey {
	color: var(--color-text-grey);}

/* Basic Reset
========================================================================== */

html {
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-family-sans);}

body {
	margin: 0 auto;
	max-width: 70rem;
	padding: var(--padding);}

@media screen and (min-width: 60rem) {
	body {
    	--padding: 3rem;}
}

img {
	width: 100%;}

li {
	list-style: none;}

a {
	color: currentColor;
	text-decoration: none;}

button {
	background: none;
	border: 0;
	color: currentColor;
	cursor: pointer;
	font: inherit;}

strong, b {
	font-weight: 600;}

small {
	color: var(--color-text-grey);
	font-size: inherit;}

/* Header
========================================================================== */

.header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-right: -1rem;
	margin-bottom: 6rem;
	margin-left: -1rem;
	position: relative;}

.logo {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 600;
	padding: 1rem;}

.menu {
	display: flex;}

.menu a {
	display: block;
	padding: 1rem;}

.menu a[aria-current] {
	text-decoration: underline;}

.social {
	display: flex;
	padding: 0 .5rem;}

.social a {
	padding: 1rem .5rem;}

/* Grid
========================================================================== */

.section {
	padding: 3rem 0;
}

.grid {
	--columns: 12;
	--gutter: 3rem;
	display: grid;
	grid-gap: var(--gutter);
	grid-template-columns: 1fr;}

.grid > .column {
	margin-bottom: var(--gutter);}

.autogrid {
	--gutter: 3rem;
	--min: 10rem;
	display: grid;
	grid-gap: var(--gutter);
	grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
	grid-auto-flow: dense;}

@media screen and (min-width: 60rem) {
	.grid {
			grid-template-columns: repeat(12, 1fr);
	}
	.grid > .column {
			grid-column: span var(--columns);
	}
}

/* Typography & Article Text
========================================================================== */

h1, h2, h3, h4, h5, h6 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;}

.text {
	line-height: 1.5em;}

.text :first-child {
	margin-top: 0;}

.text :last-child {
	margin-bottom: 0;}

.text a {
	text-decoration: underline;}

.text p, .text ul, .text ol {
  	margin-bottom: 1.5rem;}

.text ul, .text ol {
  	margin-left: 1rem;}

.text ul p, .text ol p {
  	margin-bottom: 0;}

.text ul > li {
	list-style: disc;}

.text ol > li {
  	list-style: decimal;}

.text ul ol, .text ul ul, .text ol ul, .text ol ol {
  	margin-bottom: 0;}

.text h1, .h1, .intro {
	font-size: 2rem;
	line-height: 1.25em;
	margin-bottom: 3rem;}

.text h2, .h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.25rem;}

.text h3, .h3 {
  	font-weight: 600;}

.text .codeblock {
  	display: grid;}

.text code {
	background: var(--color-light);
	color: var(--color-black);
	display: inline-block;
	font-family: var(--font-family-mono);
	font-size: 1em;
	padding: 0 .5rem;}

.text pre {
	margin: 3rem 0;
	background: var(--color-black);
	color: var(--color-white);
	padding: 1.5rem;
	overflow-x: scroll;
	overflow-y: hidden;
	line-height: 1.5rem;
}

.text pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.text hr {
	margin: 6rem 0;
}

.text dt {
	font-weight: 600;
}

.text blockquote {
	font-size: 1.25rem;
	line-height: 1.325em;
	border-left: 2px solid var(--color-black);
	padding-left: 1rem;
	margin: 3rem 0;
	max-width: 25rem;
}

.text blockquote footer {
	font-size: .875rem;
	font-style: italic;
}

.text figure {
	margin: 3rem 0;
}

.text figcaption {
	padding-top: .75rem;
	color: var(--color-text-grey);
}

.text figure ul {
	line-height: 0;
	display: grid;
	gap: 1.5rem;
	margin: 0;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.text figure ul li {
	list-style: none;
}

.text table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.95rem;
	line-height: 1.5;
	background: #fff;
	border: 1px solid #e6e2dc;
}

.text table thead {
	background: #f7f4ef;
}

.text table th, .text table td {
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e6e2dc;
}

.text table th {
	font-weight: 600;
	color: #1f1f1f;
}

.text table td {
	color: #333;
}

.text table tbody tr:nth-child(even) {
	background: #faf8f5;
}

.text table tbody tr:last-child td {
	border-bottom: 0;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
	max-width: 40rem;
}

.intro *:not(:last-child) {
	margin-bottom: 1em;
}

.cta {
	background: var(--color-black);
	color: var(--color-white);
	display: inline-flex;
	justify-content: center;
	padding: .75rem 1.5rem;
	border: 4px solid var(--color-white);
	outline: 2px solid var(--color-black);
}

.box {
	background: var(--color-light);
	padding: 1.5rem;
	border: 4px solid var(--color-white);
	outline: 2px solid var(--color-light);
}

/* Media
========================================================================== */

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

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

.footer {
  padding: 9rem 0 0;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

/* Pagination
========================================================================== */

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.article-excerpt {
  line-height: 1.5em;
}
.article-excerpt header {
  margin-bottom: 1.5rem;
}
.article-excerpt figure {
  margin-bottom: .5rem;
}
.article-excerpt-title {
  font-weight: 600;
}
.article-excerpt-date {
  color: var(--color-text-grey);
}

.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}
.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}
.home-grid li:first-child {
  --cols: 2;
  --rows: 2;
}
.home-grid li:nth-child(5) {
  --cols: 2;
}
.home-grid li:nth-child(6) {
  --rows: 2;
}
.home-grid li:nth-child(7) {
  --cols: 2;
}
.home-grid a {
  display: block;
  height: 10rem;
}
.home-grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}
.home-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: #fff;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  text-align: center;
  background: rgba(0,0,0, .5);
}

@media screen and (min-width: 45em) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }
  .home-grid a {
    padding-bottom: 52.65%;
  }
}

/* Page - Article
========================================================================== */

.article {
  max-width: 35rem;
  margin: 0 auto;
}
.article-header {
  padding-top: 3rem;
  margin-bottom: 3rem;
}
.article-footer {
  padding: 6rem 0;
}
.article-date {
  color: var(--color-text-grey);
}
.article-tags {
  display: flex;
  margin-bottom: 1.5rem;
}
.article-tags li {
  margin-right: .5rem;
}
.article-tags a {
  padding: .5rem 1rem;
  display: block;
  background: var(--color-light);
}
.article-tags a:hover {
  background: var(--color-black);
  color: var(--color-white);
}
