/*=========================================
*            Custom properties            *
=========================================*/
/* Fonts */
:root {
	--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;
}

/* Colors */
@media (prefers-color-scheme: light) {
	:root {
		--foreground: hsl(0 0% 20%);
		--light-foreground: hsl(0 0% 30%);
		--background: hsl(0 0% 95%);
		--dark-background: hsl(0 0% 90%);
		--border: hsl(0 0% 53%);
		--overlay: hsla(0 0% 10% / 0.5);
		--action-color: hsl(261, 68%, 66%);
	}
}
@media (prefers-color-scheme: dark) {
	:root {
		--foreground: hsl(0 0% 95%);
		--light-foreground: hsl(0 0% 85%);
		--background: hsl(0 0% 10%);
		--dark-background: hsl(0 0% 15%);
		--border: hsl(0 0% 47%);
		--overlay: hsla(0 0% 90% / 0.5);
		--action-color: hsl(261, 68%, 86%);
	}
}
[data-theme="light"] {
	--foreground: hsl(0 0% 20%);
	--light-foreground: hsl(0 0% 30%);
	--background: hsl(0 0% 95%);
	--dark-background: hsl(0 0% 90%);
	--border: hsl(0 0% 53%);
	--overlay: hsla(0 0% 10% / 0.5);
	--action-color: hsl(261, 68%, 66%);
}
[data-theme="dark"] {
	--foreground: hsl(0 0% 95%);
	--light-foreground: hsl(0 0% 85%);
	--background: hsl(0 0% 10%);
	--dark-background: hsl(0 0% 15%);
	--border: hsl(0 0% 47%);
	--overlay: hsla(0 0% 90% / 0.5);
	--action-color: hsl(261, 68%, 86%);
}

:root {
	color-scheme: light dark;
	/* Justified grid */
	--justified-row-ratio: 0.2;
	--justified-gap: 0.5rem;

	/* Instagrid grid */
	--ig-img-size: 15rem;
	--ig-gap: 0.5rem;
	--ig-transform-scale: 1.05;

	/* MonoColumn grid */
	--monocolumn-spacing: 3rem;

	/* Masonry grid */
	--masonry-img-width: 15rem;

	/* Typography */
	--h1-font-size: 1.7em;
	--h2-font-size: 1.5em;
	--h3-font-size: 1.4em;
	--h4-font-size: 1.3em;
	--h5-font-size: 1.2em;
	--h5-font-size: 1.1em;

	/* Misc */
	--transition: 300ms ease-in-out;
	--animation-duration: 1.5s;
	--networkIconSize: 1.5rem;
	--footer-nav-gap: 1rem;
}

/*=========================================
*                 Animations              *
=========================================*/
@keyframes fader {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}
@keyframes fadeInUp {
	0% {
		transform: translateY(5%);
		opacity: 0;
	}
	100% {
		transform: translateY(0%);
		opacity: 1;
	}
}

/*=========================================
*                  Global                 *
=========================================*/
html,
body {
	padding: 0;
	margin: 0 auto;
}

body {
	font-family: var(--font-family);
	color: var(--foreground);
	background-color: var(--background);
	line-height: 1.6;
}

h1 {
	font-size: var(--h1-font-size);
}
h2 {
	font-size: var(--h2-font-size);
}
h3 {
	font-size: var(--h3-font-size);
}
h4 {
	font-size: var(--h4-font-size);
}
h5 {
	font-size: var(--h5-font-size);
}
h6 {
	font-size: var(--h6-font-size);
}

:is(h1, h2, h3, h4, h5, h6) {
	line-height: 1.2;
}

a[href] {
	color: var(--action-color);
	text-decoration: underline;
}
a[href]:is(:hover, :focus-visible) {
	text-decoration: none;
}

article {
	font-size: 1.25em;
	margin: 0 auto;
	padding: 1rem;
}

p {
	margin-block-start: 0;
}

:where(ol, ul) p {
	margin: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	font-size: 0.7em;
	overflow: auto;
}

table thead {
	border-bottom: 1px solid var(--border);
}

table tbody tr:nth-child(even) {
	background-color: var(--dark-background);
}

table :is(th, td) {
	padding: 0.5rem;
}

blockquote {
	position: relative;
	padding: 1rem;
	background-color: var(--dark-background);
	border-inline-start: 0.5rem solid var(--border);
	font-style: italic;
}
blockquote::before,
blockquote::after {
	position: absolute;
	width: 100%;
	left: 0;
	content: "";
	display: block;
	height: 1px;
	background-image: linear-gradient(
		90deg,
		var(--border) 5%,
		rgba(34, 34, 34, 0) 30%
	);
}
blockquote::before {
	top: 0;
}
blockquote::after {
	bottom: 0;
}
blockquote p {
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
}
dt {
	font-weight: bold;
}

hr {
	position: relative;
	border: none;
	border-top: 1px solid var(--border);
	overflow: visible;
	width: 70%;
	margin: 3em auto;
}

hr::after {
	content: "";
	position: absolute;
	color: var(--foreground);
	font-size: 1.5em;
	font-style: italic;
	line-height: 1;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

figcaption {
	text-align: center;
	font-size: 0.8em;
	font-style: italic;
	color: var(--light-foreground);
}

/*=========================================
*                Utilities                *
=========================================*/
.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip {
	overflow: hidden;
	position: absolute;
	z-index: 1;
	top: 0;
	height: 0;
	width: 100%;
	text-align: center;
	background-color: var(--background);
}
.skip:focus-within {
	height: auto;
}
.skip a {
	display: block;
	margin: 1rem;
}

a.icon-only,
a.icon-only > * {
	display: block;
}

*:focus-visible {
	border-radius: 0.5rem;
	outline-offset: 0.25rem;
	outline: 2px solid var(--action-color);
}

.centered {
	text-align: center;
}

.left-aligned {
	text-align: center;
}

/*=========================================
*              Main grid                *
=========================================*/
.main {
	display: grid;
	height: 100dvh;
	grid-template-columns: minmax(auto, 12.5rem) auto;
	grid-template-rows: 1fr;
	grid-template-areas: "Sidebar Content";
}

.sidebar {
	position: relative;
	grid-area: Sidebar;
	overflow: auto;
}
.content {
	grid-area: Content;
	overflow: auto;
}

@media (orientation: portrait), (max-width: 40em) {
	.main {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"Sidebar"
			"Content";
	}
	.content {
		padding-block-end: 3rem;
	}
}

/*=========================================
*                Sidebar                  *
=========================================*/
.sidebar {
	display: flex;
	flex-direction: column;
	padding: 1rem;
}
a.logo {
	display: block;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: bold;
	font-size: 2em;
	word-wrap: break-word;
	color: var(--foreground);
	margin-block-end: 1rem;
}
a.logo > :is(img, svg) {
	width: 100%;
	height: auto;
	max-height: 5rem;
}
a.logo svg {
	fill: var(--foreground);
}

.menu {
	display: none;
	border: 0;
	padding: 0;
	background-color: transparent;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

.menu svg {
	display: block;
	stroke: var(--foreground);
	width: 2rem;
	height: 4rem;
}

.nav {
	box-sizing: border-box;
	margin-block-end: auto;
}
.nav > ul {
	padding-block-start: 1rem;
}
.nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav .tags-list {
	padding-inline: 1rem;
	font-size: 0.8em;
}
.nav-item {
	margin-block-end: 1rem;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.125rem;
}
.nav-item a {
	display: block;
	color: inherit;
	text-decoration: none;
	border-block-end: 1px solid transparent;
	text-indent: 0;
	transition:
		color var(--transition),
		text-indent var(--transition);
}
.tags-list a {
	display: block;
	padding-block: 0.125rem;
	color: var(--light-foreground);
}
.nav-item a:is(:hover, :focus-visible) {
	color: var(--action-color);
	opacity: 1;
	text-indent: 0.5rem;
}
.nav-item a[aria-current] {
	border-block-end: 1px solid var(--border);
	color: var(--action-color);
}

.network {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	margin-block: auto 0;
	padding: 1rem 0;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
}
.network-icon {
	fill: var(--foreground);
	display: block;
	width: var(--networkIconSize);
	height: var(--networkIconSize);
	transition: fill var(--transition);
}
.network a:is(:hover, :focus-visible) .network-icon {
	fill: var(--action-color);
}

@media (orientation: portrait), (max-width: 40em) {
	.js {
		.main {
			.logo {
				margin: 0 3rem 0;
			}
			.menu {
				display: block;
			}
			.nav {
				max-height: 0;
				overflow: hidden;
				transition: max-height var(--transition);
			}
			.nav.open {
				max-height: 100dvh;
			}
			.network {
				position: fixed;
				z-index: 1;
				bottom: 0;
				left: 0;
				right: 0;
				background-color: var(--background);
			}
		}
	}
}

/*=========================================
*                Content                  *
=========================================*/
.grid {
	padding: 0;
	margin: 0;
	list-style: none;
}
.animated .grid img {
	animation-name: fader;
	animation-duration: var(--animation-duration);
	animation-direction: reverse;
}

:where(.grid:not(.monocolumn), .article) .post-title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1rem;
	opacity: 0;
	transition: opacity var(--transition);
	background-color: var(--overlay);
	color: var(--background);
	font-size: 1em;
	text-align: center;
	font-weight: bold;
}
:where(.grid:not(.monocolumn), .article)
	a:is(:hover, :focus-visible)
	.post-title {
	opacity: 1;
}

/* justified grid */
.justified {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--justified-gap);
}
.justified .post {
	position: relative;
	width: 20rem;
}
.justified .post-title {
	align-items: end;
}
@media (max-width: 28.75em) {
	.justified {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.justified .post {
		width: 100%;
	}
}

/* Instagrid grid */
.instagrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--ig-img-size), 1fr));
	grid-auto-flow: row;
	gap: var(--ig-gap);
	padding: var(--ig-gap) 0;
}
.instagrid .post {
	position: relative;
	overflow: hidden;
}
.instagrid img {
	width: fit-content;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center;
	transition: transform var(--transition);
}
.instagrid a:is(:hover, :focus-visible) img {
	transform: scale(var(--ig-transform-scale));
}

@media (orientation: portrait), (max-width: 40em) {
	.instagrid {
		padding: 0 var(--ig-gap);
	}
}

/* Monocolumn grid */
.monocolumn {
	height: auto;
	overflow: auto;
	scroll-snap-type: y mandatory;
	flex-basis: 100%;
}
.monocolumn .post {
	display: flex;
	flex-direction: column;
	scroll-snap-align: center;
	scroll-snap-stop: normal;
	padding: var(--monocolumn-spacing) 0;
}
.monocolumn .post a {
	display: block;
	margin: 0 auto;
	text-decoration: none;
	color: inherit;
}
.monocolumn .post img {
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - var(--monocolumn-spacing) * 3);
	transition: filter var(--transition);
}
.monocolumn a:is(:hover, :focus-visible) img {
	filter: grayscale(80%);
}
.monocolumn .post-title {
	text-align: center;
	margin-block-end: 0;
}
.content:has(.monocolumn) {
	height: 100dvh;
	display: flex;
	flex-direction: column;
}

@media (orientation: portrait), (max-width: 40em) {
	.content:has(.monocolumn) {
		height: auto;
		display: block;
	}
	.monocolumn {
		height: auto;
	}
	.monocolumn .post {
		padding-block-start: 0;
	}
	.monocolumn .post img {
		max-height: none;
	}
}

/* Masonry grid */
.masonry .post {
	width: var(--masonry-img-width);
	position: relative;
}

@media (orientation: portrait), (max-width: 31em) {
	.masonry .post {
		--masonry-img-width: 100%;
	}
}

/*=========================================
*                Article                  *
=========================================*/
.article-title,
.article-content {
	max-width: 65ch;
	margin: 0 auto;
	padding-inline: 1rem;
}
.article-title {
	text-align: center;
	margin-block: 1rem;
}
.article-content img {
	margin: 0 auto;
	width: auto;
}

.photo {
	margin: 0 auto;
}
.photo img {
	display: block;
	max-height: 90dvh;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 0 auto;
}
.animated .photo img {
	animation: var(--animation-duration) fadeInUp;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	font-size: 0.8em;
}
.tags a:not(:last-child)::after {
	content: "•";
	display: inline-block;
	margin-inline: 0.25rem;
	color: var(--foreground);
}
.tags-icon {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	fill: var(--light-foreground);
	margin-inline-end: 0.5rem;
}

.prints {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;

	& .prints-count {
		font-style: italic;
		font-size: 0.8em;
	}
	& .prints-link {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		background: transparent;
		border: 2px solid var(--foreground);
		padding: 0.25rem 0.5rem;
		border-radius: 0.5rem;
		color: var(--foreground);
		font-size: 0.9em;
		text-decoration: none;
		transition:
			color var(--transition),
			background-color var(--transition),
			border-color var(--transition);

		& svg {
			transition: fill var(--transition);
		}

		&:where(:hover, :focus-visible) {
			--button-color: var(--action-color);
			border-color: var(--button-color);
			background-color: var(--button-color);
			color: var(--dark-background);

			& svg {
				fill: var(--dark-background);
			}
		}
	}
}

/*=========================================
*                Footer                   *
=========================================*/
.footer-nav {
	display: flex;
	list-style: none;
	gap: var(--footer-nav-gap);
	margin: 0;
	padding: 0;
}
.footer-nav > * {
	flex: 0 0 calc(50% - var(--footer-nav-gap) / 2);
	height: 95dvh;
	overflow: hidden;
	position: relative;
}
.footer-nav-prev {
	clip-path: polygon(20% 0, 100% 0%, 100% 100%, 20% 100%, 0 50%);
	margin-block-end: auto;
}
.footer-nav-next {
	clip-path: polygon(0 0, 80% 0%, 100% 50%, 80% 100%, 0 100%);
	margin-block-start: auto;
}
.footer-nav :is(a, picture) {
	display: block;
	height: 100%;
	width: 100%;
}
.footer-nav img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
}
@media (orientation: portrait), (max-width: 40em) {
	.footer-nav > * {
		height: 70dvh;
	}
}

.network-footer {
	flex-basis: 100%;
	text-align: center;
	font-size: 0.75rem;
	opacity: 0.6;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .network-footer {
	border-top-color: rgba(255, 255, 255, 0.1);
}

.network-footer span {
	display: block;
}

.network-footer span + span {
	margin-top: 0.25rem;
}

.network-footer a {
	color: inherit;
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.network-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}
@media (orientation: portrait), (max-width: 40em) {
	.network-footer {
		font-size: 0.65rem;
		padding-top: 0.5rem;
	}

	.network-footer span {
		display: inline;
	}

	.network-footer span + span::before {
		content: " · ";
		margin: 0 0.25rem;
	}

	.network-footer span + span {
		margin-top: 0;
	}
}
/* ===== SVG Logo Animation ===== */

svg .svg-elem-1 {
	stroke-dashoffset: 595.7837px;
	stroke-dasharray: 595.7837px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
}
svg.active .svg-elem-1 {
	stroke-dashoffset: 0;
}
svg .svg-elem-2 {
	stroke-dashoffset: 187.8393px;
	stroke-dasharray: 187.8393px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.12s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s;
}
svg.active .svg-elem-2 {
	stroke-dashoffset: 0;
}
svg .svg-elem-3 {
	stroke-dashoffset: 74.2568px;
	stroke-dasharray: 74.2568px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.24s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1s;
}
svg.active .svg-elem-3 {
	stroke-dashoffset: 0;
}
svg .svg-elem-4 {
	stroke-dashoffset: 176.6831px;
	stroke-dasharray: 176.6831px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.36s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s;
}
svg.active .svg-elem-4 {
	stroke-dashoffset: 0;
}
svg .svg-elem-5 {
	stroke-dashoffset: 110.7846px;
	stroke-dasharray: 110.7846px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.48s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2s;
}
svg.active .svg-elem-5 {
	stroke-dashoffset: 0;
}
svg .svg-elem-6 {
	stroke-dashoffset: 34.2682px;
	stroke-dasharray: 34.2682px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.6s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s;
}
svg.active .svg-elem-6 {
	stroke-dashoffset: 0;
}
svg .svg-elem-7 {
	stroke-dashoffset: 31.6083px;
	stroke-dasharray: 31.6083px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.72s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.4s;
}
svg.active .svg-elem-7 {
	stroke-dashoffset: 0;
}
svg .svg-elem-8 {
	stroke-dashoffset: 5.267px;
	stroke-dasharray: 5.267px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.84s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.5s;
}
svg.active .svg-elem-8 {
	stroke-dashoffset: 0;
}
svg .svg-elem-9 {
	stroke-dashoffset: 19.4438px;
	stroke-dasharray: 19.4438px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.96s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.6s;
}
svg.active .svg-elem-9 {
	stroke-dashoffset: 0;
}
svg .svg-elem-10 {
	stroke-dashoffset: 20.6529px;
	stroke-dasharray: 20.6529px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.08s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.7s;
}
svg.active .svg-elem-10 {
	stroke-dashoffset: 0;
}
svg .svg-elem-11 {
	stroke-dashoffset: 192.5273px;
	stroke-dasharray: 192.5273px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s;
}
svg.active .svg-elem-11 {
	stroke-dashoffset: 0;
}
svg .svg-elem-12 {
	stroke-dashoffset: 56.7082px;
	stroke-dasharray: 56.7082px;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.32s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.9s;
}
svg.active .svg-elem-12 {
	stroke-dashoffset: 0;
}
svg .svg-elem-13 {
	stroke-dashoffset: 117.0074px;
	stroke-dasharray: 117.0074px;
	fill: transparent;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.44s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2s;
}
svg.active .svg-elem-13 {
	stroke-dashoffset: 0;
	fill: rgb(255, 250, 238);
}
svg .svg-elem-14 {
	stroke-dashoffset: 74px;
	stroke-dasharray: 74px;
	fill: transparent;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.56s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.1s;
}
svg.active .svg-elem-14 {
	stroke-dashoffset: 0;
	fill: rgb(229, 152, 163);
}
svg .svg-elem-15 {
	stroke-dashoffset: 35.2903px;
	stroke-dasharray: 35.2903px;
	fill: transparent;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.68s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.2s;
}
svg.active .svg-elem-15 {
	stroke-dashoffset: 0;
	fill: rgb(204, 65, 33);
}
svg .svg-elem-16 {
	stroke-dashoffset: 445.5948px;
	stroke-dasharray: 445.5948px;
	fill: transparent;
	transition:
		stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s,
		fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.3s;
}
svg.active .svg-elem-16 {
	stroke-dashoffset: 0;
	fill: rgb(35, 31, 32);
}

/* --- Original SVG Styles --- */
.st0 {
	fill: #a3aeb5;
}
.st1 {
	fill: #af9480;
}
.st2 {
	fill: #dbd2c1;
}
.st3 {
	fill: #788287;
}
.st4 {
	fill: #ead13f;
}
.st5 {
	fill: #c3cc6a;
}
.st6 {
	fill: #d1712a;
}
.st7 {
	fill: #e0a838;
}
.st8 {
	fill: #716558;
}
.st9 {
	fill: #6f9b45;
}
.st10 {
	fill: #0e608e;
}
.st11 {
	fill: #fffaee;
}
.st12 {
	fill: #3d3935;
}
.st13 {
	fill: #248ebc;
}
.st14 {
	fill: #bf63c1;
}
/* ===== Hero Section Styles ===== */

.hero-section {
	display: flex;
	flex-direction: column;
	align-items: center; /* Horizontally center the content */
	justify-content: center; /* Vertically center the content */
	min-height: 85vh; /* Make the section 85% of the viewport height */
	padding: 2rem;
	/* background-color: #f8f9fa; A light, neutral background color */
	text-align: center;
	/* Optional: add a subtle border at the bottom */
	border-bottom: 1px solid #dee2e6;
}

.hero-svg-container {
	width: 100%;
	max-width: 400px; /* Don't let the SVG get too big on large screens */
	margin-bottom: 2rem; /* Space between SVG and text */
}

.hero-content h1 {
	font-size: 3rem; /* Large, bold heading */
	font-weight: 700;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.hero-content .subheading {
	font-size: 1.25rem;
	color: #6c757d; /* Muted color for the subheading */
	max-width: 60ch; /* Limit line length for readability */
	margin: 0 auto 2rem auto; /* Center the block and add space below */
}

/* === CTA BUTTON STYLES === */

.hero-content .cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: #000;
	background: transparent;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition:
		color 0.25s ease,
		box-shadow 0.25s ease;
}

/* keep arrow base size */
.hero-content .cta-button img,
.hero-content .cta-button svg {
	width: 2rem;
	height: 2rem;
	filter: brightness(0);
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

/* hover — simulate thicker border, no layout shift */
.hero-content .cta-button:hover {
	box-shadow: 0 0 0 2px currentColor inset; /* inner “thicker” look */
	color: #111;
}

/* arrow hover effect */
.hero-content .cta-button:hover img,
.hero-content .cta-button:hover svg {
	transform: scale(1.25);
	opacity: 0.9; /* subtle fade for smoother feel */
}

/* ================================== */
/* ===== HERO Mobile Responsiveness ===== */
/* ================================== */

/* Apply these styles for screens 768px wide or smaller */
@media (max-width: 768px) {
	.hero-section {
		/* This is the most important change. We disable flexbox on mobile. */
		display: block;

		/* We still remove the min-height to prevent excessive vertical space. */
		min-height: auto;

		/* Adjust padding for a better mobile feel. */
		padding: 1.5rem 1.5rem 3rem; /* smaller top padding */
	}

	.hero-svg-container {
		/* Since flexbox is off, we center the SVG container this way.
		   The original 'margin-bottom: 2rem' is preserved here. */
		margin: 0 auto 2rem auto;
		max-width: 300px; /* Optional: make SVG a bit smaller */
	}

	.hero-content h1 {
		/* Reduce the heading size so it fits better on narrow screens */
		font-size: 2.5rem;
	}

	.hero-content .subheading {
		font-size: 1.1rem;
	}
}
/* === TAG LIST PAGE STYLES === */
/* Scoped to .tags-page-container to avoid conflicts */

.tags-page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.tags-page-container h1 {
	text-align: center;
	margin-bottom: 0.5rem;
}

.tags-page-container > p {
	text-align: center;
	color: var(--light-foreground);
	margin-bottom: 2rem;
}

/* Add space between sections */
.tags-page-container section + section {
	margin-top: 3rem;
}

/* Style the main section headings */
.tags-page-container section > h2 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 0.75rem;
}

/* --- Compact Grid Container --- */
.tag-list-page {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.6rem;
}

@media (min-width: 768px) {
	.tag-list-page {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 0.7rem;
	}
}

@media (min-width: 1200px) {
	.tag-list-page {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 0.75rem;
	}
}

/* --- Compact Tag Pills --- */
.tag-list-page a {
	display: block;
	padding: 0.5rem 0.75rem;
	text-align: center;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--foreground);
	background-color: var(--background);
	border: 1px solid var(--border);
	border-radius: 4px;
	transition: all 0.15s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tag-list-page a:hover {
	background-color: var(--action-color);
	color: var(--background);
	border-color: var(--action-color);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Style for tag counts */
.tag-count {
	font-size: 0.8em;
	opacity: 0.6;
	font-weight: 400;
	margin-left: 0.25rem;
}

/* Colors Section (circular swatches) */
.color-filter-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 1rem 0.75rem;
	justify-items: center;
}

@media (min-width: 768px) {
	.color-filter-list {
		grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
		gap: 1.1rem 0.9rem;
	}
}

@media (min-width: 1200px) {
	.color-filter-list {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 1.2rem 1rem;
	}
}

.color-item {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 0.5rem;
	padding: 0.25rem 0 0.5rem;
}

.color-swatch {
	display: inline-block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--swatch-color, #ccc);
	border: 1.5px solid var(--border);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
	text-decoration: none;
}

.color-swatch:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.color-swatch:active {
	transform: scale(0.98);
}

.color-swatch:focus-visible {
	outline: 2px solid var(--action-color);
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.color-swatch {
		width: 64px;
		height: 64px;
	}
}

@media (min-width: 1200px) {
	.color-swatch {
		width: 72px;
		height: 72px;
	}
}

.color-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--foreground);
	text-align: center;
	max-width: 10ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Mobile bottom bar (consolidated) */
:root {
	--mobile-fixed-bar-height: 72px;
}

html {
	scroll-padding-bottom: calc(
		var(--mobile-fixed-bar-height) + env(safe-area-inset-bottom, 0px)
	);
}

@media (orientation: portrait), (max-width: 40em) {
	.js .main .network {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		min-height: var(--mobile-fixed-bar-height);
		z-index: 10;
		background: var(--background);
	}

	.main {
		height: auto;
		min-height: 100dvh;
	}
	.sidebar,
	.content {
		overflow: visible !important;
	}
	.main .content {
		padding-block-end: 0 !important;
	}

	body {
		padding-bottom: calc(
			var(--mobile-fixed-bar-height) + 2rem + env(safe-area-inset-bottom, 0px)
		);
	}
}