/*
Theme Name: Nam June Paik
Theme URI:
Author: WordPress Special Projects
Author URI: https://wpspecialprojects.wordpress.com
Description: Block theme for Nam June Paik.
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nam-june-paik
Tags:
*/

body {
	background-image: url( ./assets/images/paper-texture.png );
	background-size: 512px auto;
	background-repeat: repeat;
	background-position: top left;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

.wp-block-group.has-contrast-background-color {
	background-image: url( ./assets/images/paper-texture-dark.png );
	background-size: 512px auto;
	background-repeat: repeat;
	background-position: top left;
}

a,
button {
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* INPUTS */

::placeholder {
	color: var( --wp--preset--color--contrast-2 );
}

input, textarea, select, .contact-form .grunion-field {
	background-color: transparent;
	border: 1px solid var( --wp--preset--color--contrast );
	border-radius: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	margin: 0;
	padding: .75em 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: 0; }
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%;
	padding-right: 4em;
	transition: border-color .1s linear;
}

/* BLOCK: DETAILS */

/* Block Style: Chevron Icon */

.is-style-chevron-icon-details {
	overflow: visible;
}

.is-style-chevron-icon-details summary {
	border-bottom: 1px solid currentColor;
	line-height: 1.3;
	list-style: none;
	padding-right: 1em;
	position: relative;
	width: fit-content;
}

.is-style-chevron-icon-details summary::after {
	content: "";
	border-left: .09em solid currentColor;
	border-bottom: .09em solid currentColor;
	height: .4em;
	position: absolute;
		right: 0;
		top: calc( 50% - .325em );
	transform: rotate(-45deg);
	width: .4em;
}

.is-style-chevron-icon-details[open] summary::after {
	transform: rotate(-225deg);
	top: calc( 50% - .05em );
}

.is-style-chevron-icon-details summary::marker,
.is-style-chevron-icon-details summary::-webkit-details-marker {
	display: none;
}

.is-style-chevron-icon-details summary:hover {
	border-bottom-color: transparent;
}

/* Separate Open/Close text */

details.details-with-separate-open-close-text:not([open]) .close-string,
details.details-with-separate-open-close-text[open] .open-string {
	display: none;
}

/* BLOCK: IMAGE */

.wp-block-image a img {
	transition: opacity .1s linear;
}

.wp-block-image a:hover img {
	opacity: .75;
}

/* BLOCK: NAVIGATION */

.current-menu-item a { text-decoration: underline; }
.current-menu-item a:hover { text-decoration: none; }

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	line-height: 1.5;
}

.wp-block-navigation__responsive-container-open:not(:hover) {
	text-decoration: underline;
}

/* BLOCK: JETPACK SUBSCRIBE */

.wp-block-jetpack-subscriptions input[style*="padding: 15px 23px 15px 23px;"],
.wp-block-jetpack-subscriptions button[style*="padding: 15px 23px 15px 23px;"] {
	padding: .75em 1em !important;
}

.wp-block-jetpack-subscriptions input,
.wp-block-jetpack-subscriptions button {
	line-height: inherit !important;
}

/* BLOCK: JETPACK CONTACT FORM */

.wp-block-jetpack-contact-form {
	--jetpack--contact-form--error-color: var( --wp--preset--color--contrast );

	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.contact-form label {
	font-weight: 400;
}

.contact-form label span.required,
.grunion-label-required {
	font-size: inherit;
	margin-left: 0;
	opacity: 1;
}

.contact-form__input-error {
	gap: .5em;
}

.contact-form__error ul {
	padding-left: 0;
}

/* Submission Box */

.contact-form-submission {
	background-color: var( --wp--preset--color--contrast );
	color: var( --wp--preset--color--base );
	box-sizing: border-box;
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	position: relative;
}

.contact-form-submission a,
.contact-form-submission .go-back-message .link {
	color: inherit;
}

.contact-form-submission .go-back-message {
	margin: 0 0 var(--wp--preset--spacing--40) 0;
}

@media ( min-width: 768px ) {
	.contact-form-submission .go-back-message {
		position: absolute;
			top: var(--wp--preset--spacing--40);
			right: var(--wp--preset--spacing--40);
		z-index: 1;
	}
}

.contact-form-submission h4 {
	border-bottom: 1px solid currentColor;
	font-size: inherit;
	font-weight: 400;
	margin: 0 0 var(--wp--preset--spacing--40) 0;
	padding-bottom: var(--wp--preset--spacing--40);
}

.contact-form-submission .field-name {
	font-weight: 700;
}

.contact-form-submission .field-value {
	font-weight: 400;
}

.contact-form-submission > div:last-of-type {
	margin-bottom: 0;
}

/* BLOCK: HEADING */

@media ( min-width: 768px ) {

	body:not( .editor-styles-wrapper ) .is-style-visually-hidden-tablet-desktop {
		clip: rect( 1px, 1px, 1px, 1px );
		height: 1px;
		overflow: hidden;
		position: absolute !important;
			left: -9999999px;
		width: 1px;
	}

}

body:not( .editor-styles-wrapper ) .is-style-visually-hidden {
	clip: rect( 1px, 1px, 1px, 1px );
	height: 1px;
	overflow: hidden;
	position: absolute !important;
		left: -9999999px;
	width: 1px;
}

body.editor-styles-wrapper [class*="is-style-visually-hidden"]:not(.is-selected) {
	outline: 1px dashed var(--wp-admin-theme-color);
}

/* BLOCK: COLOPHON */

a.imprint { text-decoration: none; }
a.imprint:hover { text-decoration: underline; }

/* 404 PAGE */

.error404 .wp-site-blocks {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100lvh;
}

.error404 .wp-site-blocks main {
	flex-grow: 1;
}

/* BLOCK: CAROUSEL SLIDER */

.wp-block-cb-carousel:has( .slick-dots ) {
	padding-bottom: calc( var( --wp--preset--spacing--30 ) + 24px );
}

.wp-block-cb-carousel .slick-dots {
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.wp-block-cb-carousel .slick-dots li {
	margin: 0;
}

.wp-block-cb-carousel .slick-dots li,
.wp-block-cb-carousel .slick-dots li button {
	height: 24px;
	width: 32px;
}

.wp-block-cb-carousel .slick-dots li button:before {
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
}

:root .slick-next,
:root .slick-prev {
	bottom: 0;
	height: auto;
	top: 0;
	transform: none;
	width: var(--wp--style--root--padding-left);
}

.slick-next {
	left: 100%;
	right: auto;
}

.slick-prev {
	left: auto;
	right: 100%;
}

.wp-block-cb-carousel .slick-next:before,
.wp-block-cb-carousel .slick-prev:before {
	content: "";
	border-left: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	height: .5em;
	position: absolute;
		left: calc( 50% - .25em );
		top: calc( 50% - .25em );
	transition: left .1s linear;
	transform: rotate(-135deg);
	width: .5em;
}

.wp-block-cb-carousel .slick-prev:before {
	transform: rotate(45deg);
}

.wp-block-cb-carousel .slick-next:hover:before { left: calc( 50% - .25em + 4px ); }
.wp-block-cb-carousel .slick-prev:hover:before { left: calc( 50% - .25em - 4px ); }

.slick-list {
	transition: height .2s ease;
}

.wp-block-cb-carousel .slick-list {
	margin: 0 calc( var( --wp--preset--spacing--30 ) / -2 );
}

.wp-block-cb-carousel .slick-slide {
	padding: 0 calc( var( --wp--preset--spacing--30 ) / 2 );
}