/*
 * Club page. Every colour comes from the --rpc-* custom properties that
 * themes.php writes into the page, already contrast-checked. No hex values here.
 */

@font-face {
	font-family: "Epunda Slab";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/EpundaSlab-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Epunda Slab";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/EpundaSlab-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Epunda Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/EpundaSans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Epunda Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/EpundaSans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.rpc-page {
	margin: 0;
	min-height: 100vh;
	background: var(--rpc-bg);
	color: var(--rpc-text);
	font-family: var(--rpc-font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.rpc-mode-dark {
	color-scheme: dark;
}

/* ---- Backgrounds ---- */
.rpc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.rpc-bg-gradient .rpc-backdrop {
	background: radial-gradient(120% 70% at 50% 0%, var(--rpc-glow) 0%, var(--rpc-bg) 70%);
}
.rpc-bg-contour .rpc-backdrop {
	background: var(--rpc-pattern);
	-webkit-mask: url("contour.svg") center / cover no-repeat;
	mask: url("contour.svg") center / cover no-repeat;
}
.rpc-bg-dots .rpc-backdrop {
	background-image: radial-gradient(var(--rpc-pattern) 1.6px, transparent 1.8px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 100%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* ---- Layout ---- */
.rpc-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
	padding: 48px 16px 32px;
}

.rpc-preview-banner {
	position: sticky;
	top: 0;
	z-index: 5;
	padding: 10px 16px;
	background: var(--rpc-text);
	color: var(--rpc-bg);
	font-size: 14px;
	text-align: center;
}
.rpc-example-banner a {
	color: inherit;
	font-weight: 600;
}

/* ---- Header ---- */
.rpc-head {
	text-align: center;
}

.rpc-logo {
	display: inline-flex;
	width: 112px;
	height: 112px;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--rpc-surface);
	box-shadow: 0 0 0 1px var(--rpc-border), 0 6px 20px rgba(0, 0, 0, 0.12);
}
.rpc-logo-rounded .rpc-logo {
	border-radius: 24px;
}
.rpc-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rpc-monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--rpc-accent);
	color: var(--rpc-on-accent);
	font-family: var(--rpc-font-head);
	font-size: 40px;
	letter-spacing: 0.02em;
}

.rpc-name {
	margin: 0;
	font-family: var(--rpc-font-head);
	font-weight: var(--rpc-head-weight);
	font-size: clamp(28px, 7vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.rpc-tagline {
	margin: 10px auto 0;
	max-width: 30em;
	font-size: 17px;
	text-wrap: balance;
}

.rpc-meta {
	margin: 8px 0 0;
	color: var(--rpc-muted);
	font-size: 14px;
}

.rpc-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.rpc-badges li {
	padding: 4px 12px;
	border: 1px solid var(--rpc-edge);
	border-radius: 999px;
	font-size: 13px;
	color: var(--rpc-text);
	background: var(--rpc-surface);
}

.rpc-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.rpc-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--rpc-text);
	transition: background-color 150ms, color 150ms, transform 150ms;
}
.rpc-socials a:hover {
	background: var(--rpc-surface);
	color: var(--rpc-accent-text);
	transform: translateY(-1px);
}
.rpc-socials .rpc-icon {
	width: 24px;
	height: 24px;
}

/* ---- Link buttons ---- */
.rpc-links {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.rpc-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 14px 52px;
	border-radius: var(--rpc-radius);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: transform 150ms, box-shadow 150ms, background-color 150ms;
}
.rpc-link .rpc-icon {
	position: absolute;
	left: 18px;
	width: 22px;
	height: 22px;
	flex: none;
}
.rpc-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.rpc-link:active {
	transform: translateY(0);
}

/* Filled: every button in the accent. */
.rpc-btn-filled .rpc-link {
	background: var(--rpc-accent);
	color: var(--rpc-on-accent);
}
/* Outline: accent edge and text; highlighted links fill. */
.rpc-btn-outline .rpc-link {
	background: transparent;
	color: var(--rpc-accent-text);
	box-shadow: inset 0 0 0 2px var(--rpc-accent-text);
}
.rpc-btn-outline .rpc-link:hover {
	box-shadow: inset 0 0 0 2px var(--rpc-accent-text), 0 8px 20px rgba(0, 0, 0, 0.12);
}
/* Soft: surface cards; highlighted links fill. */
.rpc-btn-soft .rpc-link {
	background: var(--rpc-surface);
	color: var(--rpc-text);
	box-shadow: inset 0 0 0 1px var(--rpc-edge);
}
.rpc-btn-soft .rpc-link .rpc-icon {
	color: var(--rpc-accent-text);
}
.rpc-btn-outline .rpc-link-highlight,
.rpc-btn-soft .rpc-link-highlight {
	background: var(--rpc-accent);
	color: var(--rpc-on-accent);
	box-shadow: none;
}
.rpc-btn-soft .rpc-link-highlight .rpc-icon {
	color: inherit;
}
/* Filled: highlighted links get a ring so they still stand out. */
.rpc-btn-filled .rpc-link-highlight {
	box-shadow: 0 0 0 3px var(--rpc-bg), 0 0 0 5px var(--rpc-accent);
}

:focus-visible {
	outline: 3px solid var(--rpc-accent-text);
	outline-offset: 3px;
}

/* ---- Sections ---- */
.rpc-section {
	margin-top: 40px;
}

.rpc-h2 {
	margin: 0 0 14px;
	font-family: var(--rpc-font-head);
	font-weight: var(--rpc-head-weight);
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.rpc-meets {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rpc-meet {
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--rpc-surface);
	box-shadow: inset 0 0 0 1px var(--rpc-border);
}
.rpc-meet p {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}
.rpc-meet p + p {
	margin-top: 6px;
}
.rpc-meet .rpc-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--rpc-accent-text);
}
.rpc-meet-when {
	font-weight: 600;
}
.rpc-meet-where a {
	color: inherit;
	text-decoration-color: var(--rpc-accent-text);
	text-underline-offset: 3px;
}
.rpc-meet-note {
	padding-left: 28px;
	color: var(--rpc-muted);
	font-size: 14px;
}

.rpc-about {
	padding: 4px 2px;
	font-size: 16px;
}
.rpc-about p {
	margin: 0 0 12px;
}

/* ---- Footer ---- */
.rpc-foot {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--rpc-border);
	text-align: center;
}
.rpc-share {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}
.rpc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--rpc-surface);
	box-shadow: inset 0 0 0 1px var(--rpc-edge);
	color: var(--rpc-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.rpc-chip:hover {
	color: var(--rpc-accent-text);
}
.rpc-chip .rpc-icon {
	width: 18px;
	height: 18px;
}
.rpc-credit {
	margin: 6px 0 0;
	color: var(--rpc-muted);
	font-size: 13px;
}
.rpc-credit a {
	color: inherit;
	text-underline-offset: 3px;
}

/* ---- QR dialog ---- */
.rpc-dialog {
	width: min(340px, calc(100vw - 32px));
	padding: 24px;
	border: 0;
	border-radius: 24px;
	background: var(--rpc-surface);
	color: var(--rpc-text);
	text-align: center;
}
.rpc-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}
.rpc-qr {
	width: 240px;
	max-width: 100%;
	margin: 0 auto;
	padding: 12px;
	border-radius: 12px;
	background: #ffffff;
}
.rpc-qr svg {
	display: block;
	width: 100%;
	height: auto;
}
.rpc-dialog-url {
	margin: 12px 0 16px;
	color: var(--rpc-muted);
	font-size: 14px;
	word-break: break-all;
}

.rpc-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 10;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--rpc-text);
	color: var(--rpc-bg);
	font-size: 14px;
	transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.rpc-link,
	.rpc-socials a {
		transition: none;
	}
	.rpc-link:hover,
	.rpc-socials a:hover {
		transform: none;
	}
}

@media print {
	.rpc-backdrop,
	.rpc-share,
	.rpc-preview-banner {
		display: none;
	}
}
