@import url('https://fonts.googleapis.com/css2?family=Federo&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
	--color-gold: #faa307;
	--color-gold-alpha: rgba(250, 163, 7, 0.69);
  --color-gold-text: #fcd183;
	--color-orange: #e85d04;
	--color-red: #d00000;
	--color-brick: #6a040f;
  --color-bricker: #4a020a;
	--color-black: #040201;

	--page-container-margin: 1rem;
	--page-container-padding: var(--page-container-margin);
	--font-size-body: 1.125rem;
	--font-size-headline: 2.5rem;
	--font-size-subheading: 1.5rem;
	--button-min-width: 12rem;
	--button-padding: 0;
}

body {
	background-color: var(--color-black);
	background: linear-gradient(0deg, var(--color-bricker) 0%, var(--color-black) 65%);
	color: var(--color-gold-text);
	font-family: 'Nunito Sans', sans-serif;
	font-optical-sizing: auto;
	font-size: var(--font-size-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.4;
}

h1,
h2,
.stolen-button,
.subtitle {
	font-family: 'Federo', sans-serif;
	font-weight: 400;
	font-style: normal;
	text-transform: uppercase;
}

h1,
h2 {
	text-shadow: 0 0.25rem 0.125rem var(--color-brick);
	margin-block-end: 1rem;
}

header {
	text-align: center;
	margin-block-end: 4rem;
}

header p {
	margin: 0;
}

header img {
	--golden-glow: drop-shadow(0 0 1rem var(--color-gold-alpha));
	-webkit-filter: var(--golden-glow);
	filter: var(--golden-glow);
	width: 75%;
	max-width: 18rem;
	margin: 2rem auto;
	display: block;
}

section {
	margin-block: 2rem;
}

h1 {
	font-size: var(--font-size-headline);
}

h1,
h3,
subtitle {
	margin: 0;
}

.subtitle {
	font-size: var(--font-size-subheading);
	letter-spacing: 0.125rem;
}

a:not(.stolen-button) {
	color: inherit;

	&:hover {
		text-decoration: none;
		text-shadow: 0 0 0.5rem var(--color-orange);
	}
}

ul {
	list-style-type: square;
	line-height: 1.6;
}

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

.page-container {
	border: 1rem solid transparent; /* invisible space */
	outline: 0.25rem solid var(--color-orange);
	outline-offset: -10px; /* first box */
	background:
		linear-gradient(var(--color-red) 0 0) top,
		linear-gradient(var(--color-brick) 0 0) left,
		linear-gradient(var(--color-red) 0 0) bottom,
		linear-gradient(var(--color-brick) 0 0) right;
	background-size:
		200% 0.25rem,
		0.25rem 200%; /* second box */
	background-origin: padding-box;
	background-repeat: no-repeat;
	margin: var(--page-container-margin);
	padding: var(--page-container-padding);
	min-width: 18rem;
	max-width: 45rem;

	/* &::after {
		content: '';
		background: url('./fire.png') top / cover no-repeat;
		position: fixed;
    left: 12.5%;
    bottom: 0;
		width: 80vw;
		min-height: 16rem;
	} */
}

.uppercase {
	text-transform: uppercase;
}

#rsvp {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.stolen-button {
	/* this button is really cool but i stole it from https://codepen.io/mr-tamagotchi/pen/yzRQba */
	letter-spacing: 6px;
	font-size: var(--font-size-subheading);
	position: relative;
	text-decoration: none;
	padding: var(--button-padding);
	box-shadow: inset 0 0 0 1px var(--color-gold);
	min-width: var(--button-min-width);
	text-align: center;
  margin-block-start: 3rem;
}

.stolen-button__label {
	display: block;
	background-color: transparent;
	color: var(--color-gold);
	padding: 1.5rem 2rem;
	transition:
		color 500ms ease,
		background-color 500ms ease;
}

.stolen-button:hover,
.stolen-button:hover * {
	cursor: pointer;
}

.stolen-button:hover .stolen-button__label,
.stolen-button:focus .stolen-button__label {
	color: var(--color-black);
	background-color: var(--color-gold);
}

.stolen-button__ornament {
	position: absolute;
}
.stolen-button__ornament--vertical {
	top: -0.5rem;
	bottom: -0.5rem;
	left: 0;
	right: 0;
}
.stolen-button__ornament--horizontal {
	left: -0.5rem;
	right: -0.5rem;
	top: 0;
	bottom: 0;
}
.stolen-button__ornament-top-bottom,
.stolen-button__ornament-left-right {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
.stolen-button__ornament-top-bottom:before,
.stolen-button__ornament-top-bottom:after,
.stolen-button__ornament-left-right:before,
.stolen-button__ornament-left-right:after {
	content: '';
	position: absolute;
	background-color: var(--color-gold);
	transition: transform 400ms cubic-bezier(0.54, 0.06, 0.39, 0.96);
}

.stolen-button__ornament-top-bottom:before,
.stolen-button__ornament-top-bottom:after {
	height: 1px;
	left: 0;
	right: 0;
}

.stolen-button__ornament-top-bottom:before {
	top: 0;
}

.stolen-button__ornament-top-bottom:after {
	bottom: 0;
}

.stolen-button__ornament-left-right:before,
.stolen-button__ornament-left-right:after {
	width: 1px;
	top: 0;
	bottom: 0;
}

.stolen-button__ornament-left-right:before {
	left: 0;
}

.stolen-button__ornament-left-right:after {
	right: 0;
}

.stolen-button:hover .stolen-button__ornament-left-right:before,
.stolen-button:hover .stolen-button__ornament-left-right:after,
.stolen-button:focus .stolen-button__ornament-left-right:before,
.stolen-button:focus .stolen-button__ornament-left-right:after {
	transform: scale(1, 0);
}

.stolen-button:hover .stolen-button__ornament-top-bottom:before,
.stolen-button:hover .stolen-button__ornament-top-bottom:after,
.stolen-button:focus .stolen-button__ornament-top-bottom:before,
.stolen-button:focus .stolen-button__ornament-top-bottom:after {
	transform: scale(0, 1);
}

hr {
	padding: 0;
	height: 0.125rem;
	background-image: linear-gradient(
		to right,
		transparent 0,
		var(--color-orange) 20%,
		var(--color-gold) 60%,
		var(--color-orange) 80%,
		transparent 100%
	);
	text-align: center;
	line-height: 0.125;
	border: 0;
	margin: 4rem auto;
	overflow: visible;
	width: 50%;
}

.deco-hr {
	width: 100%;

	&:after {
		content: '\2662';
		display: inline;
		padding: 0.75rem;
		background: var(--color-black);
		color: var(--color-gold);
		font-size: 1.75rem;
	}
}

:root {
	@media (min-width: 28rem) {
		--page-container-margin: 2rem;
		--button-min-width: 18rem;
		--button-padding: 0.25rem;
	}

	@media (min-width: 48rem) {
		--font-size-body: 1.25rem;
		--font-size-subheading: 2.5rem;
		--font-size-headline: 4rem;
		--button-min-width: 22rem;
		--button-padding: 0.5rem;
	}

	@media (min-width: 55rem) {
		--page-container-margin: 2rem auto;
		--page-container-padding: 2rem;
	}

	@media (min-width: 64rem) {
		--page-container-margin: 4rem auto;
		--page-container-padding: 4rem;
	}
}
