@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400&family=DM+Sans:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

@font-face {
	font-family: 'New Icon Script';
	src: url('../fonts/NewIconScript-Regular.woff2') format('woff2');
	font-display: swap;
}

:root {
	--ink: #20201d;
	--paper: #fcfff5;
	--paper-alt: #6d6844;
	--green: #6d6844;
	--line: rgba(32, 32, 29, 0.22);
	--accent: #313118;
	--accent-alt: #fcfff5;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

.serif {
	font-family: 'New Icon Script', 'Playfair Display', serif;
	font-weight: 400;
}

.mono,
.eyebrow {
	font-family: 'DM Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 12px;
}

.eyebrow {
	color: var(--accent);
}

h1,
h2,
h3 {
	color: var(--green);
}

h1 em,
h2 em {
	color: var(--accent);
}

/* "ET" replacing the ampersand in "Blanche ET Théophile" — its own line, legible, orange. */
.et {
	color: var(--accent);
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 0.36em;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.1em;
	margin: 0.1em 0;
}

/* The one section painted in the green keeps its heading light. */
.registry-section h2 {
	color: var(--paper);
}

.site-header {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
	padding: 20px 5vw;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 2;
}

.brand {
	font-family: 'Playfair Display', serif;
	font-size: 27px;
	font-style: italic;
}

.brand-logo {
	display: block;
	height: 66px;
}

.nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: center;
}

.menu-toggle {
	background: transparent;
	border: 0;
	display: none;
	height: 28px;
	padding: 5px 0;
	position: absolute;
	right: 6vw;
	top: 24px;
	width: 38px;
	z-index: 5;
}

.menu-toggle span {
	background: var(--ink);
	display: block;
	height: 1px;
	position: absolute;
	right: 0;
	transition: transform 0.25s;
	width: 38px;
}

.menu-toggle span:first-child {
	top: 8px;
}

.menu-toggle span:last-child {
	top: 19px;
}

.menu-toggle.is-open span:first-child {
	transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
	transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle.is-open {
	position: fixed;
	right: 6vw;
	top: 20px;
}

.nav a {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nav a:hover {
	color: var(--accent);
}

.nav a[href='#rsvp'] {
	background: var(--paper-alt);
	border-radius: 999px;
	color: var(--accent-alt);
	padding: 9px 16px;
}

.nav a[href='#rsvp']:hover {
	background: var(--accent-alt);
	border-radius: 999px;
	color: var(--paper-alt);
	padding: 9px 16px;
}

@media (min-width: 801px) {
	.nav a.is-active {
		background: var(--accent);
		box-shadow: 0 0 0 9px var(--accent);
		color: var(--paper);
	}

	.nav a[href='#rsvp'].is-active {
		background: var(--accent);
		box-shadow: none;
		color: var(--paper);
	}
}

.button {
	background: var(--green);
	border: 1px solid var(--ink);
	border-radius: 999px;
	color: var(--paper);
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.12em;
	padding: 14px 26px;
	text-transform: uppercase;
	transition: 0.2s;
}

.button:hover {
	background: transparent;
	color: var(--ink);
}

.button.outline {
	background: transparent;
	color: var(--ink);
}

.button.outline:hover {
	background: var(--ink);
	color: var(--paper);
}

.button.small {
	font-size: 10px;
	letter-spacing: 0.1em;
	padding: 10px 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	box-shadow:
		0 0 0 3px var(--paper),
		0 0 0 5px var(--accent-alt);
	outline: none;
}

.hero {
	align-items: baseline;
	display: grid;
	grid-template-columns: 1.03fr 0.97fr;
	min-height: 100vh;
}

.hero-copy {
	padding: 80px 8vw 90px;
}

.hero h1 {
	font-size: 7.5rem;
	line-height: 0.9;
	margin: 24px 0 34px;
	max-width: 690px;
}

.hero h1 em {
	color: var(--accent);
}

.hero-meta {
	border-top: 1px solid var(--line);
	display: flex;
	gap: 54px;
	padding-top: 18px;
}

.hero-meta strong {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 21px;
	font-weight: 400;
	margin-top: 5px;
}

.hero-countdown {
	border-top: 1px solid var(--line);
	margin-top: 28px;
	padding-top: 18px;
}

.hero-image {
	align-self: stretch;
	min-height: 660px;
}

.hero-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.intro {
	display: grid;
	gap: 9vw;
	grid-template-columns: 0.75fr 1.25fr;
	padding: 150px 12vw;
}

.intro h2 {
	font-size: clamp(38px, 5vw, 74px);
	line-height: 1.05;
	margin: 0;
}

.intro-copy {
	max-width: 460px;
	padding-top: 30px;
}

.intro-copy p {
	font-size: 20px;
	line-height: 1.45;
	margin: 0 0 28px;
}

.gallery {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr 1.4fr 1fr;
	padding: 0 5vw 140px;
}

.intro > .gallery {
	grid-column: 1 / -1;
}

.gallery img {
	height: 430px;
	object-fit: cover;
	width: 100%;
}

.gallery img:nth-child(2) {
	height: 570px;
	margin-top: 100px;
}

.travel-section h2,
.registry-section h2,
.faq-section h2 {
	font-size: clamp(45px, 6vw, 88px);
	line-height: 0.95;
	margin: 12px 0 25px;
}

.travel-section,
.registry-section,
.faq-section {
	padding: 125px 12vw;
}

.travel-section {
	background: var(--paper);
	padding-bottom: 145px;
	padding-top: 145px;
}

/* ---------- Un week-end en Provence ---------- */

.weekend {
	background: #313118;
	color: var(--paper);
	padding: clamp(100px, 13vw, 180px) 12vw;
}

.weekend-head {
	margin: 0 auto 100px;
	max-width: 640px;
	text-align: center;
}

.weekend-head .eyebrow {
	color: var(--paper);
}

.weekend-head h2 {
	color: var(--paper);
	font-size: clamp(42px, 6vw, 80px);
	line-height: 0.98;
	margin: 14px 0 20px;
}

.weekend-head p {
	margin: 0 auto;
	max-width: 440px;
}

.weekend-days {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 760px;
}

.weekend-day {
	text-align: center;
}

.weekend-day + .weekend-day {
	margin-top: 88px;
	padding-top: 88px;
	position: relative;
}

.weekend-day + .weekend-day::before {
	background: color-mix(in srgb, var(--paper) 25%, transparent);
	content: '';
	height: 1px;
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 200px;
}

.weekend-day-name {
	font-family: 'Playfair Display', serif;
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 400;
	margin: 0;
}

.weekend-day-date {
	color: var(--paper);
	font-family: 'DM Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	margin: 10px 0 0;
	text-transform: uppercase;
}

.weekend-events {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 40px auto 0;
	max-width: 460px;
	padding: 0;
}

.weekend-event {
	padding: 28px 0;
	position: relative;
}

.weekend-event + .weekend-event::before {
	background: color-mix(in srgb, var(--paper) 25%, transparent);
	content: '';
	height: 1px;
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 48px;
}

.weekend-time {
	color: var(--paper);
	display: block;
	font-family: 'DM Mono', monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
}

.weekend-event-name {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 21px;
	margin-top: 5px;
}

.weekend-info {
	margin-top: 12px;
}

.weekend-info summary {
	color: var(--paper);
	cursor: pointer;
	display: inline-block;
	font-family: 'DM Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	list-style: none;
	opacity: 0.7;
	text-transform: uppercase;
	border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
	border-radius: 999px;
	padding: 0.5rem 0.9rem;
	background-color: color-mix(in srgb, var(--paper) 10%, transparent);
}

.weekend-info summary::-webkit-details-marker {
	display: none;
}

.weekend-info summary::after {
	content: ' +';
}

.weekend-info[open] summary {
	opacity: 0.85;
}

.weekend-info[open] summary::after {
	content: ' –';
}

.weekend-info p {
	color: color-mix(in srgb, var(--paper) 78%, transparent);
	margin: 10px auto 0;
	max-width: 42ch;
}

.weekend-dress {
	color: color-mix(in srgb, var(--paper) 70%, transparent);
	font-family: 'DM Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.05em;
	margin: 44px 0 0;
	text-transform: uppercase;
}

/* ---------- Les lieux ---------- */

.venues {
	background: #e6dcc9;
	padding: clamp(80px, 10vw, 140px) 12vw;
}

.venues-head {
	margin-bottom: 56px;
	text-align: center;
}

.venues-head h2 {
	font-size: clamp(40px, 5vw, 72px);
	margin: 12px 0 0;
}

.venues-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin: 0 auto;
	max-width: 1040px;
}

.venue {
	background: var(--paper);
	display: flex;
	flex-direction: column;
}

.venue img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.venue-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px 26px 30px;
}

.venue-body h3 {
	font-family: 'Playfair Display', serif;
	font-size: 26px;
	font-weight: 400;
	margin: 10px 0 12px;
}

.venue-body p {
	margin: 0;
}

.venue-body address {
	color: color-mix(in srgb, var(--ink) 60%, transparent);
	font-family: 'DM Mono', monospace;
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.02em;
	line-height: 1.75;
	margin: 18px 0 24px;
}

.venue-body .button {
	align-self: flex-start;
	margin-top: auto;
}

.travel-subsection + .travel-subsection {
	margin-top: 92px;
}

.travel-subsection > h3 {
	font-family: 'Playfair Display', serif;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	margin: 0 0 28px;
}

.travel-section > .stay-grid::before {
	content: 'Où séjourner';
}

.travel-grid {
	display: grid;
	gap: 54px;
	grid-template-columns: repeat(3, 1fr);
}

.travel-card {
	border-top: 1px solid var(--line);
	padding-top: 27px;
}

.travel-card h3 {
	font-family: 'Playfair Display', serif;
	font-size: 25px;
	font-weight: 400;
	margin: 0 0 8px;
}

.registry-section {
	background: var(--paper-alt);
	color: var(--paper);
	text-align: center;
}

.registry-section .eyebrow {
	color: var(--accent-alt);
}

.registry-section p {
	margin: 0 auto 32px;
	max-width: 480px;
}

.registry-section .button {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--green);
}

.registry-section .button:hover {
	background: transparent;
	color: var(--paper);
}

.faq-section {
	background: #e9e1d4;
}

.faq-list {
	margin: 0 auto;
	max-width: 850px;
}

.faq-item {
	border-top: 1px solid var(--line);
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr 1fr;
	padding: 25px 0;
}

.faq-item h3 {
	font-family: 'Playfair Display', serif;
	font-size: 23px;
	font-weight: 400;
	margin: 0;
}

.faq-item p {
	margin: 0;
}

.rsvp-section {
	display: grid;
	gap: 10vw;
	grid-template-columns: 1fr 1fr;
	padding: 140px 12vw;
}

.rsvp-section h2 {
	font-size: clamp(45px, 6vw, 88px);
	line-height: 0.95;
	margin: 15px 0 25px;
}

.form-grid {
	display: grid;
	gap: 28px 20px;
	grid-template-columns: 1fr 1fr;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 28px;
}

.field.full {
	grid-column: 1 / -1;
}

.field label {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	outline: none;
	padding: 11px 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
	border-color: var(--accent);
}

.field textarea {
	min-height: 90px;
	resize: vertical;
}

.notice {
	color: var(--accent);
	font-size: 13px;
	margin-top: 15px;
	min-height: 20px;
}

.footer {
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: center;
	padding: 35px 5vw;
	text-align: center;
}

.gate-page {
	display: block;
	margin: 0 auto;
	min-height: 100vh;
	padding: 70px 0.5rem;
}

.gate-visual {
	background: transparent;
	display: block;
	text-align: center;
}

.login-title {
	font-size: clamp(42px, 5.5vw, 72px);
	line-height: 0.95;
	margin: 0 0 55px;
	text-align: center;
	white-space: nowrap;
}

.login-date {
	color: var(--ink);
	padding: 0;
}

.login-date strong {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 25px;
	font-weight: 400;
	margin-top: 5px;
}

.login-countdown {
	display: block;
	margin-top: 17px;
	text-align: center;
}

.login-countdown > div {
	display: inline-block;
	margin: 0 11px;
	text-align: center;
}

.login-countdown span {
	font-family: 'DM Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.login-countdown strong {
	color: var(--ink);
	font-size: 26px;
}

.gate-panel {
	display: block;
	max-width: 520px;
	margin: 0 auto;
	padding: 65px 0 0;
	text-align: center;
	width: 100%;
}

.gate-panel p {
	margin-bottom: 35px;
	margin-left: auto;
	margin-right: auto;
	max-width: 420px;
}

.gate-panel .form {
	text-align: left;
}

.gate-panel .button {
	display: block;
	margin: 0 auto;
}

/* --- The card: one full screen, the form waits below --- */

.save-page {
	background: var(--paper);
}

.save-hero {
	display: flex;
	flex-direction: column;
	height: 100svh;
	min-height: 520px;
	padding: clamp(22px, 5vw, 40px) 7vw clamp(18px, 4vw, 34px);
	text-align: center;
}

.save-hero-label {
	color: var(--green);
	flex: none;
	font-family: 'Playfair Display', serif;
	font-size: clamp(15px, 4.2vw, 19px);
	letter-spacing: 0.05em;
	margin: 0;
}

.save-hero-label em {
	font-size: 1.06em;
	font-style: italic;
}

.save-hero-inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.save-hero-figure {
	flex: 1 1 0;
	margin: clamp(16px, 4vw, 28px) 0 0;
	min-height: 0;
	overflow: hidden;
}

.save-hero-figure img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.save-hero-copy {
	flex: none;
}

.save-hero-names {
	font-size: clamp(26px, 9vw, 65px);
	line-height: 1.15;
	margin: clamp(14px, 4vw, 26px) 0 0;
	white-space: nowrap;
}

/* The small "et" between the two script names stays in the same ink. */
.save-hero-names em {
	color: inherit;
	font-family: 'Playfair Display', serif;
	font-size: 0.42em;
	font-style: normal;
	padding: 0 0.1em;
	vertical-align: 0.5em;
}

.save-hero-date,
.save-hero-place,
.save-hero-note {
	color: var(--green);
	font-family: 'Playfair Display', serif;
}

.save-hero-date {
	font-size: clamp(15px, 4.2vw, 20px);
	font-style: italic;
	margin: clamp(26px, 8vw, 52px) 0 0;
}

.save-hero-place {
	font-size: clamp(25px, 6.5vw, 32px);
	line-height: 1.15;
	margin: 4px 0 0;
}

.save-hero-note {
	font-size: clamp(12px, 3.4vw, 15px);
	margin: 8px 0 0;
}

.save-scroll {
	color: var(--green);
	display: block;
	flex: none;
	margin: clamp(20px, 5vw, 36px) auto 0;
	width: clamp(40px, 11vw, 54px);
}

.save-scroll svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.4;
	width: 100%;
}

/* --- Second screen: the form --- */

.save-form-section {
	align-items: center;
	background: #313118;
	color: var(--paper);
	display: flex;
	min-height: 100svh;
}

.save-form-section {
	--accent-on-dark: #c7bf92;
}

.save-form-section .eyebrow {
	white-space: nowrap;
	font-size: clamp(9px, 2.8vw, 12px);
	letter-spacing: clamp(0.04em, 0.8vw, 0.12em);
	padding-bottom: 0.5rem;
	color: var(--accent-on-dark);
}

.save-form-section .eyebrow .accent {
	color: var(--accent-on-dark);
}

.save-form-section h2 {
	color: var(--paper);
}

.save-form-section h2 em {
	color: var(--accent-on-dark);
}

.save-form-section .save-copy > p {
	color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.save-form-section .save-copy [data-calendar] {
	border-color: var(--accent-on-dark);
	color: var(--accent-on-dark);
}

.save-form-section .save-copy [data-calendar]:hover {
	background: var(--accent-on-dark);
	border-color: var(--accent-on-dark);
	color: var(--green);
}

.save-form-section .button:hover {
	border-color: var(--paper);
	color: var(--paper);
}

.save-form-section .button.outline {
	border-color: var(--paper);
	color: var(--paper);
}

.save-form-section .button.outline:hover {
	background: var(--paper);
	color: var(--green);
}

.save-form-section .field label {
	color: var(--paper);
}

.save-form-section .field input {
	border-bottom-color: color-mix(
		in srgb,
		var(--accent-on-dark) 45%,
		transparent
	);
	color: var(--paper);
}

.save-form-section .field input:focus {
	border-color: var(--accent-on-dark);
}

.save-form-section .notice {
	color: var(--accent-on-dark);
}

.save-form-section .household-intro {
	color: var(--accent-on-dark);
}

.save-form-section .household-pick input,
.save-form-section input[type='checkbox'] {
	accent-color: var(--accent-on-dark);
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 1px solid var(--accent-on-dark);
	border-radius: 20%;
	display: inline-grid;
	flex: none;
	height: 18px;
	place-content: center;
	width: 18px;
}

.save-form-section .household-pick input::before,
.save-form-section input[type='checkbox']::before {
	background: var(--accent-on-dark);
	border-radius: 20%;
	content: '';
	height: 10px;
	transform: scale(0);
	transition: transform 0.15s ease;
	width: 10px;
}

.save-form-section .household-pick input:checked::before,
.save-form-section input[type='checkbox']:checked::before {
	transform: scale(1);
}

.save-content {
	display: block;
	margin: 0 auto;
	max-width: 620px;
	padding: clamp(70px, 11vw, 120px) 8vw clamp(60px, 9vw, 100px);
	position: relative;
	width: 100%;
}

.save-copy {
	align-self: center;
}

.save-content > .form {
	align-self: center;
	min-width: 0;
}
.save-content > .form {
	opacity: 1;
	transition: opacity 0.45s ease;
}
.save-content > .form.is-submitted {
	opacity: 0;
}
.save-complete {
margin: 0 auto;
opacity: 0;
padding: clamp(28px, 8vw, 48px) 0;
text-align: center;
transition: opacity 0.45s ease;
}
.save-complete.is-visible {
	opacity: 1;
}
.save-complete-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: clamp(62px, 18vw, 84px);
height: clamp(62px, 18vw, 84px);
}
.save-complete-mark svg {
width: 100%;
height: 100%;
overflow: visible;
}
.save-complete-mark circle {
fill: none;
stroke: currentColor;
stroke-width: 1.5;
opacity: 0.35;
stroke-dasharray: 151;
stroke-dashoffset: 151;
}
.save-complete-mark path {
fill: none;
stroke: var(--accent-on-dark, currentColor);
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 40;
stroke-dashoffset: 40;
}
.save-complete.is-visible .save-complete-mark circle {
animation: save-complete-draw 0.7s ease forwards;
}
.save-complete.is-visible .save-complete-mark path {
animation: save-complete-draw 0.45s ease 0.45s forwards;
}
@keyframes save-complete-draw {
to {
stroke-dashoffset: 0;
}
}
.save-complete-title {
font-size: clamp(30px, 8vw, 44px);
line-height: 1.1;
margin: clamp(18px, 5vw, 26px) 0 0.5rem;
}
.save-complete-text {
font-size: clamp(14px, 3.6vw, 16px);
margin: 0 auto;
max-width: 34ch;
opacity: 0.8;
padding: 0 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
.save-complete-mark circle,
.save-complete-mark path {
animation: none !important;
stroke-dashoffset: 0;
}
}

.save-content h2 {
	font-size: clamp(50px, 7vw, 92px);
	line-height: 0.84;
	margin: 1.6rem 0 0;
}

.save-content h2 em {
	color: var(--accent-on-dark);
}

.save-content > p {
	max-width: 540px;
}

.save-content .field {
	margin-bottom: 20px;
}

.save-content .field input {
	padding: 7px 0;
}

#save-date-form .form-grid,
#save-date-form .field {
	min-width: 0;
}

/* Scoped to .field so it never stretches the household tick boxes. */
#save-date-form .field input {
	min-width: 0;
	width: 100%;
}

.countdown {
	gap: 28px;
	margin: 28px 0;
}

.hero-countdown {
	display: flex;
}

.countdown strong {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 42px;
	font-weight: 400;
	line-height: 1;
}

.countdown span {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.admin-page {
	min-height: 100vh;
	padding: 120px 7vw 70px;
}

.admin-top {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 55px;
}

.admin-top h1 {
	font-size: clamp(54px, 7vw, 100px);
	line-height: 0.9;
	margin: 15px 0 0;
}

.admin-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.admin-card {
	background: #fcfff5;
	box-shadow:
		0 14px 34px -16px rgba(32, 32, 29, 0.28),
		0 2px 6px rgba(32, 32, 29, 0.06);
	color: var(--ink);
	padding: 30px;
}

.admin-card h2 {
	color: var(--green);
	font-family: 'Playfair Display', serif;
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 22px;
}

/* Card title on the left, its CSV export button in the corner. The gap under the
   heading moves from the h2 to the row, so a wrapped button keeps the same air. */
.admin-card-head {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.admin-card-head h2 {
	margin-bottom: 0;
}

/* Tables are the only green surface in the admin panel, with alternating rows. */
.admin-card .table-wrap {
	background: var(--green);
	margin-top: 4px;
}

.admin-card table {
	color: var(--paper);
}

.admin-card thead tr {
	background: rgba(0, 0, 0, 0.16);
}

.admin-card tbody tr:nth-child(even) {
	background: rgba(245, 241, 233, 0.08);
}

.admin-card th,
.admin-card td {
	border-bottom: 1px solid rgba(245, 241, 233, 0.12);
	padding: 13px 14px;
}

.admin-card tbody tr:last-child td {
	border-bottom: 0;
}

.switch-row {
	align-items: center;
	display: flex;
	justify-content: space-between;
	max-width: 440px;
}

.switch {
	background: #aaa59b;
	border: 0;
	border-radius: 30px;
	height: 32px;
	padding: 4px;
	width: 62px;
}

.switch span {
	background: white;
	border-radius: 50%;
	display: block;
	height: 24px;
	transition: 0.2s;
	width: 24px;
}

.switch.on {
	background: var(--accent);
}

.switch.on span {
	transform: translateX(30px);
}

.table-wrap {
	overflow: auto;
	position: relative;
}

table {
	border-collapse: collapse;
	font-size: 13px;
	min-width: 540px;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid var(--line);
	padding: 13px 10px;
	text-align: left;
}

th {
	font-family: 'DM Mono', monospace;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
#rsvp-list tr.is-declined {
	color: var(--accent-alt);
}

.hidden {
	display: none !important;
}

@media (max-width: 800px) {
	.site-header {
		padding: 20px 6vw;
		z-index: 1000;
	}

	.menu-toggle {
		display: block;
		position: absolute;
		right: 6vw;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1003;
	}
	.menu-toggle.is-open {
		position: absolute;
		top: 50%;
	}
	.brand-logo {
		display: block;
		height: 58px;
	}

	.nav {
		background: var(--paper);
		display: flex;
		align-items: center;
		flex-direction: column;
		gap: 26px;
		justify-content: center;
		inset: 0;
		opacity: 0;
		position: fixed;
		pointer-events: none;
		z-index: 1001;
		transform: scale(1.04);
		transition:
			opacity 0.32s ease,
			transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
			visibility 0.32s;
		visibility: hidden;
	}

	.nav.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: scale(1);
		visibility: visible;
	}

	.brand {
		position: relative;
		z-index: 1004;
	}

	.nav a {
		font-family: 'Playfair Display', serif;
		font-size: clamp(25px, 7vw, 42px);
		letter-spacing: 0;
		text-transform: none;
	}

	.nav a[href='#rsvp'] {
		padding: 12px 20px;
	}

	.weekend {
		padding: 104px 8vw;
	}

	.weekend-head {
		margin-bottom: 72px;
	}

	.travel-section {
		padding-bottom: 110px;
		padding-top: 100px;
	}

	.venues {
		padding: 80px 8vw;
	}

	.hero {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		min-height: 0;
		position: relative;
	}

	.gate-page {
		display: block;
	}

	.hero-copy {
		display: contents;
	}

	.hero-copy > .eyebrow {
		display: none;
	}

	.hero h1 {
		color: var(--paper);
		font-size: clamp(46px, 14vw, 96px);
		align-self: start;
		grid-column: 1;
		grid-row: 1;
		justify-self: stretch;
		margin: 0;
		overflow: hidden;
		padding: 52px 2vw 0;
		position: relative;
		text-align: center;
		width: 100%;
		z-index: 2;
	}

	.hero-countdown {
		align-self: start;
		border-top-color: rgba(245, 241, 233, 0.55);
		color: var(--paper);
		grid-column: 1;
		grid-row: 1;
		justify-self: center;
		justify-content: center;
		margin: 25rem 0 0;
		padding: 18px 6vw 0;
		position: relative;
		width: auto;
		z-index: 2;
	}

	.hero-image {
		display: block;
		grid-column: 1;
		grid-row: 1;
		height: min(100svh, 720px);
		min-height: 480px;
		order: 0;
		max-width: 100vw;
		width: 100%;
	}

	.hero-image img {
		display: block;
	}

	.hero-countdown strong {
		color: var(--paper);
	}

	.hero-copy > p {
		grid-column: 1;
		grid-row: 2;
		margin: 0;
		order: 0;
		padding: 52px 7vw 0;
	}

	.hero-meta {
		grid-column: 1;
		grid-row: 3;
		margin: 30px 7vw 70px;
		order: 0;
	}

	.intro,
	.rsvp-section {
		display: block;
		padding: 90px 8vw;
	}

	.intro-copy {
		padding-top: 35px;
	}

	.gallery {
		gap: 8px;
		margin-top: 5rem;
		padding: 0 0 80px;
	}

	.gallery img {
		height: 230px;
	}

	.gallery img:nth-child(2) {
		height: 310px;
		margin-top: 45px;
	}

	.travel-grid {
		display: block;
	}

	.travel-card {
		margin-top: 42px;
	}

	.faq-section,
	.travel-section,
	.registry-section {
		padding: 90px 8vw;
	}

	.faq-item {
		display: block;
	}

	.faq-item p {
		margin-top: 12px;
	}

	.rsvp-section .form {
		margin-top: 50px;
	}

	.save-content {
		display: block;
	}

.save-content > .form {
margin-top: 50px;
}

.save-complete {
margin-top: 50px;
}

	.gate-visual {
		height: auto;
	}

	.login-date {
		padding: 25px 0 22px;
	}

	.login-title {
		font-size: clamp(30px, 9vw, 52px);
		margin-bottom: 38px;
		white-space: nowrap;
	}

	.gate-panel .form-grid {
		display: block;
	}

	.gate-panel {
		padding: 1rem 8vw;
	}

	.admin-page {
		min-height: 100svh;
		padding: 84px 14px 40px;
	}

	.admin-top {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		margin-bottom: 32px;
		padding: 0 4px;
	}

	.admin-grid {
		gap: 16px;
	}

	.admin-card {
		padding: 24px 18px;
	}

	.admin-card h2 {
		font-size: 27px;
	}

	.admin-card th,
	.admin-card td {
		padding: 11px 10px;
	}
}

@media (min-width: 901px) {
	.save-hero-inner {
		align-items: center;
		display: grid;
		gap: clamp(40px, 5vw, 80px);
		grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
		margin: 0 auto;
		max-width: 1180px;
		width: 100%;
	}

	.save-hero-figure {
		align-self: center;
		height: min(64vh, 600px);
		margin: 0;
	}

	.save-hero-names {
		font-size: clamp(38px, 4.4vw, 64px);
		margin-top: 0;
	}
}

@media (min-width: 1200px) {
	.save-content {
		display: grid;
		gap: 8vw;
		grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
		max-width: 1240px;
		padding-top: 45px;
	}

	.save-content h2 {
		margin: 1.6rem 0 18px;
	}
}

/* ---------- Add to calendar ---------- */

.rsvp-section [data-calendar] {
	margin-top: 12px;
}

.save-copy [data-calendar] {
	margin-top: 24px;
}

/* ---------- RSVP: photo switch ---------- */

.switch-field {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 14px;
	margin: 14px 0 30px;
}

.switch-field input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.switch-visual {
	background: #cfc9bd;
	border-radius: 30px;
	flex: none;
	height: 26px;
	margin-top: 1px;
	padding: 3px;
	transition: background 0.2s;
	width: 46px;
}

.switch-visual > span {
	background: var(--paper);
	border-radius: 50%;
	display: block;
	height: 20px;
	transition: transform 0.2s;
	width: 20px;
}

.switch-field input:checked + .switch-visual {
	background: var(--accent);
}

.switch-field input:checked + .switch-visual > span {
	transform: translateX(20px);
}

.switch-field input:focus-visible + .switch-visual {
	box-shadow:
		0 0 0 3px var(--paper),
		0 0 0 5px var(--accent-alt);
}

.switch-label {
	font-size: 14px;
	line-height: 1.42;
}

/* ---------- Wedding-gift page ---------- */

.gift-page {
	margin: 0 auto;
	max-width: 1080px;
	padding: 30px 8vw 100px;
}

.gift-intro {
	border-bottom: 1px solid var(--line);
	margin-bottom: 58px;
	padding-bottom: 46px;
}

.gift-back {
	display: inline-block;
	margin-bottom: 26px;
}

.gift-intro h1 {
	font-size: clamp(46px, 8vw, 92px);
	line-height: 0.9;
	margin: 12px 0 22px;
}

.gift-intro p {
	font-size: 18px;
	max-width: 620px;
}

.gift-options {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.gift-options-separator {
	background: var(--line);
	height: 1px;
	margin: 0 auto;
	width: 64px;
}

.gift-options-secondary {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gift-card {
	background: var(--paper);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	padding: 34px 32px 36px;
}

.gift-card h2 {
	font-family: 'Playfair Display', serif;
	font-size: 30px;
	font-weight: 400;
	margin: 10px 0 16px;
}

.gift-card-secondary {
	padding: 24px 22px 26px;
}

.gift-card-secondary h2 {
	font-size: 21px;
	margin: 8px 0 12px;
}

.gift-card-secondary .eyebrow,
.gift-card-secondary p {
	font-size: 12px;
}

.gift-card-secondary .gift-bank dd {
	font-size: 12px;
}

.gift-card > p {
	margin: 0 0 20px;
}

.gift-bank {
	border-top: 1px solid var(--line);
	margin: 4px 0 16px;
}

.gift-bank > div {
	border-bottom: 1px solid var(--line);
	padding: 13px 0;
}

.gift-bank dt {
	color: color-mix(in srgb, var(--ink) 58%, transparent);
	font-family: 'DM Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.gift-bank dd {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-family: 'DM Mono', monospace;
	font-size: 13px;
	gap: 8px 12px;
	letter-spacing: 0.02em;
	margin: 0;
}

.gift-bank dd span {
	overflow-wrap: anywhere;
}

.gift-copy {
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: 'DM Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	padding: 5px 13px;
	text-transform: uppercase;
	transition: 0.2s;
}

.gift-copy:hover {
	background: var(--ink);
	color: var(--paper);
}

.gift-note {
	color: color-mix(in srgb, var(--ink) 64%, transparent);
	font-size: 13px;
	margin: 12px 0 0;
}

.gift-card .button {
	align-self: flex-start;
	margin-top: auto;
}

/* ---------- Admin: guests & days ---------- */

.admin-card > p {
	max-width: 640px;
}

.admin-add-family {
	border-bottom: 1px solid var(--line);
	margin-bottom: 26px;
	max-width: 560px;
	padding-bottom: 6px;
}

/* --- Admin: one card per family --- */

.family-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.family {
	background: color-mix(in srgb, var(--paper) 55%, transparent);
	border: 1px solid var(--line);
	box-shadow: 0 3px 8px -4px rgba(32, 32, 29, 0.22);
	padding: 20px 20px 22px;
}

.family-head {
	align-items: baseline;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.family-head h3 {
font-family: 'Playfair Display', serif;
font-size: 22px;
font-weight: 400;
margin: 0 auto 0 0;
}

/* The headcount sits between the name and the remove link, and stays quiet. */
.family-count,
.family-total {
color: color-mix(in srgb, var(--ink) 55%, transparent);
font-size: 12px;
letter-spacing: 0.06em;
text-transform: uppercase;
}

.family-total {
margin-top: 6px;
}

.family .admin-days {
	margin-bottom: 16px;
}

.family-members {
	border-top: 1px solid var(--line);
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.family-members li {
	align-items: center;
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 10px 0;
}

.family-empty {
	color: color-mix(in srgb, var(--ink) 55%, transparent);
	font-size: 13px;
}

.family-members .family-empty {
	justify-content: flex-start;
}

/* .link-remove is tuned for the green tables; on a family card it needs ink. */
.family .link-remove {
	color: var(--ink);
	opacity: 0.6;
}

.family .link-remove:hover {
	color: var(--accent);
	opacity: 1;
}

.family-add-member {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.family-add-member input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	flex: 1 1 130px;
	min-width: 0;
	outline: none;
	padding: 8px 0;
}

.family-add-member input:focus {
	border-color: var(--accent);
}

.family-add-member .button {
	flex: none;
}

/* --- Guest forms: answering for the whole household --- */

.household {
	margin-bottom: 30px;
}

.household-intro {
	color: var(--accent);
	font-size: 14px;
	margin: 0 0 16px;
}

.household-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.household-member {
	border-top: 1px solid var(--line);
	padding: 18px 0;
}

.household-member:last-child {
	border-bottom: 1px solid var(--line);
}

.household-pick {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-family: 'Playfair Display', serif;
	font-size: 19px;
	gap: 12px;
}

.household-pick input {
	accent-color: var(--accent);
	flex: none;
	height: 18px;
	width: 18px;
}

.household-name {
	font-family: 'Playfair Display', serif;
	font-size: 19px;
	margin: 0;
}

.household-answer {
	display: grid;
	gap: 16px 20px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	margin-top: 14px;
}

/* The rows carry their own rhythm; the page-wide field spacing would be too airy here. */
.household-answer .field {
	gap: 7px;
	margin-bottom: 0;
}

.household-answer .field span {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.household-answer select,
.household-answer input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	outline: none;
	padding: 9px 0;
	width: 100%;
}

.household-answer select:focus,
.household-answer input:focus {
	border-color: var(--accent);
}

/* A guest with nobody to choose from only sees their own name, unticked boxes
   would be noise. Keep the answer flush with it. */
.household-member:has(.household-name) .household-answer {
	margin-top: 12px;
}

.admin-days {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 18px;
	padding: 0;
}

.admin-days legend {
	font-size: 11px;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
	text-transform: uppercase;
	width: 100%;
}

.admin-days label {
	align-items: center;
	display: flex;
	gap: 7px;
}

.admin-card input[type='checkbox'] {
	accent-color: var(--accent);
	height: 17px;
	width: 17px;
}

.link-remove {
	background: transparent;
	border: 0;
	color: var(--paper);
	font-family: 'DM Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	opacity: 0.75;
	padding: 0;
	text-decoration: underline;
	text-transform: uppercase;
	transition: opacity 0.15s;
}

.link-remove:hover {
	opacity: 1;
}

.sr-only {
	clip-path: inset(50%);
	height: 1px;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 800px) {
	.weekend-day + .weekend-day {
		margin-top: 60px;
		padding-top: 60px;
	}

	.weekend-day + .weekend-day::before {
		width: 140px;
	}

	.weekend-event {
		padding: 24px 0;
	}

	.gift-page {
		padding-bottom: 80px;
	}

	.gift-card {
		padding: 26px 22px 28px;
	}

	.gift-intro h1 {
		font-size: clamp(40px, 12vw, 68px);
	}

	.household-answer {
		grid-template-columns: minmax(0, 1fr);
	}

	.family-add-member {
		flex-direction: column;
		align-items: stretch;
	}
}
