/* =========================================================================
   HNZ Constructions — fonts and base

   @font-face for the self-hosted body face, then the reset and bare element defaults.

   Enqueued by hnz_enqueue_assets() in inc/enqueue.php, which fixes the load
   order. Design tokens live in tokens.css.
   ========================================================================= */

/* Fonts ==================================================================
   Two sources:

   - Display (sofia-pro) comes from the Adobe Fonts kit enqueued in
     inc/enqueue.php (kit ID in HNZ_TYPEKIT_KIT). The kit publishes 400 and
     700 only, both with italics — add weights in Adobe Fonts if the design
     needs them, see --fw-medium above.

   - Body (Spartan) is self-hosted below from assets/fonts/. Only 400 and 700
     are shipped, the two weights --font-body is actually used at. The source
     zip also has 100/200/300/500/600/800/900 if more are needed; convert to
     woff2 before adding.

   Files in assets/fonts/ are preloaded automatically by hnz_preload_fonts().
   Spartan is SIL OFL 1.1 — see assets/fonts/OFL-NOTICE.txt.
   ====================================================================== */

@font-face {
	font-family: "Spartan";
	src: url("../fonts/spartan-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Body default — the design sets body copy at Medium. */
@font-face {
	font-family: "Spartan";
	src: url("../fonts/spartan-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Spartan";
	src: url("../fonts/spartan-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Reset / base =========================================================== */

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

* {
	margin: 0;
}

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

body {
	position: relative;
	background: var(--c-surface);
	color: var(--c-ink);
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.59;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.nav-is-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: var(--fw-display);
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-tight);
	text-wrap: balance;
}

h2 {
	font-size: 30px;
	color: var(--c-ink);
}

ul,
ol {
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
