@font-face {
	font-family: Postal;
	src: url(serif.woff2);
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	color: #263f32;
	background: #f8f3e7 url(paper.png);
	font: 16px / 1.55 system-ui;
}
header,
main {
	width: min(880px, 92%);
	margin: auto;
}
header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	border-bottom: 1px solid #c5bda6;
}
a {
	color: #214c3d;
}
.brand,
h1,
h2,
summary {
	font-family: Postal, Georgia, serif;
}
.brand {
	font-size: 1.7rem;
	text-decoration: none;
	font-weight: bold;
}
.hero {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 24px;
	align-items: center;
	padding: 24px 0;
}
.hero img {
	width: 100%;
	max-height: 210px;
	object-fit: contain;
}
.postmark {
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	font-weight: bold;
	color: #924738;
}
h1 {
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 0.98;
	margin: 0;
	overflow-wrap: anywhere;
}
h2 {
	font-size: 1.65rem;
	margin: 0 0 0.5em;
}
form,
.gift,
#share,
article,
details {
	padding: 20px;
	margin: 18px 0;
	border: 1px solid #c9bda1;
	border-radius: 8px;
	background: #fffaf0;
}
details form {
	margin: 0;
	border: 0;
	padding: 12px 0;
}
label {
	display: block;
	font-weight: 600;
	margin-bottom: 14px;
}
input,
textarea,
select {
	width: 100%;
	padding: 10px;
	font: inherit;
	border: 1px solid #aa9d84;
	border-radius: 5px;
	background: white;
	color: #263f32;
}
button {
	font: 600 0.94rem / 1.3 system-ui;
	cursor: pointer;
	padding: 12px 15px;
	border: 1px solid #214c3d;
	background: #214c3d;
	color: white;
	border-radius: 5px;
	margin: 3px 1px;
}
.quiet {
	background: transparent;
	color: #214c3d;
}
button:disabled {
	opacity: 0.55;
	cursor: default;
}
.pair {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 12px;
}
#days {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 7px;
}
.door {
	background: #f4ecd9;
	color: #395343;
	border: 1px dashed #aa9872;
	min-height: 62px;
}
.filled {
	background: #245744;
	color: white;
}
.special,
.preview {
	background: linear-gradient(130deg, #fff5c9, #ddbf69);
	color: #593a10;
	border-color: #a47b31;
}
.golden .hero,
.goldPreview .hero {
	border-bottom: 5px double #b08c3e;
	background: #fff0bc;
}
.golden h1,
.goldPreview h1 {
	color: #795823;
}
.preview {
	padding: 12px;
	border-radius: 6px;
}
.wax {
	display: inline-grid;
	place-items: center;
	background: #8f302b;
	color: #fbe2aa;
	font: 1.5rem Postal;
	border: 3px double #edbd76;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	margin-right: 10px;
}
article p {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
article.special {
	animation: unfold 0.6s ease-out;
	transform-origin: top;
}
@keyframes unfold {
	from {
		transform: perspective(500px) rotateX(-55deg);
		opacity: 0.2;
	}
}
@media (prefers-reduced-motion: reduce) {
	article.special {
		animation: none;
	}
}
#notice {
	border-left: 4px solid #94502e;
	padding: 10px;
	background: #fff4d5;
}
summary {
	cursor: pointer;
	font-size: 1.22rem;
}
footer {
	margin: 30px 0;
	color: #575c50;
	font-size: 0.85rem;
}
[hidden] {
	display: none !important;
}
@media (max-width: 600px) {
	#days {
		grid-template-columns: repeat(6, 1fr);
		gap: 3px;
	}
	.door {
		padding: 6px 0;
		min-height: 48px;
	}
	.hero {
		gap: 8px;
		grid-template-columns: 2fr 1fr;
	}
	.pair {
		grid-template-columns: 1fr;
	}
	header {
		padding: 12px 0;
	}
}

header nav {
	display: flex;
	gap: 0.4rem 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

#digital-gifts {
	margin-block: 24px;
	scroll-margin-top: 16px;
}

.gift-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.gift-options .gift {
	margin: 0;
}

.gift h3 {
	font:
		1.35rem Postal,
		Georgia,
		serif;
	margin: 0;
}

.gift-price {
	margin: 0.35rem 0;
	font-size: 1.2rem;
	font-weight: 700;
}

.gift-price span {
	font-size: 0.85rem;
	font-weight: 400;
}

.goldPreview #goldCard,
.golden #goldCard {
	background: linear-gradient(130deg, #fff5c9, #ddbf69);
	border-color: #a47b31;
}

.paid-action {
	color: #533a12;
	background: #f5e5b8;
	border-color: #9b793a;
}

@media (max-width: 600px) {
	.gift-options {
		grid-template-columns: 1fr;
	}
}

.account-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#accountStatus {
	padding: 8px 12px;
	border-left: 3px solid #8f5632;
	background: #fff4d5;
}

#ownerStatus {
	margin: 0.55rem 0 0;
	font-size: 0.9rem;
}
