/*
Theme Name: Lumina
Theme URI: https://tenfoldthemes.example/lumina
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: An elegant dark theme for LED and architectural lighting manufacturers, where darkness is the canvas and light is the jewelry. Ships with 18 hand-crafted patterns, four full-page layouts, a warm Gallery light style, locally hosted fonts and original glowing luminaire artwork — everything editable in the Site Editor.
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: lumina
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, portfolio, blog
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

:where(a, button, input, summary, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

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

/* ---------------------------------------------------------------------------
 * Block styles: Heading — Gilded (gold gradient text)
 * ------------------------------------------------------------------------- */

.is-style-gilded {
	background-image: linear-gradient(112deg, var(--wp--preset--color--contrast) 0%, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--accent) 100%);
	background-image: linear-gradient(112deg, color-mix(in srgb, var(--wp--preset--color--primary) 42%, var(--wp--preset--color--contrast)) 0%, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--wp--preset--color--primary);
	-webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------------
 * Block styles: Group — Vitrine / Vitrine (glow)
 * The theme's card: a near-black panel behind a 1px hairline.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-vitrine,
.wp-block-group.is-style-vitrine-glow {
	background: var(--wp--preset--color--tint);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-vitrine-glow {
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-group.is-style-vitrine-glow:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
}

/* ---------------------------------------------------------------------------
 * Block styles: Separator — Gold hairline
 * ------------------------------------------------------------------------- */

hr.is-style-hairline-gold {
	border: none;
	height: 1px;
	width: 96px;
	margin-left: auto;
	margin-right: auto;
	background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--primary) 82%, transparent 100%);
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Block styles: List — Gold dashes
 * ------------------------------------------------------------------------- */

ul.is-style-gold-dash {
	list-style: none;
	padding-left: 0;
}

ul.is-style-gold-dash > li {
	padding-left: 1.75em;
	position: relative;
	margin-bottom: 0.55em;
}

ul.is-style-gold-dash > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 1.05em;
	height: 1px;
	background: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------------------
 * Tables — hairline photometric tables
 * ------------------------------------------------------------------------- */

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-table th,
.wp-block-table td {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.875rem 1rem;
}

.wp-block-table thead {
	border-bottom: 1px solid var(--wp--preset--color--primary);
}

.wp-block-table figcaption {
	margin-top: 0.75rem;
	text-align: left;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3em;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	font-weight: 300;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1px;
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
/* ---------------------------------------------------------------------------
 * Palette-slug guard: the standard palette includes a slug named "border".
 * When used as a *text* color, WordPress emits `.has-border-color`, which core
 * pairs with `:where(.has-border-color){border-style:solid}`; with the default
 * medium width that paints a stray ~3px box around the text. Zero the width
 * here — genuine borders set an explicit width (inline or via block-style
 * classes) that overrides this 0-specificity rule.
 * ------------------------------------------------------------------------- */
:where(.has-border-color) {
	border-width: 0;
}
