/* Roukia & Ismail — mariage, 20 août 2026
   Mobile-first, zero external requests (system font stacks only). */

:root {
	--gold: #966f12;
	--gold-light: #c2911f;
	--gold-pale: #f9f0d9;
	--purple: #5c4384;
	--purple-light: #75589f;
	--purple-pale: #eee9f5;
	--ivory: #f3f5f7;
	--ink: #2b2320;
	--ink-soft: #6b6259;
	--white: #ffffff;
	--radius-lg: 22px;
	--radius-md: 14px;
	--shadow-card: 0 16px 40px -20px rgba(92, 67, 132, 0.35);
	--font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--max-width: 640px;
}

* {
	box-sizing: border-box;
}

html {
	background: linear-gradient(180deg, var(--gold-pale) 0%, var(--purple-pale) 55%, var(--ivory) 100%);
	background-attachment: fixed;
}

body {
	margin: 0 auto;
	max-width: var(--max-width);
	min-height: 100vh;
	background: var(--white);
	box-shadow: var(--shadow-card);
	font-family: var(--font-body);
	color: var(--ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2 {
	margin: 0;
}

p {
	margin: 0 0 0.5rem;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

/* ---------- Ornaments (pure CSS, no images) ---------- */

.ornament {
	height: 22px;
	width: 130px;
	margin: 0 auto;
	background:
		radial-gradient(circle, var(--gold-light) 0 3px, transparent 4px) center / 12px 12px no-repeat,
		linear-gradient(90deg, transparent, var(--gold-light) 30%, var(--gold-light) 70%, transparent) center / 100%
			1px no-repeat;
}

.ornament--top {
	padding-top: 1.5rem;
}

.ornament--bottom {
	margin-bottom: 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
	text-align: center;
	padding: 0.5rem 1.5rem 2rem;
	background: radial-gradient(120% 100% at 50% 0%, var(--gold-pale) 0%, var(--purple-pale) 65%, var(--white) 100%);
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	color: var(--purple-light);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.hero__names {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 11vw, 3.6rem);
	color: var(--purple);
	font-weight: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	flex-wrap: wrap;
	line-height: 1.1;
}

.hero__amp {
	font-style: italic;
	color: var(--gold);
	font-size: 0.7em;
}

.hero__date {
	margin-top: 0.9rem;
	font-size: clamp(1.05rem, 4vw, 1.3rem);
	font-weight: 600;
	color: var(--gold);
	letter-spacing: 0.02em;
}

.hero__venue {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.hero__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.25rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn:active {
	transform: scale(0.97);
}

.btn--gold {
	background: linear-gradient(135deg, var(--gold-light), var(--gold));
	color: var(--white);
	box-shadow: 0 8px 20px -8px rgba(150, 111, 18, 0.6);
}

.btn--ghost {
	background: var(--white);
	color: var(--purple);
	border-color: var(--purple-pale);
}

/* ---------- Status card ---------- */

.status-card {
	margin: -1.75rem 1.25rem 0;
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: 1.5rem 1.25rem;
	text-align: center;
	position: relative;
	z-index: 1;
	border: 1px solid var(--purple-pale);
}

.status__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.7rem;
	color: var(--purple-light);
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.status__big {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 6vw, 2rem);
	color: var(--purple);
	margin-bottom: 0.3rem;
}

.status__sub {
	color: var(--ink-soft);
	font-size: 0.9rem;
	margin: 0;
}

/* ---------- Welcome ---------- */

.welcome {
	text-align: center;
	padding: 1.75rem 1.75rem 0.5rem;
	font-style: italic;
	color: var(--ink-soft);
	font-size: 1.02rem;
}

/* ---------- Sections ---------- */

main {
	padding-bottom: 1rem;
}

.section-title {
	font-family: var(--font-display);
	color: var(--purple);
	font-size: 1.35rem;
	text-align: center;
	margin-bottom: 0.9rem;
	font-weight: 400;
}

.roles {
	padding: 1.75rem 1.25rem 0.5rem;
}

.roles__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
}

.chip {
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1.5px solid var(--purple-pale);
	background: var(--white);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--purple);
	cursor: pointer;
	transition: all 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.chip:active {
	transform: scale(0.96);
}

.chip--active {
	background: var(--purple);
	border-color: var(--purple);
	color: var(--white);
	box-shadow: 0 6px 16px -8px rgba(92, 67, 132, 0.7);
}

.hint {
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.85rem;
	margin-top: 0.9rem;
}

.view {
	padding: 1.75rem 1.25rem 0.5rem;
}

.team-hint {
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.82rem;
	margin-bottom: 1.25rem;
}

/* ---------- Timeline ---------- */

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 3px solid var(--purple-pale);
	margin-left: 0.7rem;
}

.timeline__item {
	position: relative;
	padding: 0 0 1.6rem 1.4rem;
}

.timeline__item::before {
	content: "";
	position: absolute;
	left: -0.62rem;
	top: 0.3rem;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--white);
	border: 3px solid var(--purple-light);
}

.timeline__item--now::before {
	background: var(--gold);
	border-color: var(--gold);
	box-shadow: 0 0 0 5px var(--gold-pale);
}

.timeline__item--now .timeline__moment {
	color: var(--gold);
}

.timeline__item--next::before {
	border-color: var(--gold-light);
}

.timeline__item--muted {
	opacity: 0.5;
}

.timeline__time {
	display: block;
	font-weight: 700;
	color: var(--purple);
	font-variant-numeric: tabular-nums;
	font-size: 0.92rem;
	margin-bottom: 0.15rem;
}

.timeline__moment {
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 0.25rem;
}

.timeline__detail {
	color: var(--ink-soft);
	font-size: 0.88rem;
	margin: 0;
}

.timeline__resp {
	font-size: 0.72rem;
	color: var(--purple-light);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0.4rem 0 0;
	font-weight: 700;
}

.timeline__empty {
	color: var(--ink-soft);
	font-style: italic;
}

.timeline__divider {
	list-style: none;
	text-align: center;
	color: var(--purple-light);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 1rem -1.4rem;
	font-weight: 700;
}

.badge {
	display: inline-block;
	font-size: 0.62rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	vertical-align: middle;
	margin-left: 0.4rem;
}

.badge--now {
	background: var(--gold);
	color: var(--white);
}

/* ---------- Dedications ---------- */

.dedications {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dedication {
	background: var(--purple-pale);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.dedication__title {
	font-family: var(--font-display);
	color: var(--purple);
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.dedication__items {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--ink);
	font-size: 0.92rem;
}

.dedication__items li {
	margin-bottom: 0.35rem;
}

.dedication__tip {
	margin: 0.6rem 0 0;
	font-size: 0.85rem;
	color: var(--gold);
}

/* ---------- Team access gate ---------- */

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

.gate-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 320px;
	margin: 0 auto;
}

.gate-form input[type="password"] {
	padding: 0.65rem 0.9rem;
	border: 1.5px solid var(--purple-pale);
	border-radius: 999px;
	background: var(--ivory);
	font-size: 0.95rem;
	text-align: center;
	color: var(--ink);
}

.gate-form input:focus {
	outline: none;
	border-color: var(--purple-light);
	background: var(--white);
}

.form-error {
	color: #a13c3c;
	font-size: 0.85rem;
	text-align: center;
	margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	text-align: center;
	padding: 1.5rem 1.25rem 2.5rem;
	color: var(--ink-soft);
	background: linear-gradient(180deg, var(--white), var(--gold-pale) 200%);
}

.edit-link {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.78rem;
	color: var(--purple-light);
	text-decoration: none;
	opacity: 0.65;
}

.edit-link:hover,
.edit-link:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

/* ---------- Focus visibility (a11y) ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

/* ---------- Small screens polish ---------- */

@media (max-width: 380px) {
	.hero {
		padding-inline: 1rem;
	}
	.status-card {
		margin-inline: 0.75rem;
		padding: 1.25rem 1rem;
	}
}
