/* =========================================================================
   HollaJack — base: typography, buttons, forms, focus
   Style guide §4 (type rules), §7 (buttons), §16 (accessibility floor)
   ========================================================================= */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--hj-bone);
	color: var(--hj-ink-soft);
	font-family: var(--hj-ui);
	font-size: var(--hj-size-body);
	font-weight: 400;
	line-height: var(--hj-leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --- Display type ------------------------------------------------------ */

h1, h2, h3, h4,
.hj-display-xl, .hj-display-l, .hj-display-m {
	font-family: var(--hj-display);
	font-weight: 500;
	color: var(--hj-ink);
	margin: 0;
	/* Sentence case everywhere — never Title Case, never ALL CAPS. */
	text-transform: none;
}

.hj-display-xl {
	font-size: var(--hj-size-display-xl);
	line-height: var(--hj-leading-display-xl);
	letter-spacing: -0.01em;
}

.hj-display-l {
	font-size: var(--hj-size-display-l);
	line-height: var(--hj-leading-display-l);
}

.hj-display-m {
	font-size: var(--hj-size-display-m);
	line-height: var(--hj-leading-display-m);
}

/* Italic second line — "Own the number." */
.hj-display-xl em,
.hj-display-l em {
	font-style: italic;
	font-weight: 500;
}

/* --- Body -------------------------------------------------------------- */

p {
	margin: 0 0 var(--hj-4);
}

.hj-lede {
	font-size: var(--hj-size-body);
	color: var(--hj-ink-soft);
	max-width: var(--hj-maxw-prose);
	margin-top: var(--hj-4);
}

.hj-small {
	font-size: var(--hj-size-small);
	line-height: 1.6;
}

.hj-muted {
	color: var(--hj-stone);
}

a {
	color: var(--hj-ink);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* --- Eyebrow ----------------------------------------------------------- */

.hj-eyebrow {
	font-family: var(--hj-ui);
	font-size: var(--hj-size-eyebrow);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: var(--hj-stone);
	margin: 0 0 var(--hj-3);
}

/* --- Numerals ----------------------------------------------------------
   Tabular everywhere so the ledger aligns (§4, §16). */

.hj-price,
.hj-ledger,
.woocommerce-Price-amount,
.hj-numeral {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}

.hj-price {
	font-family: var(--hj-ui);
	font-size: var(--hj-size-price);
	font-weight: 500;
	line-height: 1;
	color: var(--hj-ink);
}

.hj-price--next {
	color: var(--hj-stone);
	font-size: var(--hj-size-small);
}

.hj-price del {
	color: var(--hj-stone);
	font-weight: 400;
}

/* --- Buttons (§7) -------------------------------------------------------
   One primary per view. Emphasis comes from size and face, never bold. */

.hj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--hj-2);
	font-family: var(--hj-ui);
	font-size: var(--hj-size-small);
	font-weight: 500;
	line-height: 1;
	padding: var(--hj-3) var(--hj-5);
	min-height: 44px;
	border-radius: var(--hj-radius-control);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background var(--hj-fade), color var(--hj-fade), border-color var(--hj-fade);
	text-decoration: none;
}

.hj-btn:hover {
	text-decoration: none;
}

.hj-btn--primary {
	background: var(--hj-ink);
	color: var(--hj-bone);
	border-color: var(--hj-ink);
}

.hj-btn--primary:hover {
	background: #000;
	color: var(--hj-bone);
}

.hj-btn--secondary {
	background: transparent;
	color: var(--hj-ink);
	border-color: var(--hj-ink);
}

.hj-btn--secondary:hover {
	background: var(--hj-ink);
	color: var(--hj-bone);
}

.hj-btn--ghost {
	background: transparent;
	color: var(--hj-ink);
	padding-left: 0;
	padding-right: 0;
	min-height: 0;
}

.hj-btn--ghost:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hj-btn--block {
	width: 100%;
}

/* --- Forms -------------------------------------------------------------- */

input[type='text'],
input[type='email'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='password'],
select,
textarea {
	font-family: var(--hj-ui);
	font-size: var(--hj-size-small);
	color: var(--hj-ink);
	background: var(--hj-card);
	border: 1px solid var(--hj-line);
	border-radius: var(--hj-radius-control);
	padding: var(--hj-3) var(--hj-3);
	min-height: 44px;
	width: 100%;
	transition: border-color var(--hj-fade);
}

input:hover,
select:hover,
textarea:hover {
	border-color: var(--hj-line-strong);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--hj-ink);
	outline: none;
}

label {
	font-size: var(--hj-size-small);
	color: var(--hj-ink-soft);
}

/* --- Focus ring (ship it, don't announce it — §16) ---------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--hj-ink);
	outline-offset: 2px;
	border-radius: var(--hj-radius-control);
}

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

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

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

.hj-wrap {
	max-width: var(--hj-maxw);
	margin-inline: auto;
	padding-inline: var(--hj-gutter);
}

.hj-section {
	padding-block: var(--hj-section-y);
}

/* Alternating band for rhythm — never a third background colour. */
.hj-section--band {
	background: var(--hj-bone-deep);
}

.hj-section__head {
	margin-bottom: var(--hj-7);
}

.hj-rule {
	border: 0;
	border-top: 1px solid var(--hj-line);
	margin: 0;
}

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

.hj-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--hj-ink);
	color: var(--hj-bone);
	padding: var(--hj-3) var(--hj-4);
}

.hj-skip-link:focus {
	left: var(--hj-4);
	top: var(--hj-4);
}
