/*
Theme Name:  VM Landing
Theme URI:   https://vocalmeet.com
Author:      Vocalmeet
Author URI:  https://vocalmeet.com
Description: Empty theme. The front page is a simple landing screen with no site name in the VM Admin UI style (UI_LANGUAGE.md); other URLs show their content in the same shell.
Version:     1.0.0
Requires PHP: 7.4
License:     GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: vm-landing
*/

/*
 * Tokens match --vmui-* in the VM Admin UI plugin (vm-admin-ui.css), so the
 * front end looks like wp-admin without loading the admin stylesheet. There's
 * no user setting here, so light or dark follows the system.
 *
 * Contents
 *   1. Font and tokens
 *   2. Base
 *   3. Window: top bar, main panel
 *   4. Buttons
 *   5. Landing page
 *   6. Content pages (index.php)
 */

/* 1. Font and tokens ------------------------------------------------------ */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
}

:root {
	--vml-primary: #405de0;
	--vml-primary-hover: #3650c8;
	--vml-primary-text: #405de0;
	--vml-sky: #60b1ff;
	--vml-ink: #273444;
	--vml-text-secondary: #5f6880;
	--vml-border: #d0d0d0;
	--vml-surface: #fff;
	--vml-surface-subtle: #f9fbfc;
	--vml-surface-search: #f5f7fb;
	--vml-primary-tint: #f0f3fd;

	--vml-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--vml-radius-control: 6px;
	--vml-radius-nav: 8px;
	--vml-radius-card: 12px;
	--vml-halo: 0 0 0 3px rgba(64, 93, 224, 0.18);
	--vml-lift: 0 1px 1px rgba(39, 52, 68, 0.06);
	--vml-header-height: 60px;
	--vml-inset: 10px;
	--vml-gutter: 28px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--vml-primary-text: #93a8fa;
		--vml-ink: #e9ecf1;
		--vml-text-secondary: #a4acbb;
		--vml-border: #2c323b;
		--vml-surface: #1c2027;
		--vml-surface-subtle: #14171c;
		--vml-surface-search: #262b33;
		--vml-primary-tint: #1e2541;
		--vml-halo: 0 0 0 3px rgba(147, 168, 250, 0.25);
		--vml-lift: 0 1px 1px rgba(0, 0, 0, 0.3);

		color-scheme: dark;
	}
}

@media (max-width: 782px) {
	:root {
		--vml-inset: 0px;
		--vml-gutter: 16px;
	}
}

/* 2. Base ----------------------------------------------------------------- */

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

body {
	margin: 0;
	background: var(--vml-surface-subtle);
	color: var(--vml-ink);
	font-family: var(--vml-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--vml-primary-text);
}

h1,
h2 {
	margin: 0;
	font-weight: 700;
	line-height: 1.25;
}

:focus-visible {
	outline: none;
	box-shadow: var(--vml-halo);
}

/* 3. Window: top bar, main panel ------------------------------------------ */

.vml-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--vml-header-height);
	padding: 0 20px;
}

.vml-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--vml-ink);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--vml-radius-nav);
}

.vml-brand img {
	flex: none;
	width: 28px;
	height: auto;
}

/* White panel inset from the window edges, hairline and 12px radius. */
.vml-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--vml-header-height) - var(--vml-inset));
	min-height: calc(100dvh - var(--vml-header-height) - var(--vml-inset));
	margin: 0 var(--vml-inset) var(--vml-inset);
	padding: 0 var(--vml-gutter);
	overflow: hidden;
	background: var(--vml-surface);
	border: 1px solid var(--vml-border);
	border-radius: var(--vml-radius-card);
}

@media (max-width: 782px) {
	.vml-panel {
		border-width: 1px 0 0;
		border-radius: var(--vml-radius-card) var(--vml-radius-card) 0 0;
	}
}

/* 4. Buttons -------------------------------------------------------------- */

.vml-button {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: var(--vml-radius-control);
	transition: background-color 0.15s, border-color 0.15s;
}

.vml-button-primary {
	color: #fff;
	background: var(--vml-primary);
}

.vml-button-primary:hover {
	background: var(--vml-primary-hover);
}

.vml-button-secondary {
	color: var(--vml-primary-text);
	background: var(--vml-surface);
	border-color: var(--vml-border);
	box-shadow: var(--vml-lift);
}

.vml-button-secondary:hover {
	background: var(--vml-surface-search);
}

/* 5. Landing page --------------------------------------------------------- */

/* Soft primary glow behind the hero, as on the login page. */
.home .vml-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 420px at 50% 35%, var(--vml-primary-tint), transparent 70%);
	pointer-events: none;
}

/* Centred in the panel. */
.vml-hero {
	position: relative;
	max-width: 640px;
	margin: auto;
	padding: 56px 0;
	text-align: center;
	animation: vml-rise 0.5s ease-out both;
}

.vml-hero h1 {
	margin-bottom: 28px;
	font-size: 28px;
}

@keyframes vml-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

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

/* 6. Content pages (index.php) -------------------------------------------- */

.vml-content {
	width: 100%;
	max-width: 720px;
	padding: 40px 0;
}

.vml-content h1 {
	margin-bottom: 16px;
	font-size: 20px;
}

.vml-content img {
	max-width: 100%;
	height: auto;
}
