html {
	scroll-behavior: smooth;
}

body {
	background: #ccc;
	color: #222;
	text-align: center;
	font-size: 126%;

	font-family: "Raleway", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	box-sizing: border-box;
}


header, main, footer {
	max-width: 56rem;
	margin: 2rem auto;
	text-align: left;
}

footer {
	max-width: 100vw;
	margin: 2rem 0 0;
	font-size: 80%;
	padding: 1rem;
	background-color: #111;
	color: #ccc;
	text-align: center;
}

header nav {
	font-size: 80%;
}

img.headshot {
	width: 100%;
	border-radius: 100vw;
}

p {
	font-size: 100%;
	line-height: 1.3;
}

p.subtitle {
	font-style: italic;
	margin-top: -1em;
}

figure {
	margin: 2rem 0 0 0;
	font-size: 76%;
	font-style: italic;
    text-align: center;
}

.lead, .banner {
	display: grid;
	gap: 2rem;
}

@media (min-width: 600px) {
	.lead {
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}
	.banner {
		grid-template-columns: 1fr 2fr;
		align-items: end;
	}
	.banner nav {
		text-align: right;
	}
}

.box {
	width: 100%;
}


.lead p {
	font-size: 112%;
}

ul {
	list-style: square;
	padding-left: 2rem;
}

a,
a:visited {
	color: #666699;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Bitter", serif;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: normal;
}

h3 sup {
    font-variant: all-small-caps;
}

a.button {
	display: inline-block;
	margin: 1rem 0;
	padding: 1rem 1.5rem;
	border-radius: 1rem;
	background: #666699;
	color: #fff;
	text-decoration: none;
	box-shadow: 2px 2px 10px #000;
	animation: btnWiggle 5s infinite;
}

@keyframes btnWiggle {
	0% {
		transform: rotate(0deg);
	}

	2% {
		transform: rotate(-2deg);
	}

	3.5% {
		transform: rotate(2deg);
	}

	5% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(0deg);
	}
}


.service-detail,
.contact-detail {
	border: 1px solid #666;
	border-radius: 1rem;
	padding: 2rem;
	position: relative;
	overflow: hidden;
}

.ribbon {
	position: absolute;
	top: 2.5rem;
	right: -3.5rem;
	transform: rotate(45deg);
	background: #e63946;
	color: white;
	padding: 0.5rem 4rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.ribbon+h3 {
	margin-right: 3rem;
}

.ribbon+h3+.subtitle {
	margin-right: 1.5rem;
}

p.bubble {
	background: #666;
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	position: relative;
	margin-right: 4.5rem;
	font-weight: 400;
}

p.bubble:before {
	content: '';
	position: absolute;
	display: block;
	width: 0.5rem;
	z-index: 99;
	border-style: solid;
	border-width: 1rem 1rem 0 0;
	border-color: #666 transparent transparent transparent;
	top: 0;
	right: -1rem;
}

p.bubble:after {
	content: '';
	position: absolute;
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	z-index: 99;
	top: 0;
	right: -4.5rem;
	border-radius: 100vw;
	background-image: url("../img/IMG_20260204_162343_edit_81404491935851.jpg");
	background-color: white;
	background-size: cover;
}