:root {
	--cream: #f8f1e4;
	--ink: #263d32;
	--green: #183e32;
	--red: #782c31;
	--gold: #ad813c;
	--light-gold: #ecd294;
	--muted: #6f6b5c;
	--serif: Georgia, 'Times New Roman', serif
}

* {
	box-sizing: border-box
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--cream);
	font-family: Arial, Helvetica, sans-serif;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23836b40' opacity='.055' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}

button,
a,
input {
	-webkit-tap-highlight-color: transparent
}

button {
	font: inherit
}

button,
a {
	touch-action: manipulation
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
	outline: 3px solid #ba781c;
	outline-offset: 5px
}

.review-bar {
	background: #183e32;
	color: #f8f1e4;
	padding: 11px 5%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 11px;
	letter-spacing: 1.5px
}

.review-bar label {
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: .2px;
	cursor: pointer;
	font-size: 12px
}

.review-bar input {
	accent-color: #d3b273;
	width: 16px;
	height: 16px;
	margin: 0
}

.review-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #d1af6b;
	border-radius: 50%;
	margin-right: 7px
}

.masthead {
	max-width: 1240px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 27px 34px;
	border-bottom: 1px solid #bba47955;
	gap: 18px
}

.masthead a {
	font: 600 19px var(--serif);
	letter-spacing: 3px;
	text-decoration: none;
	color: var(--green)
}

.masthead>span {
	font-size: 10px;
	letter-spacing: 2.7px;
	color: var(--muted)
}

main {
	overflow: hidden
}

.hero {
	position: relative;
	text-align: center;
	max-width: 1380px;
	margin: auto;
	padding: 44px 24px 0
}

.bough {
	position: absolute;
	top: -12px;
	left: -35px;
	width: 245px;
	height: 230px;
	color: #3e593bc4;
	pointer-events: none
}

.bough-right {
	left: auto;
	right: -35px;
	transform: scaleX(-1)
}

.star-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 17px;
	color: var(--gold)
}

.star-divider span {
	font-size: 55px;
	line-height: .9
}

.star-divider i {
	width: 74px;
	height: 1px;
	background: var(--gold)
}

.eyebrow {
	font-size: 10px;
	letter-spacing: 3px;
	margin: 22px 0 15px;
	color: #7e735f
}

h1 {
	font: normal clamp(48px, 7.5vw, 102px)/1.08 var(--serif);
	letter-spacing: -4px;
	color: var(--red);
	margin: 0
}

h1 em {
	font-weight: normal
}

.subtitle {
	font: italic 29px/1.4 var(--serif);
	margin: 7px 0 22px
}

.invitation {
	font-size: 16px;
	line-height: 1.6;
	color: #696453;
	margin: 0
}

.date-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	margin: 28px auto 14px
}

.date-rule>span {
	width: 100px;
	height: 1px;
	background: #b08a48
}

.date-rule p {
	font: normal 17px var(--serif);
	letter-spacing: 4px;
	color: #986b27;
	margin: 0
}

.calendar-status {
	font-size: 12px;
	color: #7c715f;
	margin: 0 0 30px;
	min-height: 18px
}

.calendar-section {
	max-width: 1040px;
	padding: 0 28px;
	margin: auto
}

.calendar {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 23px
}

.door-wrap {
	position: relative;
	perspective: 900px
}

.door {
	width: 100%;
	aspect-ratio: .88;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 19px 8px 13px;
	border: 2px solid #b88b41;
	border-radius: 100px 100px 3px 3px;
	background: var(--green);
	color: var(--light-gold);
	cursor: pointer;
	box-shadow: inset 0 0 0 4px #d0aa5a33, 0 4px 5px #57371614;
	transition: transform .25s, box-shadow .25s;
	overflow: hidden;
	background-image: linear-gradient(90deg, transparent 49.5%, #ffffff04 50%, transparent 50.5%), repeating-linear-gradient(90deg, #00000005 0px, #ffffff04 1px, transparent 2px, transparent 19px), linear-gradient(100deg, #ffffff06, transparent 50%, #00000015)
}

.door::before {
	content: '';
	position: absolute;
	inset: 6px;
	border: 1px solid #d8b66d77;
	border-radius: 100px 100px 0 0;
	pointer-events: none
}

.door::after {
	content: '';
	position: absolute;
	right: 11px;
	top: 69%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 20%, #fff0c1, #c59a48 60%, #88601f);
	box-shadow: 1px 2px 2px #0005
}

.door:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px #704a2929, inset 0 0 0 4px #d0aa5a33
}

.door:hover .door-hint {
	opacity: 1
}

.door-red {
	background-color: var(--red)
}

.door-ivory {
	background-color: #f1e3c9;
	color: #795626;
	box-shadow: inset 0 0 0 4px #d0aa5a33, 0 4px 5px #57371614
}

.door-number {
	font: normal clamp(36px, 5vw, 64px)/1.1 var(--serif);
	position: relative;
	z-index: 1;
	margin-top: 10px
}

.door-art {
	width: 48px;
	height: 48px;
	margin-top: auto;
	margin-bottom: 13px;
	stroke: currentColor;
	stroke-width: 1.15;
	fill: none;
	opacity: .94
}

.door-hint {
	font-size: 9px;
	letter-spacing: 1px;
	text-transform: uppercase;
	min-height: 11px;
	opacity: 0;
	transition: opacity .2s
}

.door-25 {
	background-image: radial-gradient(ellipse at 50% 65%, #a9853b55, transparent 65%), repeating-linear-gradient(90deg, #00000005 0px, #ffffff04 1px, transparent 2px, transparent 19px);
	border-color: #cda553
}

.door-25 .door-art {
	width: 62px;
	height: 62px;
	margin-bottom: 4px;
	filter: drop-shadow(0 0 7px #d6b362aa)
}

.viewed-mark {
	position: absolute;
	right: 2px;
	bottom: 2px;
	z-index: 2;
	background: var(--cream);
	color: var(--green);
	border: 1px solid #b9955d;
	border-radius: 50%;
	height: 20px;
	width: 20px;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	display: none
}

.door-wrap.viewed .viewed-mark {
	display: flex
}

.door.locked {
	filter: saturate(.6);
	color: #d1bd97
}

.door.locked.door-ivory {
	color: #8a7759
}

.door.locked .door-hint {
	opacity: .8;
	letter-spacing: .4px
}

.door.locked .door-art {
	opacity: .45
}

.calendar-caption {
	font: italic 19px/1.5 var(--serif);
	text-align: center;
	margin: 28px 0 6px
}

.reading-progress {
	text-align: center;
	font-size: 11px;
	letter-spacing: 1px;
	color: #897a61;
	min-height: 14px;
	margin: 0
}

.closing {
	text-align: center;
	max-width: 620px;
	margin: 44px auto 52px;
	padding: 25px 25px 0;
	border-top: 1px solid #bba47977
}

.closing>span {
	color: var(--gold);
	font-size: 30px
}

.closing h2 {
	font: normal 29px var(--serif);
	margin: 10px 0 16px
}

.closing p {
	font-size: 14px;
	line-height: 1.9;
	color: #6d695c
}

.closing .closing-script {
	font: italic 18px/1.6 var(--serif);
	color: var(--green);
	margin-top: 22px
}

.advent-footer {
	background: var(--green);
	color: var(--cream);
	padding: 31px 24px 35px;
	text-align: center
} 
.advent-footer p {
	font: normal 16px var(--serif);
	letter-spacing: 3px;
	margin: 0 0 12px
}

.advent-footer>span {
	font-size: 11px;
	color: #cfcbbb;
	display: block;
	line-height: 1.7
}

.advent-footer>a {
	color: #e2c792;
	text-decoration: none;
	display: inline-block;
	margin-top: 19px;
	font-size: 12px
}

dialog {
	padding: 0;
	width: min(940px, calc(100% - 40px));
	max-height: calc(100dvh - 50px);
	border: 1px solid #ae8849;
	border-radius: 8px;
	background: var(--cream);
	color: var(--ink);
	box-shadow: 0 20px 100px #0005
}

dialog::backdrop {
	background: #10291fd9;
	backdrop-filter: blur(4px)
}

.modal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #c6b18c66;
	padding: 15px 22px;
	position: sticky;
	top: 0;
	background: var(--cream);
	z-index: 4
}

.modal-top>span {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #896631
}

.close-button {
	border: 0;
	background: transparent;
	font-size: 20px;
	color: var(--green);
	cursor: pointer;
	width: 34px;
	height: 34px;
	border-radius: 50%
}

.close-button:hover {
	background: #d7cab166
}

.reflection-layout {
	display: grid;
	grid-template-columns: 34% 1fr;
	gap: 34px;
	padding: 30px
}

.portrait {
	margin: 0;
	align-self: start;
	position: sticky;
	top: 95px
}

.portrait img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 120px 120px 3px 3px;
	border: 1px solid #c3a366;
	padding: 4px;
	background: #e8d6b4
}

.portrait figcaption {
	text-align: center;
	font: italic 19px/1.4 var(--serif);
	margin-top: 14px
}

.reflection-label {
	color: #9a773b;
	font-size: 10px;
	letter-spacing: 2px;
	margin: 0 0 10px
}

.reflection-copy h2 {
	font: normal 33px/1.16 var(--serif);
	color: var(--red);
	margin: 0 0 18px
}

.reflection-copy blockquote {
	font: italic 21px/1.5 var(--serif);
	margin: 0 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #bba47966
}

.story {
	font-size: 15px;
	line-height: 1.85;
	margin: 0 0 22px
}

.scripture {
	background: #eae3d353;
	border-left: 2px solid var(--gold);
	padding: 15px 17px
}

.scripture p {
	font: italic 17px/1.65 var(--serif);
	margin: 0 0 10px
}

.scripture cite {
	font-size: 11px;
	font-style: normal;
	letter-spacing: .7px;
	color: #866328
}

.modal-nav {
	border-top: 1px solid #c6b18c66;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 18px 22px
}

.modal-nav button {
	border: 0;
	background: transparent;
	color: var(--green);
	cursor: pointer;
	font-size: 12px;
	padding: 10px 3px
}

.modal-nav button:disabled {
	opacity: .3;
	cursor: default
}

.modal-nav span {
	font-size: 11px;
	color: #7e735f
}

.text-only {
	display: block;
	max-width: 670px;
	margin: auto
}

.christmas-message,
.locked-message {
	text-align: center;
	padding: 35px 30px 50px;
	max-width: 650px;
	margin: auto
}

.christmas-message>span,
.locked-message>span {
	font-size: 70px;
	color: var(--gold)
}

.christmas-message h2,
.locked-message h2 {
	font: normal 38px var(--serif);
	color: var(--red);
	margin: 15px 0
}

.christmas-message p,
.locked-message p {
	font-size: 16px;
	line-height: 1.8;
	color: #726955
}

.draft-label {
	font-size: 10px !important;
	letter-spacing: 2px;
	text-transform: uppercase
}

.no-scroll {
	overflow: hidden
}

#load-error {
	padding: 24px;
	text-align: center;
	color: var(--red)
}

@media(min-width:1400px) {
	.hero {
		padding-top: 55px
	}

	.calendar {
		column-gap: 30px
	}

	.bough {
		width: 300px;
		height: 260px
	}
}

@media(max-width:800px) {
	.bough {
		width: 170px;
		opacity: .7
	}

	.masthead a {
		font-size: 15px;
		letter-spacing: 2px
	}

	.hero {
		padding-top: 35px
	}

	.eyebrow {
		font-size: 9px;
		letter-spacing: 2px
	}

	h1 {
		letter-spacing: -2px
	}

	.subtitle {
		font-size: 24px
	}

	.calendar {
		gap: 17px
	}

	.door {
		padding-top: 12px
	}

	.door-number {
		margin-top: 9px
	}

	.door-art {
		width: 37px;
		height: 37px;
		margin-bottom: 7px
	}

	.door-25 .door-art {
		width: 45px;
		height: 45px
	}

	.door-hint {
		font-size: 8px
	}

	.reflection-layout {
		gap: 23px;
		padding: 24px
	}

	.reflection-copy h2 {
		font-size: 29px
	}

	.story {
		font-size: 14px
	}
}

@media(max-width:520px) {
	.review-bar {
		align-items: flex-start;
		font-size: 8px;
		letter-spacing: .7px;
		padding: 10px 16px
	}

	.review-bar label {
		font-size: 10px;
		max-width: 145px;
		line-height: 1.5
	}

	.masthead {
		padding: 20px
	}

	.masthead a {
		font-size: 12px;
		letter-spacing: 1.4px
	}

	.masthead>span {
		font-size: 8px;
		letter-spacing: 1.4px
	}

	.bough {
		width: 110px;
		top: 0;
		left: -25px;
		opacity: .6
	}

	.bough-right {
		left: auto;
		right: -25px
	}

	.hero {
		padding: 30px 16px 0
	}

	.star-divider span {
		font-size: 42px
	}

	.star-divider i {
		width: 45px
	}

	.eyebrow {
		max-width: 240px;
		margin: 18px auto 14px;
		font-size: 8px;
		line-height: 1.8
	}

	h1 {
		font-size: 47px;
		letter-spacing: -2px
	}

	.subtitle {
		font-size: 20px;
		margin: 10px 0 17px
	}

	.invitation {
		font-size: 12px
	}

	.date-rule {
		gap: 18px;
		margin: 24px auto 13px
	}

	.date-rule p {
		font-size: 14px;
		letter-spacing: 2px
	}

	.date-rule>span {
		width: 44px
	}

	.calendar-status {
		font-size: 10px;
		margin-bottom: 22px
	}

	.calendar-section {
		padding: 0 18px
	}

	.calendar {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 15px 14px
	}

	.door {
		aspect-ratio: .79;
		padding: 13px 5px 10px
	}

	.door-number {
		font-size: 42px;
		margin-top: 9px
	}

	.door-art {
		width: 39px;
		height: 39px;
		margin-bottom: 8px
	}

	.door-25 .door-art {
		width: 49px;
		height: 49px
	}

	.door-wrap:last-child {
		grid-column: 2
	}

	.door-hint {
		font-size: 8px;
		opacity: .75
	}

	.calendar-caption {
		font-size: 15px;
		margin-top: 23px
	}

	.reading-progress {
		font-size: 9px
	}

	.closing {
		margin: 32px 26px
	}

	.closing h2 {
		font-size: 25px
	}

	.closing p {
		font-size: 12px
	}

	.closing .closing-script {
		font-size: 16px
	}

	footer {
		padding: 27px 22px
	}

	footer p {
		font-size: 13px
	}

	footer>span {
		font-size: 10px
	}

	dialog {
		width: calc(100% - 20px);
		max-height: calc(100dvh - 24px)
	}

	.modal-top {
		padding: 10px 16px
	}

	.reflection-layout {
		display: flex;
		flex-direction: column;
		padding: 20px;
		gap: 23px
	}

	.portrait {
		position: static;
		align-self: center;
		width: 65%;
		max-width: 240px
	}

	.portrait img {
		max-height: 280px
	}

	.portrait figcaption {
		font-size: 18px;
		margin-top: 9px
	}

	.reflection-copy h2 {
		font-size: 30px
	}

	.reflection-copy blockquote {
		font-size: 20px
	}

	.story {
		font-size: 14px
	}

	.modal-nav {
		padding: 11px 16px
	}

	.modal-nav button {
		font-size: 11px
	}

	.modal-nav span {
		font-size: 10px
	}

	.text-only {
		display: block
	}

	.christmas-message h2,
	.locked-message h2 {
		font-size: 31px
	}
}

@media(prefers-reduced-motion:reduce) {

	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important
	}
}

@media print {

	.review-bar,
	.masthead,
	.hero,
	.calendar-section,
	.closing,
	footer,
	.modal-nav,
	.modal-top {
		display: none
	}

	dialog[open] {
		display: block;
		position: static;
		max-height: none;
		width: 100%;
		border: 0;
		box-shadow: none
	}

	.portrait {
		position: static
	}

	body.no-scroll {
		overflow: visible
	}
}

.christmas-reflection {
	padding: 35px 40px 42px
}

.christmas-star {
	text-align: center;
	color: var(--gold);
	font: normal 70px/1 var(--serif);
	margin: 0 0 18px
}

.christmas-reflection .reflection-label {
	text-align: center;
	margin-bottom: 15px
}

.christmas-reflection h2 {
	text-align: center;
	font-style: italic;
	font-size: 36px;
	line-height: 1.25;
	margin-bottom: 28px
}

.christmas-reflection .story {
	font-size: 16px;
	line-height: 1.9
}

.christmas-reflection .scripture {
	margin-top: 28px
}

.portrait img {
	height: auto;
	aspect-ratio: 3/4
}

@media(max-width:520px) {
	.christmas-reflection {
		padding: 24px
	}

	.christmas-reflection h2 {
		font-size: 29px
	}

	.christmas-reflection .story {
		font-size: 14px
	}
}