:root {
	--fixstable-theme-bg: #ffffff;
	--fixstable-theme-text: #111827;
	--fixstable-theme-muted: #6b7280;
	--fixstable-theme-border: #e5e7eb;
	--fixstable-theme-surface: #f9fafb;
	--fixstable-theme-accent: #2563eb;
	--fixstable-theme-shell-width: 1180px;
	--fixstable-theme-gutter: clamp(20px, 3vw, 32px);
}

html {
	box-sizing: border-box;
}

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

body.fixstable-studio-theme {
	margin: 0;
	background: var(--fixstable-theme-bg);
	color: var(--fixstable-theme-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

body.fixstable-studio-theme a {
	color: inherit;
	text-decoration-thickness: .08em;
	text-underline-offset: .15em;
}

body.fixstable-studio-theme img {
	max-width: 100%;
	height: auto;
}

body.fixstable-studio-theme .site {
	min-height: 100vh;
}

body.fixstable-studio-theme .site-header,
body.fixstable-studio-theme .site-footer {
	background: var(--fixstable-theme-bg);
}

body.fixstable-studio-theme .site-header {
	border-bottom: 1px solid var(--fixstable-theme-border);
}

body.fixstable-studio-theme .site-header__inner,
body.fixstable-studio-theme .site-footer__inner {
	max-width: var(--fixstable-theme-shell-width);
	margin: 0 auto;
	padding: 18px var(--fixstable-theme-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

body.fixstable-studio-theme .site-title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .02em;
}

body.fixstable-studio-theme .site-navigation__menu,
body.fixstable-studio-theme .site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.fixstable-studio-theme .site-content {
	width: 100%;
}

body.fixstable-studio-theme.fixstable-studio-canvas .site-content {
	padding: 0;
}

body.fixstable-studio-theme.fixstable-studio-canvas .content-page {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.fixstable-studio-theme.fixstable-studio-canvas .content-page__body {
	padding: 0;
}

body.fixstable-studio-theme.fixstable-studio-canvas .content-page__body > .fixstable-builder-frontend {
	width: 100%;
}

body.fixstable-studio-theme:not(.fixstable-studio-canvas) .site-content,
body.fixstable-studio-theme:not(.fixstable-studio-canvas) .page-wrap,
body.fixstable-studio-theme:not(.fixstable-studio-canvas) .single-wrap,
body.fixstable-studio-theme:not(.fixstable-studio-canvas) .archive-wrap,
body.fixstable-studio-theme:not(.fixstable-studio-canvas) .search-wrap,
body.fixstable-studio-theme:not(.fixstable-studio-canvas) .error-wrap {
	max-width: var(--fixstable-theme-shell-width);
	margin: 0 auto;
	padding: clamp(32px, 5vw, 72px) var(--fixstable-theme-gutter);
}

body.fixstable-studio-theme .content-wrap {
	display: grid;
	gap: 24px;
}

body.fixstable-studio-theme .content-card,
body.fixstable-studio-theme .content-page,
body.fixstable-studio-theme .content-single,
body.fixstable-studio-theme .error-card {
	background: var(--fixstable-theme-surface);
	border: 1px solid var(--fixstable-theme-border);
	border-radius: 12px;
	padding: 24px;
}

body.fixstable-studio-theme .content-card__title,
body.fixstable-studio-theme .content-page__title,
body.fixstable-studio-theme .content-single__title,
body.fixstable-studio-theme .archive-title,
body.fixstable-studio-theme .search-title,
body.fixstable-studio-theme .error-card__title {
	line-height: 1.15;
	margin: 0 0 12px;
}

body.fixstable-studio-theme .content-card__meta,
body.fixstable-studio-theme .content-single__meta,
body.fixstable-studio-theme .archive-description,
body.fixstable-studio-theme .error-card__kicker,
body.fixstable-studio-theme .error-card__text,
body.fixstable-studio-theme .archive-empty,
body.fixstable-studio-theme .search-empty {
	color: var(--fixstable-theme-muted);
}

body.fixstable-studio-theme .button,
body.fixstable-studio-theme .button--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--fixstable-theme-border);
	text-decoration: none;
	font-weight: 600;
	background: var(--fixstable-theme-bg);
}

body.fixstable-studio-theme .button--primary {
	background: var(--fixstable-theme-accent);
	border-color: var(--fixstable-theme-accent);
	color: #fff;
}

body.fixstable-studio-theme .error-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 20px;
}

body.fixstable-studio-theme .search-form {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

body.fixstable-studio-theme input[type="search"],
body.fixstable-studio-theme input[type="text"],
body.fixstable-studio-theme input[type="email"],
body.fixstable-studio-theme input[type="url"],
body.fixstable-studio-theme input[type="password"],
body.fixstable-studio-theme textarea,
body.fixstable-studio-theme select {
	max-width: 100%;
	border: 1px solid var(--fixstable-theme-border);
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
}

body.fixstable-studio-theme textarea {
	min-height: 180px;
	width: 100%;
}
