/*
Theme Name: Uppsala Kung Glas
Template: arti-standard
Description: Child theme of Arti Standard for Uppsala Kung Glas. Put site-specific CSS and code here. Colors, fonts and spacing live in Theme Settings → Design.
Author: Arti
Author URI: https://arti.dev
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.0
Update URI: https://arti.dev/child-theme
Text Domain: uppsala-kung-glas
*/

/* ==========================================================================
   Uppsala Kung Glas – identity concept D "Se klart"

   Colours, fonts and shapes come from Theme Settings → Design. This file
   only adds what tokens can't express: the glass motif. Two translucent
   panes that overlap, and the green edge you see on a sheet of glass
   (Glaskant #9CCFC6).
   ========================================================================== */

:root {
	--ukg-glaskant: #9ccfc6;
	--ukg-glaskant-soft: color-mix(in srgb, #9ccfc6 55%, transparent);
}

/* Eyebrows: the concept's spaced capitals. */
.arti-eyebrow {
	letter-spacing: 0.16em;
	font-weight: 600;
}

/* Light headings need a touch more air. */
.arti-h1,
.arti-h2 {
	letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Two panes: the hero image is the front pane, a translucent Glaskant pane
   sits behind it, offset up and to the left – like the logo.
   ----------------------------------------------------------------------- */
.arti-hero__media-col {
	position: relative;
	isolation: isolate;
}

.arti-hero__media-col::before {
	content: "";
	position: absolute;
	inset: -1.75rem 1.75rem 1.75rem -1.75rem;
	z-index: -1;
	border-radius: calc(var(--arti-radius-image) + 4px);
	background: var(--ukg-glaskant-soft);
}

.arti-hero__media-col img {
	box-shadow: 0 24px 48px -24px color-mix(in srgb, #0e4a47 45%, transparent);
}

@media (max-width: 1023px) {
	.arti-hero__media-col::before {
		inset: -1rem 1rem 1rem -1rem;
	}
}

/* Text + media images get the same pane, alternating side with the image. */
.arti-text-media__media {
	position: relative;
	isolation: isolate;
}

.arti-text-media__media:has(img)::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	z-index: -1;
	border-radius: calc(var(--arti-radius-image) + 4px);
	background: color-mix(in srgb, #9ccfc6 35%, transparent);
}

.arti-text-media--media-left .arti-text-media__media:has(img)::before {
	inset: 1.25rem 1.25rem -1.25rem -1.25rem;
}

/* --------------------------------------------------------------------------
   The glass edge: cards and steps carry the green edge of a glass sheet.
   ----------------------------------------------------------------------- */
.arti-feature-card,
.arti-product-card,
.arti-audience-card {
	box-shadow: inset 3px 0 0 var(--ukg-glaskant);
}

.arti-feature-card.is-linked:hover,
.arti-product-card.is-linked:hover {
	box-shadow: inset 3px 0 0 var(--ukg-glaskant), var(--arti-shadow);
}

.arti-feature-card__icon {
	background: color-mix(in srgb, #9ccfc6 30%, transparent);
	color: #0e4a47;
}

.arti-process--cards .arti-process__step {
	border-top-color: var(--ukg-glaskant);
}

.arti-stat {
	border-top: 2px solid var(--ukg-glaskant);
}

/* Links in running text: a glass-green underline. */
:is(.arti-rich, .arti-prose) a {
	text-decoration-color: var(--ukg-glaskant);
	text-decoration-thickness: 2px;
}

/* Dark sections and the footer: Glaskant icons and focus rings. */
.arti-sec--dark,
.arti-footer {
	--arti-icon: var(--ukg-glaskant);
	--arti-focus: var(--ukg-glaskant);
}

/* Sticky header turns to frosted glass once the page scrolls. */
.arti-site-header.is-scrolled:not(.is-transparent) {
	background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
}

@media (prefers-reduced-transparency: reduce) {
	.arti-site-header.is-scrolled:not(.is-transparent) {
		background: var(--wp--preset--color--base);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}
