/* Tazvori - base layer: fonts, tokens, reset, type */

@font-face {
	src: url("../fonts/reddit-sans-var.woff2") format("woff2");
	font-family: "Reddit Sans";
	font-weight: 200 900;
	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 {
	src: local("Arial"), local("Liberation Sans");
	font-family: "Reddit Sans Fallback";
	ascent-override: 101.3%;
	descent-override: 29.1%;
	line-gap-override: 0%;
	size-adjust: 99.7%;
}
@font-face {
	src: url("../fonts/newsreader-var.woff2") format("woff2");
	font-family: "Newsreader";
	font-weight: 200 800;
	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 {
	src: local("Times New Roman"), local("Liberation Serif");
	font-family: "Newsreader Fallback";
	ascent-override: 71.1%;
	descent-override: 26.0%;
	line-gap-override: 0%;
	size-adjust: 104.0%;
}

:root {
	--tz-fog: #F5F7F8;
	--tz-haze: #EAEFF2;
	--tz-rule: #D3DADF;
	--tz-muted: #5E6A72;
	--tz-text: #1C2529;
	--tz-pine: #2B6356;
	--tz-steel: #3E5F7E;
	--tz-white: #FFFFFF;
	--tz-pine-glow: #2B635638;
	--tz-steel-glow: #3E5F7E2E;
	--tz-pine-wash: #2B63561F;
	--tz-steel-wash: #3E5F7E1F;
	--tz-text-veil: #1C252966;
	--tz-shadow-soft: 0 22px 54px -24px #1C252940, 0 6px 18px -10px #1C252926;
	--tz-shadow-lift: 0 30px 70px -30px #1C252959;
	--tz-radius-block: 12px;
	--tz-radius-card: 10px;
	--tz-radius-button: 8px;
	--tz-font-body: "Reddit Sans", "Reddit Sans Fallback", Arial, sans-serif;
	--tz-font-display: "Newsreader", "Newsreader Fallback", "Times New Roman", serif;
	--tz-gutter: clamp(16px, 4vw, 48px);
	--tz-measure: 1240px;
	--tz-header-height: 76px;
}

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

html {
	scroll-padding-top: calc(var(--tz-header-height) + 16px); /* sticky header: anchors land below it */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	overflow-x: clip;
	font-family: var(--tz-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tz-text);
	background: var(--tz-fog);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.12;
	color: var(--tz-text);
}

h1,
h3 {
	font-family: var(--tz-font-display);
}

h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

h3 {
	font-size: clamp(1.3rem, 1.9vw, 1.6rem);
}

p,
ul,
ol,
dl,
figure {
	margin: 0;
}

a {
	color: var(--tz-pine);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--tz-steel);
}

:focus-visible {
	outline: 3px solid var(--tz-steel);
	outline-offset: 3px;
}

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

table {
	width: 100%;
	border-collapse: collapse;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.label-spaced {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tz-steel);
}

.content-width {
	width: min(100% - 2 * var(--tz-gutter), var(--tz-measure));
	margin-right: auto;
	margin-left: auto;
}

.text-muted {
	color: var(--tz-muted);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
	}
}
