:root {
	--color-bg: #f7f2ea;
	--color-paper: #fffdf8;
	--color-text: #2f2f2f;
	--color-muted: #6f6b63;
	--color-gold: #b89a62;
	--color-sage: #9aaa8d;
	--color-blush: #d7b7a5;
	--color-line: rgba(47, 47, 47, 0.12);
	--shadow-soft: 0 18px 50px rgba(47, 47, 47, 0.08);
	--font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: Lora, Georgia, "Times New Roman", serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 10% 5%, rgba(215, 183, 165, 0.18), transparent 28rem),
		linear-gradient(180deg, var(--color-bg) 0%, #fbf7ef 100%);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(47, 47, 47, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 47, 47, 0.014) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	pointer-events: none;
}

img,
svg {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: #7f6538;
}

:focus-visible {
	outline: 3px solid rgba(184, 154, 98, 0.55);
	outline-offset: 4px;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 50;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--color-text);
	color: var(--color-paper);
	transform: translateY(-160%);
	transition: transform 180ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid rgba(47, 47, 47, 0.08);
	background: rgba(247, 242, 234, 0.88);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1080px, calc(100% - 40px));
	min-height: 68px;
	margin: 0 auto;
	gap: 24px;
}

.site-header__brand {
	flex: 0 0 auto;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: 8px;
	background: rgba(255, 253, 248, 0.72);
	color: var(--color-text);
	cursor: pointer;
	gap: 5px;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.site-nav-toggle:hover {
	border-color: rgba(184, 154, 98, 0.38);
	background: var(--color-paper);
	box-shadow: 0 8px 20px rgba(47, 47, 47, 0.08);
}

.site-nav-toggle__line {
	display: block;
	width: 18px;
	height: 1px;
	background: currentColor;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

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

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: var(--color-muted);
	font-size: 0.86rem;
	white-space: nowrap;
}

.site-nav__links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	overflow-x: auto;
	padding: 5px;
	border: 1px solid rgba(47, 47, 47, 0.08);
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.54);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
	scrollbar-width: none;
}

.site-nav__links::-webkit-scrollbar {
	display: none;
}

.site-nav a {
	padding: 8px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease;
}

.site-nav a:hover {
	background: rgba(184, 154, 98, 0.13);
	color: var(--color-text);
	box-shadow: inset 0 0 0 1px rgba(184, 154, 98, 0.14);
}

.site-nav__contacts {
	display: none;
}

.site-nav-backdrop {
	display: none;
}

.section {
	padding: clamp(72px, 9vw, 130px) 0;
	scroll-margin-top: 84px;
}

.section--paper {
	background: rgba(255, 253, 248, 0.54);
	border-block: 1px solid rgba(47, 47, 47, 0.07);
}

.container {
	width: min(1080px, calc(100% - 40px));
	margin: 0 auto;
}

.text-column,
.section-heading {
	max-width: 760px;
	margin-bottom: 40px;
}

.section-heading {
	margin: 0 auto 42px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--color-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.08;
}

h1 {
	font-size: 5rem;
}

h2 {
	font-size: 4.5rem;
}

h3 {
	font-size: 1.55rem;
}

p {
	margin: 0;
}

p + p,
.text-column p,
.section-heading p + h2 {
	margin-top: 12px;
}

.hero {
	display: grid;
	min-height: calc(100svh - 68px);
	place-items: center;
	padding: clamp(64px, 8vw, 120px) 0;
}

.hero__inner {
	position: relative;
	max-width: 860px;
	padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 72px);
	border: 1px solid var(--color-line);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.66)),
		var(--color-paper);
	box-shadow: var(--shadow-soft);
	text-align: center;
}

.hero__inner::before,
.hero__inner::after {
	position: absolute;
	width: 86px;
	height: 86px;
	border-color: rgba(184, 154, 98, 0.42);
	content: "";
	pointer-events: none;
}

.hero__inner::before {
	top: 16px;
	left: 16px;
	border-top: 1px solid;
	border-left: 1px solid;
}

.hero__inner::after {
	right: 16px;
	bottom: 16px;
	border-right: 1px solid;
	border-bottom: 1px solid;
}

.decor {
	pointer-events: none;
	user-select: none;
}

.hero__bouquet {
	width: min(72px, 20vw);
	margin: -24px auto 18px;
	opacity: 1;
	mix-blend-mode: multiply;
	pointer-events: none;
	user-select: none;
}

.decor--section-top {
	width: min(520px, 84vw);
	margin: 0 auto 26px;
	opacity: 0.95;
}

.decor--meadow {
	float: right;
	width: min(260px, 30vw);
	margin: -32px 4px 0 34px;
	opacity: 0.85;
}

.hero__location {
	margin-top: 18px;
	color: var(--color-muted);
	font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero__time {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 14px auto 0;
	color: var(--color-muted);
	font-size: 0.98rem;
}

.hero__time span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
}

.hero__time strong {
	color: var(--color-text);
	font-weight: 700;
}

.hero__text {
	max-width: 520px;
	margin: 24px auto 0;
	color: var(--color-muted);
	font-size: 1.12rem;
}

.button-group {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: #828b56;
	color: var(--color-paper);
	color: var(--color-paper);
	box-shadow: 0 10px 24px rgba(47, 47, 47, 0.14);
}

.button--primary:hover {
	background: #1f1f1f;
	color: var(--color-paper);
}

.button--secondary {
	border-color: var(--color-line);
	background: rgba(255, 253, 248, 0.66);
	color: var(--color-text);
}

.button--secondary:hover {
	border-color: rgba(184, 154, 98, 0.55);
	color: var(--color-text);
}

.details-grid,
.cards-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.detail-card,
.info-card,
.rsvp-form {
	border: 1px solid var(--color-line);
	border-radius: 8px;
	background: rgba(255, 253, 248, 0.74);
}

.detail-card {
	min-height: 150px;
	padding: 24px;
}

.detail-card span {
	display: block;
	margin-bottom: 18px;
	color: var(--color-muted);
	font-size: 0.92rem;
}

.detail-card strong {
	display: block;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
}

.section-note {
	max-width: 760px;
	margin: 32px auto 0;
	color: var(--color-muted);
	text-align: center;
}

.river-divider {
	display: flex;
	justify-content: center;
	padding: 10px 20px 0;
	opacity: 0.78;
}

.river-divider img {
	width: min(720px, 100%);
	height: auto;
}

.two-column {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
	align-items: center;
	gap: clamp(32px, 6vw, 72px);
}

.two-column p {
	margin: 18px 0 28px;
	color: var(--color-muted);
}

.map-placeholder {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(154, 170, 141, 0.22), rgba(215, 183, 165, 0.18)),
		var(--color-paper);
	box-shadow: var(--shadow-soft);
}

.map-placeholder iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-placeholder__text {
	position: absolute;
	inset: 18px;
	display: grid;
	place-items: center;
	border: 1px dashed rgba(47, 47, 47, 0.22);
	border-radius: 8px;
	background: rgba(255, 253, 248, 0.72);
	color: var(--color-muted);
	text-align: center;
}

.cards-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 34px;
}

.cards-grid--compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 220px;
	padding: 26px;
}

.cards-grid--compact .info-card {
	min-height: 180px;
}

.cat-detail--peek {
	position: absolute;
	top: -82px;
	right: clamp(25px, 5vw, 50px);
	z-index: 1;
	width: min(136px, 32vw);
	border-radius: 0px 0px 0 0;
	opacity: 1;
	filter: drop-shadow(0 10px 18px rgba(47, 47, 47, 0.1));
	mix-blend-mode: multiply;
	pointer-events: none;
	user-select: none;
}

.info-card p,
.info-card span {
	color: var(--color-muted);
}

.info-card a {
	margin-top: auto;
	color: #7f6538;
	font-weight: 700;
}

.rsvp-layout {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
	gap: clamp(34px, 6vw, 80px);
	align-items: start;
}

.rsvp-form {
	position: relative;
	z-index: 2;
	padding: clamp(24px, 4vw, 42px);
	box-shadow: var(--shadow-soft);
}

.rsvp-form > :not(.cat-detail--peek) {
	position: relative;
	z-index: 2;
}

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

.form-field {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

label,
legend {
	display: block;
	margin-bottom: 8px;
	color: var(--color-text);
	font-size: 0.95rem;
	font-weight: 700;
}

input[type="text"],
input[type="number"],
select,
textarea {
	width: 100%;
	border: 1px solid rgba(47, 47, 47, 0.2);
	border-radius: 8px;
	background: #fffefa;
	color: var(--color-text);
	font: inherit;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease;
}

input[type="text"],
input[type="number"],
select {
	min-height: 48px;
	padding: 10px 14px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

input[type="number"] {
	appearance: textfield;
}

textarea {
	min-height: 130px;
	padding: 12px 14px;
	resize: vertical;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	border-color: var(--color-gold);
	background: var(--color-paper);
	box-shadow: 0 0 0 4px rgba(184, 154, 98, 0.14);
	outline: 0;
}

.radio-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 9px 0;
	color: var(--color-muted);
	font-weight: 400;
}

.radio-line input {
	width: 18px;
	height: 18px;
	margin-top: 5px;
	accent-color: var(--color-text);
}

.form-message {
	margin-bottom: 18px;
}

.form-message p {
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 700;
}

.form-message__success {
	border: 1px solid rgba(154, 170, 141, 0.45);
	background: rgba(154, 170, 141, 0.16);
	color: #47553d;
}

.form-message__error {
	border: 1px solid rgba(153, 77, 65, 0.35);
	background: rgba(215, 183, 165, 0.22);
	color: #7b352d;
}

.guest-names {
	margin-top: -4px;
}

.guest-stepper {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	align-items: stretch;
	width: 100%;
}

.guest-stepper input {
	position: relative;
	z-index: 1;
	border-right: 0;
	border-left: 0;
	border-radius: 0;
	text-align: center;
}

.guest-stepper__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid rgba(47, 47, 47, 0.2);
	background: rgba(247, 242, 234, 0.7);
	color: var(--color-text);
	font: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition:
		border-color 180ms ease,
		background-color 180ms ease,
		color 180ms ease;
}

.guest-stepper__button:first-child {
	border-radius: 8px 0 0 8px;
}

.guest-stepper__button:last-child {
	border-radius: 0 8px 8px 0;
}

.guest-stepper__button:hover:not(:disabled),
.guest-stepper__button:focus-visible {
	border-color: var(--color-gold);
	background: var(--color-paper);
	color: var(--color-gold);
	outline: 0;
}

.guest-stepper:focus-within .guest-stepper__button,
.guest-stepper:focus-within input {
	border-color: var(--color-gold);
}

.guest-stepper__button:disabled {
	color: rgba(47, 47, 47, 0.3);
	cursor: not-allowed;
}

.rsvp-form .button {
	width: 100%;
	margin-top: 4px;
}

.rsvp-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 20px;
}

.rsvp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(47, 47, 47, 0.34);
	backdrop-filter: blur(6px);
}

.rsvp-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	padding: clamp(28px, 5vw, 44px);
	border: 1px solid var(--color-line);
	border-radius: 8px;
	background: var(--color-paper);
	box-shadow: 0 26px 70px rgba(47, 47, 47, 0.18);
	text-align: center;
}

.rsvp-modal__dialog h2 {
	font-size: clamp(2.4rem, 7vw, 3.8rem);
}

.rsvp-modal__dialog p:not(.eyebrow) {
	margin: 18px auto 0;
	color: var(--color-muted);
	font-size: 1.08rem;
}

.rsvp-modal__dialog .button {
	margin-top: 28px;
}

.rsvp-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: rgba(247, 242, 234, 0.64);
	color: var(--color-text);
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
}

.rsvp-modal__close:hover {
	border-color: rgba(184, 154, 98, 0.42);
	background: var(--color-paper);
}

.site-footer {
	padding: 56px 20px 64px;
	border-top: 1px solid var(--color-line);
	color: var(--color-muted);
	text-align: center;
}

.site-footer img {
	width: 66px;
	margin: 0 auto 16px;
	opacity: 0.95;
}

.site-footer__names {
	color: var(--color-text);
	font-family: var(--font-heading);
	font-size: 1.9rem;
	line-height: 1.2;
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 700ms ease,
		transform 700ms ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}

	.reveal-on-scroll {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 900px) {
	.site-nav-backdrop {
		display: block;
		position: fixed;
		inset: 68px 0 0;
		z-index: 1;
		background: rgba(47, 47, 47, 0.28);
		backdrop-filter: blur(5px);
		opacity: 0;
		pointer-events: none;
		transition:
			opacity 180ms ease,
			visibility 180ms ease;
		visibility: hidden;
	}

	.site-header.is-nav-open + .site-nav-backdrop {
		opacity: 1;
		visibility: visible;
	}

	.site-header__inner {
		position: relative;
		z-index: 2;
		align-items: center;
		justify-content: space-between;
		padding: 12px 0;
	}

	.site-nav-toggle {
		display: inline-flex;
	}

	.site-header.is-nav-open .site-nav-toggle__line:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.site-header.is-nav-open .site-nav-toggle__line:nth-child(2) {
		opacity: 0;
	}

	.site-header.is-nav-open .site-nav-toggle__line:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.site-nav {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		left: 0;
		z-index: 45;
		display: block;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		border: 1px solid transparent;
		border-radius: 12px;
		background: var(--color-paper);
		box-shadow: 0 22px 44px rgba(47, 47, 47, 0.14);
		opacity: 0;
		transform: translateY(-6px);
		visibility: hidden;
		transition:
			max-height 260ms ease,
			opacity 180ms ease,
			transform 180ms ease,
			visibility 180ms ease,
			border-color 180ms ease;
	}

	.site-header.is-nav-open .site-nav {
		max-height: 560px;
		border-color: var(--color-line);
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
	}

	.site-nav__links {
		display: grid;
		grid-template-columns: 1fr;
		justify-content: stretch;
		gap: 6px;
		padding: 12px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
	}

	.site-nav__links a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		padding: 12px 14px;
		border: 1px solid rgba(47, 47, 47, 0.08);
		border-radius: 8px;
		background: rgba(247, 242, 234, 0.54);
		color: var(--color-text);
		font-size: 1rem;
	}

	.site-nav__links a::after {
		color: var(--color-gold);
		content: "→";
		font-family: Georgia, "Times New Roman", serif;
		font-size: 1rem;
		opacity: 0.72;
	}

	.site-nav__links a:hover {
		border-color: rgba(184, 154, 98, 0.34);
		background: rgba(247, 242, 234, 0.86);
		color: var(--color-text);
	}

	.site-nav__contacts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 14px 12px 12px;
		border-top: 1px solid rgba(47, 47, 47, 0.08);
		background: rgba(247, 242, 234, 0.62);
	}

	.site-nav__contacts p {
		grid-column: 1 / -1;
		color: var(--color-gold);
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.site-nav__contacts a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 42px;
		padding: 9px 10px;
		border: 1px solid var(--color-line);
		border-radius: 999px;
		background: var(--color-paper);
		color: var(--color-text);
		font-size: 0.88rem;
		font-weight: 700;
		text-align: center;
	}

	.site-nav__contacts a:hover {
		border-color: rgba(184, 154, 98, 0.44);
		background: #fffaf0;
	}

	.section {
		scroll-margin-top: 116px;
	}

	.details-grid,
	.cards-grid,
	.cards-grid--compact,
	.two-column,
	.rsvp-layout {
		grid-template-columns: 1fr;
	}

	.detail-card {
		min-height: auto;
	}

	.map-placeholder {
		min-height: 300px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.container,
	.site-header__inner {
		width: min(100% - 28px, 1080px);
	}

	.hero {
		min-height: auto;
		padding-top: 38px;
	}

	.hero__inner {
		padding: 38px 18px;
	}

	.hero__bouquet {
		width: 62px;
		margin-top: -10px;
	}

	.decor--meadow {
		float: none;
		width: 176px;
		margin: -18px auto 18px;
	}

	.hero__inner::before,
	.hero__inner::after {
		width: 52px;
		height: 52px;
	}

	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: clamp(2.2rem, 13vw, 3.2rem);
	}

	.button-group,
	.form-grid {
		grid-template-columns: 1fr;
	}

	.button-group {
		display: grid;
	}

	.button-group .button {
		width: 100%;
	}

	.rsvp-form {
		padding: 22px 16px;
	}

	.cat-detail--peek {
		top: -69px;
		right: 18px;
		width: 112px;
		opacity: 1;
	}
}
