:root {
	--paper: #f6efe4;
	--desk: #e6d9c4;
	--ink: #2b2118;
	--ink-soft: #5c4a3b;
	--gold: #b8862b;
	--gold-dark: #8a6420;
	--gold-light: #d9b15c;
	--gold-pale: #f3e6c4;
	--serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
	--script: "Great Vibes", cursive;
	--hand: "Allura", "Great Vibes", cursive;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	margin-top: 0 !important;
}

.alex50-body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background:
		radial-gradient(880px 420px at -10% -10%, rgba(217, 177, 92, 0.35), transparent 60%),
		radial-gradient(720px 460px at 110% 110%, rgba(184, 134, 43, 0.22), transparent 58%),
		var(--desk);
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.alex50-wrap {
	min-height: 100vh;
	padding: 10px;
}

.alex50-sheet {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	min-height: calc(100vh - 20px);
	padding: 42px 20px 26px;
	background-color: var(--paper);
	background-image:
		radial-gradient(ellipse at 50% 0%, rgba(255, 252, 245, 0.7), transparent 55%);
	box-shadow:
		inset 0 0 0 1px #c6a15e,
		inset 0 0 0 7px #f6efe4,
		inset 0 0 0 8px rgba(198, 161, 94, 0.55),
		0 18px 44px rgba(70, 42, 12, 0.1);
}

.is-gallery .alex50-sheet {
	max-width: 1100px;
}

.alex50-ornament {
	position: absolute;
	z-index: 2;
	pointer-events: none;
	width: 200px;
	height: 136px;
}

.alex50-ornament-tl {
	top: 2px;
	left: 0;
}

.alex50-ornament-br {
	right: 0;
	bottom: 2px;
	width: 188px;
	height: 146px;
}

.alex50-hero,
.alex50-facts,
.alex50-main,
.alex50-foot {
	position: relative;
	z-index: 3;
}

.alex50-hero,
.alex50-foot,
.alex50-panel {
	text-align: center;
}

.alex50-eyebrow {
	margin: 0;
	font-weight: 600;
	font-size: 1.02rem;
	letter-spacing: 0.58em;
	text-indent: 0.58em;
	text-transform: uppercase;
}

.alex50-num {
	margin: 0.02em 0 0;
	color: #b8862b;
	font-weight: 600;
	font-style: italic;
	font-size: clamp(6.2rem, 29vw, 9rem);
	line-height: 0.76;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.alex50-num {
		background-image: linear-gradient(168deg, #f8efd4 0%, #e8d5a2 18%, #d9b15c 40%, #b8862b 64%, #f1e2b6 80%, #8a6420 100%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
	}
}

.is-gallery .alex50-num {
	font-size: clamp(4.5rem, 16vw, 7rem);
}

.alex50-script {
	margin: -0.12em 0 0;
	color: var(--ink);
	font-family: var(--script);
	font-weight: 400;
	font-size: clamp(3.15rem, 12.5vw, 4.9rem);
	line-height: 0.8;
}

.alex50-brushline {
	display: block;
	width: min(270px, 68%);
	height: 20px;
	margin: 0 auto 6px;
}

.alex50-when {
	margin: 0 auto;
	max-width: 28em;
	font-size: 1.12rem;
	font-weight: 500;
}

.alex50-facts {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin: 22px 4px 6px;
}

.alex50-facts > div {
	padding: 0 6px;
}

.alex50-facts > div + div {
	border-left: 1px solid rgba(184, 134, 43, 0.4);
}

.alex50-facts svg {
	width: 28px;
	height: 28px;
	color: var(--gold-dark);
}

.alex50-facts span {
	display: block;
	margin-top: 4px;
	color: var(--gold-dark);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-indent: 0.16em;
	text-transform: uppercase;
}

.alex50-facts strong {
	display: block;
	margin-top: 3px;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.15;
}

.alex50-main {
	margin-top: 18px;
}

.alex50-kicker {
	margin: 0 0 4px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.34em;
	text-indent: 0.34em;
	text-transform: uppercase;
}

.alex50-lead {
	margin: 0 auto 16px;
	max-width: 22em;
	font-size: 1.55rem;
	font-style: italic;
	font-weight: 500;
	line-height: 1.25;
}

.alex50-panel {
	margin: 0;
}

.alex50-form,
.alex50-picker,
.alex50-field {
	position: relative;
}

.alex50-picker {
	margin-top: 6px;
	padding: 22px 16px 16px;
	border: 1px solid rgba(184, 134, 43, 0.75);
	border-radius: 22px;
	background: rgba(255, 252, 247, 0.42);
}

.alex50-picker::before {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(184, 134, 43, 0.32);
	border-radius: 17px;
	pointer-events: none;
}

.alex50-picker.is-over {
	background: rgba(232, 209, 150, 0.35);
}

.alex50-field {
	display: block;
	margin: 0 8px 16px;
	text-align: left;
}

.alex50-field span {
	display: block;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.alex50-field input {
	width: 100%;
	margin-top: 2px;
	padding: 8px 2px;
	border: none;
	border-bottom: 1px solid rgba(138, 100, 32, 0.45);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.35rem;
}

.alex50-field input::placeholder {
	color: rgba(43, 33, 24, 0.38);
}

.alex50-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--gold-dark);
	border-radius: 999px;
	background-image: linear-gradient(180deg, #f6ebc8 0%, #e4c98a 24%, #c9963c 60%, #a67c2d 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.72),
		inset 0 -2px 3px rgba(138, 100, 32, 0.28),
		0 8px 16px rgba(138, 100, 32, 0.18);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.18rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-indent: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.alex50-btn:hover {
	filter: brightness(1.04);
}

.alex50-btn:active {
	transform: translateY(1px);
}

.alex50-btn-block {
	width: 100%;
}

.alex50-btn-small {
	min-height: 46px;
	padding: 0.55rem 1.1rem;
	font-size: 0.98rem;
	letter-spacing: 0.12em;
	text-indent: 0.12em;
}

.alex50-btn-ghost,
html.alex50-js .alex50-fallback-submit {
	margin-top: 12px;
	background: transparent;
	box-shadow: none;
}

html.alex50-js .alex50-fallback-submit {
	display: none;
}

.alex50-filebtn {
	position: relative;
	width: min(100%, 320px);
}

.alex50-file {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.alex50-hint,
.alex50-more,
.alex50-note,
.alex50-closed,
.alex50-empty p {
	color: var(--ink-soft);
	font-size: 1.08rem;
}

.alex50-hint {
	margin: 12px auto 0;
	max-width: 26em;
}

.alex50-drop-hint {
	display: none;
}

.alex50-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.alex50-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.alex50-progress {
	margin: 16px 4px 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.alex50-progress-item + .alex50-progress-item {
	margin-top: 10px;
}

.alex50-progress-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 1.02rem;
}

.alex50-progress-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alex50-progress-state {
	flex: none;
	color: var(--gold-dark);
	font-style: italic;
}

.alex50-progress-track {
	height: 8px;
	margin-top: 4px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(138, 100, 32, 0.16);
}

.alex50-progress-bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #8a6420, #e0c27a);
}

.alex50-progress-item.is-done .alex50-progress-state {
	color: #6a5324;
}

.alex50-progress-item.is-error .alex50-progress-state,
.alex50-alert {
	color: #7a3424;
}

.alex50-progress-item.is-error .alex50-progress-bar {
	background: #8a3b2a;
}

.alex50-alert {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid rgba(138, 59, 42, 0.35);
	border-radius: 12px;
	background: rgba(138, 59, 42, 0.08);
	font-size: 1.05rem;
}

.alex50-success-text {
	margin: 8px auto 14px;
	max-width: 18em;
	font-size: 1.45rem;
	font-style: italic;
	font-weight: 500;
	line-height: 1.3;
}

.alex50-success-actions {
	margin: 0 0 8px;
}

.alex50-note,
.alex50-closed {
	margin: 0 auto 14px;
	max-width: 28em;
}

.alex50-more {
	margin: 18px 0 0;
	font-style: italic;
}

.alex50-more a,
.alex50-textbtn {
	color: var(--gold-dark);
}

.alex50-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: 4px;
}

.alex50-count {
	margin: 0;
	font-style: italic;
}

.alex50-textbtn {
	margin-left: 12px;
	border-bottom: 1px solid rgba(138, 100, 32, 0.35);
	text-decoration: none;
}

.alex50-textbtn:first-child {
	margin-left: 0;
}

.alex50-zip-wrap {
	margin: 14px 0 0;
}

.alex50-empty {
	margin-top: 12px;
	padding: 12px 8px 4px;
}

.alex50-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.alex50-thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #efe2cd;
	color: var(--gold-dark);
	text-decoration: none;
}

.alex50-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alex50-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px;
	font-style: italic;
	text-align: center;
}

.alex50-foot {
	margin-top: 28px;
	padding-bottom: 6px;
}

.alex50-sign {
	margin: 0;
	font-family: var(--hand);
	font-style: normal;
	font-weight: 400;
	font-size: clamp(3.1rem, 12vw, 4.2rem);
	line-height: 1.05;
}

.alex50-heart {
	display: block;
	margin-top: 2px;
	color: var(--gold);
}

.alex50-heart svg {
	width: 22px;
	height: 22px;
}

.is-upload .alex50-sheet {
	padding-top: 28px;
}

.alex50-heroimg {
	display: block;
	width: min(100%, 640px);
	height: auto;
	margin: 6px auto 8px;
}

.is-upload .alex50-lead {
	margin-top: 8px;
	font-size: clamp(1.45rem, 4.6vw, 1.85rem);
	font-style: italic;
	font-weight: 500;
}

.is-upload .alex50-field {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.is-upload .alex50-picker {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 28px;
	padding: 28px 18px 20px;
}

.is-upload .alex50-filebtn {
	width: auto;
	max-width: 100%;
	letter-spacing: 0.06em;
	text-indent: 0.06em;
	white-space: nowrap;
}

.alex50-tile {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #1c140e;
}

.alex50-gridvid {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #1c140e;
}

.alex50-badge,
.alex50-kind {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 2;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(246, 239, 228, 0.92);
	color: #2b2118;
	font-family: var(--serif);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.alex50-enlarge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid #c6a15e;
	border-radius: 999px;
	background: rgba(246, 239, 228, 0.92);
	color: #2b2118;
	font-family: var(--serif);
	font-size: 0.9rem;
	cursor: pointer;
}

.alex50-lb-figure video {
	max-width: 100%;
	max-height: calc(100vh - 150px);
	background: #000;
}

.alex50-lb-note {
	max-width: 28em;
	margin: 10px auto 0;
	color: #f6efe4;
	font-size: 1rem;
	text-align: center;
}

.alex50-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(18, 12, 8, 0.97);
	color: #f6efe4;
}

.alex50-lightbox::backdrop {
	background: rgba(18, 12, 8, 0.97);
}

.alex50-lb {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
}

.alex50-lb-figure {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
}

.alex50-lb-figure img {
	max-width: 100%;
	max-height: calc(100vh - 150px);
	object-fit: contain;
	background: #1a120c;
}

.alex50-lb-figure figcaption {
	margin-top: 8px;
	font-style: italic;
}

.alex50-lb-close,
.alex50-lb-nav {
	border: 1px solid rgba(217, 177, 92, 0.7);
	background: rgba(43, 33, 24, 0.45);
	color: #f6efe4;
	font-family: var(--serif);
	cursor: pointer;
}

.alex50-lb-close {
	position: absolute;
	top: calc(10px + env(safe-area-inset-top));
	right: 10px;
	z-index: 2;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
}

.alex50-lb-nav {
	position: absolute;
	top: 46%;
	z-index: 2;
	width: 48px;
	height: 72px;
	border-radius: 999px;
	font-size: 2.4rem;
	line-height: 1;
}

.alex50-lb-prev {
	left: 8px;
}

.alex50-lb-next {
	right: 8px;
}

.alex50-lb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 8px;
}

.alex50-lb-count {
	margin: 0;
	letter-spacing: 0.08em;
}

.alex50-body :focus-visible {
	outline: 2px solid var(--gold-dark);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.alex50-drop-hint {
		display: block;
	}

	.alex50-thumb img {
		transition: transform 0.35s ease;
	}

	.alex50-thumb:hover img {
		transform: scale(1.035);
	}
}

@media (min-width: 720px) {
	.alex50-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (min-width: 800px) {
	.alex50-wrap {
		padding: 32px 20px 40px;
	}

	.alex50-sheet {
		min-height: calc(100vh - 72px);
		padding: 62px 56px 36px;
	}

	.alex50-ornament {
		width: 210px;
		height: 160px;
	}

	.alex50-ornament-br {
		width: 230px;
		height: 176px;
	}
}

@media (min-width: 980px) {
	.is-gallery .alex50-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.alex50-ornament {
		width: 148px;
		height: 104px;
	}

	.alex50-ornament-br {
		width: 158px;
		height: 112px;
	}

	.alex50-facts strong {
		font-size: 0.92rem;
	}

	.alex50-lb-nav {
		width: 42px;
		height: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alex50-thumb img,
	.alex50-btn {
		transition: none;
	}
}
