/* 👋 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(240, 75%, 15%);
	--darkink: hsl(240, 40%, 10%);
	--brand: color(display-p3 1 0.267 0);
}

/* 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: 2rem;
	--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: "Futura Now";
	src: url("FuturaNowVar-Roman.ttf") format("truetype");
	font-style: normal;
}

body {
	background-color: var(--background);
	color: var(--text);
	margin: 0;
	padding: var(--spacing);
	font-family: "Futura Now", sans-serif;
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 1.4em;
	font-feature-settings: "dlig"1, "onum"1;
	display: grid;
	place-items: center;
	min-height: 100vh;
	box-sizing: border-box;
}

h1, p {
	text-box: trim-both cap alphabetic;
}

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

.logo svg {
	height: 4em;
	margin: 1em;
}

.logo svg .d {
	fill: var(--text);
}

h1 {
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	text-transform: uppercase;
	color: inherit;
}
	

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

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);
}

.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(--darkink);
		--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;
	}
	
}