/**
 * TA Horizon — Base, typography utilities, accessibility
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--th-font-body);
	font-size: var(--th-fs-body);
	font-weight: var(--th-fw-regular);
	line-height: var(--th-lh-body);
	letter-spacing: var(--th-ls-tight);
	color: var(--th-ivory);
	background-color: var(--th-matte-black);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--th-gold);
	text-decoration: none;
	transition: color var(--th-duration) var(--th-ease);
}

a:hover {
	color: var(--th-gold-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: var(--th-focus-ring);
	outline-offset: var(--th-focus-offset);
}

:focus:not(:focus-visible) {
	outline: none;
}

button,
.btn-luxury,
.btn-outline-gold {
	font-family: inherit;
}

.site {
	min-height: 100vh;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100000;
	width: auto;
	height: auto;
	padding: var(--space-2) var(--space-4);
	clip: auto;
	overflow: visible;
	background: var(--th-gold);
	color: var(--th-black);
}

/* Typography utilities — apply in templates; do not restyle all Bootstrap headings globally */
.th-display {
	font-family: var(--th-font-display);
	font-size: var(--th-fs-display);
	font-weight: var(--th-fw-medium);
	line-height: var(--th-lh-tight);
	letter-spacing: var(--th-ls-heading);
	color: var(--th-ivory);
}

.th-h1,
.th-h2,
.th-h3,
.th-h4 {
	font-family: var(--th-font-display);
	font-weight: var(--th-fw-medium);
	line-height: var(--th-lh-heading);
	color: var(--th-ivory);
}

.th-h1 {
	font-size: var(--th-fs-h1);
	letter-spacing: var(--th-ls-heading);
}

.th-h2 {
	font-size: var(--th-fs-h2);
	letter-spacing: 0.03em;
}

.th-h3 {
	font-size: var(--th-fs-h3);
}

.th-h4 {
	font-size: var(--th-fs-h4);
	font-family: var(--th-font-body);
	font-weight: var(--th-fw-medium);
	letter-spacing: 0.02em;
}

.th-body {
	font-family: var(--th-font-body);
	font-size: var(--th-fs-body);
	line-height: var(--th-lh-body);
	color: var(--th-ivory);
}

.th-small {
	font-size: var(--th-fs-small);
	line-height: var(--th-lh-label);
	color: var(--th-gray);
}

.th-eyebrow {
	font-family: var(--th-font-body);
	font-size: var(--th-fs-eyebrow);
	font-weight: var(--th-fw-medium);
	letter-spacing: var(--th-ls-eyebrow);
	text-transform: uppercase;
	color: var(--th-gold);
	line-height: var(--th-lh-label);
}

.th-product-title {
	font-family: var(--th-font-display);
	font-size: var(--th-fs-product-title);
	font-weight: var(--th-fw-medium);
	line-height: var(--th-lh-heading);
	color: var(--th-ivory);
}

.th-price {
	font-family: var(--th-font-display);
	font-size: var(--th-fs-price);
	font-weight: var(--th-fw-medium);
	letter-spacing: 0.02em;
	color: var(--th-ivory);
}

.th-nav {
	font-family: var(--th-font-body);
	font-size: var(--th-fs-nav);
	font-weight: var(--th-fw-medium);
	letter-spacing: var(--th-ls-nav);
	text-transform: uppercase;
}

.th-btn-text {
	font-family: var(--th-font-body);
	font-size: var(--th-fs-button);
	font-weight: var(--th-fw-medium);
	letter-spacing: var(--th-ls-button);
	text-transform: uppercase;
}

.container-luxury {
	width: 100%;
	max-width: var(--th-container-max);
	margin-inline: auto;
	padding-inline: var(--th-container-gutter);
}

.container-luxury--narrow {
	max-width: var(--th-container-narrow);
}

.container-luxury--wide {
	max-width: var(--th-container-wide);
}

.section-full {
	width: 100%;
}

.section-luxury {
	padding-block: var(--th-section-space);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
		scroll-behavior: auto;
	}
}
