/*
Theme Name: Lynnify
Theme URI: https://lynnify.com/
Author: Lynnify
Author URI: https://lynnify.com/
Description: A modern full-site-editing block theme built for Lynnify — stainless-steel fashion jewellery for the GCC. Ships with a fluid design system, first-class Arabic/RTL support, OMR-correct price formatting, product structured data and an aggressive front-end performance layer.
Version: 1.0.0
Requires at least: 6.7
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: lynnify
Tags: e-commerce, block-patterns, full-site-editing, rtl-language-support, translation-ready, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, wide-blocks
WC requires at least: 8.0
WC tested up to: 11.1.0
*/

/*
 * Nearly all visual design lives in theme.json.
 * This file carries only what theme.json cannot express:
 * base resets, motion preferences, and utility classes used by patterns.
 */

/* --------------------------------------------------------------
 * 1. Base
 * ------------------------------------------------------------ */

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Respect reduced-motion across every animation the theme ships. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Skip link — visible only on keyboard focus. */
.skip-link {
	position: absolute;
	top: -100px;
	inset-inline-start: var(--wp--preset--spacing--40);
	z-index: 999999;
	padding: 0.75em 1.5em;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	transition: top var(--wp--custom--transition--fast);
}

.skip-link:focus {
	top: var(--wp--preset--spacing--40);
}

/* Screen-reader-only text (WP core convention). */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base);
	clip-path: none;
	color: var(--wp--preset--color--ink);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	height: auto;
	inset-inline-start: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* --------------------------------------------------------------
 * 2. Utility classes for patterns and the editor's Additional CSS field
 * ------------------------------------------------------------ */

/* Eyebrow / kicker label above a heading. */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wider);
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Thin rule that sits under a section heading. */
.lyn-rule::after {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-block-start: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--sand-deep);
}

.has-text-align-center .lyn-rule::after,
.lyn-rule.has-text-align-center::after {
	margin-inline: auto;
}

/* Media that fills its container without distortion. */
.lyn-cover-media img,
.lyn-cover-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Card that lifts on hover. */
.lyn-lift {
	transition: transform var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base);
}

.lyn-lift:hover,
.lyn-lift:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* Constrain a block to a comfortable reading measure. */
.lyn-measure {
	max-width: 62ch;
}

.has-text-align-center.lyn-measure {
	margin-inline: auto;
}

/* Hairline divider between stacked sections. */
.lyn-hairline {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* --------------------------------------------------------------
 * 3. Block style variations registered in inc/blocks.php
 * ------------------------------------------------------------ */

/* Button — outline */
.wp-block-button.is-style-lyn-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
}

.wp-block-button.is-style-lyn-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-lyn-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

/* Button — quiet text link with an animated underline */
.wp-block-button.is-style-lyn-quiet > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--ink);
	border-color: transparent;
	padding-inline: 0;
	padding-block: 0.35em;
	position: relative;
}

.wp-block-button.is-style-lyn-quiet > .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(1);
	transform-origin: inline-start;
	transition: transform var(--wp--custom--transition--base);
}

.wp-block-button.is-style-lyn-quiet > .wp-block-button__link:hover::after,
.wp-block-button.is-style-lyn-quiet > .wp-block-button__link:focus::after {
	transform: scaleX(0.4);
}

/* Group — framed card */
.wp-block-group.is-style-lyn-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--50);
}

/* Image — duotone-free editorial frame */
.wp-block-image.is-style-lyn-frame img {
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Separator — dotted brand rule */
.wp-block-separator.is-style-lyn-dotted {
	border: 0;
	height: 1px;
	background-image: radial-gradient(
		circle,
		var(--wp--preset--color--sand-deep) 1px,
		transparent 1px
	);
	background-size: 8px 1px;
	background-repeat: repeat-x;
	opacity: 1;
}
