@charset "ISO-8859-1";

/*--------------------*/
/* Custom properties  */
/*--------------------*/

:root {
	/* colors */
	--clr-dark: 230 35% 7%;
	--clr-lsb: 214 41% 78%;    /* light steel blue */
	--clr-light: 231 77% 90%;
	--clr-white: 0 0% 100%;
	
	/* font-sizes */
	--fs-900: 9.375rem;
	--fs-800: 6.25rem;
	--fs-700: 3.5rem;
	--fs-600: 2rem;
	--fs-500: 1.75rem;
	--fs-400: 1.125rem;
	--fs-300: 1rem;
	--fs-200: 0.875rem;
	--fs-100: 0.75rem;

	/* font-families */
	--ff-serif: "Alegreya", serif;
	--ff-sans-cond: "Krub Condensed", sans-serif;
	--ff-sans-normal: "Krub", sans-serif;
}


/*--------------------*/
/* Reset              */
/*--------------------*/

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	font-weight: 400;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
	font-family: var(--ff-sans-normal);
	font-size: var(--fs-100);
	background: hsl( var(--clr-lsb) );
	color: hsl(var(--clr-dark) );
	line-height: 1.5;
	min-height: 100vh;
 	text-rendering: optimizeSpeed;
 	line-height: 1.5;
 	padding-left: 20px;
 	padding-right: 20px;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------*/
/* Components         */
/*--------------------*/

.topnav {
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: --clr-light;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
	font-family: var(--ff-sans-normal);
	font-size: var(--fs-400);
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: --clr-dark;
}

/* Add a color to the active/current link */
.topnav a.active {
  color: --clr-white;
}
