@font-face {
    font-family: 'Departure Mono';
    src: url('/fonts/DepartureMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
	--font-family: "Departure Mono", monospace;
	--site-background-color: #e5e6e8;
	--photo-border-color: white;
	--shadow-color: #d9dadc;
	--text-color: #666666;
	--emphasis-color: #000000;
	--focus-color: rgb(182, 148, 0);
	--photo-border-width: clamp(1rem, 0.6667rem + 1.6667vw, 2rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

body, 
h1, 
h2, 
h3, 
h4, 
p,
figure, 
blockquote, 
dl, 
dd,
ul,
ol {
	margin: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
}

body {
	min-height: 100vh;
	line-height: 1.5;
}

h1, 
h2, 
h3, 
h4,
button, 
input, 
label {
	line-height: 1.1;
}

img,
picture {
	max-width: 100%;
	display: block;
	height: auto;
}

input, 
button,
textarea, 
select {
	font: inherit;
}

textarea:not([rows]) {
	min-height: 10em;
}

:target {
	scroll-margin-block: 5ex;
}

html {
	font-size: 125%;
	line-height: 1.5;
	font-family: var(--font-family);
	text-rendering: optimizeLegibility;
}

body {
	background-color: var(--site-background-color);
	color: var(--text-color);
	min-height: 100vh;
	padding: var(--photo-border-width) 0;
}

strong,
em,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--emphasis-color);
	font-style: normal;
	font-weight: 400;
}

hr {
	height: 0.25rem;
	border: none;
	background-color: var(--shadow-color);
}

::selection,
::-moz-selection {
    background-color: black;
    color: white;
}

* {
    scrollbar-color: black var(--site-background-color);
    scrollbar-width: auto;
}

:focus-visible {
	outline: 3px solid var(--focus-color);
}

.container {
	padding: 4rem;
	max-width: 960px;
	margin-inline: auto;
}

.stack > * + * {
	margin-block-start: 2em;
}

.photo-thumbnail {
	margin-inline: auto;
	border: var(--photo-border-width) solid var(--photo-border-color);
	cursor: pointer;
	padding: 0;
	background-color: black;
	display: block;
	box-shadow: 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.05);

	& > img {
		transition: opacity 0.33s ease-out;
	}

	&:hover {
		& > img {
			opacity: 0.7;
		}
	}
}

.photo-page-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-gap: var(--photo-border-width);
	margin-inline: var(--photo-border-width);
	padding: var(--photo-border-width);
	background-color: var(--photo-border-color);
	height: calc(100% - (var(--photo-border-width) * 2 ));
	box-shadow: 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.05);

	aside > * + * {
		margin-block-start: 1.5em;
	}

	@media only screen and (max-width: 1080px) {
		grid-template-columns: 100%;
	}
}