/*---------------------------------
Fonts
---------------------------------*/

@font-face {
	font-family: "Inter";
	src: local("Inter Regular"),
		local("Inter-Regular"),
		url("../fonts/inter-regular.woff2") format("woff2"),
		url("../fonts/inter-regular.woff") format("woff");
	font-weight: normal;
	font-style: normal
}

@font-face {
	font-family: "Inter";
	src: local("Inter Italic"),
		local("Inter-Italic"),
		url("../fonts/inter-italic.woff2") format("woff2"),
		url("../fonts/inter-italic.woff") format("woff");
	font-style: italic;
	font-weight: normal;
}

@font-face {
	font-family: "Inter";
	src:local("Inter Bold"),
		local("Inter-Bold"),
		url("../fonts/inter-bold.woff2") format("woff2"),
		url("../fonts/inter-bold.woff") format("woff");
	font-style: normal;
	font-weight: bold;
}

@font-face {
	font-family: "Inter";
	src: local("Inter Bold Italic"),
		local("Inter-BoldItalic"),
		url("../fonts/inter-bold-italic.woff2") format("woff2"),
		url("../fonts/inter-bold-italic.woff") format("woff");
	font-style:italic;
	font-weight:bold;
}

:root {
--color-white: #f7fafb;
--color-green: #85e23f;
--color-grey: #353b3e;
--page-width: 980px;
--page-padding: 4rem;
--font-famiy: "Inter", Roboto, Helvetica, Arial, sans-serif;
}

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

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary
{
display: block;
}

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

*
{
margin: 0;
min-width: 0;
padding: 0;
}

[hidden]
{
display: none !important;
visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

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

body
{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smooth: always;  
line-height: 1.5;
min-height: 100vh;
min-height: 100svh;
text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p
{
overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6
{
font-size: inherit;
font-weight: inherit;
text-wrap: balance;
}

p
{
text-wrap: pretty;
}

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

svg[width][height]
{
max-width: revert;
}

button
{
background: none;
border: none;
}

input, button, textarea, select
{
-webkit-appearance: none;
appearance: none;
font: inherit;
}

button,
[role="button"],
label,
summary,
select
{
cursor: pointer;
}

ul, ol {
  list-style: none;
}

table
{
border-collapse: collapse;
}

th
{
font-weight: inherit;
}

fieldset
{
border: none;
padding: 0;
}

/*---------------------------------
Primary styles
---------------------------------*/

*:focus
{
outline: none;
}

html,
body
{
background: var(--color-white);
color: #222;
display: flex;
flex-direction: column;
font-family: var(--font-famiy);
font-size: 16px;
gap: 2rem;
height: 100%;
line-height: 1.5em;
margin: 0;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}

html.home body
{
background: #0099ab;
overflow-x: hidden;
text-align: center;
}

a,
a:hover
{
color: #00b4f1;
text-decoration: none;
-webkit-transition: color .5s;
transition: color .5s;
}

a:hover
{
color: #98E75C;
}

body > header,
body > main,
body > footer
{
width: 100%;
padding-inline: max(var(--page-padding), calc((100% - var(--page-width)) / 2));
text-align: left;
}

body > main
{
flex: 1;
}

body > footer
{
align-items: center;
background-color: var(--color-grey);
color: var(--color-white);
display: flex;
gap: 2rem;
padding-top: 1rem;
padding-bottom: 1.5rem;
}

body > header .heti-logo
{
background: var(--color-white);
width: 20%;
}

html.home body > main
{
justify-content: center;
background-image: url("../img/heti-e.svg");
background-repeat: no-repeat;
background-origin: content-box;
background-position: right center;
background-size: 22.5%;
display: flex;
flex-direction: column;
margin: 2rem 0 5rem;
}

h1
{
color: var(--color-green);
font-size: 2rem;
line-height: 1.125;
margin: 0 0 1rem;
width: 70%;
}

h1 span
{
color: var(--color-white);
}

main div
{
color: var(--color-white);
font-size: 1.5rem;
line-height: 1.25;
width: 70%;
}

body > footer > div
{
display: flex;
align-items: center;
gap: 0.5rem;
margin-right: auto;
}

body > footer img
{
display: block;
height: 2.75rem;
width: auto;
max-width: none;
flex-shrink: 0;
}

body > footer a
{
flex-shrink: 0;
}

.ir
{
background-color: transparent;
border: 0;
overflow: hidden;
*text-indent: -9999px;
}

.ir:before
{
content: "";
display: block;
width: 0;
height: 150%;
}

.visuallyhidden
{
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus
{
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}

.invisible
{
visibility: hidden;
}

@media (max-width: 800px) {
	:root
	{
	--page-padding: 1.5rem;
	}

  html.home body > main
  {
  background-image: none;
  }

  html.home body > main h1,
  html.home body > main > div
  {
  width: 100%;
  }

  body > footer
  {
  flex-wrap: wrap;
  justify-content: center;
  }

  body > footer > .copyright
  {
  order: 1;
  display: block;
  flex: 0 0 100%;
  text-align: center;
  }
}

@media print {
	* {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content: "";
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}