/**
 * ShowSphere Exhibition — base design system.
 *
 * Tokens, typography, layout primitives, buttons, links, media and motion.
 * Component styles live in components/<name>/<name>.css.
 */

/* Fonts --------------------------------------------------------------------- */

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif/InstrumentSerif-Regular-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif/InstrumentSerif-Regular-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif/InstrumentSerif-Italic-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif/InstrumentSerif-Italic-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* Tokens -------------------------------------------------------------------- */

:root {
	/* Palette: near black, warm champagne, muted bronze, warm ivory, deep teal. */
	--ss-ink: #111110;
	--ss-charcoal: #1a1917;
	--ss-graphite: #24221f;
	--ss-smoke: #3a3732;
	--ss-champagne: #d8c7a8;
	--ss-champagne-soft: #e9ddc8;
	--ss-bronze: #a47148;
	--ss-bronze-deep: #7f5534;
	--ss-ivory: #f4efe6;
	--ss-ivory-deep: #ebe4d8;
	--ss-paper: #faf7f1;
	--ss-teal: #1e4745;
	--ss-error: #9a3b2e;
	--ss-success: #2f6b4f;

	--ss-text: #161513;
	--ss-text-muted: #5d5850;
	--ss-text-light: #f4efe6;
	--ss-text-light-muted: rgba(244, 239, 230, .72);
	--ss-line: rgba(22, 21, 19, .14);
	--ss-line-strong: rgba(22, 21, 19, .26);
	--ss-line-light: rgba(244, 239, 230, .16);
	--ss-line-light-strong: rgba(244, 239, 230, .32);

	/* Context colors (overridden by .ss-dark). */
	--ss-accent: var(--ss-bronze-deep);
	--ss-accent-strong: var(--ss-bronze);
	--ss-muted: var(--ss-text-muted);
	--ss-rule: var(--ss-line);

	/* Type */
	--ss-font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
	--ss-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--ss-fs-hero: clamp(3rem, 1.55rem + 5.8vw, 8.5rem);
	--ss-fs-1: clamp(2.75rem, 1.7rem + 4.3vw, 6.5rem);
	--ss-fs-2: clamp(2.25rem, 1.5rem + 3vw, 4.75rem);
	--ss-fs-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.875rem);
	--ss-fs-4: clamp(1.375rem, 1.2rem + .75vw, 1.875rem);
	--ss-fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
	--ss-fs-small: .875rem;
	--ss-fs-eyebrow: .72rem;

	/* Space */
	--ss-gutter: clamp(1.25rem, 4.2vw, 4.5rem);
	--ss-max: 1440px;
	--ss-narrow: 50rem;
	--ss-section: clamp(5rem, 3.2rem + 7vw, 10.5rem);
	--ss-header-h: 88px;

	/* Motion */
	--ss-ease: cubic-bezier(.2, .7, .2, 1);
	--ss-ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 1023px) {
	:root {
		--ss-header-h: 72px;
	}
}

/* Reset --------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ss-header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--ss-ivory);
	color: var(--ss-text);
	font-family: var(--ss-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (min-width: 1440px) {
	body {
		font-size: 1.0625rem;
	}
}

.ss-site {
	position: relative;
	min-height: 100vh;
	overflow-x: clip;
}

.ss-main {
	display: block;
	outline: none;
}

body.ss-no-hero .ss-main {
	padding-top: var(--ss-header-h);
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--ss-font-display);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.012em;
	color: inherit;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

button {
	font: inherit;
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

::selection {
	background: var(--ss-champagne);
	color: var(--ss-ink);
}

:focus-visible {
	outline: 2px solid var(--ss-accent-strong);
	outline-offset: 3px;
}

/* Accessibility --------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ss-skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 10000;
	width: auto;
	height: auto;
	margin: 0;
	padding: .9rem 1.4rem;
	clip: auto;
	background: var(--ss-champagne);
	color: var(--ss-ink);
	font-weight: 600;
	text-decoration: none;
}

/* Layout ---------------------------------------------------------------------- */

.ss-container {
	width: 100%;
	max-width: calc(var(--ss-max) + var(--ss-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ss-gutter);
}

.ss-container--narrow {
	max-width: calc(var(--ss-narrow) + var(--ss-gutter) * 2);
}

.ss-section {
	position: relative;
	padding-block: var(--ss-section);
}

.ss-section--tight {
	padding-block: calc(var(--ss-section) * .65);
}

.ss-dark {
	background-color: var(--ss-ink);
	color: var(--ss-text-light);
	--ss-accent: var(--ss-champagne);
	--ss-accent-strong: var(--ss-champagne);
	--ss-muted: var(--ss-text-light-muted);
	--ss-rule: var(--ss-line-light);
}

.ss-charcoal {
	background-color: var(--ss-charcoal);
}

.ss-light {
	background-color: var(--ss-ivory);
	color: var(--ss-text);
}

.ss-paper {
	background-color: var(--ss-paper);
	color: var(--ss-text);
}

.ss-stone {
	background-color: var(--ss-ivory-deep);
	color: var(--ss-text);
}

/* Architectural guide lines drawn behind a section. */
.ss-guides {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ss-guides::before {
	content: "";
	position: absolute;
	inset: 0 var(--ss-gutter);
	max-width: var(--ss-max);
	margin-inline: auto;
	background-image: linear-gradient(to right, var(--ss-rule) 1px, transparent 1px);
	background-size: 25% 100%;
	border-right: 1px solid var(--ss-rule);
	opacity: .55;
}

/* Typography helpers ---------------------------------------------------------- */

.ss-accent {
	font-style: italic;
	color: var(--ss-accent);
}

.ss-br {
	display: none;
}

@media (min-width: 900px) {
	.ss-br {
		display: inline;
	}
}

.ss-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .95rem;
	margin: 0 0 1.5rem;
	font-family: var(--ss-font-body);
	font-size: var(--ss-fs-eyebrow);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ss-accent);
}

.ss-eyebrow::before {
	content: "";
	flex: none;
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: .8;
}

.ss-lead {
	font-size: var(--ss-fs-lead);
	line-height: 1.65;
}

.ss-muted {
	color: var(--ss-muted);
}

.ss-index {
	font-family: var(--ss-font-display);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--ss-accent);
}

.ss-heading {
	max-width: 48rem;
	margin-bottom: clamp(2.75rem, 2rem + 3vw, 5rem);
}

.ss-heading__title {
	font-size: var(--ss-fs-2);
}

.ss-heading__text {
	max-width: 40rem;
	margin-top: 1.6rem;
	font-size: var(--ss-fs-lead);
	line-height: 1.65;
	color: var(--ss-muted);
}

.ss-heading--center {
	margin-inline: auto;
	text-align: center;
}

.ss-heading--center .ss-eyebrow::after {
	content: "";
	flex: none;
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: .8;
}

.ss-heading--center .ss-heading__text {
	margin-inline: auto;
}

/* Split header: heading left, supporting text right. */
.ss-split-head {
	display: grid;
	gap: 1.75rem 4rem;
	align-items: end;
	margin-bottom: clamp(3rem, 2rem + 3.5vw, 5.5rem);
}

.ss-split-head .ss-heading {
	margin-bottom: 0;
}

.ss-split-head__aside {
	max-width: 30rem;
	color: var(--ss-muted);
}

.ss-split-head__aside p {
	font-size: var(--ss-fs-lead);
	line-height: 1.65;
}

.ss-split-head__aside .ss-actions {
	margin-top: 1.75rem;
}

@media (min-width: 960px) {
	.ss-split-head {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	}

	.ss-split-head__aside {
		justify-self: end;
	}
}

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

.ss-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1rem;
}

.ss-btn {
	--btn-bg: transparent;
	--btn-fg: currentColor;
	--btn-border: currentColor;
	--btn-hover-bg: var(--ss-ivory);
	--btn-hover-fg: var(--ss-ink);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 3.5rem;
	max-width: 100%;
	padding: .95rem 1.35rem .95rem 1.6rem;
	overflow: hidden;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--ss-font-body);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .16em;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .45s var(--ss-ease), border-color .45s var(--ss-ease);
}

.ss-btn::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	background: var(--btn-hover-bg);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .55s var(--ss-ease);
}

.ss-btn:hover,
.ss-btn:focus-visible {
	color: var(--btn-hover-fg);
	border-color: var(--btn-hover-bg);
}

.ss-btn:hover::before,
.ss-btn:focus-visible::before {
	transform: scaleX(1);
	transform-origin: left center;
}

.ss-btn__icon {
	display: inline-flex;
	flex: none;
	transition: transform .45s var(--ss-ease);
}

.ss-btn__icon .ss-icon {
	width: 18px;
	height: 18px;
}

.ss-btn:hover .ss-btn__icon,
.ss-btn:focus-visible .ss-btn__icon {
	transform: translateX(4px);
}

.ss-btn--primary {
	--btn-bg: var(--ss-champagne);
	--btn-fg: var(--ss-ink);
	--btn-border: var(--ss-champagne);
	--btn-hover-bg: var(--ss-ivory);
	--btn-hover-fg: var(--ss-ink);
}

.ss-btn--ghost {
	--btn-fg: var(--ss-text-light);
	--btn-border: var(--ss-line-light-strong);
	--btn-hover-bg: var(--ss-ivory);
	--btn-hover-fg: var(--ss-ink);
}

.ss-btn--dark {
	--btn-bg: var(--ss-ink);
	--btn-fg: var(--ss-text-light);
	--btn-border: var(--ss-ink);
	--btn-hover-bg: var(--ss-bronze-deep);
	--btn-hover-fg: #fff;
}

.ss-btn--outline {
	--btn-fg: var(--ss-ink);
	--btn-border: var(--ss-line-strong);
	--btn-hover-bg: var(--ss-ink);
	--btn-hover-fg: var(--ss-text-light);
}

.ss-btn--block {
	width: 100%;
	justify-content: space-between;
}

@media (max-width: 480px) {
	.ss-actions .ss-btn {
		width: 100%;
		justify-content: space-between;
	}
}

/* Text link with an animated rule. */
.ss-link {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding-bottom: .4rem;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	font-family: var(--ss-font-body);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-size .5s var(--ss-ease), color .3s ease;
}

.ss-link:hover,
.ss-link:focus-visible {
	background-size: 0 1px;
	background-position: 100% 100%;
}

.ss-link .ss-icon {
	width: 16px;
	height: 16px;
	transition: transform .4s var(--ss-ease);
}

.ss-link:hover .ss-icon,
.ss-link:focus-visible .ss-icon {
	transform: translateX(4px);
}

/* Media ----------------------------------------------------------------------- */

.ss-media {
	position: relative;
	overflow: hidden;
	background-color: var(--ss-graphite);
}

.ss-media > img,
.ss-media picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ss-placeholder {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 14rem;
	background:
		linear-gradient(135deg, rgba(216, 199, 168, .10), rgba(216, 199, 168, 0) 45%),
		repeating-linear-gradient(90deg, rgba(244, 239, 230, .05) 0 1px, transparent 1px 25%),
		linear-gradient(160deg, #2b2824, #141312);
}

.ss-placeholder::after {
	content: "";
	position: absolute;
	inset: 18%;
	border: 1px solid rgba(216, 199, 168, .22);
}

/* Social icons -------------------------------------------------------------- */

.ss-social {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	list-style: none;
}

.ss-social__link {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--ss-rule);
	border-radius: 50%;
	color: inherit;
	transition: background-color .35s var(--ss-ease), color .35s var(--ss-ease), border-color .35s var(--ss-ease), transform .35s var(--ss-ease);
}

.ss-social__link:hover,
.ss-social__link:focus-visible {
	background: var(--ss-champagne);
	border-color: var(--ss-champagne);
	color: var(--ss-ink);
	transform: translateY(-2px);
}

.ss-social__link .ss-icon {
	width: 18px;
	height: 18px;
}

/* Breadcrumbs --------------------------------------------------------------- */

.ss-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .75rem;
	list-style: none;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ss-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	color: var(--ss-muted);
}

.ss-breadcrumbs li + li::before {
	content: "";
	width: .9rem;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.ss-breadcrumbs a {
	text-decoration: none;
	transition: color .3s ease;
}

.ss-breadcrumbs a:hover,
.ss-breadcrumbs a:focus-visible {
	color: var(--ss-accent);
}

.ss-breadcrumbs [aria-current] {
	color: inherit;
	opacity: .9;
}

/* Motion ---------------------------------------------------------------------- */

.ss-js:not(.ss-no-reveal) body.ss-motion [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
	transition: opacity 1s var(--ss-ease), transform 1.2s var(--ss-ease), clip-path 1.4s var(--ss-ease);
	transition-delay: var(--ss-delay, 0ms);
}

.ss-js:not(.ss-no-reveal) body.ss-motion [data-reveal="fade"] {
	transform: none;
}

/* Clipping the figure (not its image) keeps native lazy-loading working; the
   observer for these elements is set up in assets/js/theme.js. */
.ss-js:not(.ss-no-reveal) body.ss-motion [data-reveal="mask"] {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 100% 0);
}

.ss-js:not(.ss-no-reveal) body.ss-motion [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 0 0);
}

/* Hero entrances shared by page and service heroes. */
@keyframes ss-hero-settle {
	from {
		transform: scale(1.08);
	}

	to {
		transform: scale(1);
	}
}

@keyframes ss-hero-copy {
	from {
		opacity: 0;
		transform: translate3d(0, 24px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.ss-js body.ss-motion [data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
	}
}

/* WordPress core alignment helpers ------------------------------------------ */

.alignleft {
	float: left;
	margin: .4rem 2rem 1.5rem 0;
}

.alignright {
	float: right;
	margin: .4rem 0 1.5rem 2rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.wp-block-image figcaption {
	max-width: 100%;
	font-size: var(--ss-fs-small);
	color: var(--ss-muted);
}
