/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Screen Reader Text
# Base
	- Typography
	- Elements
	- Links
# Components
	- Header
	- Intro
	- Labelled Sections
	- Gallery
	- Hero & Quote
	- Table
	- Video
	- Contents
	- Notebook
	- Credits & Contact
	- Next Chapter
	- Footer
# Theme
	- Monospace Details
	- Credits Spec Sheet
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Screen Reader Text
--------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #1b4da2;
	clip-path: none;
	color: #f2f1ed;
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	letter-spacing: 0.04em;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	text-transform: uppercase;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: #1b4da2;
	background-color: #f2f1ed;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 700;
}

h1 {
	max-width: 14em;
	font-size: 2.75rem;
	line-height: 1;
	letter-spacing: -0.035em;
}

h3 {
	margin: 2rem 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

p {
	max-width: 34em;
	margin: 0 0 1.5em;
}

.label,
.kicker,
figcaption {
	font-size: 0.75rem;
	line-height: 1.5;
	text-transform: uppercase;
}

.label,
.kicker {
	margin: 0 0 1.5rem;
}

@media (min-width: 50em) {

	h1 {
		font-size: 4rem;
	}

	.label {
		margin: 0;
	}

}

@media (min-width: 68em) {

	h1 {
		font-size: 5rem;
	}

}

/* Elements
--------------------------------------------- */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {

	html {
		scroll-behavior: auto;
	}

}

figure {
	margin: 0;
}

img,
video {
	display: block;
	width: 100%;
}

figcaption {
	margin-top: 0.75rem;
}

/* Links
--------------------------------------------- */
a,
a:visited {
	color: #1b4da2;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

a:focus,
button:focus {
	outline: 2px dotted #1b4da2;
	outline-offset: 3px;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */
.site-header {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem;
	border-bottom: 1px solid rgba(27, 77, 162, 0.35);
}

.site-label,
#main-nav-button {
	position: relative;
	z-index: 20;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-label a {
	text-decoration: none;
}

.site-label a:hover,
.site-label a:focus {
	text-decoration: underline;
}

#main-nav-button {
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	cursor: pointer;
}

#main-nav-list {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	margin: 0;
	padding: 5rem 1.25rem 2rem;
	list-style: none;
	background-color: #f2f1ed;
	overflow-y: auto;
}

#main-nav-list.toggled {
	display: block;
}

#main-nav-list a {
	display: block;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(27, 77, 162, 0.35);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-decoration: none;
}

#main-nav-list a:hover,
#main-nav-list a:focus {
	text-decoration: underline;
}

@media (min-width: 50em) {

	.site-header {
		padding: 1.25rem;
	}

	#main-nav-button {
		display: none;
	}

	#main-nav-list {
		display: flex;
		gap: 2rem;
		position: static;
		padding: 0;
		background: none;
	}

	#main-nav-list a {
		padding: 0;
		border: 0;
		font-size: 0.75rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

}

@media (min-width: 68em) {

	.site-header {
		padding: 1.25rem;
	}

}

/* Intro
--------------------------------------------- */
.intro {
	padding: 4rem 1.25rem 2.5rem;
}

@media (min-width: 50em) {

	.intro {
		padding: 6rem 1.25rem 3rem;
	}

}

@media (min-width: 68em) {

	.intro {
		padding: 7rem 1.25rem 4rem;
	}

}

/* Labelled Sections
--------------------------------------------- */
.journal,
.story,
.credits,
.contact,
.next-chapter {
	margin: 0 1.25rem;
	padding: 1.25rem 0 4rem;
	border-top: 1px solid rgba(27, 77, 162, 0.35);
}

.dropcap::first-letter {
	float: left;
	margin: 0.1em 0.12em 0 0;
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 0.8;
}

@media (min-width: 50em) {

	.journal,
	.story,
	.credits,
	.contact {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		column-gap: 1.25rem;
	}

	.journal,
	.story,
	.credits,
	.contact,
	.next-chapter {
		margin: 0 1.25rem;
		padding: 1.5rem 0 6rem;
	}

	.journal > .label,
	.story > .label,
	.credits > .label,
	.contact > .label {
		grid-column: 1 / 7;
	}

	.journal > *:not(.label),
	.story > *:not(.label),
	.credits > *:not(.label),
	.contact > *:not(.label) {
		grid-column: 7 / 13;
	}

	.journal p,
	.story-text p {
		max-width: none;
		font-size: 1.125rem;
	}

}

@media (min-width: 68em) {

	.journal,
	.story,
	.credits,
	.contact,
	.next-chapter {
		margin: 0 1.25rem;
		padding: 1.5rem 0 8rem;
	}

}

/* Gallery
--------------------------------------------- */
.gallery {
	scroll-margin-top: 1.25rem;
	overflow: clip;
	display: grid;
	gap: 1.25rem;
	margin: 0 1.25rem;
	padding: 0 0 5rem;
}

.gallery figure {
	position: sticky;
	top: 1.25rem;
	padding-bottom: 50vh;
	margin-bottom: -50vh;
	background-color: #f2f1ed;
	box-shadow: 0 0 0 1.25rem #f2f1ed, 0 -1.5rem 2rem -1rem rgba(0, 0, 0, 0.15);
}

.gallery figure:last-child {
	padding-bottom: 1.5rem;
	margin-bottom: 0;
}

.gallery img {
	aspect-ratio: 4 / 5;
	max-height: calc(100vh - 6rem);
	object-fit: cover;
}

.gallery .portrait img {
	object-position: center 30%;
}

.gallery figcaption {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.gallery figcaption span:nth-child(2) {
	font-weight: 400;
}

.gallery figcaption span:last-child {
	white-space: nowrap;
}

@media (min-width: 50em) {

	.gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
		margin: 0 1.25rem;
		padding: 0 0 6rem;
	}

	.gallery .wide {
		grid-column: 1 / -1;
	}

	.gallery .wide img {
		aspect-ratio: 3 / 2;
	}

}

@media (min-width: 68em) {

	.gallery {
		padding: 0 0 8rem;
	}

}

/* Hero & Quote
--------------------------------------------- */
.hero {
	margin: 0 1.25rem 4rem;
}

.quote {
	margin: 0 1.25rem;
	padding: 1.25rem 0 4rem;
	border-top: 1px solid rgba(27, 77, 162, 0.35);
}

.quote-frame {
	position: relative;
}

.quote-frame blockquote {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	margin: 0;
	padding: 0.25rem 0.75rem;
	background-color: #ffffff;
	color: #1b4da2;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
}

.quote-frame blockquote p {
	margin: 0;
	max-width: none;
}

@media (min-width: 50em) {

	.hero {
		margin: 0 1.25rem 6rem;
	}

	.hero img {
		height: calc(100vh - 23rem);
		min-height: 18rem;
		object-fit: cover;
	}

	.quote {
		margin: 0 1.25rem;
		padding: 1.5rem 0 6rem;
	}

	.quote-frame blockquote {
		right: 1.5rem;
		bottom: 1.5rem;
		font-size: 1.75rem;
	}

}

@media (min-width: 68em) {

	.hero {
		margin: 0 1.25rem 8rem;
	}

	.hero img {
		height: calc(100vh - 26rem);
	}

	.quote {
		margin: 0 1.25rem;
		padding: 1.5rem 0 8rem;
	}

}

/* Table
--------------------------------------------- */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

caption {
	padding-bottom: 1rem;
	text-align: left;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

th,
td {
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: 1px solid rgba(27, 77, 162, 0.35);
	text-align: left;
	vertical-align: top;
}

thead th {
	border-top: 1px solid rgba(27, 77, 162, 0.35);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

td:first-child {
	font-weight: 700;
}

@media (min-width: 50em) {

	table {
		font-size: 1rem;
	}

}

/* Video
--------------------------------------------- */
video {
	background-color: #000000;
}

/* Contents
--------------------------------------------- */
.contents {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.contents a {
	display: flex;
	gap: 1.5rem;
	padding: 0.6rem 0;
	border-bottom: 1px dashed rgba(27, 77, 162, 0.35);
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.contents li:first-child a {
	border-top: 1px dashed rgba(27, 77, 162, 0.35);
}

.contents span {
	width: 2rem;
}

.contents a:hover,
.contents a:focus,
.contents a[aria-current="page"] {
	text-decoration: underline;
}

/* Notebook
--------------------------------------------- */
.notebook {
	display: grid;
	gap: 2.5rem;
	margin: 0 1.25rem;
	padding: 0 0 5rem;
}

.note {
	position: relative;
	z-index: 2;
	justify-self: start;
	max-width: 17rem;
	margin: -1.25rem 0 0 1rem;
	padding: 1rem 1.25rem;
	background-color: #ffffff;
	color: #1b4da2;
	box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
	font-family: 'Caveat', cursive;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	transform: rotate(-2deg);
}

.note::before {
	content: '';
	position: absolute;
	top: -0.6rem;
	left: 50%;
	width: 4rem;
	height: 1.2rem;
	background-color: rgba(27, 77, 162, 0.2);
	transform: translateX(-50%) rotate(3deg);
}

.note-2,
.note-4 {
	justify-self: end;
	margin: -1.25rem 1rem 0 0;
	transform: rotate(2deg);
}

.note-card {
	position: relative;
	padding: 1.25rem 1.25rem 2rem;
	background-color: #ffffff;
	color: #1b4da2;
}

.note-card::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -0.5rem;
	left: 0;
	height: 0.5rem;
	background: linear-gradient(-45deg, transparent 0.35rem, #ffffff 0) 0 0 / 0.7rem 0.5rem repeat-x,
		linear-gradient(45deg, transparent 0.35rem, #ffffff 0) 0 0 / 0.7rem 0.5rem repeat-x;
}

.note-card caption {
	font-family: 'Caveat', cursive;
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.note-card th,
.note-card td {
	border-color: rgba(27, 77, 162, 0.35);
}

.nb-photo-3 img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

@media (min-width: 50em) {

	.notebook {
		grid-template-columns: repeat(12, 1fr);
		gap: 0 1.25rem;
		margin: 0 1.25rem;
		padding: 2rem 0 8rem;
	}

	.nb-item {
		margin-bottom: 8rem;
	}

	.note,
	.note-2,
	.note-4 {
		margin: 0;
	}

	.nb-photo-1 {
		grid-column: 1 / 8;
		grid-row: 1;
	}

	.note-1 {
		grid-column: 7 / 11;
		grid-row: 1;
		align-self: end;
		margin-bottom: 6rem;
		transform: rotate(-4deg);
	}

	.nb-table {
		grid-column: 1 / 13;
		grid-row: 2;
		padding: 2rem 2.5rem 3rem;
	}

	.note-2 {
		grid-column: 9 / 12;
		grid-row: 2;
		align-self: start;
		justify-self: end;
		margin-top: -1.5rem;
		transform: rotate(3deg);
	}

	.nb-video {
		grid-column: 1 / 9;
		grid-row: 3;
	}

	.note-3 {
		grid-column: 8 / 12;
		grid-row: 3;
		align-self: start;
		margin-top: 4rem;
		transform: rotate(-3deg);
	}

	.nb-photo-2 {
		grid-column: 5 / 13;
		grid-row: 4;
	}

	.note-4 {
		grid-column: 2 / 6;
		grid-row: 4;
		align-self: end;
		justify-self: start;
		margin-bottom: 6rem;
		transform: rotate(2deg);
	}

	.nb-photo-3 {
		grid-column: 2 / 6;
		grid-row: 5;
	}

	.note-5 {
		grid-column: 6 / 10;
		grid-row: 5;
		align-self: center;
		transform: rotate(-2deg);
	}

}

@media (min-width: 68em) {

	.notebook {
		margin: 0 1.25rem;
	}

}

/* Credits & Contact
--------------------------------------------- */
.credits ul {
	margin: 0;
	padding-left: 1.25rem;
}

.credits li {
	max-width: 34em;
	margin-bottom: 0.5rem;
}

form {
	display: flex;
	flex-direction: column;
	max-width: 32rem;
}

label {
	margin: 1.5rem 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

input,
select,
textarea {
	padding: 0.75rem;
	border: 1px solid #1b4da2;
	border-radius: 0;
	background-color: transparent;
	color: #1b4da2;
	font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid #1b4da2;
	outline-offset: 2px;
}

form button {
	align-self: flex-start;
	margin-top: 2rem;
	padding: 0.875rem 1.75rem;
	border: 1px solid #1b4da2;
	background-color: #1b4da2;
	color: #f2f1ed;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

form button:hover,
form button:focus {
	background-color: #f2f1ed;
	color: #1b4da2;
}

.closing-note {
	max-width: none;
	margin: 0 1.25rem;
	padding: 4rem 0 6rem;
	border-top: 1px solid rgba(27, 77, 162, 0.35);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

@media (min-width: 50em) {

	.closing-note {
		margin: 0 1.25rem;
		padding: 6rem 0 8rem;
		font-size: 2rem;
	}

}

@media (min-width: 68em) {

	.closing-note {
		margin: 0 1.25rem;
	}

}

/* Next Chapter
--------------------------------------------- */
.next-chapter a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.next-chapter a:hover,
.next-chapter a:focus {
	text-decoration: underline;
}

@media (min-width: 50em) {

	.next-chapter .label {
		margin-bottom: 1.5rem;
	}

	.next-chapter a {
		font-size: 4rem;
	}

}

/* Footer
--------------------------------------------- */
.site-footer {
	margin: 0 1.25rem;
	padding: 1.25rem 0 0;
	border-top: 1px solid rgba(27, 77, 162, 0.35);
	overflow: hidden;
}

.site-footer p {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-footer .wordmark {
	max-width: none;
	margin: 3rem 0 0;
	font-size: 27vw;
	font-weight: 700;
	line-height: 0.8;
	letter-spacing: -0.05em;
	text-transform: none;
}

@media (min-width: 50em) {

	.site-footer {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		margin: 0 1.25rem;
		padding: 1.5rem 0 0;
	}

	.site-footer .wordmark {
		width: 100%;
		margin-top: 4rem;
	}

}

@media (min-width: 68em) {

	.site-footer {
		margin: 0 1.25rem;
	}

}

/*--------------------------------------------------------------
# Theme
--------------------------------------------------------------*/

/* Monospace Details
--------------------------------------------- */
.label,
.kicker,
figcaption,
caption,
th,
td,
label,
h3,
.site-label,
#main-nav-button,
.site-footer p,
.credits p,
.credits li,
.contact p,
form button {
	font-family: 'IBM Plex Mono', 'Courier New', monospace;
	font-weight: 500;
	letter-spacing: 0.08em;
}

td,
.credits p,
.credits li,
.contact p {
	font-weight: 400;
	font-size: 0.8125rem;
	text-transform: uppercase;
}

.site-footer .wordmark {
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 700;
}

option {
	color: #111111;
}

@media (min-width: 50em) {

	#main-nav-list a {
		font-family: 'IBM Plex Mono', 'Courier New', monospace;
		font-weight: 500;
		letter-spacing: 0.08em;
	}

}

/* Credits Spec Sheet
--------------------------------------------- */
.credits ul {
	padding: 0;
	list-style: none;
}

.credits li {
	margin: 0;
	padding: 0.6rem 0;
	border-bottom: 1px dashed rgba(27, 77, 162, 0.35);
}

.credits li:first-child {
	border-top: 1px dashed rgba(27, 77, 162, 0.35);
}

@media (min-width: 50em) {

	.credits > *:not(.label),
	.contact > *:not(.label) {
		grid-column: 9 / 13;
	}

}
