/*
Theme Name: SlimStat Demo
Description: Twenty Twenty-Five child for demo.wp-slimstat.com: the Bloom & Fern demo store and the SlimStat demo pages.
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: slimstat-demo
*/

/* Follows wp-slimstat.com's design system (astro.wp-slimstat.com/DESIGN.md); the palette and type are in theme.json. */
:root {
	--demo-shadow: 0 8px 28px oklch(0.23 0.008 18 / 0.07);
	--demo-ease: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
:where(h1, h2, h3) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
:where([id]) { scroll-margin-top: 1.5rem; }
a { text-underline-offset: 0.2em; }
:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--slimstat-red);
	outline-offset: 4px;
}
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--demo-ease), border-color var(--demo-ease), color var(--demo-ease), transform var(--demo-ease);
}
@media (hover: hover) {
	.wp-element-button:hover,
	.wp-block-button__link:hover { transform: translateY(-2px); }
}
.wp-element-button:active,
.wp-block-button__link:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
	.wp-element-button:hover,
	.wp-block-button__link:hover { transform: none; }
}

/* Header (parts/header.html). */
.demo-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}
.demo-logo img { display: block; width: 120px; height: auto; }
.demo-logo span {
	color: var(--wp--preset--color--slimstat-teal);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 50px;
	padding: 0.05rem 0.6rem;
	font-size: 0.875rem;
}

/* Demo banner (functions.php): every front-end page. */
.demo-banner {
	background: var(--wp--preset--color--slimstat-teal-tint);
	color: var(--wp--preset--color--slimstat-ink);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	line-height: 1.4;
}
.demo-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.6rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
}
.demo-banner__tag {
	background: var(--wp--preset--color--slimstat-teal);
	color: var(--wp--preset--color--base);
	border-radius: 50px;
	padding: 0.1rem 0.7rem;
	font-size: 0.875rem;
}
.demo-banner__text { margin: 0; text-align: center; }
.demo-banner kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.875em;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 4px;
	padding: 0 0.35em;
}
.demo-banner a { white-space: nowrap; }
.demo-banner__cta {
	background: var(--wp--preset--color--slimstat-red);
	color: var(--wp--preset--color--base);
	border-radius: 50px;
	padding: 0.35rem 1rem;
	text-decoration: none;
	transition: background-color var(--demo-ease);
}
.demo-banner__cta:hover,
.demo-banner__cta:focus-visible {
	background: var(--wp--preset--color--slimstat-body);
	color: var(--wp--preset--color--base);
}
.demo-banner__site { color: var(--wp--preset--color--slimstat-teal); }

/* Landing page (patterns/landing.php). */
.demo-hero h1 {
	color: var(--wp--preset--color--slimstat-ink);
	font-size: clamp(2.25rem, 4.5vw, 4.25rem);
	line-height: 1.1;
	letter-spacing: -0.04em;
}
.demo-hero__kicker {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.875rem;
}
.demo-hero__lede {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.65;
	max-width: 58ch;
}
.demo-creds code {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 6px;
	padding: 0.15em 0.5em;
	color: var(--wp--preset--color--slimstat-ink);
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}
.demo-creds p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.demo-creds strong { min-width: 5.5rem; color: var(--wp--preset--color--slimstat-ink); }
.demo-copy {
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	color: var(--wp--preset--color--slimstat-teal);
	background: transparent;
	border: 1px solid var(--wp--preset--color--slimstat-teal);
	border-radius: 50px;
	padding: 0.15rem 0.8rem;
	transition: background-color var(--demo-ease), color var(--demo-ease);
}
.demo-copy:hover,
.demo-copy:focus-visible {
	background: var(--wp--preset--color--slimstat-teal);
	color: var(--wp--preset--color--base);
}
@media (pointer: coarse) {
	.demo-copy { min-height: 44px; padding-inline: 1rem; }
}
.demo-shot img {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	box-shadow: var(--demo-shadow);
}
@media (min-width: 782px) {
	.demo-feature--flip > .wp-block-columns { flex-direction: row-reverse; }
}
.demo-compare { overflow-x: auto; }
.wp-block-table.demo-compare table {
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 0.875rem;
	overflow-wrap: break-word;
	hyphens: auto;
	background: var(--wp--preset--color--base);
}
.wp-block-table.demo-compare thead { border-bottom: 0; }
.wp-block-table.demo-compare th,
.wp-block-table.demo-compare td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 0.6rem 0.5rem;
	text-align: center;
}
.wp-block-table.demo-compare :is(th, td):first-child { width: 40%; text-align: left; }
.wp-block-table.demo-compare th { color: var(--wp--preset--color--slimstat-ink); font-weight: 600; }
.wp-block-table.demo-compare :is(th, td):nth-child(3) { background: var(--wp--preset--color--slimstat-teal-tint); }
.wp-block-table.demo-compare thead th:nth-child(3) {
	background: var(--wp--preset--color--slimstat-teal);
	color: var(--wp--preset--color--base);
}
@media (min-width: 782px) {
	.wp-block-table.demo-compare table { font-size: 1rem; }
	.wp-block-table.demo-compare :is(th, td) { padding: 0.75rem 1rem; }
}
.demo-yes { color: var(--wp--preset--color--slimstat-green); font-weight: 600; }
.demo-no { color: var(--wp--preset--color--accent-4); }

/* Store front (demo-kit/setup-store.php): the outline button on the photo hero stays light. */
.wp-block-cover .is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: currentColor;
}
