/*
Theme Name: UG Books
Theme URI: https://ujjwalganesh.com/books/
Description: Books and essays by Ujjwal Ganesh. Child theme of Hello Elementor with its own templates and design system; no page builder needed.
Author: Ujjwal Ganesh
Author URI: https://ujjwalganesh.com/
Template: hello-elementor
Version: 1.1.2
Text Domain: ug-books
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--paper: #f4efe6;
	--paper-2: #ece3d3;
	--card: #fbf8f2;
	--ink: #15130f;
	--ink-2: #2b2721;
	--muted: #615a4f;
	--rule: #d9cfbd;
	--rule-2: #e6ddcd;
	--signal: #e5482b;
	--signal-btn: #c93a1d;
	--signal-text: #b8321a;
	--tone: #6b5d4c;
	--tone-ink: color-mix(in srgb, var(--tone) 64%, #15130f);
	--tone-wash: color-mix(in srgb, var(--tone) 12%, var(--paper));

	--serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--gut: clamp(20px, 4.2vw, 56px);
	--wrap: 1240px;
	--read: 700px;
	--hd-h: 72px;

	--s-1: clamp(6px, .6vw, 8px);
	--s-2: clamp(12px, 1.2vw, 16px);
	--s-3: clamp(18px, 2vw, 28px);
	--s-4: clamp(28px, 3.4vw, 48px);
	--s-5: clamp(44px, 6vw, 88px);
	--s-6: clamp(64px, 9vw, 140px);

	--ease: cubic-bezier(.2, .7, .1, 1);
	--shadow-book: 0 1px 1px rgba(21, 19, 15, .08), 0 6px 14px -6px rgba(21, 19, 15, .3), 0 24px 40px -22px rgba(21, 19, 15, .42);
	--shadow-lift: 0 2px 2px rgba(21, 19, 15, .06), 0 14px 24px -10px rgba(21, 19, 15, .32), 0 40px 60px -30px rgba(21, 19, 15, .45);
}

/* ==========================================================================
   Base (overrides the Hello reset)
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ugb-site {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}
body.ugb-site ::selection { background: var(--ink); color: var(--paper); }
.ugb-site a { color: inherit; text-decoration: none; }
.ugb-site a:hover, .ugb-site a:active { color: inherit; }
.ugb-site img { max-width: 100%; height: auto; display: block; }
:where(.ugb-site) :is(h1, h2, h3, h4) { margin: 0; font-weight: 400; line-height: 1.1; color: inherit; }
:where(.ugb-site) p { margin: 0; }
:where(.ugb-site) :is(ul, ol) { margin: 0; padding: 0; }
:where(.ugb-site) :is(dl, dd, figure) { margin: 0; }
.ugb-site :focus-visible { outline: 2px solid var(--signal-btn); outline-offset: 3px; border-radius: 2px; }
.ugb-site button { font: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	top: 10px; left: 10px; padding: 12px 18px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); border-radius: 999px;
}

.ugb-wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.ugb-wrap--read { width: min(var(--read), 100% - 2 * var(--gut)); }
.ugb-main { display: block; min-height: 60vh; }

/* ==========================================================================
   Type
   ========================================================================== */

.ugb-display {
	font-family: var(--serif);
	font-optical-sizing: auto;
	font-weight: 340;
	font-size: clamp(44px, 7.4vw, 112px);
	line-height: .96;
	letter-spacing: -.028em;
	text-wrap: balance;
}
.ugb-display em { font-style: italic; font-weight: 300; color: var(--signal); }
.ugb-display.is-long { font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -.024em; }
.ugb-display--essay { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.022em; }

.ugb-h2 {
	font-family: var(--serif);
	font-optical-sizing: auto;
	font-weight: 380;
	font-size: clamp(30px, 3.6vw, 52px);
	line-height: 1.04;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.ugb-lede {
	font-family: var(--serif);
	font-size: clamp(19px, 1.6vw, 23px);
	line-height: 1.5;
	font-weight: 360;
	color: var(--ink-2);
	max-width: 36em;
	text-wrap: pretty;
}

.ugb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 600 12px/1.2 var(--sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.ugb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent); }

.ugb-prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.ugb-prose p + p { margin-top: 1em; }

.ugb-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 600 15px/1.2 var(--sans);
	color: var(--ink);
	padding-bottom: 3px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size .35s var(--ease), color .2s;
}
.ugb-link::after { content: "→"; transition: transform .35s var(--ease); }
.ugb-site a.ugb-link:hover { color: var(--signal-text); background-size: 0 1px; background-position: 100% 100%; }
.ugb-link:hover::after, a:hover .ugb-link::after { transform: translateX(4px); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.ugb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: var(--s-3); }

.ugb-site .ugb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font: 600 15px/1 var(--sans);
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .3s var(--ease), background-color .25s, color .25s, box-shadow .3s var(--ease);
	white-space: nowrap;
}
.ugb-site .ugb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(21, 19, 15, .55); color: var(--paper); }
.ugb-site .ugb-btn--ghost { background: transparent; color: var(--ink); }
.ugb-site .ugb-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.ugb-site .ugb-btn--signal { background: var(--signal-btn); border-color: var(--signal-btn); color: #fff; }
.ugb-site .ugb-btn--signal:hover { background: #ad3017; border-color: #ad3017; color: #fff; box-shadow: 0 12px 26px -12px rgba(201, 58, 29, .7); }

/* ==========================================================================
   Header
   ========================================================================== */

.ugb-hd {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 0%, transparent);
	transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.admin-bar .ugb-hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .ugb-hd { top: 0; } }
.ugb-hd.is-scrolled {
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 1px 0 var(--rule);
}
.ugb-hd__in { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }

.ugb-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.ugb-brand__mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; }
.ugb-brand__mark i { display: block; width: 6px; border-radius: 1.5px; background: var(--ink); transition: height .45s var(--ease); }
.ugb-brand__mark i:nth-child(1) { height: 22px; }
.ugb-brand__mark i:nth-child(2) { height: 26px; background: var(--signal); }
.ugb-brand__mark i:nth-child(3) { height: 18px; transform: rotate(12deg); transform-origin: 0 100%; margin-left: 2px; }
.ugb-brand:hover .ugb-brand__mark i:nth-child(1) { height: 26px; }
.ugb-brand:hover .ugb-brand__mark i:nth-child(2) { height: 20px; }
.ugb-brand__name { font: 600 16px/1 var(--sans); letter-spacing: -.01em; }
.ugb-brand__sub { font: italic 400 19px/1 var(--serif); color: var(--muted); margin-left: -4px; }
.ugb-brand__sub::before { content: "/"; font-style: normal; margin-right: 6px; color: var(--rule); }

.ugb-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.ugb-nav ul { display: flex; gap: 26px; list-style: none; }
.ugb-nav ul a { position: relative; font: 500 15px/1 var(--sans); padding: 8px 0; }
.ugb-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.ugb-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.ugb-hd__work { font: 500 13px/1 var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 10px 14px; transition: border-color .2s, color .2s; }
.ugb-site .ugb-hd__work:hover { border-color: var(--ink); color: var(--ink); }

.ugb-site .ugb-hd__toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.ugb-hd__toggle span[aria-hidden],
.ugb-hd__toggle span[aria-hidden]::before { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.ugb-hd__toggle span[aria-hidden] { transform: translate(-50%, -4px); }
.ugb-hd__toggle span[aria-hidden]::before { content: ""; left: 0; transform: translateY(7px); }
.ugb-menu-open .ugb-hd__toggle span[aria-hidden] { transform: translate(-50%, 0) rotate(45deg); }
.ugb-menu-open .ugb-hd__toggle span[aria-hidden]::before { transform: translateY(0) rotate(-90deg); }

@media (max-width: 960px) {
	.ugb-site .ugb-hd__toggle { display: block; z-index: 2; }
	.ugb-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
		padding: calc(var(--hd-h) + 20px) var(--gut) 40px;
		background: var(--paper);
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.ugb-menu-open .ugb-nav { opacity: 1; visibility: visible; }
	.ugb-menu-open { overflow: hidden; }
	.ugb-menu-open .ugb-hd { background: var(--paper); box-shadow: none; }
	.ugb-nav ul { flex-direction: column; gap: 6px; }
	.ugb-nav ul a { font: 340 clamp(36px, 9vw, 56px)/1.12 var(--serif); letter-spacing: -.02em; }
	.ugb-nav ul a::after { display: none; }
	.ugb-brand { position: relative; z-index: 2; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.ugb-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font: 500 13px/1.4 var(--sans); color: var(--muted); margin-bottom: var(--s-3); }
.ugb-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.ugb-crumbs a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.ugb-crumbs a:hover { border-bottom-color: currentColor; }
.ugb-crumbs [aria-current] { color: var(--ink-2); }

/* ==========================================================================
   Covers (drawn as physical books)
   ========================================================================== */

.ugb-cover {
	position: relative;
	display: block;
	aspect-ratio: var(--ar, .6667);
	border-radius: 2px 5px 5px 2px;
	overflow: hidden;
	background: var(--paper-2);
	box-shadow: var(--shadow-book);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ugb-cover img { width: 100%; height: 100%; object-fit: cover; }
.ugb-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .22) 0, rgba(255, 255, 255, .22) 1.1%, rgba(255, 255, 255, 0) 2.6%, rgba(0, 0, 0, .08) 4.2%, rgba(0, 0, 0, 0) 7%),
		linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 38%);
}
.ugb-cover.is-square { border-radius: 3px; }
.ugb-cover.is-square::after { background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 40%); }
.ugb-cover.is-empty { aspect-ratio: .6667; background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--rule-2) 10px 20px); }

/* ==========================================================================
   Home hero
   ========================================================================== */

.ugb-hero { padding: var(--s-5) 0 var(--s-5); }
.ugb-hero--home { padding-top: clamp(28px, 5vw, 72px); overflow: clip; }
.ugb-hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: var(--s-5); }
.ugb-hero__copy .ugb-display { margin: 18px 0 26px; }
.ugb-hero__copy .ugb-lede { max-width: 31em; }

.ugb-stats { display: flex; gap: clamp(22px, 4vw, 54px); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.ugb-stats dt { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); order: 2; }
.ugb-stats div { display: flex; flex-direction: column; gap: 8px; }
.ugb-stats dd { font: 340 clamp(30px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -.02em; }

.ugb-hero__fan { position: relative; height: clamp(360px, 46vw, 600px); }
.ugb-hero__fan::before {
	content: "";
	position: absolute;
	inset: 6% 2% 2% 8%;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 22%, var(--paper)), transparent);
	filter: blur(6px);
	opacity: .9;
}
.ugb-fan__b { position: absolute; display: block; width: 46%; transition: transform .7s var(--ease); }
.ugb-fan__b .ugb-cover { box-shadow: var(--shadow-lift); }
.ugb-fan__b--1 { left: 27%; top: 6%; z-index: 3; width: 50%; transform: rotate(-1.5deg); }
.ugb-fan__b--2 { left: 2%; top: 18%; z-index: 2; transform: rotate(-9deg); }
.ugb-fan__b--3 { right: 0; top: 22%; z-index: 1; transform: rotate(8deg); }
.ugb-hero__fan:hover .ugb-fan__b--1 { transform: rotate(0) translateY(-10px); }
.ugb-hero__fan:hover .ugb-fan__b--2 { transform: rotate(-12deg) translateX(-12px); }
.ugb-hero__fan:hover .ugb-fan__b--3 { transform: rotate(11deg) translateX(12px); }

@media (max-width: 900px) {
	.ugb-hero__in { grid-template-columns: 1fr; }
	.ugb-hero__fan { order: -1; height: clamp(300px, 78vw, 460px); margin-inline: auto; width: min(100%, 520px); }
}

/* ==========================================================================
   Bands and series
   ========================================================================== */

.ugb-band { padding: var(--s-6) 0; border-top: 1px solid var(--rule); }
.ugb-band--kids { background: var(--paper-2); border-top: 0; position: relative; }
.ugb-band--kids::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 14px;
	background: radial-gradient(circle at 7px -2px, var(--paper) 8px, transparent 8.5px) 0 0 / 22px 14px repeat-x;
}
.ugb-band__head { max-width: 760px; margin-bottom: var(--s-5); }
.ugb-band__head .ugb-h2 { margin: 14px 0 18px; }
.ugb-band__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; margin-bottom: var(--s-4); }
.ugb-band__head--row .ugb-h2 { margin: 14px 0 0; }

.ugb-series {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: var(--s-4) var(--s-5);
	padding: var(--s-5) 0;
	border-top: 1px solid var(--rule);
}
.ugb-series:first-of-type { border-top: 0; padding-top: 0; }
.ugb-series__head { position: sticky; top: calc(var(--hd-h) + 24px); align-self: start; }
.ugb-series__name { font: 380 clamp(28px, 2.6vw, 38px)/1.06 var(--serif); letter-spacing: -.02em; margin: 14px 0 14px; }
.ugb-series__name a { background: linear-gradient(var(--tone), var(--tone)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.ugb-series__name a:hover { background-size: 100% 2px; }
.ugb-series__desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }

.ugb-shelf {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 36px clamp(16px, 2vw, 28px);
	align-items: start;
}
.ugb-shelf .ugb-cover { aspect-ratio: var(--shelf-ar, var(--ar, .6667)); }
.ugb-shelf li { min-width: 0; }
.ugb-shelf__book { display: flex; flex-direction: column; gap: 12px; }
.ugb-shelf__cov { display: block; position: relative; padding-bottom: 14px; }
.ugb-shelf__cov::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: 0; height: 2px; background: color-mix(in srgb, var(--tone) 55%, var(--rule)); border-radius: 2px; opacity: .55; }
.ugb-shelf__book:hover .ugb-cover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lift); }
.ugb-shelf__n { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-height: 1.3em; }
.ugb-shelf__t { font: 420 18px/1.25 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.ugb-shelf__book:hover .ugb-shelf__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 1100px) and (min-width: 761px) {
	.ugb-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.ugb-series { grid-template-columns: 1fr; }
	.ugb-series__head { position: static; }
	.ugb-shelf {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px;
		margin-inline: calc(-1 * var(--gut)); padding: 10px var(--gut) 8px; scrollbar-width: none;
	}
	.ugb-shelf::-webkit-scrollbar { display: none; }
	.ugb-shelf li { flex: 0 0 42vw; max-width: 200px; scroll-snap-align: start; }
}

/* ==========================================================================
   Essay cards and grid
   ========================================================================== */

.ugb-egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
.ugb-egrid--all { padding: 0 0 var(--s-6); }
.ugb-ecard a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding-top: 22px; border-top: 1px solid var(--ink); }
.ugb-ecard__meta { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ugb-ecard__t { font: 400 clamp(23px, 2vw, 28px)/1.14 var(--serif); letter-spacing: -.015em; text-wrap: balance; transition: color .2s; }
.ugb-ecard__d { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.ugb-ecard a:hover .ugb-ecard__t { color: var(--signal-text); }
.ugb-ecard.is-big { grid-column: 1 / -1; }
.ugb-ecard.is-big a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px var(--s-4); align-items: center; border-top: 0; padding-top: 0; }
.ugb-ecard.is-big .ugb-ecard__img { grid-row: 1 / 4; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.ugb-ecard.is-big .ugb-ecard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ugb-ecard.is-big a:hover .ugb-ecard__img img { transform: scale(1.035); }
.ugb-ecard.is-big .ugb-ecard__t { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; }
.ugb-ecard.is-big .ugb-ecard__d { font: 360 19px/1.55 var(--serif); color: var(--ink-2); }
.ugb-ecard.is-big .ugb-ecard__meta { align-self: end; }
.ugb-ecard.is-big .ugb-ecard__d { align-self: start; }

@media (max-width: 960px) { .ugb-egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.ugb-egrid { grid-template-columns: 1fr; }
	.ugb-ecard.is-big a { grid-template-columns: 1fr; }
	.ugb-ecard.is-big .ugb-ecard__img { grid-row: auto; }
}

/* ==========================================================================
   Author strip
   ========================================================================== */

.ugb-author { padding: var(--s-6) 0; border-top: 1px solid var(--rule); }
.ugb-author__in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.ugb-author__in:not(:has(figure)) { grid-template-columns: 1fr; max-width: 820px; }
.ugb-author__img { position: relative; }
.ugb-author__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 6px 6px; filter: saturate(.92) contrast(1.02); }
.ugb-author__img::after { content: ""; position: absolute; width: 74px; height: 74px; right: -14px; bottom: 34px; border-radius: 50%; background: var(--signal); mix-blend-mode: multiply; }
.ugb-author__copy .ugb-h2 { margin: 14px 0 22px; }
.ugb-author__copy > p:not(.ugb-kicker):not(.ugb-actions) { font: 360 clamp(18px, 1.5vw, 21px)/1.6 var(--serif); color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) { .ugb-author__in { grid-template-columns: 1fr; } .ugb-author__img { max-width: 280px; } }

/* ==========================================================================
   Book page
   ========================================================================== */

.ugb-bhero { padding: clamp(20px, 3.4vw, 48px) 0 0; position: relative; overflow: clip; }
.ugb-bhero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 78%; background: linear-gradient(180deg, var(--tone-wash), color-mix(in srgb, var(--tone-wash) 0%, var(--paper))); z-index: -1; }
.ugb-bhero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-5); align-items: center; padding-bottom: var(--s-5); }
.ugb-bhero__copy .ugb-display { margin: 16px 0 20px; }
.ugb-bhero__hook { font: italic 360 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); color: var(--tone-ink); margin-bottom: 16px; max-width: 26em; text-wrap: balance; }
.ugb-bhero__copy .ugb-lede { font-size: clamp(17px, 1.35vw, 20px); margin-bottom: var(--s-4); }

.ugb-bhero__stage { position: relative; display: grid; place-items: center; min-height: clamp(340px, 42vw, 580px); }
.ugb-bhero__disc { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 30%, var(--paper)), color-mix(in srgb, var(--tone) 6%, var(--paper)) 70%, transparent); }
.ugb-bhero__disc::after { content: ""; position: absolute; inset: -7%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--tone) 45%, transparent); animation: ugb-spin 80s linear infinite; }
@keyframes ugb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ugb-bhero__disc::after { animation: none; } }
.ugb-bhero__img { position: relative; width: min(100%, 480px); height: auto; filter: drop-shadow(0 30px 40px rgba(21, 19, 15, .28)); }
.ugb-bhero__stage > .ugb-cover { position: relative; width: min(70%, 360px); box-shadow: var(--shadow-lift); }
@media (max-width: 900px) {
	.ugb-bhero__in { grid-template-columns: 1fr; gap: var(--s-3); }
	.ugb-bhero__stage { order: -1; min-height: 0; padding: 8px 0 0; }
	.ugb-bhero__img { width: min(78%, 360px); }
	.ugb-bhero__disc { width: min(92%, 420px); }
	.ugb-bhero__copy .ugb-crumbs { display: none; }
}
@media (max-width: 640px) {
	.ugb-crumbs li:last-child { display: none; }
	.ugb-display { font-size: clamp(40px, 11.5vw, 64px); }
	.ugb-display.is-long { font-size: clamp(36px, 10vw, 56px); }
	.ugb-buy .ugb-btn { width: 100%; white-space: normal; text-align: center; }
}

.ugb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.ugb-facts div { padding: 20px 18px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.ugb-facts div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.ugb-facts dt { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ugb-facts dd { font: 420 17px/1.35 var(--serif); }
.ugb-facts dd a { border-bottom: 1px solid var(--tone); }
@media (max-width: 640px) {
	.ugb-facts { grid-template-columns: 1fr 1fr; }
	.ugb-facts div, .ugb-facts div + div { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid var(--rule-2); }
	.ugb-facts div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule-2); }
}

/* Buy block */
.ugb-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ugb-buy__also, .ugb-buy__local { font-size: 14.5px; color: var(--muted); }
.ugb-buy__also a, .ugb-buy__local a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.ugb-buy__also a:hover, .ugb-buy__local a:hover { border-bottom-color: var(--ink); }
.ugb-buy__local { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2); }
.ugb-buy__stores summary { list-style: none; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.ugb-buy__stores summary::-webkit-details-marker { display: none; }
.ugb-buy__stores summary::after { content: "+"; font-size: 17px; transition: transform .3s var(--ease); }
.ugb-buy__stores[open] summary::after { transform: rotate(45deg); }
.ugb-buy__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 520px; }
.ugb-buy__chips a { font: 500 13px/1 var(--sans); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--card) 70%, transparent); transition: border-color .2s, background-color .2s; }
.ugb-buy__chips a:hover { border-color: var(--ink); background: var(--card); }
.ugb-buy__note { font-size: 12.5px; color: var(--muted); opacity: .9; }

/* Story sections */
.ugb-story { padding: var(--s-6) 0; }
.ugb-story + .ugb-story { padding-top: 0; }
.ugb-story__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.ugb-story.is-flip .ugb-story__copy { order: 2; }
.ugb-story.no-img .ugb-story__in { grid-template-columns: minmax(0, 760px); }
.ugb-story__copy .ugb-h2 { margin: 14px 0 22px; }
.ugb-story__art { position: relative; }
.ugb-story__art img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -36px rgba(21, 19, 15, .45); }
.ugb-story__art::before { content: ""; position: absolute; inset: 7% -5% -5% 7%; border-radius: 8px; background: var(--tone-wash); z-index: -1; }
.ugb-story.is-flip .ugb-story__art::before { inset: 7% 7% -5% -5%; }
@media (max-width: 860px) {
	.ugb-story__in { grid-template-columns: 1fr; }
	.ugb-story.is-flip .ugb-story__copy { order: 0; }
}

/* Sample pages */
.ugb-inside { padding: var(--s-6) 0; background: var(--ink); color: var(--paper); }
.ugb-inside .ugb-kicker { color: #a39b8c; }
.ugb-inside .ugb-lede { color: #d8d0c2; }
.ugb-inside__head { max-width: 700px; margin-bottom: var(--s-5); }
.ugb-inside__head .ugb-h2 { margin: 14px 0 18px; }
.ugb-inside__pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); align-items: start; }
.ugb-inside__page { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); transition: transform .5s var(--ease); background: #2a2620; }
.ugb-inside__page:nth-child(even) { margin-top: 36px; }
.ugb-inside__page:hover { transform: translateY(-8px) rotate(.6deg); }
.ugb-inside__page img { width: 100%; }
@media (max-width: 860px) {
	.ugb-inside__pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 12px; scrollbar-width: none; }
	.ugb-inside__pages::-webkit-scrollbar { display: none; }
	.ugb-inside__page { flex: 0 0 68vw; scroll-snap-align: center; }
	.ugb-inside__page:nth-child(even) { margin-top: 0; }
}

/* Takeaways */
.ugb-gains { padding: var(--s-6) 0; }
.ugb-gains__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-5); align-items: start; }
.ugb-gains__head { position: sticky; top: calc(var(--hd-h) + 24px); }
.ugb-gains__head .ugb-h2 { margin: 14px 0 20px; }
.ugb-gains__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); counter-reset: g; }
.ugb-gains__list li { padding: 26px 0 30px; border-top: 1px solid var(--ink); }
.ugb-gains__n { display: block; font: italic 300 54px/1 var(--serif); color: var(--tone-ink); margin-bottom: 18px; letter-spacing: -.03em; }
.ugb-gains__list h3 { font: 500 21px/1.22 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.ugb-gains__list p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) { .ugb-gains__in { grid-template-columns: 1fr; } .ugb-gains__head { position: static; } }
@media (max-width: 560px) { .ugb-gains__list { grid-template-columns: 1fr; } }

/* Author note */
.ugb-note { padding: var(--s-5) 0; }
.ugb-note__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-5); border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2); position: relative; }
.ugb-note__in:not(:has(figure)) { grid-template-columns: 1fr; }
.ugb-note__in::before { content: "“"; position: absolute; right: clamp(20px, 4vw, 54px); top: -18px; font: italic 300 180px/1 var(--serif); color: var(--tone); opacity: .32; pointer-events: none; }
.ugb-note__img img { width: clamp(96px, 11vw, 150px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ugb-note__copy .ugb-h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 14px 0 18px; }
.ugb-note__copy .ugb-prose { font-family: var(--serif); font-size: 19px; font-weight: 360; max-width: 38em; }
.ugb-note__sig { margin-top: 22px; font: italic 400 24px/1 var(--serif); color: var(--tone-ink); }
@media (max-width: 640px) { .ugb-note__in { grid-template-columns: 1fr; } }

/* Get the book */
.ugb-get { padding: var(--s-6) 0; background: var(--tone-wash); position: relative; overflow: clip; }
.ugb-get::before { content: ""; position: absolute; width: 60vw; aspect-ratio: 1; left: -18vw; top: 50%; transform: translateY(-50%); border-radius: 50%; background: color-mix(in srgb, var(--tone) 16%, transparent); }
.ugb-get__in { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.ugb-get__cov .ugb-cover { transform: rotate(-3deg); box-shadow: var(--shadow-lift); }
.ugb-get__copy .ugb-h2 { margin: 14px 0 14px; }
.ugb-get__hook { font: italic 360 21px/1.4 var(--serif); color: var(--ink-2); margin-bottom: var(--s-3); max-width: 30em; }
@media (max-width: 760px) { .ugb-get__in { grid-template-columns: 1fr; } .ugb-get__cov { width: min(60%, 240px); } }

.ugb-more { padding: var(--s-6) 0; }

/* Sticky buy bar */
.ugb-bar {
	position: fixed; left: 50%; bottom: 16px; z-index: 40;
	display: flex; align-items: center; gap: 18px;
	width: min(560px, calc(100% - 24px));
	padding: 10px 10px 10px 22px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ink) 94%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: var(--paper);
	box-shadow: 0 18px 40px -18px rgba(21, 19, 15, .7);
	transform: translate(-50%, 140%);
	transition: transform .5s var(--ease);
}
.ugb-bar.is-on { transform: translate(-50%, 0); }
@media (min-width: 1100px) {
	.ugb-bar { left: auto; right: 24px; width: 420px; transform: translateY(140%); }
	.ugb-bar.is-on { transform: none; }
}
.ugb-bar__t { flex: 1; min-width: 0; font: 420 16px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugb-bar__t small { display: block; font: 500 12px/1.4 var(--sans); color: #a39b8c; }
.ugb-site .ugb-bar .ugb-btn { min-height: 44px; padding: 0 22px; }

/* ==========================================================================
   Series page
   ========================================================================== */

.ugb-hero--series { position: relative; padding-bottom: var(--s-5); }
.ugb-hero--series::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--tone-wash), var(--paper)); z-index: -1; }
.ugb-hero--series .ugb-display { margin: 18px 0 24px; max-width: 14ch; }
.ugb-sp__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.has-art .ugb-sp__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.ugb-sp__art { position: relative; }
.ugb-sp__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; mix-blend-mode: multiply; }
.ugb-sp__art::after { content: ""; position: absolute; inset: auto 8% -14px 8%; height: 1px; background: var(--tone); opacity: .5; }
@media (max-width: 900px) { .has-art .ugb-sp__in { grid-template-columns: 1fr; } .ugb-sp__art { order: -1; } }
.ugb-series__art { display: block; margin-top: 26px; max-width: 280px; }
.ugb-series__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 50%; border-radius: 4px; mix-blend-mode: multiply; opacity: .95; transition: transform .6s var(--ease); }
.ugb-series__art:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .ugb-series__art { display: none; } }
.ugb-nf__art { width: min(900px, 100% - 2 * var(--gut)); margin: var(--s-4) auto 0; }
.ugb-nf__art img { width: 100%; mix-blend-mode: multiply; }
.ugb-order { list-style: none; padding-bottom: var(--s-6); }
.ugb-order__item a { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-4) 0; border-top: 1px solid var(--rule); }
.ugb-order__item:first-child a { border-top-color: var(--ink); }
.ugb-order__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ugb-order__n { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tone-ink); }
.ugb-order__t { font: 360 clamp(32px, 4vw, 58px)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.ugb-order__h { font: italic 360 clamp(18px, 1.6vw, 22px)/1.45 var(--serif); color: var(--ink-2); max-width: 32em; }
.ugb-order__item a:hover .ugb-cover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-lift); }
@media (max-width: 640px) { .ugb-order__item a { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; } }

/* ==========================================================================
   Essays
   ========================================================================== */

.ugb-hero--essays .ugb-display, .ugb-hero--page .ugb-display { margin: 16px 0 22px; }
.ugb-hero--page { padding-bottom: var(--s-4); }

.ugb-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .ugb-progress { top: 32px; }
.ugb-progress span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }

.ugb-essay__head { padding: clamp(24px, 4vw, 60px) 0 var(--s-4); }
.ugb-essay__head .ugb-display { margin-bottom: 22px; }
.ugb-essay__dek { font: italic 360 clamp(20px, 1.9vw, 25px)/1.45 var(--serif); color: var(--ink-2); margin-bottom: 26px; text-wrap: pretty; }
.ugb-essay__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 13.5px/1.4 var(--sans); color: var(--muted); padding-top: 18px; border-top: 1px solid var(--rule); }
.ugb-essay__meta a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.ugb-essay__hero { margin-bottom: var(--s-5); }
.ugb-essay__hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 6px; }

.ugb-article { font-family: var(--serif); font-optical-sizing: auto; font-weight: 360; font-size: clamp(19px, 1.35vw, 21px); line-height: 1.72; color: var(--ink-2); padding-bottom: var(--s-5); }
.ugb-article > * + * { margin-top: 1.1em; }
.ugb-article > p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .82; font-weight: 400; margin: .06em .1em 0 -.02em; color: var(--ink); }
.ugb-article h2 { font: 420 clamp(28px, 2.6vw, 36px)/1.14 var(--serif); letter-spacing: -.018em; color: var(--ink); margin-top: 1.9em; text-wrap: balance; }
.ugb-article h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.005em; color: var(--ink); margin-top: 1.7em; }
.ugb-article h2 + *, .ugb-article h3 + * { margin-top: .6em; }
.ugb-article a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--signal) 60%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ugb-article a:hover { text-decoration-color: var(--ink); }
.ugb-article strong { font-weight: 560; color: var(--ink); }
.ugb-article ul, .ugb-article ol { padding-left: 1.3em; }
.ugb-article li + li { margin-top: .45em; }
.ugb-article li::marker { color: var(--signal-text); font-family: var(--sans); font-weight: 600; }
.ugb-article blockquote { margin: 1.6em 0; padding: 0 0 0 1.1em; border-left: 2px solid var(--signal); font-style: italic; font-size: 1.12em; color: var(--ink); }
.ugb-article blockquote p { margin: 0; }
.ugb-article figure, .ugb-article .wp-block-image { margin: 2em 0; }
.ugb-article figure img, .ugb-article .wp-block-image img { border-radius: 4px; }
.ugb-article figcaption { font: 500 13.5px/1.5 var(--sans); color: var(--muted); margin-top: 10px; text-align: left; }
.ugb-article .alignwide { width: min(1040px, 100vw - 2 * var(--gut)); margin-left: 50%; transform: translateX(-50%); }
.ugb-article hr { border: 0; text-align: center; margin: 2.4em 0; }
.ugb-article hr::before { content: "· · ·"; letter-spacing: .6em; color: var(--muted); }
.ugb-article table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); }
.ugb-article th, .ugb-article td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ugb-article th { font-weight: 600; border-bottom-color: var(--ink); }
.ugb-article .ugb-callout, .ugb-article .is-style-ugb-note { padding: 20px 24px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-2); font: 15.5px/1.6 var(--sans); color: var(--ink-2); }
.ugb-article .ugb-sources { list-style: none; padding: 0; font: 14px/1.6 var(--sans); color: var(--muted); }
.ugb-article .ugb-sources li { padding-left: 1.2em; text-indent: -1.2em; }
.ugb-article .ugb-sources li + li { margin-top: .6em; }
.ugb-article .ugb-sources em { font-style: italic; }
.ugb-article h2:has(+ .ugb-sources) { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2.4em; border-top: 1px solid var(--rule); margin-top: 2.6em; }
.ugb-article .ugb-callout strong:first-child { display: block; font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.ugb-from { margin: 0 0 var(--s-5); }
.ugb-from a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px; border-radius: 10px; background: var(--tone-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent); transition: transform .4s var(--ease); }
.ugb-from a:hover { transform: translateY(-3px); }
.ugb-from__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ugb-from__t { font: 420 26px/1.12 var(--serif); letter-spacing: -.015em; }
.ugb-from__h { font: italic 360 17px/1.45 var(--serif); color: var(--ink-2); }

/* Search and results */
.ugb-find { display: flex; gap: 10px; margin-top: var(--s-3); max-width: 560px; }
.ugb-site .ugb-find input[type="search"] { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font: 16px/1 var(--sans); }
.ugb-site .ugb-find input[type="search"]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.ugb-results { list-style: none; padding-bottom: var(--s-6); }
.ugb-results a { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--rule); }
.ugb-results__t { font: 400 26px/1.15 var(--serif); }
.ugb-results__d { font-size: 15.5px; color: var(--muted); }
.ugb-results a:hover .ugb-results__t { color: var(--signal-text); }
.ugb-results__none { padding: 24px 0; border-top: 1px solid var(--rule); color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.ugb-ft { background: var(--ink); color: var(--paper); padding: var(--s-6) 0 28px; margin-top: 0; position: relative; overflow: clip; }
.ugb-ft::before { content: ""; position: absolute; right: -10vw; top: -16vw; width: 42vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 72, 43, .2), transparent); pointer-events: none; }
.ugb-ft__sign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s-4); align-items: end; padding-bottom: var(--s-5); border-bottom: 1px solid rgba(244, 239, 230, .14); }
.ugb-ft__line { font: 300 clamp(48px, 8.4vw, 132px)/.92 var(--serif); letter-spacing: -.035em; }
.ugb-ft__line em { font-style: italic; color: var(--signal); }
.ugb-ft__note { font-size: 15.5px; line-height: 1.6; color: #b9b0a1; }
.ugb-ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); padding: var(--s-5) 0; }
.ugb-ft h2 { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a39b8c; margin-bottom: 18px; }
.ugb-ft ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ugb-ft ul a { font: 400 15.5px/1.35 var(--sans); color: #e9e2d6; transition: color .2s; }
.ugb-site .ugb-ft ul a:hover { color: #fff; }
.ugb-ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 24px; border-top: 1px solid rgba(244, 239, 230, .14); font-size: 13px; color: #a39b8c; }
.ugb-ft__base p { display: flex; flex-wrap: wrap; gap: 20px; }
.ugb-ft__base a:hover { color: #fff; }
@media (max-width: 860px) {
	.ugb-ft__sign { grid-template-columns: 1fr; }
	.ugb-ft__cols { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Motion
   ========================================================================== */

.ugb-anim .ugb-rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.ugb-anim .ugb-rv.is-in { opacity: 1; transform: none; }
.ugb-anim .ugb-hero--home .ugb-rv { transition-delay: calc(var(--i, 0) * 70ms + 80ms); }

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

/* ==========================================================================
   Pages built with Elementor keep the site frame
   ========================================================================== */

.ugb-site .site-main, .ugb-site main.site-main { max-width: none; padding: 0; }
.ugb-site:not(.ugb) .page-content { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

@media print {
	.ugb-hd, .ugb-ft, .ugb-bar, .ugb-progress, .ugb-buy__stores { display: none !important; }
	body.ugb-site { background: #fff; }
}
