* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Inter, sans-serif;
	font-family: "tablet-gothic", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #e9d7c9;
}

header {
	background-color: var(--accent);
	padding: 2rem;
	color: black;
	border-bottom: 1px solid #000;

	.tagline {
		margin-top: 0.5rem;
		font-size: 1.2rem;
	}

	@media (min-width: 768px) {
		padding: 4rem 3rem 3rem;
	}
}

h1 {
	font-size: 5rem;
	font-weight: normal;
	font-family: "warnock-pro", serif;
	letter-spacing: 0.05em;
	line-height: 1;
}

h2 {
	font-size: 2rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	line-height: 1;
}

h3 {
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

main {
	flex: 1;
	background-color: var(--light-gray);
	padding: 2rem;

	@media (min-width: 768px) {
		padding: 3rem;
	}
}

.password-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.password-form form {
	display: flex;
	gap: 1rem;
}

.password-form form input[type="password"] {
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	height: 3rem;
	line-height: 1;
	padding: 0 1rem;
}

.password-form form button {
	border: none;
	background-color: black;
	color: white;
	letter-spacing: 0.05em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	height: 3rem;
	padding: 0 1.5rem;
	line-height: 1;
}

.password-form form button:hover {
	opacity: 0.9;
}

#error {
	color: red;
}

#portfolio-section h2 {
	margin-bottom: 1rem;
}

.portfolio-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 600px));
	grid-template-rows: auto auto auto;
	gap: 2rem;
}

.portfolio-item {
	color: inherit;
	text-decoration: none;
	display: grid;
	grid-column: span 1;
	grid-row: span 3;
	grid-template-rows:
		subgrid
		[title-start]
		[title-end description-start]
		[description-end]
		[photo-start]
		[photo-end];
	gap: 1.5rem;
}

.portfolio-item .title {
	grid-row: title-start / title-end;
	text-decoration: underline;
}

.portfolio-item .photo {
	grid-row: photo-start / photo-end;
	width: 100%;
	height: auto;
	outline: 1px solid #000;
}

.portfolio-item .description {
	grid-row: description-start / description-end;
}

#alpaca {
	display: inline-block;
	user-select: none;
}
