/**
 * Una Customizer styles.
 *
 * Lora is bundled with the plugin, nothing is fetched from Google.
 */

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url( '../fonts/lora-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url( '../fonts/lora-latin-ext.woff2' ) format( 'woff2' );
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url( '../fonts/lora-latin-italic.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.una-app {
	--una-accent: #2E7D46;
	--una-ink: #2B2118;
	--una-paper: #F5EFE4;
	--una-line: rgba( 43, 33, 24, 0.14 );
	--una-soft: rgba( 43, 33, 24, 0.06 );
	--una-radius: 18px;

	box-sizing: border-box;
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	color: var( --una-ink );
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp( 16px, 3vw, 32px );
}

.una-app *,
.una-app *::before,
.una-app *::after {
	box-sizing: inherit;
}

.una-app__intro {
	max-width: 62ch;
	margin: 0 auto clamp( 20px, 3vw, 34px );
	text-align: center;
}

.una-app__title {
	font-family: inherit;
	font-size: clamp( 1.9rem, 1.2rem + 2.4vw, 3rem );
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

.una-app__lede {
	font-size: clamp( 1rem, 0.95rem + 0.3vw, 1.15rem );
	line-height: 1.6;
	margin: 0;
	opacity: 0.85;
}

.una-app__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	gap: clamp( 18px, 2.5vw, 32px );
	align-items: start;
}

@media ( min-width: 860px ) {
	.una-app__body {
		grid-template-columns: minmax( 300px, 42% ) minmax( 0, 1fr );
	}
}

.una-app__loading,
.una-app__noscript {
	padding: 2rem;
	text-align: center;
	opacity: 0.7;
}

/* ---------------------------------------------------------------- Stage */

.una-stage {
	background: var( --una-paper );
	border-radius: var( --una-radius );
	padding: clamp( 12px, 2vw, 24px );
	position: relative;
	overflow: hidden;
}

@media ( min-width: 860px ) {
	.una-stage {
		position: sticky;
		top: 24px;
	}
}

.una-stage::before {
	content: '';
	position: absolute;
	inset: auto 0 -22% 0;
	height: 76%;
	background: var( --una-accent );
	opacity: 0.09;
	border-radius: 50%;
	transform: scale( 1.25 );
}

.una-stage__frame {
	position: relative;
	display: flex;
	justify-content: center;
}

.una-dog {
	width: 100%;
	max-width: 380px;
	height: auto;
	display: block;
}

.una-stage__caption {
	position: relative;
	text-align: center;
	margin: 0.4em 0 0;
	font-size: 0.9rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	opacity: 0.55;
	min-height: 1.2em;
}

/* ---------------------------------------------------------------- Panel */

.una-panel {
	display: flex;
	flex-direction: column;
	gap: clamp( 12px, 1.6vw, 20px );
	min-width: 0;
}

.una-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.una-tab {
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	color: var( --una-ink );
	background: transparent;
	border: 1px solid var( --una-line );
	border-radius: 999px;
	padding: 0.5em 1.05em;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.una-tab:hover {
	background: var( --una-soft );
}

.una-tab.is-active {
	background: var( --una-accent );
	border-color: var( --una-accent );
	color: #fff;
}

.una-options__hint {
	margin: 0 0 0.9em;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.75;
}

.una-options__grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 104px, 1fr ) );
	gap: 10px;
}

.una-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 8px 12px;
	background: var( --una-paper );
	border: 2px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.una-thumb:hover {
	transform: translateY( -2px );
}

.una-thumb.is-active {
	border-color: var( --una-accent );
}

.una-thumb__art {
	width: 100%;
	height: 62px;
	display: block;
}

.una-thumb__label {
	font-size: 0.78rem;
	line-height: 1.25;
	text-align: center;
	opacity: 0.85;
}

.una-panel__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var( --una-line );
	padding-top: clamp( 12px, 1.6vw, 18px );
}

.una-name {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 180px;
}

.una-name__label {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.6;
}

.una-name__input {
	font-family: inherit;
	font-size: 1rem;
	color: inherit;
	background: transparent;
	border: 1px solid var( --una-line );
	border-radius: 10px;
	padding: 0.55em 0.7em;
	width: 100%;
	max-width: 220px;
}

.una-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* -------------------------------------------------------------- Buttons */

.una-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: 'Lora', Georgia, serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.72em 1.4em;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.una-btn--primary {
	background: var( --una-ink );
	color: var( --una-paper );
}

.una-btn--accent {
	background: var( --una-accent );
	color: #fff;
}

.una-btn--ghost {
	background: transparent;
	border-color: var( --una-line );
	color: var( --una-ink );
}

.una-btn--text {
	background: none;
	border: 0;
	padding: 0.4em 0;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 4px;
	color: inherit;
	align-self: flex-start;
	font-size: 0.95rem;
	opacity: 0.7;
}

.una-btn:hover {
	opacity: 0.88;
}

.una-btn:focus-visible,
.una-tab:focus-visible,
.una-thumb:focus-visible,
.una-share__btn:focus-visible {
	outline: 3px solid var( --una-accent );
	outline-offset: 2px;
}

/* -------------------------------------------------------------- Result */

.una-panel--result {
	--una-program: var( --una-accent );
}

.una-result {
	background: var( --una-paper );
	border-radius: var( --una-radius );
	padding: clamp( 18px, 2.4vw, 30px );
	border-left: 6px solid var( --una-program );
	display: flex;
	flex-direction: column;
	gap: 0.7em;
}

.una-result__kicker {
	margin: 0;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	opacity: 0.7;
}

.una-result__program {
	font-family: inherit;
	font-size: clamp( 1.5rem, 1.1rem + 1.6vw, 2.2rem );
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var( --una-program );
}

.una-result__tagline {
	margin: 0;
	font-style: italic;
	font-size: 1.05rem;
}

.una-result__desc {
	margin: 0;
	line-height: 1.6;
	opacity: 0.88;
}

.una-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 0.4em;
}

/* --------------------------------------------------------------- Share */

.una-share {
	margin-top: 4px;
}

.una-share[hidden] {
	display: none;
}

.una-share__inner {
	border: 1px solid var( --una-line );
	border-radius: var( --una-radius );
	padding: clamp( 16px, 2vw, 24px );
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.una-share__title {
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
}

.una-share__note {
	margin: -8px 0 0;
	font-size: 0.92rem;
	opacity: 0.7;
	line-height: 1.5;
}

.una-share__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 148px, 1fr ) );
	gap: 8px;
}

.una-share__btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 12px 14px;
	background: var( --una-paper );
	border: 1px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	text-align: left;
	transition: border-color 0.15s ease;
}

.una-share__btn:hover {
	border-color: var( --una-accent );
}

.una-share__btn svg {
	width: 22px;
	height: 22px;
	margin-bottom: 2px;
	color: var( --una-accent );
}

.una-share__btn span {
	font-weight: 600;
	font-size: 0.95rem;
}

.una-share__btn em {
	font-style: normal;
	font-size: 0.78rem;
	opacity: 0.6;
}

.una-share__caption {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}

.una-share__caption textarea {
	font-family: inherit;
	font-size: 0.92rem;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.5;
	color: inherit;
	background: transparent;
	border: 1px solid var( --una-line );
	border-radius: 10px;
	padding: 0.7em;
	resize: vertical;
}

.una-share__status {
	margin: 0;
	min-height: 1.3em;
	font-size: 0.9rem;
	color: var( --una-accent );
}

/* ----------------------------------------------------------- Card page */

.una-card-page {
	font-family: 'Lora', Georgia, serif;
	padding: clamp( 20px, 4vw, 56px ) clamp( 16px, 4vw, 32px );
}

.una-card-page__inner {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	gap: clamp( 20px, 3vw, 40px );
	align-items: center;
}

@media ( min-width: 820px ) {
	.una-card-page__inner {
		grid-template-columns: minmax( 0, 460px ) minmax( 0, 1fr );
	}
}

.una-card-page__figure {
	margin: 0;
}

.una-card-page__figure img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	display: block;
}

.una-card-page__title {
	font-family: inherit;
	font-size: clamp( 1.6rem, 1.1rem + 2vw, 2.4rem );
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

.una-card-page__program {
	margin: 0 0 0.5em;
	font-weight: 600;
	opacity: 0.8;
}

.una-card-page__blurb {
	margin: 0 0 1.4em;
	line-height: 1.6;
	opacity: 0.85;
}

.una-card-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.una-card-page .una-btn {
	--una-ink: #2B2118;
	--una-paper: #F5EFE4;
	--una-accent: #2E7D46;
	--una-line: rgba( 43, 33, 24, 0.2 );
}

@media ( prefers-reduced-motion: reduce ) {
	.una-thumb,
	.una-btn,
	.una-tab {
		transition: none;
	}
}

.una-thumb__img {
	width: 100%;
	height: 62px;
	object-fit: contain;
	display: block;
}
