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

/* Homepage media and embed blocks */
.site-block-media {
	margin: 0;
}

.site-block-media-image,
.site-block-media-video {
	display: block;
	width: 100%;
	height: auto;
}

.site-block-embed {
	margin: 0;
}

.site-embed-inner {
	max-width: 100%;
}

.site-embed-ratio {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.site-embed-ratio-16-9 {
	aspect-ratio: 16 / 9;
}

.site-embed-ratio-4-3 {
	aspect-ratio: 4 / 3;
}

.site-embed-ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.site-embed-ratio iframe,
.site-embed-inner.site-embed-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.site-embed-inner:not(.site-embed-ratio) iframe {
	max-width: 100%;
}

html { color-scheme: light dark; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; }

.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; }
.porto-list-none { list-style: none; padding-left: 0; margin: 0; }
.porto-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.porto-collection-grid + .section-link { margin-top: 1.75rem; }
@media (max-width: 900px) {
  .porto-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .porto-collection-grid { grid-template-columns: minmax(0, 1fr); }
}
.porto-collection-card { margin: 0; }
.porto-collection-card-link,
.porto-collection-card-inner { display: block; color: inherit; text-decoration: none; }
.porto-collection-card-link:hover { text-decoration: underline; }
.porto-collection-card-media { margin-bottom: 0.5em; overflow: hidden; position: relative; border-radius: var(--feature-image-radius, 0); }
.porto-collection-card-media-1-1 { aspect-ratio: 1 / 1; }
.porto-collection-card-media-16-9 { aspect-ratio: 16 / 9; }
.porto-collection-card-media-4-3 { aspect-ratio: 4 / 3; }
.porto-collection-card-media:not(.porto-collection-card-media-auto) img,
.porto-collection-card-media:not(.porto-collection-card-media-auto) video { display: block; width: 100%; height: 100%; object-fit: cover; }
.porto-collection-card-media-auto img,
.porto-collection-card-media-auto video { display: block; width: 100%; height: auto; }
.porto-collection-card-media:not(.porto-collection-card-media-auto) .site-embed-ratio { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.porto-collection-card-body .item-subline { margin-top: 0.15em; }
.porto-collection-card-body .award-name,
.porto-collection-card-body .award-result { opacity: 0.75; font-size: 0.925em; }
#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: 0; }
.site-blocks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.site-block {
  grid-column: span var(--block-span, 12);
  min-width: 0;
}
.site-block .site-section > h2:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .site-blocks {
    grid-template-columns: 1fr;
  }
  .site-blocks .site-block { grid-column: 1; }
}
.section-link { margin-bottom: 0; }
.porto-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-footer { margin-top: 3rem; font-size: 0.875em; }
.site-footer p { margin: 0; }
.porto-credit a { color: inherit; }
.site-block-media { margin: 0; }
.site-block-media-image, .site-block-media-video { display: block; width: 100%; height: auto; }
.site-block-embed { margin: 0; max-width: 100%; }
.site-embed-inner { max-width: 100%; overflow: hidden; }
.site-embed-ratio { position: relative; overflow: hidden; width: 100%; }
.site-embed-ratio-16-9 { aspect-ratio: 16 / 9; }
.site-embed-ratio-4-3 { aspect-ratio: 4 / 3; }
.site-embed-ratio-1-1 { aspect-ratio: 1 / 1; }
.site-embed-ratio iframe, .site-embed-inner.site-embed-ratio iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.site-embed-inner:not(.site-embed-ratio) iframe { max-width: 100%; }
