@font-face {
  font-family: 'Silverstone Text';
  src: url('../fonts/SilverstoneText-Medium.woff2') format('woff2'),
	   url('../fonts/SilverstoneText-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silverstone Text';
  src: url('../fonts/SilverstoneText-Bold.woff2') format('woff2'),
	   url('../fonts/SilverstoneText-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silverstone Display';
  src: url('../fonts/SilverstoneDisplay-Bold.woff2') format('woff2'),
	   url('../fonts/SilverstoneDisplay-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silverstone Display Extra';
  src: url('../fonts/SilverstoneDisplay-ExtraBold.woff2') format('woff2'),
	   url('../fonts/SilverstoneDisplay-ExtraBold.woff') format('woff');
  font-weight: bolder;
  font-style: normal;
  font-display: swap;
}

/* Root styles for easy adjustments */
:root {
  --base-font-size: 18px;
  --base-heading-size: 23px;
  --line-height: 1.6;
  --color-background-royal: #10069f;
  --color-background-race: #e40033;
  --color-background-midnight: #120531;
  --color-background-white: #ffffff;
  --color-text: #000000;
  --color-royal: #10069f;
  --color-white: #ffffff;
  --contrast: normal;
  --brand-midnight: #120531;
  --brand-race-red: #e40033;
  --brand-grey: #f2f2f2;
}

/* Contrast styles */
:root[style*="--contrast: high"] {
  --color-background-royal: #f2f2f2;
  --color-background-midnight: #f2f2f2;
  --color-background-white: #120531;  
  --color-text: #ffffff;
  --color-white: #120531;
  --color-royal: #e40033;
  --brand-grey: #120531;
}

body {
  font-family: 'Silverstone Text', Arial, sans-serif;
  font-size: var(--base-font-size);
  line-height: var(--line-height);
  background-color: var(--color-background-royal);
  color: var(--color-text);
  margin: 0;
  padding: 0 1rem;
}

.max-width {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--color-background-white);
  padding:2rem;
}

@media only screen and (max-width: 768px) { 
	.max-width {
		padding:1rem;
	}
}

h1,h2,h3 {
  font-family: 'Silverstone Display', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0 0 .8rem 0;
}

p {
	margin: 0 0 1rem 0;
}

a {
	color: var(--color-royal);
}

article > :last-child {
	margin-bottom: 0;
}

.page-header {
	width: 100%;
	clear: both;
	margin: 0 0 1rem 0;
	float: left;
}

	.page-header h1 {
		font-family: 'Silverstone Display Extra', Arial, sans-serif;
		font-size: calc(var(--base-font-size) * 3);
		line-height: calc(var(--line-height) * 0.6);
		letter-spacing: -.02em
	}
	
		.page-header h1 span {
			font-size: calc(var(--base-font-size) * 2);
		}
		
@media only screen and (max-width: 768px) { 
	.page-header h1 {
		font-size: calc(var(--base-font-size) * 1.5);
		line-height: calc(var(--line-height) * 0.6);
	}
}

#accessibility-toolbar {
  margin-bottom: 1rem;
  display: flex;
  gap: 10px;
}

#accessibility-toolbar button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--color-text);
  background-color: var(--brand-grey);
  color: var(--color-text);
}

#accessibility-toolbar button:hover {
  background-color: var(--brand-grey);
}

@media only screen and (max-width: 768px) { 
	
	#accessibility-toolbar button {
	padding: 0.4rem;
	font-size: .8rem;
	}

}

.accordion {
	margin: 1rem 0;
	width: 100%;
	clear: both;
	float: left;
}

.accordion-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.4rem 2.1rem;
  margin-top: 2rem;
  background: var(--color-background-midnight);
  border: none;
  cursor: pointer;
  font-size: var(--base-heading-size);
  color: var(--color-white);
  font-family: 'Silverstone Display', Arial, sans-serif;
  text-transform: uppercase;
  position: relative;
}

@media only screen and (max-width: 768px) { 
	
	.accordion-button {
		font-size: calc(var(--base-heading-size) * .8);

	}

}

	.accordion-button:before {
		content: '';
		position: absolute;
		left: 0;
		top: -13px;
		width: 60px;
		height: 0;
		border-top: 20px solid transparent;
		border-left: 40px solid var(--color-background-midnight);
	}
	
	.accordion-button:after {
		content: '';
		position: absolute;
		left: 0;
		bottom: -8px;
		width: 60px;
		height: 0;
		border-top: 20px solid transparent;
		border-left: 40px solid var(--color-background-white);
	}

.accordion-button[aria-expanded="true"] {
  background: var(--brand-race-red);
}

	.accordion-button[aria-expanded="true"]:before {
		border-left: 40px solid var(--brand-race-red);
	}

.accordion-collapse {
  padding: 1rem;
  font-size: var(--base-font-size);
  line-height: var(--line-height);
}

.accordion-collapse[hidden] {
  display: none;
}

.accordion-body {
  font-size: var(--base-font-size);
}

.accordion img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.toggle-all-button {
  display: block;
  margin: 1rem 0 0 0;
  padding: 0.5rem 1rem;
  font-size: var(--base-font-size);
  font-family: 'Silverstone Display', Arial, sans-serif;
  text-transform: uppercase;
  background: var(--brand-race-red);
  color: white;
  border: none;
  cursor: pointer;
}

.toggle-all-button:hover {
  background: var(--color-background-royal);
}