/*
Theme Name:        VONT Contrast Grid
Description:       Minimal app-shell theme for the VONT Contrast Grid plugin. Branded sign-in, header with user menu, and a full-width workspace for the grid builder.
Version:           1.2.0
Requires at least: 6.2
Requires PHP:      7.4
Author:            VONT
Author URI:        https://vontweb.com
License:           GPL-2.0-or-later
Text Domain:       vont-contrast-grid-theme
*/

/*
 * Inter (SIL Open Font License 1.1), self-hosted under a private family name so a locally
 * installed "Inter" — e.g. an italic-only install — can never be picked up instead.
 * Upright only: the app never uses italics.
 */
@font-face {
	font-family: "VCG Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.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: "VCG Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.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;
}

:root {
	--vcgt-ink: #18181b;
	--vcgt-muted: #52525b;
	--vcgt-line: #e4e4e7;
	--vcgt-page: #f6f6f7;
	--vcgt-accent: #2f3fd6;
}

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

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

body {
	margin: 0;
	background: var(--vcgt-page);
	color: var(--vcgt-ink);
	font-family: "VCG Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--vcgt-accent); }

.vcgt-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 14px;
	background: var(--vcgt-ink);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}
.vcgt-skip:focus { top: 12px; }

/* ---------- Header ---------- */

.vcgt-header {
	background: #fff;
	border-bottom: 1px solid var(--vcgt-line);
}
.vcgt-header__inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
	height: 60px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.vcgt-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--vcgt-ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -.01em;
}
.custom-logo { max-height: 36px; width: auto; display: block; }

/* Small contrast-grid mark: a 2×2 of ink/white squares. */
.vcgt-brand__mark {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background:
		linear-gradient(var(--vcgt-ink), var(--vcgt-ink)) 0 0 / 50% 50% no-repeat,
		linear-gradient(var(--vcgt-accent), var(--vcgt-accent)) 100% 100% / 50% 50% no-repeat,
		#fff;
	box-shadow: inset 0 0 0 1.5px var(--vcgt-ink);
}

.vcgt-nav { display: flex; gap: 4px; align-items: center; }
.vcgt-nav a {
	color: var(--vcgt-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 6px 10px;
	border-radius: 8px;
}
.vcgt-nav a:hover { color: var(--vcgt-ink); background: #f4f4f5; }

.vcgt-user { margin-left: auto; position: relative; font-size: 14px; }
.vcgt-user__btn { display: block; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.vcgt-user__btn:focus-visible { outline: 3px solid rgba(47, 63, 214, .45); outline-offset: 2px; }
.vcgt-user__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--vcgt-accent);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .02em;
}
.vcgt-user__btn:hover .vcgt-user__avatar, .vcgt-user__btn[aria-expanded="true"] .vcgt-user__avatar { box-shadow: 0 0 0 3px #dfe2ff; }
.vcgt-user__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 100;
	width: 260px;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(24, 24, 27, .16);
	overflow: hidden;
}
.vcgt-user__menu[hidden] { display: none; }
.vcgt-user__who { display: grid; gap: 2px; padding: 14px 16px 12px; }
.vcgt-user__who strong { font-size: 15px; color: var(--vcgt-ink); }
.vcgt-user__who span { color: var(--vcgt-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcgt-user__who em { margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vcgt-muted); }
.vcgt-user__items { list-style: none; margin: 0; padding: 6px; border-top: 1px solid #e4e4e7; }
.vcgt-user__items a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--vcgt-ink); text-decoration: none; font-size: 14.5px; }
.vcgt-user__items a:hover, .vcgt-user__items a:focus { background: #f4f4f5; outline: none; }

.vcgt-header a:focus-visible,
.vcgt-signin a:focus-visible { outline: 3px solid rgba(47, 63, 214, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Main ---------- */

.vcgt-main {
	max-width: 1600px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}
.vcgt-main:focus { outline: none; }

.vcgt-card {
	background: #fff;
	border: 1px solid var(--vcgt-line);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(24, 24, 27, .05);
}

.vcgt-notice { max-width: 520px; margin: 64px auto; padding: 32px; text-align: center; }
.vcgt-notice h1 { margin: 0 0 8px; font-size: 22px; }

/* ---------- Sign in ---------- */

.vcgt-signin {
	max-width: 400px;
	margin: 56px auto;
	padding: 32px;
}
.vcgt-signin__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vcgt-muted);
}
.vcg-login__title { margin: 0 0 20px; font-size: 24px; letter-spacing: -.01em; }
.vcg-login form p { margin: 0 0 16px; }
.vcg-login label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.vcg-login input[type="text"],
.vcg-login input[type="password"] {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
}
.vcg-login input[type="text"]:focus,
.vcg-login input[type="password"]:focus {
	outline: none;
	border-color: var(--vcgt-accent);
	box-shadow: 0 0 0 3px rgba(47, 63, 214, .3);
}
.vcg-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.vcg-login input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--vcgt-accent); }
.vcg-login input[type="submit"] {
	width: 100%;
	height: 42px;
	border: 0;
	border-radius: 8px;
	background: var(--vcgt-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.vcg-login input[type="submit"]:hover { background: #2533b8; }
.vcg-login input[type="submit"]:focus-visible { outline: 3px solid rgba(47, 63, 214, .45); outline-offset: 2px; }
.vcg-login__lost { margin: 8px 0 0; font-size: 14px; text-align: center; }
.vcg-login__lost a { color: var(--vcgt-muted); }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
	.vcgt-header__inner { gap: 12px; padding: 0 16px; }
	.vcgt-nav { display: none; }
	.vcgt-main { padding: 20px 16px 48px; }
}
