/*
Theme Name: Jazital Lite
Theme URI: https://jazital.com
Author: Jazital Inc.
Author URI: https://jazital.com
Description: A lightweight theme for Jazital's simple public pages, starting with the account deletion pages for Jazital apps. No JavaScript, self-hosted brand fonts, and styles for step lists, callouts and forms.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jazital-lite
*/

/* Fonts: self-hosted, latin subset only, four files (SIL OFL 1.1, licences in /fonts). */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}

/* Jazital brand tokens (light theme). Deliberately light-only: these pages carry a third-party form whose
   styles are light, and a half-dark page is worse than a consistent light one. */
:root {
	color-scheme: light;
	--jz-bg: #F4F5F9;
	--jz-surface: #FFFFFF;
	--jz-border: #E8E9EE;
	--jz-border-strong: #7D7F8A;
	--jz-text: #1E1B4B;
	--jz-text-muted: #5E606C;
	--jz-primary: #4F46E5;
	--jz-primary-hover: #4338CA;
	--jz-primary-active: #372CA6;
	--jz-primary-subtle: #EEF2FF;
	--jz-primary-subtle-border: #C8D2FF;
	--jz-link: #4338CA;
	--jz-danger-subtle: #FEEEEF;
	--jz-danger-border: #FCC4C8;
	--jz-danger-fg: #9F1539;
	--jz-focus: #4F46E5;
	--jz-radius-sm: 4px;
	--jz-radius-md: 8px;
	--jz-radius-lg: 12px;
	--jz-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--jz-font-heading: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--jz-font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--jz-prose: 720px;
	--jz-wide: 1080px;
	--jz-gutter: 1.25rem;
}

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	background: var(--jz-bg);
	color: var(--jz-text);
	font: 400 1rem/1.6 var(--jz-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--jz-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 120ms cubic-bezier(0.2, 0, 0, 1);
}

a:hover {
	color: var(--jz-primary-active);
}

:focus-visible {
	outline: 2px solid var(--jz-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	color: var(--jz-text);
	font-family: var(--jz-font-heading);
	text-wrap: balance;
}

strong,
b {
	font-weight: 600;
}

code,
kbd {
	font-family: var(--jz-font-mono);
	font-size: 0.875em;
}

kbd {
	display: inline-block;
	padding: 0.05em 0.4em;
	border: 1px solid var(--jz-border-strong);
	border-bottom-width: 2px;
	border-radius: var(--jz-radius-sm);
	background: var(--jz-surface);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--jz-gutter);
	z-index: 100;
	padding: 0.5rem 0.875rem;
	border-radius: var(--jz-radius-md);
	background: var(--jz-primary);
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 0.75rem;
	color: #FFFFFF;
}

.alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.gallery-caption,
.wp-element-caption {
	color: var(--jz-text-muted);
	font-size: 0.875rem;
}

.sticky,
.bypostauthor {
	display: block;
}

/* Header */
.site-header {
	background: var(--jz-surface);
	border-bottom: 1px solid var(--jz-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--jz-wide);
	min-height: 68px;
	margin: 0 auto;
	padding: 0.75rem var(--jz-gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	color: var(--jz-text);
	text-decoration: none;
}

.brand img {
	display: block;
	width: auto;
	height: 36px;
}

.brand__label {
	padding-left: 0.875rem;
	border-left: 1px solid var(--jz-border);
	color: var(--jz-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.site-header__link {
	color: var(--jz-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__link:hover {
	color: var(--jz-primary-hover);
}

/* Main */
/* Short pages keep the footer at the bottom of the window. */
.site-main {
	flex: 1 0 auto;
	padding: 3rem var(--jz-gutter) 4.5rem;
}

.container {
	max-width: var(--jz-prose);
	margin: 0 auto;
}

.page-head {
	margin-bottom: 2rem;
}

.eyebrow {
	margin: 0 0 0.75rem;
	color: var(--jz-link);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.page-title {
	margin: 0;
	font-size: clamp(2rem, 1.45rem + 2.2vw, 2.4375rem);
	font-weight: 800;
	letter-spacing: -0.024em;
	line-height: 1.1;
}

.page-lede {
	max-width: 62ch;
	margin: 0.875rem 0 0;
	color: var(--jz-text-muted);
	font-size: 1.125rem;
	line-height: 1.55;
}

/* Page content */
.entry-content {
	max-width: 100%;
}

.entry-content > * {
	margin-block: 0;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content > h2 {
	margin-top: 2.75rem;
	font-size: 1.5625rem;
	font-weight: 700;
	letter-spacing: -0.016em;
	line-height: 1.25;
}

.entry-content > h3 {
	margin-top: 2rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.33;
}

.entry-content > h2 + *,
.entry-content > h3 + * {
	margin-top: 0.75rem;
}

.entry-content p,
.entry-content li {
	max-width: 68ch;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 0.375rem;
}

.entry-content ul li::marker {
	color: var(--jz-border-strong);
}

.entry-content hr {
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--jz-border);
}

/* Numbered steps: add the class "jz-steps" to a numbered list. */
.entry-content ol.jz-steps {
	counter-reset: jz-step;
	padding: 0;
	list-style: none;
}

.entry-content ol.jz-steps > li {
	position: relative;
	min-height: 1.875rem;
	padding-left: 2.75rem;
	counter-increment: jz-step;
}

.entry-content ol.jz-steps > li + li {
	margin-top: 0.875rem;
}

.entry-content ol.jz-steps > li::before {
	content: counter(jz-step);
	position: absolute;
	top: -0.0625rem;
	left: 0;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 9999px;
	background: var(--jz-primary-subtle);
	color: var(--jz-primary-hover);
	font: 700 0.875rem/1.875rem var(--jz-font-heading);
	text-align: center;
}

/* Cards and callouts: add these classes to a Group block. */
.jz-card {
	padding: 1.5rem;
	border: 1px solid var(--jz-border);
	border-radius: var(--jz-radius-lg);
	background: var(--jz-surface);
}

.jz-callout {
	padding: 1rem 1.25rem;
	border: 1px solid var(--jz-primary-subtle-border);
	border-radius: var(--jz-radius-md);
	background: var(--jz-primary-subtle);
}

.jz-callout--danger {
	border-color: var(--jz-danger-border);
	background: var(--jz-danger-subtle);
}

.jz-callout--danger strong {
	color: var(--jz-danger-fg);
}

.jz-card > * + *,
.jz-callout > * + * {
	margin-top: 0.75rem;
}

.jz-card > :first-child,
.jz-callout > :first-child {
	margin-top: 0;
}

.jz-card > :last-child,
.jz-callout > :last-child {
	margin-bottom: 0;
}

.jz-note {
	color: var(--jz-text-muted);
	font-size: 0.875rem;
}

/* Buttons */
.wp-block-button__link,
.jz-button {
	display: inline-block;
	padding: 0.625rem 1.125rem;
	border: 0;
	border-radius: var(--jz-radius-md);
	background: var(--jz-primary);
	color: #FFFFFF;
	font: 600 0.9375rem/1.4 var(--jz-font-body);
	text-decoration: none;
	cursor: pointer;
}

.wp-block-button__link:hover,
.jz-button:hover {
	background: var(--jz-primary-hover);
	color: #FFFFFF;
}

/* Home: the list of app pages */
.app-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.app-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--jz-border);
	border-radius: var(--jz-radius-lg);
	background: var(--jz-surface);
	color: var(--jz-text);
	text-decoration: none;
	transition: border-color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.app-link:hover {
	border-color: var(--jz-primary);
	color: var(--jz-text);
}

.app-link__name {
	display: block;
	font-family: var(--jz-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.app-link__summary {
	display: block;
	margin-top: 0.25rem;
	color: var(--jz-text-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.app-link__arrow {
	flex: none;
	color: var(--jz-primary);
	font-size: 1.25rem;
	line-height: 1;
}

.empty-state {
	color: var(--jz-text-muted);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--jz-border);
	background: var(--jz-surface);
	color: var(--jz-text-muted);
	font-size: 0.875rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	max-width: var(--jz-wide);
	margin: 0 auto;
	padding: 1.5rem var(--jz-gutter);
}

.site-footer p {
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: var(--jz-text-muted);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--jz-primary-hover);
	text-decoration: underline;
}

/* Pagination on the fallback archive */
.nav-links {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

@media (max-width: 480px) {
	.site-main {
		padding-top: 2rem;
	}

	.brand__label {
		display: none;
	}

	.jz-card {
		padding: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.skip-link {
		display: none;
	}

	body {
		background: #FFFFFF;
	}
}
