/* Raven Advent – same visual language as the Evita Raven letter. */
:root {
	--evita-raven-ink: #1f1b24;
	--evita-raven-wing: #3a3342;
	--evita-raven-paper: #f3e4c1;
	--evita-raven-seal: #9c2b2b;
	--evita-raven-parchment: #f4e7c9;
	--evita-raven-parchment-edge: #c9a96e;
	--evita-raven-letter-paper: #fdf6e6;
	--evita-raven-letter-light: #fffaf0;
	--evita-raven-glint: #f3d27a;
	--evita-raven-glint-light: #fff3c4;
	--evita-raven-text: #3b2f22;
	--evita-raven-focus: #9c2b2b;
}

.ra {
	box-sizing: border-box;
	color: var(--evita-raven-text);
	font-size: 1.05rem;
	line-height: 1.55;
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px 0 48px;
}
.ra *, .ra *::before, .ra *::after { box-sizing: border-box; }

.ra-hero {
	position: relative;
	text-align: center;
	padding: 36px 28px 32px;
	margin: 0 0 28px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .7), transparent 60%),
		radial-gradient(ellipse at 100% 100%, rgba(201, 169, 110, .14), transparent 55%),
		linear-gradient(180deg, var(--evita-raven-letter-light), var(--evita-raven-letter-paper));
	border: 1px solid var(--evita-raven-parchment-edge);
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(20, 16, 24, .12);
}
.ra-hero__crowen { margin: 0 auto 8px; }
.ra-hero__svg { display: block; margin: 0 auto; }
.ra-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.2;
	color: var(--evita-raven-text);
	font-weight: 600;
}
.ra-hero__intro { margin: 0 auto 12px; max-width: 40rem; }
.ra-hero__tz { margin: 0; font-size: .9em; opacity: .85; }
.ra-hero__tz a { color: var(--evita-raven-seal); }

.ra-flash {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid var(--evita-raven-parchment-edge);
	background: var(--evita-raven-letter-light);
}
.ra-flash--error { border-color: #c2474a; background: #fff5f5; color: #8a1f1f; }

/* ---- Door grid ---- */
.ra-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
@media (max-width: 960px) { .ra-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px) { .ra-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 420px) { .ra-grid { grid-template-columns: repeat(2, 1fr); } }

.ra-door {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0;
	color: inherit;
	text-decoration: none;
	border-radius: 8px;
}
.ra-door:focus { outline: none; }
.ra-door:focus-visible { outline: 3px solid var(--evita-raven-focus); outline-offset: 3px; }

.ra-door__envelope {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 5px 5px 6px 6px;
	background:
		linear-gradient(180deg, #ead7ad 0%, var(--evita-raven-paper) 40%, #e2c792 100%);
	border: 1px solid var(--evita-raven-parchment-edge);
	box-shadow: 0 4px 12px rgba(59, 47, 34, .16);
	transform: translateY(0);
	transition: transform .35s ease, box-shadow .35s ease;
}
.ra-door__flap {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 34%;
	z-index: 2;
	background: linear-gradient(180deg, #f8eccf, #e2c792);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	filter: drop-shadow(0 1px 1px rgba(59, 47, 34, .18));
	transform-origin: 50% 0;
	transition: transform .45s ease;
}
.ra-door__paper, .ra-door__art {
	position: absolute;
	left: 8%; right: 8%;
	top: 18%;
	height: 68%;
	z-index: 1;
	border-radius: 3px;
}
.ra-door__paper {
	background: linear-gradient(180deg, var(--evita-raven-letter-light), var(--evita-raven-letter-paper));
	border: 1px solid rgba(201, 169, 110, .55);
}
.ra-door__art { object-fit: cover; width: auto; }
.ra-door__seal {
	position: absolute;
	left: 50%;
	top: 34%;
	z-index: 3;
	width: 36%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 35% 35%, #c2474a, var(--evita-raven-seal) 60%, #6e1c1c);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
	color: #fffaf0;
	font-weight: 700;
	font-size: clamp(1.05rem, 2.6vw, 1.45rem);
	letter-spacing: .02em;
	line-height: 1;
}
.ra-door__label {
	margin-top: 2px;
	font-size: .82em;
	font-weight: 600;
	text-align: center;
}
.ra-door__hint {
	font-size: .75em;
	line-height: 1.3;
	text-align: center;
	opacity: .8;
	min-height: 2.4em;
}

/* States */
.ra-door--future .ra-door__envelope {
	filter: saturate(.7) brightness(.92);
	box-shadow: 0 2px 6px rgba(59, 47, 34, .1);
}
.ra-door--future .ra-door__paper { background: #e8d7b0; }
.ra-door--members .ra-door__envelope {
	box-shadow: 0 3px 8px rgba(59, 47, 34, .14);
}
.ra-door--today .ra-door__envelope {
	box-shadow: 0 8px 20px rgba(156, 43, 43, .22), 0 0 0 1px rgba(243, 210, 122, .55);
}
.ra-door--today .ra-door__flap,
.ra-door--unlocked .ra-door__flap,
.ra-door--public .ra-door__flap {
	transform: rotateX(-18deg);
}
.ra-door--unlocked .ra-door__envelope,
.ra-door--public .ra-door__envelope {
	box-shadow: 0 6px 16px rgba(59, 47, 34, .16);
}

.ra-door__sparkles {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	background:
		radial-gradient(circle at 20% 28%, var(--evita-raven-glint-light) 0 1px, transparent 2px),
		radial-gradient(circle at 78% 22%, var(--evita-raven-glint) 0 1.2px, transparent 2.4px),
		radial-gradient(circle at 70% 70%, var(--evita-raven-glint-light) 0 1px, transparent 2px),
		radial-gradient(circle at 30% 78%, var(--evita-raven-glint) 0 1px, transparent 2px);
	opacity: .7;
	animation: ra-spark 3.2s ease-in-out infinite;
}
@keyframes ra-spark {
	0%, 100% { opacity: .35; }
	50% { opacity: .85; }
}

@media (hover: hover) and (pointer: fine) {
	.ra-door:hover .ra-door__envelope,
	.ra-door:focus-visible .ra-door__envelope {
		transform: translateY(-3px) rotate(-1.2deg);
		box-shadow: 0 10px 22px rgba(59, 47, 34, .2);
	}
}

/* Gift letter */
.ra-back { margin: 0 0 16px; }
.ra-back a { color: var(--evita-raven-seal); }
.ra-letter {
	position: relative;
	padding: 44px 32px 32px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .7), transparent 60%),
		linear-gradient(180deg, var(--evita-raven-letter-light), var(--evita-raven-letter-paper));
	border: 1px solid var(--evita-raven-parchment-edge);
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(20, 16, 24, .18);
}
.ra-letter__seal {
	width: 34px;
	height: 34px;
	margin: -18px auto 10px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #c2474a, var(--evita-raven-seal) 60%, #6e1c1c);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.ra-letter__kicker {
	margin: 0 0 6px;
	text-align: center;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .78em;
	opacity: .75;
}
.ra-letter__title { margin: 0 0 16px; text-align: center; font-size: 1.7em; line-height: 1.25; }
.ra-letter__other { font-style: italic; opacity: .9; }
.ra-letter__other-label { font-style: normal; font-weight: 600; }
.ra-letter__body { margin-top: 8px; }
.ra-letter__body img { max-width: 100%; height: auto; }
.ra-letter__meta { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(201, 169, 110, .6); }
.ra-letter__cta { text-align: center; margin-top: 20px; }
.ra-letter--future, .ra-letter--members { text-align: center; }

.ra-form { margin-top: 16px; text-align: left; max-width: 28rem; margin-left: auto; margin-right: auto; }
.ra-form label, .ra-form legend { display: block; margin: 0 0 4px; font-weight: 600; }
.ra-form input[type="email"], .ra-form select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #a8874f;
	border-radius: 4px;
	background: #fff;
	color: var(--evita-raven-text);
	font: inherit;
	font-size: 16px;
}
.ra-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }

/* Join card + buttons (thank-you and locked doors) */
.ra-join {
	position: relative;
	margin: 28px 0;
	padding: 36px 24px 28px;
	text-align: center;
	background: linear-gradient(180deg, var(--evita-raven-letter-light), var(--evita-raven-letter-paper));
	border: 1px solid var(--evita-raven-parchment-edge);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(20, 16, 24, .12);
	color: var(--evita-raven-text);
}
.ra-join__seal {
	width: 34px; height: 34px; margin: -18px auto 10px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #c2474a, var(--evita-raven-seal) 60%, #6e1c1c);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.ra-join__title { margin: 0 0 10px; font-size: 1.4em; }
.ra-join__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ra-join__btn,
.ra-gift__cta .evita-raven-open,
.ra-letter__cta .evita-raven-open {
	display: inline-block;
	padding: 12px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--evita-raven-seal);
	color: #fff !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.ra-join__btn--daily { background: var(--evita-raven-wing); }
.ra-join__btn:focus-visible,
.ra-choice input:focus-visible,
.ra-form :focus-visible { outline: 3px solid var(--evita-raven-focus); outline-offset: 2px; }

/* Raven popup Advent choice */
.ra-choice {
	margin: 16px 0 0;
	padding: 12px 12px 4px;
	border: 1px solid rgba(201, 169, 110, .7);
	border-radius: 6px;
	background: rgba(255, 250, 240, .6);
	text-align: left;
}
.ra-choice__legend { font-weight: 600; padding: 0 4px; }
.ra-choice__intro { margin: 0 0 8px; font-size: .92em; }
.ra-choice__option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	cursor: pointer;
}
.ra-choice__option input { margin-top: 4px; accent-color: var(--evita-raven-seal); width: 18px; height: 18px; }

@media (max-width: 480px) {
	.ra-hero, .ra-letter, .ra-join { padding-left: 16px; padding-right: 16px; }
	.ra-letter__title { font-size: 1.35em; }
}

@media (prefers-reduced-motion: reduce) {
	.ra-door__envelope, .ra-door__flap, .ra-door__sparkles { transition: none !important; animation: none !important; }
	.ra-door:hover .ra-door__envelope,
	.ra-door:focus-visible .ra-door__envelope { transform: none; }
}


/* ---- Calendar header raven + fairy lights ---- */
.ra-hero__crowen {
	position: relative;
	width: 220px;
	min-height: 168px;
	margin: 0 auto 12px;
}
.ra-hero__lights {
	position: absolute;
	left: 50%;
	top: 0;
	width: 220px;
	height: 70px;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 2;
	overflow: visible;
}
.ra-hero__wire { opacity: .85; }
.ra-hero__art {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	padding-top: 28px;
}
.ra-hero__art img,
.ra-hero__art svg,
.ra-hero__raven-img,
.ra-hero__art .evita-raven__svg,
.ra-hero__art .evita-raven__img {
	display: block;
	width: 150px;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
}

.ra-light {
	animation: ra-twinkle 1.8s ease-in-out 5 both;
	transform-box: fill-box;
	transform-origin: center;
}
.ra-light--2 { animation-delay: .22s; }
.ra-light--3 { animation-delay: .44s; }
.ra-light--4 { animation-delay: .1s; }
.ra-light--5 { animation-delay: .58s; }
.ra-light--6 { animation-delay: .3s; }
.ra-light--7 { animation-delay: .72s; }
@keyframes ra-twinkle {
	0%, 100% { opacity: .5; }
	50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(243, 210, 122, .95)); }
}
.ra-sparkle {
	animation: ra-glint 2.4s ease-in-out 4 both;
	transform-box: fill-box;
	transform-origin: center;
}
.ra-sparkle--2 { animation-delay: .5s; }
.ra-sparkle--3 { animation-delay: 1s; }
@keyframes ra-glint {
	0%, 100% { opacity: .15; transform: scale(.7); }
	50% { opacity: .9; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.ra-light, .ra-sparkle { animation: none; opacity: .75; filter: none; transform: none; }
}

/* ---- Floating raven Advent nudge ---- */
.ra-nudge-badge {
	position: absolute;
	right: 2px;
	bottom: 6px;
	z-index: 3;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff8e0, #e0b44a 55%, #b8860b);
	box-shadow: 0 0 0 1px #c9a96e, 0 1px 4px rgba(20, 16, 24, .3), 0 0 8px rgba(243, 210, 122, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.ra-nudge-badge__key { display: block; }
.ra-nudge-parchment {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .8;
}
.ra-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.ra-chooser,
.ra-chooser *,
.ra-chooser *::before,
.ra-chooser *::after { box-sizing: border-box; }
.evita-raven .ra-chooser {
	position: absolute;
	left: 0;
	bottom: calc(100% + 12px);
	width: min(280px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	z-index: 4;
}
.evita-raven--bottom-right .ra-chooser { left: auto; right: 0; }
.evita-raven .ra-chooser[hidden] { display: none !important; }
.evita-raven .ra-chooser__card {
	width: 100%;
	max-width: 100%;
	padding: 16px 16px 12px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .7), transparent 60%),
		linear-gradient(180deg, var(--evita-raven-letter-light), var(--evita-raven-letter-paper));
	border: 1px solid var(--evita-raven-parchment-edge);
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(20, 16, 24, .22);
	color: var(--evita-raven-text);
	text-align: left;
}
.evita-raven .ra-chooser__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-style: italic;
	line-height: 1.3;
}
/* Anchors and buttons: beat theme `a` / `button` / `.button` width and nowrap. */
.evita-raven .ra-chooser a.ra-chooser__opt,
.evita-raven .ra-chooser button.ra-chooser__opt {
	display: flex !important;
	align-items: center;
	gap: 10px;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0;
	margin: 0 0 8px !important;
	padding: 10px 12px !important;
	border: 1px solid rgba(201, 169, 110, .7) !important;
	border-radius: 4px;
	background: #fffaf0 !important;
	color: inherit !important;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-decoration: none !important;
	text-transform: none;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-wrap: break-word;
	word-break: break-word;
	float: none;
	cursor: pointer;
}
.evita-raven .ra-chooser a.ra-chooser__opt:hover,
.evita-raven .ra-chooser a.ra-chooser__opt:focus-visible,
.evita-raven .ra-chooser button.ra-chooser__opt:hover,
.evita-raven .ra-chooser button.ra-chooser__opt:focus-visible {
	background: #fff !important;
	outline: 2px solid var(--evita-raven-seal);
	outline-offset: 1px;
}
.evita-raven .ra-chooser .ra-chooser__icon {
	flex: 0 0 22px;
	width: 22px;
	max-width: 22px;
	color: var(--evita-raven-seal);
	display: flex;
}
.evita-raven .ra-chooser .ra-chooser__opt > span:not(.ra-chooser__icon) {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.evita-raven .ra-chooser button.ra-chooser__close,
.evita-raven .ra-chooser .ra-chooser__close {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 2px;
	padding: 6px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	opacity: .75;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: normal;
}
.evita-raven .ra-chooser .ra-chooser__close:hover,
.evita-raven .ra-chooser .ra-chooser__close:focus-visible { opacity: 1; }

/* ——— Gift / prologue / chapter: cream editorial card (v1) ——— */
.ra-hero__prologue {
	margin: 10px 0 0;
	font-size: 15px;
}
.ra-hero__prologue a {
	color: inherit;
	text-underline-offset: 3px;
}
.ra-gift {
	box-sizing: border-box;
	max-width: 36rem;
	margin: 8px auto 56px;
	padding: 40px 28px 36px;
	background: #f6f0e4;
	border-radius: 18px;
	color: #3b2f22;
	text-align: center;
	font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}
.ra-gift *,
.ra-gift *::before,
.ra-gift *::after { box-sizing: border-box; }
.ra-gift__date {
	margin: 0 0 14px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8a7b6b;
	font-weight: 500;
	font-family: "Palatino Linotype", Palatino, Georgia, serif;
}
.ra-gift__title {
	margin: 0 0 22px;
	font-size: clamp(1.7rem, 3.4vw, 2.2rem);
	font-weight: 600;
	color: #3b2f22;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.ra-gift__emblem {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	margin: 4px auto 22px;
}
.ra-gift__shield { display: block; }
.ra-gift__art {
	display: block;
	width: min(220px, 70%);
	height: auto;
	max-height: 240px;
	object-fit: contain;
	border-radius: 8px;
}
.ra-gift__plus {
	position: absolute;
	color: #c4a56a;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}
.ra-gift__plus--1 { top: 18%; left: 18%; }
.ra-gift__plus--2 { top: 14%; right: 22%; }
.ra-gift__plus--3 { bottom: 22%; left: 16%; }
.ra-gift__plus--4 { bottom: 28%; right: 18%; font-size: 14px; }
.ra-gift__tagline {
	margin: 0 auto 22px;
	max-width: 28rem;
	font-size: 1.08rem;
	line-height: 1.45;
	color: #3b2f22;
}
.ra-gift__resource {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #eadfcb;
	border-radius: 12px;
	color: #3b2f22;
	text-decoration: none;
	text-align: left;
}
.ra-gift__resource:hover,
.ra-gift__resource:focus-visible {
	background: #e3d6be;
	outline: none;
}
.ra-gift__resource-icon {
	flex: 0 0 22px;
	color: #6b4f2a;
	display: flex;
}
.ra-gift__resource-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ra-gift__resource-text strong {
	font-weight: 700;
	font-size: 15px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ra-gift__resource-sub {
	color: #7a6e62;
	font-size: 13px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ra-gift__resource-ext {
	flex: 0 0 16px;
	color: #8a7b6b;
	display: flex;
}
.ra-gift__body {
	margin: 0 0 8px;
	text-align: left;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #3b2f22;
}
.ra-gift__body > *:first-child { margin-top: 0; }
.ra-gift__body > *:last-child { margin-bottom: 0; }
.ra-gift__meta {
	margin: 16px 0 0;
	font-size: 0.95rem;
	text-align: left;
	color: #5c4a32;
}
.ra-gift__chapter {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid #e4d8c4;
	font-size: 1.02rem;
}
.ra-gift__chapter a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #5c4a32;
	text-decoration: none;
}
.ra-gift__chapter a:hover,
.ra-gift__chapter a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ra-gift__chapter-icon { display: inline-flex; color: #6b4f2a; }
.ra-gift__back {
	margin: 14px 0 0;
	font-size: 0.98rem;
}
.ra-gift__back a {
	color: #8a7b6b;
	text-decoration: none;
}
.ra-gift__back a:hover,
.ra-gift__back a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ra-gift__cta { margin: 8px 0 0; }
.ra-chapter__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a7b6b;
}
.ra-chapter__body { text-align: left; margin-top: 8px; }
.ra-chapter__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 28px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e4d8c4;
	font-size: 0.95rem;
}
.ra-chapter__nav a {
	color: #5c4a32;
	text-decoration: none;
}
.ra-chapter__nav a:hover,
.ra-chapter__nav a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ra-chapter__next { margin-left: auto; }
.ra-prologue__body { text-align: left; max-width: 32rem; margin: 0 auto; }
@media (max-width: 640px) {
	.ra-gift { padding: 28px 18px 28px; border-radius: 0; margin: 0 -8px 40px; }
}

/* ——— Calendar hero: title + subtitle + landing + CTAs (1.0.4) ——— */
.ra-hero {
	padding: 40px 32px 36px;
	border-radius: 16px;
}
.ra-hero__title {
	margin: 0 0 6px;
	font-size: clamp(2rem, 4vw, 2.6rem);
	letter-spacing: -0.015em;
}
.ra-hero__subtitle,
.ra-story-title {
	margin: 0 0 20px;
	font-size: clamp(1.55rem, 3.6vw, 2.15rem);
	font-weight: 700;
	font-style: normal;
	color: #3b2f22;
	line-height: 1.25;
	letter-spacing: -0.015em;
	font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}
.ra-hero__subtitle {
	margin: 0 0 2px;
}
.ra-ornament-divider {
	margin: 6px auto 20px;
	max-width: 22rem;
	line-height: 0;
}
.ra-ornament-divider img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
}
@media (max-width: 640px) {
	.ra-ornament-divider { max-width: 18rem; margin: 4px auto 16px; }
}
.ra-story-title {
	margin: 0 0 16px;
}
.ra-hero__intro {
	margin: 0 auto 22px;
	max-width: 36rem;
	font-size: 1.06rem;
	line-height: 1.55;
	text-align: center;
}
.ra-hero__intro p { margin: 0 0 0.9em; }
.ra-hero__intro p:last-child { margin-bottom: 0; }
.ra-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 18px;
}
.ra .ra-hero a.ra-hero__cta,
.ra-hero__cta {
	display: inline-block;
	box-sizing: border-box;
	padding: 11px 18px;
	border: 1px solid #c4a56a;
	border-radius: 8px;
	background: #f6f0e4 !important;
	color: #5c4a32 !important;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 500;
}
.ra-hero__cta:hover,
.ra-hero__cta:focus-visible {
	background: #eadfcb;
	outline: none;
}
.ra .ra-hero a.ra-hero__cta--prologue,
.ra-hero__cta--prologue {
	background: #eadfcb !important;
	font-weight: 600;
}
.ra-hero__cta--prologue:hover,
.ra-hero__cta--prologue:focus-visible { background: #e3d6be; }
.ra-prologue .ra-gift__date {
	letter-spacing: 0.06em;
	text-transform: none;
	font-size: 0.95rem;
}
.ra-prologue__body p { margin: 0 0 1em; }
.ra-prologue__body em { font-style: italic; }
@media (max-width: 640px) {
	.ra-hero { padding: 28px 16px 28px; }
	.ra-hero__ctas { flex-direction: column; align-items: stretch; }
	.ra-hero__cta { text-align: center; }
}

.ra-gift__letter {
	margin: 1.4em 0 1.5em;
	padding: 1.15em 1.05em 1em;
	background: #f3e6c8;
	border: 1px solid #d4bf8e;
	border-radius: 2px;
	font-style: italic;
	line-height: 1.7;
	font-size: 1.05rem;
	text-align: left;
}
.ra-gift__letter p { margin: 0 0 0.85em; }
.ra-gift__letter p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
	.ra-gift__letter {
		padding: 1em 0.85em 0.9em;
		font-size: 1.02rem;
		line-height: 1.75;
	}
}


@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/caveat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/caveat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ra-stationery {
	position: relative;
	margin: 1.4em 0 1.65em;
	padding: 18px 18px 22px;
	background:
		radial-gradient(ellipse at 50% 42%, rgba(196,165,106,0.07), transparent 56%),
		#fbf6ea;
	border: 1px solid #d4bf8e;
	box-shadow: 0 10px 28px rgba(59,47,34,0.08), inset 0 0 0 1px #efe4cc;
	overflow: hidden;
}
.ra-stationery__head {
	position: relative;
	margin: 0 0 6px;
	padding: 0 72px 10px 0;
}
.ra-stationery__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.ra-stationery__crest-svg { flex: 0 0 56px; display: block; }
.ra-stationery__name {
	margin: 0;
	font-family: Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
	font-size: clamp(0.92rem, 3.4vw, 1.12rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: #3b2f22;
	text-wrap: balance;
}
.ra-stationery__rule {
	margin-top: 10px;
	border-top: 2px solid #c4a56a;
	border-bottom: 1px solid #c4a56a;
	height: 4px;
}
.ra-stationery__stamp {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 64px;
	height: 64px;
	transform: rotate(12deg);
	opacity: 0.82;
	pointer-events: none;
}
.ra-stationery__stamp-svg { display: block; width: 64px; height: 64px; }
.ra-gift--bureau-letter .ra-stationery .ra-gift__letter,
.ra-gift--bureau-letter .ra-stationery__letter {
	margin: 0;
	padding: 0.7em 0.15em 0.15em;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-family: "Caveat", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-style: normal;
	font-size: 1.38rem;
	line-height: 1.55;
	color: #2a231b;
	text-align: left;
}
.ra-gift--bureau-letter .ra-stationery__letter p { margin: 0 0 0.7em; }
.ra-gift--bureau-letter .ra-stationery__letter p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
	.ra-stationery { padding: 14px 12px 18px; }
	.ra-stationery__head { padding-right: 58px; }
	.ra-stationery__crest-svg { flex-basis: 46px; width: 46px; height: 46px; }
	.ra-stationery__stamp, .ra-stationery__stamp-svg { width: 52px; height: 52px; }
	.ra-gift--bureau-letter .ra-stationery .ra-gift__letter,
	.ra-gift--bureau-letter .ra-stationery__letter {
		font-size: 1.28rem;
		line-height: 1.6;
		padding-top: 0.6em;
	}
}
@media (max-width: 375px) {
	.ra-gift--bureau-letter .ra-stationery .ra-gift__letter,
	.ra-gift--bureau-letter .ra-stationery__letter {
		font-size: 1.24rem;
		line-height: 1.62;
	}
}

/* Bureau envelope opening (bureau_letter). Open by default; JS may close it. */
.ra-envelope {
	position: relative;
	margin: 1.4em 0 0.5em;
	--ra-env-duration: 2.1s;
}
.ra-envelope:not(.is-ready) .ra-envelope__open,
.ra-envelope:not(.is-ready) .ra-envelope__replay-wrap,
.ra-envelope.is-open .ra-envelope__open,
.ra-envelope.is-closed .ra-envelope__replay-wrap,
.ra-envelope.is-opening .ra-envelope__replay-wrap {
	display: none;
}
.ra-envelope__open {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 4px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-align: center;
	-webkit-tap-highlight-color: transparent;
}
.ra-envelope__open:focus {
	outline: none;
}
.ra-envelope__open:focus-visible .ra-envelope__pocket {
	box-shadow: 0 10px 28px rgba(59,47,34,0.12), 0 0 0 3px #fdf6e6, 0 0 0 5px #7a3b2e;
}
.ra-envelope__scene {
	display: block;
	perspective: 1100px;
}
.ra-envelope__pocket {
	position: relative;
	display: block;
	width: min(100%, 420px);
	margin: 12px auto 0;
	aspect-ratio: 1.62 / 1;
	filter: drop-shadow(0 10px 18px rgba(59,47,34,0.14));
	transform-style: preserve-3d;
}
.ra-envelope__back,
.ra-envelope__front,
.ra-envelope__flap {
	position: absolute;
	inset: 0;
	border-radius: 3px 3px 6px 6px;
	pointer-events: none;
}
.ra-envelope__back {
	z-index: 1;
	background:
		linear-gradient(180deg, #efe3c8 0%, #e8d9b4 100%);
	border: 1px solid #c9b07a;
	box-shadow: inset 0 0 0 1px rgba(255,248,230,0.5);
}
.ra-envelope__flap {
	z-index: 5;
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
	height: 48%;
	background: linear-gradient(180deg, #f4ead2 0%, #e6d5b0 100%);
	border: 1px solid #c9b07a;
	border-bottom: 0;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
	transform: rotateX(0deg);
	backface-visibility: hidden;
}
.ra-envelope__front {
	z-index: 3;
	top: 32%;
	background:
		linear-gradient(180deg, #f0e4c8 0%, #e7d6b2 55%, #decaa4 100%);
	border: 1px solid #c9b07a;
	border-radius: 0 0 6px 6px;
	clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 16px 14%;
}
.ra-envelope__name {
	font-family: Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
	font-size: clamp(0.72rem, 2.8vw, 0.88rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	color: #5a4630;
	text-align: center;
	text-wrap: balance;
}
.ra-envelope__seal {
	position: absolute;
	z-index: 6;
	left: 50%;
	top: 42%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.ra-envelope__seal-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 64px;
	height: 64px;
	display: block;
	filter: drop-shadow(0 2px 2px rgba(60,20,16,0.35));
	transform-origin: 32px 36px;
}
.ra-envelope__hint {
	display: block;
	margin: 12px 0 2px;
	font-family: Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
	font-size: 0.92rem;
	letter-spacing: 0.06em;
	color: #7a3b2e;
	opacity: 0.85;
}
.ra-envelope__sheet {
	position: relative;
	z-index: 2;
}
.ra-envelope__sheet .ra-stationery {
	margin-top: 0;
	margin-bottom: 0;
}
.ra-envelope__replay-wrap {
	margin: 8px 0 1.2em;
	text-align: right;
}
.ra-envelope__replay {
	border: 0;
	background: none;
	padding: 0;
	color: #7a3b2e;
	font-family: Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ra-envelope__replay:focus-visible {
	outline: 2px solid #7a3b2e;
	outline-offset: 3px;
}

/* Closed: envelope in flow, letter clipped out of flow (still in the DOM). */
.ra-envelope.is-closed {
	overflow: hidden;
}
.ra-envelope.is-closed .ra-envelope__sheet {
	position: absolute;
	left: 7%;
	right: 7%;
	top: 16%;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(22%) scaleY(0.28);
	transform-origin: top center;
	opacity: 0;
}
.ra-envelope.is-closed .ra-envelope__open {
	position: relative;
	z-index: 4;
}

/* Opening: transforms only (plus opacity). Space is reserved by JS min-height.
   The envelope chrome is taken out of flow so it can fade over the letter. */
.ra-envelope.is-opening {
	overflow: hidden;
}
.ra-envelope.is-opening .ra-envelope__open {
	position: relative;
	z-index: 4;
	pointer-events: none;
}
.ra-envelope.is-opening .ra-envelope__seal-svg--left {
	transform: translate(-18px, 14px) rotate(-22deg);
	opacity: 0;
	transition: transform 0.45s ease-in, opacity 0.45s ease-in 0.05s;
}
.ra-envelope.is-opening .ra-envelope__seal-svg--right {
	transform: translate(20px, 16px) rotate(26deg);
	opacity: 0;
	transition: transform 0.45s ease-in, opacity 0.45s ease-in 0.05s;
}
.ra-envelope.is-opening .ra-envelope__flap {
	transform: rotateX(-168deg);
	transition: transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) 0.22s;
	z-index: 1;
}
.ra-envelope.is-opening .ra-envelope__hint,
.ra-envelope.is-opening .ra-envelope__name {
	opacity: 0;
	transition: opacity 0.3s ease 0.1s;
}
.ra-envelope.is-opening .ra-envelope__front,
.ra-envelope.is-opening .ra-envelope__back,
.ra-envelope.is-opening .ra-envelope__pocket {
	opacity: 0;
	transition: opacity 0.45s ease 1.25s;
}
.ra-envelope.is-opening .ra-envelope__sheet {
	position: relative;
	z-index: 2;
	transform: translateY(0) scaleY(1);
	opacity: 1;
	transition:
		transform 1.2s cubic-bezier(0.22, 0.7, 0.25, 1) 0s,
		opacity 0.45s ease 0s;
	transform-origin: top center;
}
.ra-envelope.is-opening .ra-stationery__letter {
	opacity: 1;
	transition: opacity 0.5s ease 0.15s;
}

.ra-envelope.is-opening:not(.is-closed) .ra-envelope__sheet {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	z-index: 5;
	overflow: visible;
	pointer-events: auto;
}
.ra-envelope.is-opening:not(.is-closed) .ra-envelope__open {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1;
}

.ra-envelope.is-open .ra-envelope__sheet {
	position: relative;
	transform: none;
	opacity: 1;
}

@media (max-width: 480px) {
	.ra-envelope__seal,
	.ra-envelope__seal-svg { width: 56px; height: 56px; }
	.ra-envelope__hint { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ra-envelope.is-opening .ra-envelope__seal-svg--left,
	.ra-envelope.is-opening .ra-envelope__seal-svg--right,
	.ra-envelope.is-opening .ra-envelope__flap,
	.ra-envelope.is-opening .ra-envelope__hint,
	.ra-envelope.is-opening .ra-envelope__name,
	.ra-envelope.is-opening .ra-envelope__front,
	.ra-envelope.is-opening .ra-envelope__back,
	.ra-envelope.is-opening .ra-envelope__pocket,
	.ra-envelope.is-opening .ra-envelope__sheet,
	.ra-envelope.is-opening .ra-stationery__letter {
		transition: none;
		transform: none;
		opacity: 1;
	}
	.ra-envelope.is-closed {
		height: auto;
		overflow: visible;
	}
	.ra-envelope.is-closed .ra-envelope__open { display: none; }
	.ra-envelope.is-closed .ra-envelope__sheet {
		position: relative;
		transform: none;
		opacity: 1;
		max-height: none;
		width: auto;
		overflow: visible;
		pointer-events: auto;
	}
	.ra-envelope.is-closed .ra-envelope__replay-wrap { display: block; }
}
