/* 
 * Sam Vickars Portfolio
 * Inspired by perfectmotherfuckingwebsite.com
 * System fonts only, minimal CSS, maximum readability
 */

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
		sans-serif;
	line-height: 1.6;
	color: #000;
	background-color: #fff;
	padding: 20px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	body {
		color: #fff;
		background-color: #000;
	}

	a {
		color: #66b3ff;
	}

	.muted {
		color: #999;
	}
}

/* Container for content */
.container {
	max-width: 700px;
	margin: 96px auto 0 auto;
}

/* Typography */
h1 {
	font-size: 3em;
	line-height: 1.2;
	font-weight: bold;
	margin-bottom: 0.25em;
}

h2 {
	font-size: 1.2em;
	line-height: 1.2;
	font-weight: medium;
	margin-top: 1em;
	margin-bottom: 0.5em;
}

h3 {
	font-size: 1em;
	line-height: 1.2;
	font-weight: normal;
	margin-top: 0.5em;
	margin-bottom: 0.1em;
}

p {
	margin-bottom: 1em;
}

/* Links */
a {
	color: #000;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

@media (prefers-color-scheme: dark) {
	a {
		color: #66b3ff;
	}
}

/* Muted text for secondary information */
.muted {
	color: #666;
}

@media (prefers-color-scheme: dark) {
	.muted {
		color: #999;
	}
}

/* Lists */
ul,
ol {
	margin-bottom: 0.5em;
	padding-left: 1.5em;
}

/* Project metadata block */
.metadata {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

/* Project description */
#description {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

#description p {
	margin-bottom: 1em;
}

#description p:last-child {
	margin-bottom: 0;
}

.metadata-item {
	margin-bottom: 0.5em;
}

.metadata-label {
	display: inline;
}

.metadata-value {
	display: inline;
	font-weight: bold;
}

/* Project images */
.project-images {
	margin-top: 2em;
}

.project-image {
	width: 100%;
	height: auto;
	margin-bottom: 1.5em;
	display: block;
}

.project-image:last-child {
	margin-bottom: 0;
}

/* Project video embed */
.project-video {
	width: 100%;
	margin-bottom: 1.5em;
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.project-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Award details */
.award-item {
	margin-bottom: 0.5em;
}

.award-result {
	font-style: italic;
	display: block;
	padding-left: 0.5em;
}

/* Section links */
.section-link {
	margin-top: 0.1em;
	margin-bottom: 2em;
	display: block;
}

/* Header with muted prefix */
.header-muted {
	color: #666;
}

@media (prefers-color-scheme: dark) {
	.header-muted {
		color: #999;
	}
}

/* Unstyled link for header */
.header-muted a {
	color: #666;
	text-decoration: none;
}

.header-muted a:hover {
	text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
	.header-muted a {
		color: #999;
	}
}
