/* 👋 Hullo! */

@import url('https://fonts.googleapis.com/css2?family=Mogra&display=swap');

/* Primary variable definitions – do not use in CSS declarations. */
:root {
	--paper: hsl(0, 0%, 100%);
	--ink: hsl(0, 0%, 0%);
	--redink: hsl(10, 90%, 55%);
	--grey: hsl(20, 6%, 60%);
	--gradient: linear-gradient(0deg, color(display-p3 1 0.706 0) 0%, color(display-p3 1 0 0.416) 50%, color(display-p3 0.445 0 0.832)100%);
}

/* Semantic variables – use these in CSS declarations. */
:root {
	color-scheme: light dark;
	--background: var(--paper);
	--text: var(--ink);
	--heading: var(--gradient);
	--anchor: var(--redink);
	--ornament: var(--ink);
	--button: var(--ink);
	--text-print: black;
	--anchor-print: black;
	--ornament-print: black;
	--spacing: 5vmin;
	--stroke-weight: 0.075rem;
	--radius: 0.2em;
	--timing-curve: 0.2s cubic-bezier(0.76, 0, 0.24, 1);
	font-size: 16px;
}

@font-face {
	font-family: "Work Sans";
	src: url("woff/WorkSans-Regular.woff2") format('woff2');
	font-weight: 400;
	font-style: normal;
}

/* @font-face {
	font-family: "Bagel Fat One";
	src: url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Climate+Crisis&display=swap") format("woff2");
	font-weight: 400;
	font-style: normal;
} */





body {
	/* background-color: var(--background); */
	background:
		var(--background)
		url("data:image/svg+xml;utf8,<svg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' opacity='10%' filter='url(%23noiseFilter)'/></svg>")
	;
	background-repeat: repeat;
	background-size: 400px 400px;
	color: var(--text);
	margin: 0;
	/* padding: var(--spacing); */
	font-family: "Signifier", serif;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.6em;
	font-feature-settings: "liga"1, "clig"1, "dlig"1, "onum"1;
	display: grid;
	place-items: center;
	min-height: 100vh;
	box-sizing: border-box;
}

* {
	text-box: trim-both cap alphabetic;
}

main {
	/* max-width: 68ch; */
	margin: 0;
	/* align-self: center; */
}

h1 {
	display: block;
	font-family: Mogra, sans-serif;
	font-size: 30vmin;
	font-weight: 400;
	width: 4ch;
	text-align: center;
	text-transform: uppercase; 
	word-break: break-all;
	letter-spacing: -0.05em;
	line-height: 0.8em;
	padding-top: 0.066em;
	background: #833AB4;
	background: var(--heading);
	background-clip: text;
	color: transparent;
	/* border: 1px dotted blue; */
}
	

em {
	font-weight: inherit;
	font-style: italic;
}

abbr {
	font-variant: all-small-caps;
	text-decoration: none;
}

section,
footer {
	margin-block-start: var(--spacing);
}

.about {
	text-wrap: balance;
}

/* Collapse paragraphs into an inline block of text. */
.about p {
	display: inline;	
}

/* Separate paragraphs with a circle with space on either side. */
.about p:not(:first-child)::before {
	/* To make sure space to the left of the bullet collapses when the bullet is at the start of a line, use multiple spaces instead of inline padding. Use non-break spaces to the right. */
	content: "  \002B24\0000A0\0000A0\0000A0";
	/* Avoid collapsing spaces to the left unless the line wraps. */
	white-space: pre-wrap;
	/* Colour the circle with the ornament colour. */
	color: var(--ornament);
	/* Adjust the vertical alignment of the circle without affecting line height. */
	position: relative;
	top: -0.09em;
}

.photo {
	display: block;
	position: relative;
	width: 20ch;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	clip-path: circle(50%);
	filter: brightness(95%) saturate(0);
	mix-blend-mode: multiply;
}

a {
	color: inherit;
	text-decoration: none;
}

p a {
	background-image: linear-gradient(var(--anchor), var(--anchor));
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 0% var(--stroke-weight);
	transition: background-size var(--timing-curve);
	padding-block-end: 0.25em;
}

p a:hover,
p a:focus {
	color: inherit;
	background-size: calc(100% - 0.5rem) var(--stroke-weight);
}

p a::after {
	font-family: "Work Sans", sans-serif;
	content: "\002197";
	vertical-align: super;
	color: var(--anchor);
	font-size: 0.65em;
	line-height: 0;
}

.bubu {
	text-transform: uppercase;
	font-family: "Bureau Bureau", sans-serif;
	font-style: normal;
	font-size: 80%;
	letter-spacing: 0.1em;
	text-wrap: nowrap;
	line-height: 0.1em;
}

footer address {
	font-style: normal;
}

.button {
	display: block;
	color: transparent;
	font-family: "Work Sans", sans-serif;
	font-variant: all-small-caps;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	border: var(--stroke-weight) solid var(--button);
	border-radius: var(--radius);
	padding-inline: 0.5em;
	padding-block: 0.5em;
	padding-block-start: 0.45em;
	width: fit-content;
	background: linear-gradient(to left, var(--button) 50%, var(--background) 50%), linear-gradient(to left, transparent 50%, var(--button) 50%);
	background-size: 200% 100%;
	background-position: bottom right;
	background-clip: text, border-box;
	transition: all var(--timing-curve);
}

/* a.button {
	background-image: linear-gradient(var(--anchor), var(--anchor));
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 0% 100%;
	transition: all var(--timing-curve);
} */

.button:hover,
.button:focus {
	background-position: bottom left;
}

@-moz-document url-prefix() {
	
	.button {
		padding-block: 0;
		color: var(--background);
	}

	.button:hover,
	.button:focus {
		color: var(--button);
	}
	
}

/* Media Queries */

@media only screen and (max-width: 414px) {

	:root {
		font-size: 13px;
	}

	.photo {
		width: 100%;
	}

}

@media (prefers-color-scheme: dark) {

	:root {
		--background: var(--ink);
		--text: var(--paper);
		--ornament: var(--paper);
		--button: var(--paper);
	}

	.photo {
		mix-blend-mode: screen;
	}

}

@media only print {

	:root {
		--text: var(--text-print);
		--anchor: var(--anchor-print);
		--ornament: var(--ornament-print);
		--spacing: 2rem;
	}

	body {
		background: none;
		font-size: 12pt;
		min-height: 100%;
	}

	.photo {
		filter: none;
		mix-blend-mode: normal;
	}
	
	p a::after {
		content: "";
	}
	
	.button:has(address) {
		border: 0;
		padding: 0;
		color: inherit;
		background: none;
	}
	
}