/* 
  ABOUT THIS FILE
  Guinevere default CSS scaffolding file v0.9, annotated
  When committing changes, please update the minified file as well through https: //www.toptal.com/developers/cssminifier
  Link only the minified file in product projects
*/

/* #region CSS NORMALIZATION */
/** modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize **/

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

*,
::before,
::after {
	box-sizing: border-box;
}

/**
Use a more readable tab size (opinionated).
*/

html {
	-moz-tab-size: 4;
	tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
	line-height: 1.15;
	/* 1 */
	-webkit-text-size-adjust: 100%;
	/* 2 */
}

/*
Sections
========
*/

/**
Remove the margin in all browsers.
*/

body {
	margin: 0;
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/

body {
	font-family: system-ui, -apple-system,
		/* Firefox supports this but not yet `system-ui` */ "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/*
Grouping content
================
*/

/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/

hr {
	height: 0;
	/* 1 */
	color: inherit;
	/* 2 */
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
	text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
	font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono",
		Menlo, monospace;
	/* 1 */
	font-size: 1em;
	/* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/*
Tabular data
============
*/

/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
	text-indent: 0;
	/* 1 */
	border-color: inherit;
	/* 2 */
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	/* 1 */
	font-size: 100%;
	/* 1 */
	line-height: 1.15;
	/* 1 */
	margin: 0;
	/* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/

button,
select {
	/* 1 */
	text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/

:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/

:-moz-ui-invalid {
	box-shadow: none;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
	padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
	vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
	-webkit-appearance: textfield;
	/* 1 */
	outline-offset: -2px;
	/* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button;
	/* 1 */
	font: inherit;
	/* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
	display: list-item;
}

/* #endregion */

/* #region DEFAULT OBJECS */

/* #region -- RESPONSIVE VIDEO */

/*  Responsive video containers:
Create a container for the video (iframe, html5, etc) with the below class.
For different aspect ratios, add the style attribute to the container and replace the padding-bottom property with the one below.
style="--aspect-ratio: 3 / 4;"
padding-bottom: calc(var(--aspect-ratio, .5625) * 100%); */

.responsiveVideo {
	position: relative;
	/* default aspect ratio will be 16:9 */
	padding-bottom: 56.25%;
	height: 0;
	width: 100%;
	overflow: hidden;
	display: block;
}

.responsiveVideo iframe,
.responsiveVideo object,
.responsiveVideo embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* #endregion */


/* #endregion */

/* #region DEFAULT GPI STYLING */

/* #region -- RESPONSIVE FONTS */
/** Throughout the CSS we set font sizes in REM. This unit is relative to the html font size. Here we can resize all fonts at once for specific media queries **/

html {
	font-size: 20px;
}

@media only screen and (max-width: 1360px) {
	html {
		font-size: 18px;
	}
}

@media only screen and (max-width: 800px) {
	html {
		font-size: 16px;
	}
}

/* #endregion */

/* #region -- PAGE ELEMENTS */

body {
	/* Background color for the page */
	background-color: white;
}

/* #endregion */

/* #region -- HEADERS */
h1,
h2,
h3,
h4,
h5,
h6 {
	/* Configuration font for all headings */
	font-family: var(--font-family-heading);
	/* Lower line height for headings than for other text. Because this is relative, it must be set in em not rem */
	line-height: 1.2em;
}

/* Set default sizes for headers */
h1 {
	font-size: 2.2rem;
}

h2 {
	font-size: 1.8rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.2rem;
}

h5,
h6 {
	/* h5 and h6 by default take the same size as the body text */
	font-size: 1rem;
}

h1:first-of-type,
h2:first-of-type {
	/* Set the first level 1 and 2 headers with no margin on top, as they will usually be used as the main header in a section or in conjunction with another header */
	margin-top: 0;
}

/* #endregion */

/* #region -- BODY TEXT */

body {
	/* Configuration font for all elements by default */
	font-family: var(--font-family-body);
	color: var(--color-primary-1);
	/* More accessible default default line height */
	line-height: 1.5rem;
	/* Appropriate default font size */
	font-size: 1rem;
}

p {
	/* We set all paragraphs with a margin 0 on the top, so that we only need to define margins on the top and prevent issues with collapsing margins */
	margin-top: 0;
}

p:last-of-type {
	/* The last paragraph in a container gets extra bottom margin. This will typically be the last paragraph of a piece of content that needs some breathing room at the bottom */
	margin-bottom: 2rem;
}

p.intro {
	/* Set intro paragraphs with a default bold font and extra line height */
	font-weight: bold;
	line-height: 1.7em;
}

p.warning,
span.warning {
	color: var(--color-semantic-warning);
}
p.info,
span.info {
	color: var(--color-semantic-info);
}
p.highlight,
span.highlight {
	background-color: var(--color-semantic-highlight);
}
p.error,
span.error {
	color: var(--color-semantic-error);
}
p.success,
span.success {
	color: var(--color-semantic-success);
}

/* #endregion */

/* #region -- MENUS */

nav ul {
	/* Display menu items by default in flex */
	display: flex;
	/* By default, outline menu items to the right */
	justify-content: flex-end;
	/* Set default space between menu items */
	gap: 1rem;
	/* remove the disc in front of the list items */
	list-style: none;
}

nav ul li a {
	/* Don't underline links in menus */
	text-decoration: none;
	/* Default styling */
	color: var(--color-primary-2);
	font-family: var(--font-family-navigation);
}

nav ul li a:visited {
	/* To ensure visited links in menus aren't colored after visiting, set them to the same default color of all links in menus */
	color: var(--color-primary-2);
}

/* #endregion */

/* #region -- IMAGES */

img {
	max-width: 100%;
}

/* #endregion */

/* #endregion */

/* #region DEBUGGING */
body.cssdebug * {
	outline: 1px solid #ddd;
}

body.cssdebug {
	background-color: blueviolet;
}

body.cssdebug > header {
	background-color: hsl(130, 75%, 84%);
}

body.cssdebug > aside#spotlight {
	background-color: hsl(192, 75%, 84%);
}

body.cssdebug > main {
	background-color: hsl(219, 75%, 84%);
}

body.cssdebug > footer {
	background-color: hsl(36, 75%, 84%);
}

body.cssdebug > footer small#copyrightNotice {
	background-color: hsl(293, 89%, 32%);
}

body.cssdebug > header nav {
	outline: 1px solid orange;
}
/* #endregion */
