/*
Theme Name: Norrsken
Text Domain: norrsken
Version: 1.0.8
Description: Norrsken is a simple block theme for blogs, with a stylish design inspired by the aurora borealis. Demo: https://norrsken.andersnoren.se
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, portfolio, news
Author: Anders Norén
Author URI: https://andersnoren.se
Theme URI: https://andersnoren.se/teman/norrsken-wordpress-theme/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
*/

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

@supports (min-height: 100dvh) {
	[style*="min-height:100vh"] {
		min-height: 100dvh !important;
	}
}

/* HELPER CLASSES */

.hide-empty:empty { display: none !important; }

/* INPUTS */

::placeholder { 
	color: var( --wp--preset--color--contrast-2 );
}

input, textarea, select {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast-4);
	border-radius: 4px;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	margin: 0;
	padding: .725em 1em;
}

textarea {
	height: 5lh;
}

input[type="checkbox"],
input[type="radio"] {
	appearance: none;
	flex-shrink: 0;
	height: 1.5em;
	padding: 0;
	width: 1.5em;
}

input[type="checkbox"] { border-radius: 4px; }
input[type="radio"] { border-radius: 999px; }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
	background-color: var(--wp--preset--color--contrast);
}

input[type="checkbox"]:checked {
	--check-w: .5em;
	--check-stroke: .133em;
	--check-stroke-half: calc( var( --check-stroke ) / 2 );

	background-image:
		linear-gradient(45deg, transparent calc( 50% - var( --check-stroke-half ) ), currentColor calc( 50% - var( --check-stroke-half ) ), currentColor calc( 50% + var( --check-stroke-half ) ), transparent calc( 50% + var( --check-stroke-half ) ) ),
		linear-gradient(-45deg, transparent calc( 50% - var( --check-stroke-half ) ), currentColor calc( 50% - var( --check-stroke-half ) ), currentColor calc( 50% + var( --check-stroke-half ) ), transparent calc( 50% + var( --check-stroke-half ) ) );
	background-repeat: no-repeat;
	background-position:
		calc( 50% - ( var( --check-w ) / 2 ) ) calc( 50% + ( var( --check-w ) / 4 ) ),
		calc( 50% + ( var( --check-w ) / 4 ) ) 50%;
	background-size:
		calc( var( --check-w ) / 2 ),
		var( --check-w );
	border-color: transparent;
	color: var( --wp--preset--color--base );
}

input[type="radio"]:checked {
	background-color: var(--wp--preset--color--contrast);
	border-width: 0;
}

select {
	--chevron-size: 12px;
		-webkit-appearance: none;
		-moz-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent calc( 50% - .5px ), currentColor calc( 50% - .5px ), currentColor calc( 50% + .5px ), transparent calc( 50% + .5px ) ),
		linear-gradient(-45deg, transparent calc( 50% - .5px ), currentColor calc( 50% - .5px ), currentColor calc( 50% + .5px ), transparent calc( 50% + .5px ) );
	background-repeat: no-repeat;
	background-position:
		calc(100% - 1em - ( .5 * var( --chevron-size ) ) ) 100%,
		calc(100% - 1em - ( 0 * var( --chevron-size ) ) ) 100%;
	background-size:
		calc( var( --chevron-size ) / 2 ), calc( var( --chevron-size ) / 2 ),
		calc( var( --chevron-size ) / 2 ), calc( var( --chevron-size ) / 2 );
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
	max-width: 100%;
	outline: none;
	padding-right: 2.75em;
	transition: border-color .1s linear;
	width: 100%;
}

select:focus {
	border-color: var(--wp--preset--color--contrast-2);
}

/* TEMPLATE PART: FOOTER */

.theme-author-credit a { text-decoration: none; }
.theme-author-credit a:hover { text-decoration: underline; }

/* Cognibuild corporate homepage */

.cb-home {
	--cb-ink: #121816;
	--cb-muted: #56625d;
	--cb-line: #dbe2de;
	--cb-soft: #f5f7f4;
	--cb-white: #ffffff;
	--cb-dark: #0d1210;
	--cb-dark-2: #161d1a;
	--cb-cyan: #13a8c7;
	--cb-green: #43b86f;
	--cb-orange: #f08b3e;
	--cb-blue: #4b79d8;
	background: var(--cb-soft);
	color: var(--cb-ink);
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.cb-home *,
.cb-home *::before,
.cb-home *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

.cb-home a {
	color: inherit;
	text-decoration: none;
}

.cb-shell {
	margin: 0 auto;
	max-width: 1180px;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

.cb-site-header {
	background: rgba(13, 18, 16, 0.94);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--cb-white);
	position: sticky;
	top: 0;
	z-index: 20;
}

.cb-nav {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 78px;
}

.cb-brand {
	align-items: center;
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	gap: 12px;
	white-space: nowrap;
}

.cb-brand-mark {
	align-items: center;
	background: linear-gradient(135deg, var(--cb-cyan), var(--cb-green) 52%, var(--cb-orange));
	border-radius: 6px;
	color: #07100c;
	display: inline-flex;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.cb-nav-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: flex-end;
}

.cb-nav-links a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	font-weight: 600;
}

.cb-nav-links a:hover {
	color: var(--cb-white);
}

.cb-nav-links .cb-nav-cta {
	background: var(--cb-white);
	border-radius: 6px;
	color: var(--cb-dark);
	padding: 10px 14px;
}

.cb-hero {
	align-items: center;
	background-image: linear-gradient(90deg, rgba(13, 18, 16, 0.98) 0%, rgba(13, 18, 16, 0.92) 42%, rgba(13, 18, 16, 0.58) 69%, rgba(13, 18, 16, 0.34) 100%), url("/wp-content/uploads/2024/01/logo_light_clean.png");
	background-position: center right;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--cb-white);
	display: flex;
	min-height: 600px;
	padding: 70px 0 38px;
}

.cb-hero-content {
	max-width: 780px;
}

.cb-eyebrow {
	color: var(--cb-cyan);
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.cb-hero h1,
.cb-section h2,
.cb-cta-section h2 {
	font-weight: 800;
	line-height: 1.05;
	margin: 0;
}

.cb-hero h1 {
	font-size: 64px;
	max-width: 820px;
}

.cb-hero-copy {
	color: rgba(255, 255, 255, 0.82);
	font-size: 21px;
	line-height: 1.55;
	margin: 26px 0 0;
	max-width: 720px;
}

.cb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.cb-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 6px;
	display: inline-flex;
	font-size: 16px;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 13px 20px;
}

.cb-home .cb-button-primary {
	background: var(--cb-white);
	color: var(--cb-dark);
}

.cb-home .cb-button-secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--cb-white);
}

.cb-button:hover,
.cb-nav-cta:hover {
	transform: translateY(-1px);
}

.cb-proof-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 46px;
	max-width: 900px;
	padding-top: 22px;
}

.cb-proof-strip strong,
.cb-proof-strip span {
	display: block;
}

.cb-proof-strip strong {
	color: var(--cb-white);
	font-size: 18px;
}

.cb-proof-strip span {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	margin-top: 5px;
}

.cb-section {
	padding: 86px 0;
}

.cb-section-light {
	background: var(--cb-soft);
}

.cb-section-dark {
	background: var(--cb-dark);
	color: var(--cb-white);
}

.cb-section-header {
	margin-bottom: 38px;
	max-width: 780px;
}

.cb-section-header h2,
.cb-cta-section h2 {
	font-size: 44px;
}

.cb-section-header p:not(.cb-eyebrow),
.cb-cta-section p {
	color: var(--cb-muted);
	font-size: 18px;
	line-height: 1.65;
	margin: 18px 0 0;
}

.cb-section-dark .cb-section-header p:not(.cb-eyebrow) {
	color: rgba(255, 255, 255, 0.72);
}

.cb-capability-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cb-card,
.cb-work-item {
	border-radius: 8px;
}

.cb-card {
	background: var(--cb-white);
	border: 1px solid var(--cb-line);
	border-top-width: 4px;
	min-height: 220px;
	padding: 24px;
}

.cb-card h3,
.cb-work-item h3 {
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
}

.cb-card p,
.cb-work-item p {
	font-size: 15px;
	line-height: 1.65;
	margin: 14px 0 0;
}

.cb-card p {
	color: var(--cb-muted);
}

.cb-accent-cyan {
	border-top-color: var(--cb-cyan);
}

.cb-accent-green {
	border-top-color: var(--cb-green);
}

.cb-accent-orange {
	border-top-color: var(--cb-orange);
}

.cb-accent-blue {
	border-top-color: var(--cb-blue);
}

.cb-work-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: 1.3fr 1fr 1fr;
}

.cb-work-item {
	background: var(--cb-dark-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 26px;
}

.cb-work-item p {
	color: rgba(255, 255, 255, 0.7);
}

.cb-work-feature {
	display: grid;
	gap: 22px;
	grid-template-columns: 170px 1fr;
}

.cb-work-feature img {
	aspect-ratio: 1 / 1;
	background: #edece7;
	border-radius: 8px;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cb-tag {
	color: var(--cb-green) !important;
	font-size: 13px !important;
	font-weight: 800;
	margin: 0 0 10px !important;
	text-transform: uppercase;
}

.cb-split {
	display: grid;
	gap: 58px;
	grid-template-columns: 0.9fr 1.1fr;
}

.cb-split .cb-section-header {
	margin-bottom: 0;
}

.cb-reasons {
	display: grid;
	gap: 14px;
}

.cb-reasons div {
	background: var(--cb-white);
	border: 1px solid var(--cb-line);
	border-radius: 8px;
	padding: 22px;
}

.cb-reasons strong,
.cb-reasons span {
	display: block;
}

.cb-reasons strong {
	font-size: 18px;
}

.cb-reasons span {
	color: var(--cb-muted);
	line-height: 1.55;
	margin-top: 6px;
}

.cb-cta-section {
	background: linear-gradient(135deg, #0d1210 0%, #18221e 60%, #20261d 100%);
	color: var(--cb-white);
	padding: 82px 0;
}

.cb-cta-layout {
	align-items: center;
	display: grid;
	gap: 54px;
	grid-template-columns: 1.1fr 0.9fr;
}

.cb-cta-section p {
	color: rgba(255, 255, 255, 0.78);
}

.cb-cta-panel {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	padding: 28px;
}

.cb-cta-panel .cb-button {
	margin-top: 24px;
}

.cb-footer {
	background: #080b0a;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--cb-white);
	padding: 58px 0;
}

.cb-footer-grid {
	display: grid;
	gap: 34px;
	grid-template-columns: 1.4fr repeat(3, 1fr);
}

.cb-footer p,
.cb-footer a {
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	line-height: 1.6;
}

.cb-footer p {
	margin: 18px 0 0;
	max-width: 390px;
}

.cb-footer h2 {
	color: var(--cb-white);
	font-size: 15px;
	margin: 0 0 14px;
}

.cb-footer a {
	display: block;
	margin-top: 10px;
}

.cb-footer .cb-brand {
	color: var(--cb-white);
}

.cognibuild-theme-header .wp-block-navigation-item__content:hover,
.cognibuild-theme-footer .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

@media (max-width: 1020px) {
	.cb-capability-grid,
	.cb-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cb-work-feature {
		grid-column: 1 / -1;
	}

	.cb-split,
	.cb-cta-layout,
	.cb-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.cb-shell {
		padding-left: 18px;
		padding-right: 18px;
	}

	.cb-nav {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		padding-bottom: 18px;
		padding-top: 18px;
	}

	.cb-nav-links {
		justify-content: flex-start;
	}

	.cb-hero {
		background-position: center;
		min-height: auto;
		padding: 52px 0 30px;
	}

	.cb-hero h1 {
		font-size: 40px;
	}

	.cb-hero-copy {
		font-size: 18px;
	}

	.cb-proof-strip,
	.cb-capability-grid,
	.cb-work-grid {
		grid-template-columns: 1fr;
	}

	.cb-proof-strip {
		gap: 10px;
		margin-top: 32px;
		padding-top: 18px;
	}

	.cb-proof-strip strong {
		font-size: 16px;
	}

	.cb-proof-strip span {
		font-size: 13px;
	}

	.cb-section,
	.cb-cta-section {
		padding: 64px 0;
	}

	.cb-section-header h2,
	.cb-cta-section h2 {
		font-size: 34px;
	}

	.cb-work-feature {
		grid-template-columns: 1fr;
	}

	.cb-work-feature img {
		max-width: 220px;
	}
}

@media (max-width: 480px) {
	.cb-nav-links a {
		font-size: 14px;
	}

	.cb-nav-links .cb-nav-cta {
		display: none;
	}

	.cb-hero h1 {
		font-size: 34px;
	}

	.cb-proof-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 24px;
	}

	.cb-proof-strip strong {
		font-size: 14px;
	}

	.cb-proof-strip span {
		display: none;
	}

	.cb-actions .cb-button {
		width: 100%;
	}
}

/* Concrete portfolio projects and an on-demand avatar example. */
.cb-portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.cb-project-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:32px}.cb-project-number{font-size:38px;font-weight:800;line-height:1;color:#75d2af;margin-bottom:25px;opacity:.7}.cb-project-card h3{font-size:27px}.cb-project-card>p:not(.cb-tag){max-width:48ch}.cb-project-links{display:flex;gap:14px 24px;flex-wrap:wrap;margin-top:auto;padding-top:20px}.cb-home .cb-project-links a,.cb-home .cb-profile-strip a{color:#9ce6ca;font-weight:700;text-decoration:underline;text-underline-offset:5px}.cb-avatar-showcase{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:42px;align-items:center;margin-top:32px;padding:32px;background:#17231e;border:1px solid #354b40}.cb-avatar-media{min-width:0}.cb-avatar-media video{display:block;width:100%;max-height:380px;object-fit:contain;background:#101914;border-radius:8px}.cb-video-caption{font-size:13px!important;color:#afc4b8;margin:12px 0 0}.cb-avatar-copy h3{font-size:34px;line-height:1.15;margin:0 0 20px}.cb-avatar-copy p:not(.cb-tag){color:#c3cec8;line-height:1.7}.cb-profile-strip{display:flex;align-items:center;gap:20px 32px;flex-wrap:wrap;padding-top:32px;margin-top:32px;border-top:1px solid #354b40}.cb-profile-strip p{flex:1 1 280px;margin:0;color:#c3cec8}.cb-profile-strip strong{display:block;color:white;margin-bottom:6px}.cb-home a:focus-visible,.cb-home video:focus-visible{outline:3px solid #63dcbd;outline-offset:5px}@media(max-width:700px){.cb-portfolio-grid,.cb-avatar-showcase{grid-template-columns:1fr}.cb-project-card,.cb-avatar-showcase{padding:24px}.cb-avatar-showcase{gap:24px}.cb-profile-strip{align-items:flex-start;flex-direction:column}.cb-profile-strip p{flex:auto}.cb-avatar-copy h3{font-size:28px}}
