:root {
	--bg: #e9e4d4;
	--ink: #2b0f11;
	--accent: #f6d542;
	--accent-deep: #ffc400;
	--card: #f4d33f;
	--line: #2b0f11;
	--shadow: 0 10px 30px rgba(43, 15, 17, 0.08);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

body {
	min-height: 100vh;
	font-family: "Tenor Sans", "Trebuchet MS", sans-serif;
	color: var(--ink);
	background: var(--bg);
}

.hero-band {
	position: relative;
	height: clamp(92px, 14vw, 130px);
	background: var(--accent);
	overflow: visible;
}

.flower-art {
	position: absolute;
	left: -16px;
	top: -10px;
	width: clamp(132px, 33vw, 170px);
	z-index: 2;
}

.flower-img {
	display: block;
	width: 100%;
	height: auto;
}

.page-shell {
	width: min(94vw, 740px);
	margin: 0 auto;
	padding: clamp(16px, 4vw, 30px) clamp(10px, 3vw, 28px) clamp(80px, 12vw, 110px);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: "Tenor Sans", "Trebuchet MS", sans-serif;
	letter-spacing: 0.2px;
	text-align: center;
	line-height: 1;
}

h1 {
	font-size: clamp(2.1rem, 6vw, 3.85rem);
	text-transform: uppercase;
	margin-block: clamp(10px, 3vw, 30px);
}

h2,
h3 {
	font-size: clamp(2rem, 4.7vw, 3.1rem);
}

.bookmark {
	position: relative;
	width: min(32vw, 170px);
	margin: clamp(16px, 3vw, 22px) auto clamp(36px, 5vw, 58px);
	border-radius: 8px;
	border: 1.5px solid #2B0702;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.bookmark-img {
	display: block;
	width: 100%;
	height: auto;
}

.goal {
	margin-bottom: 16px;
}

.progress-wrap {
	--goal-progress: 0%;
	margin: clamp(14px, 2vw, 18px) auto 10px;
	width: min(96%, 700px);
	height: clamp(44px, 8vw, 62px);
	border: 2px solid #d5a80a;
	border-radius: 22px;
	overflow: hidden;
	background: #efe7d2;
}

.progress-fill {
	width: var(--goal-progress, 0%);
	height: 100%;
	border-radius: inherit;
	background:
		linear-gradient(90deg, #f6d542 0 70%, #f8dd66 100%);
	transition: width 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.goal-amount {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.8rem);
	text-align: right;
	font-family: "Tenor Sans", "Trebuchet MS", sans-serif;
}

.card {
	width: min(96%, 700px);
	margin: 30px auto;
	background: var(--card);
	border-radius: 24px;
	box-shadow: var(--shadow);
	padding: clamp(22px, 4vw, 34px) clamp(24px, 5vw, 36px);
}

.card h3 {
	text-transform: none;
	font-family: "Tenor Sans", "Trebuchet MS", sans-serif;
	font-weight: 500;
	margin-bottom: 10px;
	line-height: 1.08;
}

.card p {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 2rem);
	line-height: 1.28;
}

.budget-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.budget-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: clamp(1.2rem, 2.3vw, 1.9rem);
	margin-top: 4px;
}

.card-thanks p {
	text-align: center;
}

.join-feedback {
	min-height: 1.4em;
	text-align: center;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: #46211f;
	margin: 2px 0 0;
}

.join-wrap {
	width: min(96%, 700px);
	margin: 30px auto 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.join-wrap a {
	display: block;
	width: 252px;
	text-decoration: none;
}

.footer-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 72px;
	background: var(--accent);
	border-top: 1px solid rgba(43, 15, 17, 0.25);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 14px clamp(16px, 5vw, 28px);
}

.join-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 252px;
	height: 64px;
	border: 1px solid #d5a80a;
	border-radius: 22px;
	background: var(--accent-deep);
	color: #1f0d0f;
	font-size: clamp(1.5rem, 2.6vw, 1.85rem);
	padding: 0;
	font-family: "Tenor Sans", "Trebuchet MS", sans-serif;
	font-weight: 500;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease;
    text-decoration: none;
}

.join-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(43, 15, 17, 0.2);
}

.join-btn:focus-visible,
.instagram-link:focus-visible {
	outline: 3px solid #d5a80a;
	outline-offset: 2px;
}

.join-btn:active {
	transform: translateY(0);
}

.join-btn.joined {
	background: var(--accent-deep);
}

.instagram-link {
	width: clamp(44px, 7vw, 56px);
	height: clamp(44px, 7vw, 56px);
	display: grid;
	place-items: center;
	border-radius: 14px;
	border: 3px solid #2b0f11;
	color: #2b0f11;
	background: transparent;
	transition: background-color 150ms ease;
}

.instagram-link:hover {
	background: rgba(255, 255, 255, 0.2);
}

.instagram-link svg {
	width: 70%;
	height: 70%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

@media (min-width: 760px) {
	.page-shell {
		padding-top: 26px;
	}

	.bookmark {
		width: min(21vw, 160px);
	}

	.card {
		width: min(86%, 680px);
	}
}

@media (max-width: 430px) {
	.page-shell {
		width: 100%;
		padding-inline: 10px;
	}

	.bookmark {
		width: min(36vw, 150px);
	}

	.goal-amount {
		padding-right: 4px;
	}

	.budget-list li {
		gap: 8px;
	}

	.footer-bar {
		min-height: 66px;
		padding: 10px 14px;
		justify-content: center;
	}

	.join-wrap {
		width: 100%;
		padding-inline: 10px;
	}

	.join-wrap a {
		width: 252px;
	}

	.join-btn {
		font-size: clamp(1.05rem, 3.9vw, 1.2rem);
		width: 252px;
		height: 64px;
		padding: 0;
		border-radius: 20px;
	}
    
}
