/* ==========================================================================
   Chalant Club — front end
   ========================================================================== */

:root {
	--pc-red: #e63329;
	--pc-red-dark: #c22a21;
	--pc-bg: #0d0d0d;
	--pc-card: #1a1a1a;
	--pc-input: #202020;
	--pc-border: #2e2e2e;
	--pc-text: #f2f2f2;
	--pc-muted: #8a8a8a;
	--pc-radius: 14px;
	--pc-radius-lg: 20px;
	--pc-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
	--pc-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
	background-color: var(--pc-bg);
	color: var(--pc-text);
	font-family: var(--pc-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
video {
	max-width: 100%;
}

.pc-screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

.pc-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-color: var(--pc-bg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* No artwork yet: a red-lit room stands in for the video. */
.pc-hero--noposter {
	background-image:
		radial-gradient(80% 55% at 50% 30%, rgba(230, 51, 41, 0.42), transparent 70%),
		radial-gradient(60% 45% at 15% 85%, rgba(230, 51, 41, 0.2), transparent 70%),
		linear-gradient(180deg, #1a0908 0%, #0d0d0d 100%);
}

.pc-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.pc-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 50% 20%, rgba(230, 51, 41, 0.18), transparent 62%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.9) 100%);
}

.pc-hero__content {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: calc(28px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
	text-align: center;
}

.pc-hero__meta {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.pc-hero__mute {
	position: absolute;
	right: 16px;
	top: calc(16px + env(safe-area-inset-top));
	z-index: 3;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pc-hero__mute-icon {
	display: block;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	/* Muted speaker */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e63329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
}

.pc-hero__mute[aria-pressed="false"] .pc-hero__mute-icon {
	/* Audible speaker */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e63329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
	.pc-hero__video {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.pc-btn {
	display: block;
	width: 100%;
	min-height: 60px;
	padding: 18px 28px;
	border: 0;
	border-radius: var(--pc-radius);
	font-family: var(--pc-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.18s var(--pc-ease), background-color 0.18s var(--pc-ease);
}

.pc-btn--primary {
	background-color: var(--pc-red);
	color: #fff;
	box-shadow: 0 10px 40px rgba(230, 51, 41, 0.35);
}

.pc-btn--primary:hover,
.pc-btn--primary:focus-visible {
	background-color: var(--pc-red-dark);
}

.pc-btn--primary:active {
	transform: scale(0.985);
}

.pc-btn--ghost {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--pc-text);
	border: 1px solid var(--pc-border);
}

.pc-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.pc-btn:focus-visible,
.pc-input:focus-visible,
.pc-hero__mute:focus-visible,
.pc-modal__close:focus-visible {
	outline: 2px solid var(--pc-red);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.pc-modal[hidden] {
	display: none;
}

.pc-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.pc-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(3px);
}

.pc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 430px;
	margin: auto;
	background: var(--pc-card);
	border-radius: var(--pc-radius-lg);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
	animation: pc-rise 0.32s var(--pc-ease) both;
}

/* The dialog is focused on open so screen readers land on it, but it is only
   reachable programmatically (tabindex="-1") — never by tabbing — so a ring
   around the whole panel is noise. The panel appearing is the affordance. */
.pc-modal__dialog:focus,
.pc-modal__dialog:focus-visible {
	outline: none;
}

@keyframes pc-rise {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.pc-modal__dialog { animation: none; }
}

.pc-modal__body {
	padding: 20px 16px 19px;
}

.pc-modal__close {
	position: absolute;
	top: 13px;
	right: 12px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pc-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.pc-modal__title {
	margin: 0 32px 6px 0;
	font-family: var(--pc-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #fff;
}

.pc-modal__subline {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pc-muted);
}

.pc-modal__image {
	margin: 0 0 15px;
	border-radius: var(--pc-radius);
	overflow: hidden;
	line-height: 0;
}

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

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.pc-form__progress {
	height: 2px;
	margin: 0 0 13px;
	border-radius: 2px;
	background: var(--pc-border);
	overflow: hidden;
}

.pc-form__progress-bar {
	display: block;
	width: 50%;
	height: 100%;
	background: var(--pc-red);
	transition: width 0.3s var(--pc-ease);
}

.pc-field {
	margin: 0 0 9px;
}

.pc-input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 12px 16px;
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	background: var(--pc-input);
	color: var(--pc-text);
	/* Held at 16px while everything around it shrank: anything smaller makes
	   iOS zoom the page on focus. */
	font-size: 16px;
	font-family: var(--pc-display);
	font-weight: 700;
	letter-spacing: 0.4px;
	/* Uppercase via CSS so screen readers do not spell the text out. */
	text-transform: uppercase;
	appearance: none;
}

.pc-input::placeholder {
	color: #6e6e6e;
	text-transform: uppercase;
	opacity: 1;
}

.pc-input--select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 15px;
	padding-right: 38px;
}

/* The night picker leads step one, so it carries a little more weight than the
   fields under it without breaking the pill language. */
.pc-field--event .pc-input {
	border-color: rgba(230, 51, 41, 0.55);
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.pc-field--event .pc-input:focus {
	border-color: var(--pc-red);
}

.pc-field--event .pc-input option {
	background: var(--pc-card);
	color: #fff;
	font-weight: 400;
}

.pc-input[aria-invalid="true"] {
	border-color: var(--pc-red);
}

.pc-field__error {
	margin: 5px 3px 0;
	font-size: 12px;
	color: var(--pc-red);
	min-height: 0;
}

.pc-field__error:empty {
	display: none;
}

.pc-field--check {
	margin: 11px 0 13px;
}

.pc-check {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pc-muted);
	cursor: pointer;
}

.pc-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--pc-red);
}

.pc-form__next,
.pc-form__submit {
	margin-top: 6px;
}

.pc-form__back {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--pc-muted);
	font-size: 13px;
	cursor: pointer;
}

.pc-form__error {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--pc-red);
	text-align: center;
}

.pc-form__error:empty {
	display: none;
}

.pc-form__consent {
	margin: 11px 0 0;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
	color: #5f5f5f;
}

.pc-honeypot {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pc-form__success {
	text-align: center;
	padding: 18px 0 8px;
}

/* --------------------------------------------------------------------------
   Events archive
   -------------------------------------------------------------------------- */

.pc-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 72px 20px 96px;
}

.pc-page__title {
	margin: 0 0 8px;
	font-family: var(--pc-display);
	font-size: 34px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
}

.pc-page__lede {
	margin: 0 0 36px;
	color: var(--pc-muted);
	font-size: 15px;
	line-height: 1.6;
}

.pc-event-card {
	display: block;
	padding: 22px;
	margin: 0 0 14px;
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	background: var(--pc-card);
	text-decoration: none;
	color: inherit;
}

.pc-event-card__date {
	display: block;
	font-family: var(--pc-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--pc-red);
}

.pc-event-card__title {
	margin: 8px 0 6px;
	font-family: var(--pc-display);
	font-size: 24px;
	text-transform: uppercase;
	color: #fff;
}

.pc-event-card__meta {
	margin: 0;
	font-size: 14px;
	color: var(--pc-muted);
}

.pc-event-card__status {
	display: inline-block;
	margin-top: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.pc-event-card__status--open {
	background: rgba(230, 51, 41, 0.16);
	color: var(--pc-red);
}

.pc-event-card__status--closed {
	background: rgba(255, 255, 255, 0.06);
	color: var(--pc-muted);
}

/* --------------------------------------------------------------------------
   Larger screens
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
	.pc-hero__content {
		left: 50%;
		right: auto;
		bottom: 48px;
		width: min(460px, 90vw);
		transform: translateX(-50%);
	}

	.pc-modal {
		align-items: center;
		padding: 24px;
	}

	.pc-modal__body {
		padding: 24px 22px 21px;
	}

	.pc-modal__title {
		font-size: 22px;
	}
}

/* ------------------------------------------------------------------
   Hero: primary CTA plus the upcoming-parties button
   ------------------------------------------------------------------ */

.pc-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pc-hero__secondary {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background-color: rgba(0, 0, 0, 0.42);
	border-color: rgba(255, 255, 255, 0.28);
}

/* ------------------------------------------------------------------
   Upcoming parties list
   ------------------------------------------------------------------ */

.pc-modal--events .pc-modal__body {
	padding-bottom: 6px;
}

.pc-events {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pc-event {
	padding: 11px 13px 13px;
	border: 1px solid var(--pc-border);
	border-radius: 14px;
	background-color: rgba(255, 255, 255, 0.03);
}

.pc-event--closed {
	opacity: 0.55;
}

.pc-event__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	margin-bottom: 5px;
}

.pc-event__date {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	color: var(--pc-muted);
}

.pc-event__tag {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--pc-muted);
	white-space: nowrap;
}

.pc-event__tag--warn {
	background-color: rgba(230, 51, 41, 0.16);
	color: #ff8079;
}

.pc-event__title {
	margin: 0 0 5px;
	font-size: 16px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
}

.pc-event__desc {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pc-muted);
}

.pc-event__meta {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: rgba(255, 255, 255, 0.62);
}

.pc-event__fill {
	margin-top: 8px;
	height: 4px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.pc-event__fill-bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background-color: var(--pc-red);
}

.pc-modal .pc-event__apply {
	margin-top: 10px;
	width: 100%;
	min-height: 38px;
	font-size: 13px;
	padding: 10px 14px;
}

/* Plus-ones ask who, not how many — two small counters sitting under one
   legend so the pair still reads as a single question. */
.pc-field--party {
	margin: 0 0 10px;
}

.pc-field__legend {
	margin: 0 0 6px 3px;
	font-family: var(--pc-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--pc-muted);
}

.pc-party {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.pc-party__side {
	position: relative;
}

.pc-party__label {
	position: absolute;
	top: 7px;
	left: 16px;
	font-size: 10px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--pc-muted);
	pointer-events: none;
}

.pc-party .pc-input {
	padding-top: 19px;
	padding-bottom: 7px;
}

.pc-field__hint {
	margin: 6px 3px 0;
	font-size: 11px;
	line-height: 1.4;
	color: var(--pc-muted);
}

/* Buttons inside the modal come down with the rest of the panel. Scoped rather
   than changed at the source, because .pc-btn is also the hero CTA, the pass
   page and the events archive, and those were not the thing that felt too big. */
.pc-modal .pc-btn {
	min-height: 44px;
	padding: 13px 20px;
	font-size: 15px;
	letter-spacing: 1.1px;
}
