/* global {{{ */
:root {
	--parchment: #f4f0ec;
	--silver: #c0c0c0;
	--charcoal: #555555;
	--graphite: #343434;
	--pacific-blue: #3aa8c1;
	--bg-primary: var(--parchment);
	--bg-secondary: var(--silver);
	--bg: var(--bg-primary);
	--fg-primary: var(--graphite);
	--fg-secondary: var(--charcoal);
	--fg: var(--fg-primary);
	--blue: var(--pacific-blue);
	--spacing: 1rem;
	--grid: 20rem;
	--width: 1200px;
	--gutter: calc((100vw - var(--width))/2 + var(--spacing));
}

* {
	box-sizing: border-box;
}

html {
	overscroll-behavior: none;
	cursor: default;
	font-size: 16px;
}

.sans {
	font-family: "Montserrat", sans-serif;
}

.serif {
	font-family: "Cormorant Garamond", serif;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--bg);
	color: var(--fg);
	padding: 0;
	margin: 0;
	font-variation-settings: "wdth" 100;
	font-optical-sizing: auto;
	font-style: normal;
}

/* }}} */
/* header {{{ */

#header {
	width: 100%;
	font-weight: 600;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.1);
	animation: nav-shadow-shift linear;
	animation-timeline: scroll();
	animation-range: 0 60vh;
}

#nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--width);
	padding: var(--spacing);
	flex-direction: row;
	gap: var(--spacing);
	margin: 0 auto;
}

#header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg);
	opacity: 1;
	z-index: -1;
}

.index #header {
	animation: nav-color-shift linear;
	animation-timeline: scroll();
	animation-range: 0 60vh;
}

.index #header::before {
	opacity: 1;
	animation: nav-bg-shift linear;
	animation-timeline: scroll();
	animation-range: 0 90vh;
}

.index #header::before:hover {
	opacity: 1;
	transition: opacity 0.3s ease;
}

#menu-toggle {
	display: none;
}

#basket-toggle {
	display: none;
}

.button {
	cursor: pointer;
}

.button svg {
	vertical-align: middle;
}

@keyframes nav-bg-shift {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes nav-color-shift {
	0% {
		color: var(--bg);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
	100% {
		color: var(--fg);
		box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.1);
	}
}

@keyframes nav-shadow-shift {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
	100% {
		box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.1);
	}
}

#links {
	display: flex;
	flex-direction: row;
	gap: var(--spacing);
}

#nav a {
	text-decoration: none;
	color: inherit;
}

#nav a:hover {
	text-decoration: underline;
}

/* }}} */
/* layout {{{ */
#main {
	display: flex;
	flex-direction: column;
	width: 100%;
	flex-shrink: 1;
	min-height: 100vh;
}

#main > :nth-child(1):not(.hero) {
	margin-top: calc(var(--spacing) * 6);
}

.content {
	width: var(--width);
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--spacing);
}

br {
	display: block;
	width: 100%;
	height: calc(var(--spacing));
}

.mt1 {
	margin-top: var(--spacing);
}

.mt2 {
	margin-top: calc(var(--spacing) * 2);
}

.mt3 {
	margin-top: calc(var(--spacing) * 3);
}

.mb1 {
	margin-bottom: var(--spacing);
}

.mb2 {
	margin-bottom: calc(var(--spacing) * 2);
}

.mb3 {
	margin-bottom: calc(var(--spacing) * 3);
}

.ml1 {
	margin-left: var(--spacing);
}

.mr1 {
	margin-right: var(--spacing);
}

.mx1 {
	margin-left: var(--spacing);
	margin-right: var(--spacing);
}

.my1 {
	margin-top: var(--spacing);
	margin-bottom: var(--spacing);
}

.m1 {
	margin: var(--spacing);
}

.col {
	display: flex;
	flex-direction: column;
}

.gap {
	gap: var(--spacing);
}

.left {
	align-items: flex-start;
	text-align: left;
}

.right {
	align-items: flex-end;
	text-align: right;
}

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

.row {
	display: flex;
	flex-direction: row;
}

.hfull {
	height: 100%;
}

.wfull {
	width: 100%;
}

.equal > * {
	flex: 1;
}

.center {
	justify-content: center;
	align-items: center;
}

.between {
	justify-content: space-between;
}

.start {
	justify-content: flex-start;
}

.even {
	justify-content: space-evenly;
}

.end {
	justify-content: flex-end;
}

.gap {
	gap: var(--spacing);
}

.padd {
	padding: var(--spacing);
}

/* }}} */
/* footer {{{ */
#footer {
	width: 100vw;
	background-color: var(--fg);
	color: var(--bg);
}

/* }}} */
/* typography {{{ */
h1, h2, h3, p {
	margin: 0;
}

.xxxl {
	font-size: 4rem;
}

.xxl {
	font-size: 3rem;
}

h1, .xl {
	font-size: 2rem;
}

h2, .lg {
	font-size: 1.5rem;
}

h3, .md, p {
	font-size: 1.25rem;
}

p {
	font-family: "Cormorant Garamond", serif;
}

.sm {
	font-size: 1rem;
}

.xs {
	font-size: 0.875rem;
}

.bold {
	font-weight: 600;
}

.light {
	font-weight: 300;
}

a {
	color: inherit;
}


/* }}} */
/* hero {{{ */
.hero {
	display: block;
	width: 100vw;
	height: calc(100vh - var(--spacing) * 2);
	position: relative;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%);
	pointer-events: none;
}

.hero img {
	width: 100vw;
	height: calc(100vh - var(--spacing) * 2);
	object-fit: cover;
}

.hero > .text {
	color: var(--bg);
	position: absolute;
	bottom: var(--spacing);
	left: max(var(--gutter), var(--spacing));
	text-align: left;
	max-width: 40ch;
}

.hero.small {
	height: 60vh;
}

.hero.small img {
	height: 60vh;
}

/* }}} */
/* stream {{{ */
.stream {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	padding: 0 var(--spacing);
	max-width: var(--width);
	margin: 0 auto;
}

.block {
	display: flex;
	gap: var(--spacing);
	width: 100%;
}

.block .text {
	max-width: 20rem;
}

.block img {
	max-width: 20rem;
	width: auto;
	height: auto;
	flex-shrink: 0;
}

.block:nth-child(even) {
	flex-direction: row;
	justify-content: flex-start;
	text-align: left;
}

.block:nth-child(odd) {
	flex-direction: row-reverse;
	justify-content: flex-start;
	text-align: right;
}

/* }}} */
/* feature {{{ */
.feature {
	display: flex;
	flex-direction: column;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	justify-content: flex-start;
	align-items: center;
	width: 40vw;
}

.feature img {
	width: 40vw;
}

.feature .text {
	width: 100%;
}

/* }}} */
/* grid {{{ */

.card {
	display: flex;
	width: min(var(--grid), 100%);
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	gap: calc(var(--spacing) / 2);
}

.card .image {
	background-color: var(--bg-secondary);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: var(--spacing);
	box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.1);

}

.card .image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card .image img:hover {
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
	transition: box-shadow 0.3s ease;
}

.card .text {
	text-align: left;
	width: 100%;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--grid), 100%), 1fr));
	gap: calc(var(--spacing) * 2);
	width: 100%;
	padding: 0 var(--spacing);
	justify-items: center;
}

.grid.scroll {
	display: flex;
	overflow-x: auto;
	flex-wrap: nowrap;
}

.card .price {
	font-weight: 600;
}

.card .tag {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.15em 0.5em;
	margin-right: 0.25em;
}

.card .tag.available {
	color: #2a7a3a;
}

.card .tag.sold {
	color: #a03030;
}

.card .tag.prints {
	color: var(--blue);
}

/* }}} */
/* filters {{{ */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--spacing) / 2);
	align-items: center;
}

.filter {
	text-decoration: none;
	padding: 0.25em 0.75em;
	border: 1px solid var(--fg-secondary);
	color: var(--fg-secondary);
	font-size: 0.85rem;
}

.filter:hover {
	background-color: var(--fg);
	color: var(--bg);
}

.filter.active {
	background-color: var(--fg);
	color: var(--bg);
}

/* }}} */
/* artwork */
/* responsive {{{ */
@media (max-width: 600px) {
	#nav {
		flex-direction: column;
		align-items: left;
	}
	#menu-toggle {
		display: block;
	}
	#buttons {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}
	#basket-link {
		display: none;
	}
	#basket-toggle {
		display: block;
	}
	#links {
		display: none;
		flex-direction: column;
		gap: var(--spacing);
	}
	#links.open {
		display: flex;
	}
	.block {
		width: min(20rem, 100%);
		flex-direction: column !important;
		text-align: left !important;
	}

	.block img {
		width: 100%;
		height: auto;
	}

}

/* }}} */
