/* 
 * 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;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.85em;
	background-color: rgb(0 0 0 / 0.06);
	padding: 0.1em 0.35em;
	border-radius: 0.25rem;
}

pre {
	margin-bottom: 1em;
	padding: 0.75rem 0.85rem;
	overflow-x: auto;
	border-radius: 0.375rem;
	background-color: rgb(0 0 0 / 0.06);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.875rem;
	line-height: 1.5;
}

pre code {
	padding: 0;
	background: transparent;
	font-size: inherit;
}

@media (prefers-color-scheme: dark) {
	code,
	pre {
		background-color: rgb(255 255 255 / 0.08);
	}
}

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

a:hover {
	text-decoration: none;
}

/* Focus states for keyboard navigation */
a:focus,
a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
	text-decoration: none;
}

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

/* Skip to main content link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px;
	text-decoration: none;
	z-index: 100;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
}

.skip-link:focus {
	top: 0;
	clip: auto;
	overflow: visible;
}

@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.75em;
}

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

.award-name {
	font-weight: bold;
	/* 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;
	}
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; }
a { color: #000000; }
@media (prefers-color-scheme: dark) {
  a { color: #ffffff; }
}

.porto-list-decimal { list-style-type: decimal; }
.porto-list-decimal-padded { list-style: none; padding-left: 0; counter-reset: porto-padded; }
.porto-list-decimal-padded > li { counter-increment: porto-padded; padding-left: 2em; position: relative; }
.porto-list-decimal-padded > li::before { content: counter(porto-padded, decimal-leading-zero); position: absolute; left: 0; }
.porto-list-lower-roman { list-style-type: lower-roman; }
.porto-list-upper-roman { list-style-type: upper-roman; }
.porto-list-disc { list-style-type: disc; }
.porto-list-dash { list-style: none; padding-left: 0; }
.porto-list-dash > li { padding-left: 1.25em; position: relative; }
.porto-list-dash > li::before { content: "–"; position: absolute; left: 0; }
#description p { margin: 0 0 0.75em; }
#description p:last-child { margin-bottom: 0; }
#description ul, #description ol { margin: 0 0 0.75em; padding-left: 1.25rem; }
#description ul { list-style: disc; }
#description ol { list-style: decimal; }
.item-subline { color: inherit; opacity: 0.75; font-size: 0.925em; }
.site-footnote { font-size: 0.875em; }
.site-footnote p { margin: 0 0 0.75em; }
.site-footnote p:last-child { margin-bottom: 0; }
.site-section { margin-bottom: 2em; }
.site-section:last-child { margin-bottom: 0; }
.section-link { margin-bottom: 0; }
.site-footer { margin-top: 3rem; font-size: 0.875em; }
.site-footer p { margin: 0; }
.porto-credit a { color: inherit; }
