/**
 * Element defaults, typography and accessibility baseline.
 */

/* ----------------------------------------------------------- fonts */

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
	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: "Source Sans 3";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
	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: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
	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: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
	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;
}

/* ------------------------------------------------------------ reset */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--yka-header-height) + var(--yka-space-4));
}

body {
	margin: 0;
	background-color: var(--yka-bg);
	color: var(--yka-text);
	font-family: var(--yka-font-body);
	font-size: var(--yka-text-md);
	line-height: var(--yka-leading-normal);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------- typography */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--yka-space-3);
	font-family: var(--yka-font-display);
	font-weight: var(--yka-weight-semibold);
	line-height: var(--yka-leading-tight);
	letter-spacing: var(--yka-tracking-tight);
	text-wrap: balance;
	color: var(--yka-green-950);
}

h1 {
	font-size: var(--yka-text-3xl);
}

h2 {
	font-size: var(--yka-text-2xl);
}

h3 {
	font-size: var(--yka-text-xl);
}

h4 {
	font-size: var(--yka-text-lg);
}

h5,
h6 {
	font-family: var(--yka-font-body);
	font-size: var(--yka-text-sm);
	font-weight: var(--yka-weight-semibold);
	letter-spacing: var(--yka-tracking-label);
	text-transform: uppercase;
	color: var(--yka-text-muted);
}

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

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

a {
	color: var(--yka-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--yka-duration) var(--yka-ease);
}

a:hover {
	color: var(--yka-link-hover);
}

strong,
b {
	font-weight: var(--yka-weight-semibold);
}

small {
	font-size: var(--yka-text-sm);
}

ul,
ol {
	margin: 0 0 var(--yka-space-4);
	padding-left: var(--yka-space-5);
}

li + li {
	margin-top: var(--yka-space-2);
}

blockquote {
	margin: var(--yka-space-6) 0;
	padding-left: var(--yka-space-5);
	border-left: 3px solid var(--yka-gold);
	font-family: var(--yka-font-display);
	font-size: var(--yka-text-lg);
	line-height: var(--yka-leading-snug);
	color: var(--yka-green-900);
}

blockquote cite {
	display: block;
	margin-top: var(--yka-space-3);
	font-family: var(--yka-font-body);
	font-size: var(--yka-text-sm);
	font-style: normal;
	color: var(--yka-text-muted);
}

hr {
	height: 0;
	margin: var(--yka-space-7) 0;
	border: 0;
	border-top: var(--yka-border-width) solid var(--yka-rule);
}

code,
pre,
kbd {
	font-family: var(--yka-font-mono);
	font-size: 0.92em;
}

code {
	padding: 0.1em 0.35em;
	border-radius: var(--yka-radius-sm);
	background: var(--yka-green-100);
	color: var(--yka-green-950);
}

pre {
	overflow-x: auto;
	padding: var(--yka-space-4);
	border: var(--yka-border-width) solid var(--yka-rule);
	border-radius: var(--yka-radius);
	background: var(--yka-cream);
}

/* ------------------------------------------------------------ media */

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

figure {
	margin: 0;
}

figcaption {
	margin-top: var(--yka-space-2);
	font-size: var(--yka-text-sm);
	line-height: var(--yka-leading-normal);
	color: var(--yka-text-muted);
}

/* ------------------------------------------------------------ table */

table {
	width: 100%;
	margin-bottom: var(--yka-space-5);
	border-collapse: collapse;
	font-size: var(--yka-text-base);
}

th,
td {
	padding: var(--yka-space-3);
	border-bottom: var(--yka-border-width) solid var(--yka-rule);
	text-align: left;
	vertical-align: top;
}

th {
	font-weight: var(--yka-weight-semibold);
	color: var(--yka-green-900);
}

/* ------------------------------------------------------------ forms */

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

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: var(--yka-tap-target);
	padding: var(--yka-space-2) var(--yka-space-3);
	border: var(--yka-border-width) solid var(--yka-border-strong);
	border-radius: var(--yka-radius);
	background: var(--yka-white);
	color: var(--yka-text);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var(--yka-text-muted);
	opacity: 1;
}

label {
	display: block;
	margin-bottom: var(--yka-space-1);
	font-size: var(--yka-text-sm);
	font-weight: var(--yka-weight-semibold);
}

/* ---------------------------------------------------- accessibility */

:focus-visible {
	outline: var(--yka-focus-ring);
	outline-offset: var(--yka-focus-offset);
	border-radius: var(--yka-radius-sm);
}

/* Never remove a focus indicator without replacing it. Elements that set
   :focus-visible themselves opt out here, not by hiding the outline. */
:focus:not(:focus-visible) {
	outline: none;
}

.screen-reader-text {
	position: absolute !important; /* must beat any block alignment utility */
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: var(--yka-space-4);
	left: var(--yka-space-4);
	width: auto;
	height: auto;
	padding: var(--yka-space-3) var(--yka-space-4);
	clip-path: none;
	background: var(--yka-white);
	color: var(--yka-green-900);
	font-weight: var(--yka-weight-semibold);
	text-decoration: none;
}

.yka-skip-link {
	position: absolute;
	z-index: 100000;
	top: 0;
	left: var(--yka-space-4);
	padding: var(--yka-space-3) var(--yka-space-4);
	border: var(--yka-border-width) solid var(--yka-green-800);
	border-top: 0;
	border-radius: 0 0 var(--yka-radius) var(--yka-radius);
	background: var(--yka-white);
	color: var(--yka-green-900);
	font-size: var(--yka-text-sm);
	font-weight: var(--yka-weight-semibold);
	text-decoration: none;
	transform: translateY(-110%);
	transition: transform var(--yka-duration) var(--yka-ease);
}

.yka-skip-link:focus {
	transform: translateY(0);
}

[hidden] {
	display: none !important; /* overrides component display rules */
}

/* ------------------------------------------------------ reduced motion */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------- print */

@media print {
	.yka-header,
	.yka-footer,
	.yka-share,
	.yka-related,
	.yka-pagination {
		display: none !important; /* structural chrome adds nothing on paper */
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}
}
