/*
Theme Name: Yett Members
Theme URI: https://yettmembers.com
Author: Designed2Use
Author URI: https://www.designed2use.co.uk
Description: The website theme for Yett Members, membership software for clubs. A block theme built on the Portal brand: Night and Mist with one Mint, Sora headings and Figtree text. It includes ready-made sections with real product screenshots: a hero, feature grids, phone and desktop showcases, steps and calls to action.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yett-members
Tags: block-patterns, full-site-editing, one-column, wide-blocks, custom-colors, editor-style
*/

/* Small additions theme.json can't express. Colours and fonts live in theme.json. */

/* Device frames for screenshots: add the class in Advanced → Additional CSS class, or use the patterns. */
.ym-phone img {
	border: 8px solid var(--wp--preset--color--night);
	border-radius: 34px;
	box-shadow: var(--wp--preset--shadow--device);
	background: var(--wp--preset--color--night);
}
.ym-tablet img {
	border: 10px solid var(--wp--preset--color--night);
	border-radius: 26px;
	box-shadow: var(--wp--preset--shadow--device);
}
.ym-desktop {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--device);
	background: var(--wp--preset--color--night);
}
.ym-desktop::before {
	/* A slim window bar so a desktop screenshot reads as an app window. */
	content: "";
	display: block;
	height: 26px;
	background:
		radial-gradient(circle at 16px 13px, #F6F7FD55 5px, transparent 6px),
		radial-gradient(circle at 34px 13px, #F6F7FD55 5px, transparent 6px),
		radial-gradient(circle at 52px 13px, #F6F7FD55 5px, transparent 6px),
		var(--wp--preset--color--night);
}
.ym-desktop img { display: block; width: 100%; height: auto; }

/* Cards used by the feature grids. */
.ym-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	height: 100%;
}
.is-style-ym-dark-card, .ym-card-dark {
	background: var(--wp--preset--color--indigo);
	border-radius: 18px;
	height: 100%;
}

/* The small uppercase line above a heading. */
.ym-eyebrow {
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

/* Numbered step badges. */
.ym-step-number,
.wp-block-group > p.ym-step-number.has-background {
	flex: none;
	padding: 0 !important;
	margin: 0;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--sora);
	font-weight: 700;
}

/* Header: keep the mark and site name on one line. */
.ym-brand { gap: 0.6rem; }
.ym-brand img { width: 30px; height: auto; }

/* "Coming soon" pill. */
.ym-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Phone images sit side by side on wide screens and scroll sideways on a phone, never squashed. */
.ym-phone-row { overflow: visible; }
.ym-phone-row .wp-block-image { flex: 0 0 auto; }

/* Visible focus everywhere, for keyboard users. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--mint-ink);
	outline-offset: 3px;
}
:where(.has-night-background-color, .has-indigo-background-color) :where(a, summary):focus-visible {
	outline-color: var(--wp--preset--color--mint);
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

/* Link lists without bullets (footer). */
.ym-plain-list { list-style: none; padding-left: 0 !important; line-height: 2; }

/* On a narrow screen a centred row that overflows clips its first phone where it can't be scrolled to:
   start from the left there, so all of them scroll into view. */
@media (max-width: 781px) {
	.ym-phone-row { justify-content: flex-start !important; overflow-x: auto; padding: 0 0 2rem; }
}

/* Header, main and footer sit flush: each section brings its own padding, so the default gap between them only
   showed a thin strip of background above a dark hero and below the last band. */
.wp-site-blocks > * { margin-block-start: 0; }
