:root {
	--bg: #fafafa;
	--text: #050505;
	--muted: #5b5b55;
	--line: #dedbd2;
	--paper: #fffdfa;
	--blue: #74c9eb;
	--blue-dark: #166987;
	--orange: #fe8450;
	--orange-dark: #9f3f16;
	--green: #79b86f;
	--shadow: 0 24px 70px rgba(5, 5, 5, 0.11);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	padding-top: 84px;
	background:
		linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px),
		linear-gradient(180deg, rgba(5, 5, 5, 0.025) 1px, transparent 1px),
		var(--bg);
	background-size: 44px 44px;
	color: var(--text);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.55;
	letter-spacing: 0;
}

button,
input {
	font: inherit;
	letter-spacing: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
}

.nav-capsule {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 22px;
	width: max-content;
	max-width: 100%;
	padding: 9px 12px 9px 18px;
	border: 2px solid var(--text);
	border-radius: 999px;
	background: rgba(255, 253, 250, 0.82);
	backdrop-filter: blur(14px);
	box-shadow: 6px 6px 0 var(--text);
}

.nav-capsule .brand-mark {
	height: 36px;
}

.brand,
.nav-links,
.hero-actions,
.input-row,
.decision-buttons {
	display: flex;
	align-items: center;
}

.brand {
	gap: 10px;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
}

.brand-mark {
	display: block;
	width: auto;
	height: 44px;
}

.nav-links {
	gap: 22px;
	color: var(--muted);
	font-size: 1rem;
}

.nav-links a:hover {
	color: var(--text);
}

.nav-cta {
	margin: 0;
}

.nav-cta .button {
	min-height: 40px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 0.98rem;
	box-shadow: 4px 4px 0 var(--text);
}

.nav-cta .button:hover {
	box-shadow: 6px 6px 0 var(--text);
}

.nav-toggle {
	display: none;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid var(--text);
	border-radius: 50%;
	background: var(--blue);
	cursor: pointer;
}

.nav-toggle-bar {
	position: relative;
	display: block;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: transform 160ms ease, top 160ms ease, background-color 160ms ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bar::before {
	top: -6px;
}

.nav-toggle-bar::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
	top: 0;
	transform: rotate(-45deg);
}

main {
	overflow: hidden;
}

.hero,
.flow,
.event-page-preview,
.support-strip,
.faq {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
	gap: clamp(36px, 5vw, 80px);
	align-items: center;
	padding: clamp(16px, 3vh, 32px) 0 0;
}

.hero-copy {
	max-width: 720px;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--orange-dark);
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

h1,
h2,
h3,
summary {
	font-family: "Space Grotesk", system-ui, sans-serif;
	letter-spacing: 0;
}

.button,
label,
.label {
	font-family: "Inter", system-ui, sans-serif;
	letter-spacing: 0;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 760px;
	margin-bottom: 16px;
	font-size: clamp(2.4rem, 5.2vw, 4.75rem);
	font-weight: 800;
	line-height: 0.9;
}

h2 {
	margin-bottom: 18px;
	font-size: clamp(2.05rem, 4vw, 4.5rem);
	font-weight: 800;
	line-height: 0.95;
}

h3 {
	margin-bottom: 8px;
	font-size: 1.55rem;
	line-height: 1;
}

.hero-text {
	max-width: 620px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: clamp(1.12rem, 2vw, 1.36rem);
}

.hero-actions {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	max-width: 460px;
}

.hero-actions .create-event .button {
	width: 100%;
}

.hero-or {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 0.95rem;
}

.hero-or::before,
.hero-or::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--line);
}

.create-event {
	margin: 0;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 22px;
	border: 2px solid var(--text);
	border-radius: 7px;
	color: var(--text);
	cursor: pointer;
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
	background: var(--orange);
	box-shadow: 6px 6px 0 var(--text);
	color: var(--text);
}

.button-primary:hover {
	box-shadow: 8px 8px 0 var(--text);
}

.button-secondary {
	background: var(--paper);
	box-shadow: 4px 4px 0 var(--blue);
}

.button-secondary:hover {
	box-shadow: 6px 6px 0 var(--blue);
}

.hero-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.mascot-scene {
	position: relative;
	width: min(100%, 300px);
	aspect-ratio: 1 / 1;
}

.mascot-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vote-bubble {
	position: absolute;
	display: grid;
	width: 92px;
	height: 92px;
	place-items: center;
	border: 3px solid var(--text);
	border-radius: 50%;
	background: var(--paper);
	box-shadow: 7px 7px 0 var(--text);
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.45rem;
	font-weight: 800;
}

.vote-bubble-yes {
	top: 8%;
	left: 2%;
	background: #d7f2d1;
}

.vote-bubble-no {
	right: 1%;
	bottom: 15%;
	background: #ffe1d4;
}

.status-preview,
.steps article,
.event-card,
.rules,
.support-strip,
.faq details {
	border: 2px solid var(--text);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.status-preview {
	position: relative;
	width: min(390px, 100%);
	padding: 24px;
	border-radius: 8px;
}

.label {
	margin-bottom: 6px;
	color: var(--blue-dark);
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
}

.status-preview h2,
.event-card h3 {
	margin-bottom: 10px;
	font-size: 2rem;
	line-height: 1;
}

.expires,
.deadline {
	color: var(--muted);
}

.decision-buttons span {
	border: 2px solid var(--text);
	border-radius: 999px;
	padding: 6px 11px;
	background: var(--bg);
	font-size: 0.9rem;
}

.vote-link-form {
	display: grid;
	gap: 10px;
}

label {
	font-weight: 800;
}

.input-row {
	gap: 10px;
}

/* Let the field shrink so the row never overflows (and clips) the Open button. */
.input-row input {
	min-width: 0;
}

.input-row .button {
	flex-shrink: 0;
}

input {
	width: 100%;
	min-height: 52px;
	border: 2px solid var(--text);
	border-radius: 7px;
	background: #fff;
	padding: 12px 14px;
	color: var(--text);
	outline: none;
}

input:focus {
	box-shadow: 0 0 0 4px rgba(116, 201, 235, 0.42);
}

.flow,
.event-page-preview,
.faq {
	padding: clamp(74px, 10vw, 126px) 0 0;
}

.section-heading {
	max-width: 760px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 28px;
}

.steps article {
	min-height: 245px;
	padding: 24px;
	border-radius: 8px;
}

.steps span {
	display: inline-grid;
	width: 44px;
	height: 44px;
	margin-bottom: 30px;
	place-items: center;
	border: 2px solid var(--text);
	border-radius: 50%;
	background: var(--blue);
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 800;
}

.steps article:nth-child(2) span {
	background: var(--orange);
}

.steps article:nth-child(3) span {
	background: var(--green);
}

.steps p,
.rules p,
.faq p {
	margin-bottom: 0;
	color: var(--muted);
}

.preview-grid {
	display: grid;
	grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
	gap: 18px;
	align-items: stretch;
	margin-top: 28px;
}

.event-card,
.rules {
	border-radius: 8px;
	padding: 28px;
}

.event-card {
	background:
		linear-gradient(135deg, rgba(116, 201, 235, 0.22), transparent 48%),
		var(--paper);
}

.decision-buttons {
	gap: 10px;
	margin-top: 24px;
}

.decision-buttons span {
	min-width: 92px;
	text-align: center;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 800;
}

.decision-buttons span:first-child {
	background: #d7f2d1;
}

.decision-buttons span:last-child {
	background: #ffe1d4;
}

.rules {
	display: grid;
	align-items: center;
	background:
		linear-gradient(90deg, var(--orange) 0 12px, transparent 12px),
		var(--paper);
}

.rules p {
	max-width: 620px;
	font-size: clamp(1.2rem, 2.4vw, 1.75rem);
	line-height: 1.35;
}

.support-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: clamp(74px, 10vw, 126px);
	padding: 24px;
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(254, 132, 80, 0.18), transparent 42%),
		var(--paper);
}

.support-strip h2 {
	margin-bottom: 0;
	font-size: clamp(1.8rem, 3.2vw, 3.25rem);
}

.support-strip .eyebrow {
	margin-bottom: 6px;
}

.faq {
	padding-bottom: 0;
}

.faq-list {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.faq details {
	border-radius: 8px;
	padding: 0 22px;
}

summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	padding: 22px 0;
	font-size: 1.28rem;
	font-weight: 800;
	list-style: none;
}

summary::-webkit-details-marker {
	display: none;
}

summary::after {
	flex: 0 0 auto;
	content: "+";
	color: var(--orange-dark);
}

details[open] summary::after {
	content: "-";
}

.faq details p {
	padding-bottom: 22px;
}

.site-footer {
	margin-top: 90px;
	border-top: 2px solid var(--text);
	background: var(--paper);
}

.site-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 18px;
}

.footer-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	color: var(--muted);
	font-size: 1rem;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-legal {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0 0 28px;
	color: var(--muted);
	font-size: 0.9rem;
}

@media (max-width: 860px) {
	.nav-capsule {
		width: 100%;
		gap: 0;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	/* When open, the capsule grows into a rounded panel instead of a pill. */
	.nav-capsule:has(.nav-toggle[aria-expanded="true"]) {
		border-radius: 26px;
		padding-bottom: 16px;
	}

	.nav-toggle {
		display: grid;
	}

	/* Links sit inside the capsule and wrap onto their own full-width row. */
	.nav-links {
		display: none;
		flex-basis: 100%;
	}

	.nav-toggle[aria-expanded="true"] ~ .nav-links {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 14px;
		padding-top: 14px;
		border-top: 2px solid var(--text);
		font-size: 1.05rem;
	}

	.nav-cta .button {
		width: 100%;
	}

	.hero,
	.preview-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-top: 32px;
	}

	.mascot-scene {
		width: min(42vw, 220px);
	}

	.vote-bubble {
		display: none;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 17px;
	}

	.hero,
	.flow,
	.event-page-preview,
	.support-strip,
	.faq {
		width: min(100% - 22px, 1180px);
	}

	h1 {
		font-size: clamp(2.1rem, 10vw, 3rem);
		line-height: 1.05;
	}

	.hero-actions,
	.input-row {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.status-preview {
		width: 96%;
		padding: 18px;
	}

	.status-preview h2,
	.event-card h3 {
		font-size: 1.6rem;
	}

	.steps article {
		min-height: auto;
	}

	.preview-grid {
		gap: 12px;
	}

	.support-strip {
		align-items: stretch;
		flex-direction: column;
	}
}

/* ---- Vote page ---- */
.vote-page .nav-capsule {
	width: max-content;
	justify-content: center;
}

.vote-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 62vh;
	padding: clamp(24px, 6vh, 80px) 16px;
}

.vote-shell {
	display: flex;
	justify-content: center;
}

.vote-card {
	width: min(440px, 100%);
	padding: clamp(24px, 5vw, 36px);
	border: 2px solid var(--text);
	border-radius: 8px;
	background: var(--paper);
	box-shadow: var(--shadow);
	text-align: center;
}

.vote-mascot {
	display: block;
	width: auto;
	height: 96px;
	margin: 0 auto 14px;
}

.vote-card .label {
	color: var(--blue-dark);
}

.vote-status {
	max-width: none;
	margin-bottom: 8px;
	font-size: clamp(1.9rem, 6vw, 2.6rem);
	font-weight: 800;
	line-height: 1.02;
}

.vote-card .expires {
	margin-bottom: 24px;
}

.vote-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 18px;
}

.vote-yes,
.vote-no {
	width: 100%;
	box-shadow: 6px 6px 0 var(--text);
}

.vote-yes {
	background: var(--green);
}

.vote-no {
	background: #ffe1d4;
}

.vote-yes:hover,
.vote-no:hover {
	box-shadow: 8px 8px 0 var(--text);
}

.vote-sub {
	margin-bottom: 14px;
	color: var(--muted);
}

.vote-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

@media (max-width: 420px) {
	.vote-buttons {
		grid-template-columns: 1fr;
	}
}

/* ---- Sub-pages (vote / created / legal) share a centered, brand-only header ---- */
.subpage .nav-capsule {
	width: max-content;
	justify-content: center;
}

/* ---- Created / share page ---- */
.share-card {
	width: min(560px, 100%);
}

.share-intro {
	max-width: 44ch;
	margin: 0 auto 22px;
	color: var(--muted);
}

.share-block {
	margin-bottom: 18px;
	text-align: left;
}

.share-label {
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 0.95rem;
}

.share-row {
	display: flex;
	gap: 8px;
}

.share-input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 2px solid var(--text);
	border-radius: 7px;
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.95rem;
}

.share-row .button {
	flex: none;
	min-height: 0;
	padding: 12px 16px;
}

.share-open {
	width: 100%;
	margin-top: 10px;
}

#share-expires {
	margin-top: 14px;
}

@media (max-width: 420px) {
	.share-row {
		flex-direction: column;
	}

	.share-row .button {
		width: 100%;
	}
}

/* ---- Legal pages ---- */
.legal-main {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(40px, 8vh, 90px) 20px;
}

.legal-main h1 {
	margin-bottom: 6px;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1;
}

.legal-updated {
	margin-bottom: 32px;
	color: var(--muted);
}

.prose h2 {
	margin: 28px 0 10px;
	font-size: 1.5rem;
	line-height: 1.15;
}

.prose p,
.prose ul {
	margin-bottom: 14px;
	line-height: 1.6;
}

.prose ul {
	padding-left: 20px;
}

.prose li {
	margin-bottom: 4px;
}

.prose a {
	color: var(--blue-dark);
}
