/* --------------------------------------------------------------------------------------------------------
Reset
*/
*, ::after, ::before {
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

:not(:is(dialog,svg,svg *)) {
  position: relative;
}

html {
  block-size: 100%;
}

body {
  min-block-size: 100%;
  margin: 0;
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
     -moz-text-size-adjust: 100%;
          text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a, button, label, select, [type=button], summary {
  cursor: pointer;
  color: inherit;
}

:is(button,a) * {
  pointer-events: none;
}

body, nav, header, main, footer, aside, article, section, img {
  padding-block: 0.001px;
  display: block;
  isolation: isolate;
}






/* --------------------------------------------------------------------------------------------------------
Typography  
*/
@font-face {
  font-family: "GTFlexa"; /* variable font */
  src: url("../fnt/GTFlexa.woff2") format("woff2-variations");
  font-display: swap;
}
*, *::before, *::after {
  font-family: "GTFlexa", sans-serif;
  line-height: var(--line-height, inherit);
  font-variation-settings: 
      "wght" var(--font-weight, 400), 
      "wdth" var(--font-width, 100), 
      "ital" var(--font-italic, 0);
}

html {
  /* upper and lower font scale bounds (global) */
  --bound-lower: 0rem;
  --bound-upper: 90rem;
}

*, *::before, *::after {
  /* min and max font size */
  --fs-min: inherit;
  --fs-max: inherit;
  /* viewport and font size ranges */
  --vp-range: calc(var(--bound-upper) - var(--bound-lower));
  --fs-range: calc(var(--fs-max) - var(--fs-min));
  /* numeric ranges */
  --vp-num: tan(atan2(var(--vp-range), 1rem));
  --fs-num: tan(atan2(var(--fs-range), 1rem));
  /* divider (requires numeric values) */
  --divider: calc(var(--vp-num) / var(--fs-num));
  /* viewport and font size components for mid value */
  --vw-comp: calc(100vw / var(--divider));
  --fs-comp: calc(var(--fs-min) - (var(--bound-lower) / var(--divider)));
  /* font size var (allows fixed override) */
  --fs: clamp(var(--fs-min), var(--vw-comp) + var(--fs-comp), var(--fs-max));
  /* assign */
  font-size: var(--fs);
}

body {
  --fs-min: 1rem;
  --fs-max: 1.2rem;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  text-transform: uppercase;
  margin-block: 0.5em;
}

h1 {
  --fs-min: 1.2rem;
  --fs-max: 4rem;
  --font-weight: 800;
  --font-width: 105;
  --line-height: 1;
}
h1 span {
  --font-weight: 250;
}

h2 {
  --fs-min: 1.4rem;
  --fs-max: 3rem;
  --font-weight: 700;
  --line-height: 1.1;
}
h2 span {
  --font-weight: 250;
}

p {
  text-wrap: pretty;
  max-inline-size: 60ch;
}

li {
  text-wrap: balance;
}

strong {
  --font-weight: 700;
}

.standfirst {
  --font-weight: 600;
}

sup {
  font-size: 60%;
}






/* --------------------------------------------------------------------------------------------------------
Theme 
*/
html {
  --color-none: transparent;
  --color-white: white;
  --color-black: black;
  --color-brand: #e1000f;
  --color-grey-lighter: #f9f9f9;
  --color-grey-light: #bfbfbf;
  --color-grey: #8c8c8c;
  --color-grey-dark: #666666;
  --color-grey-darker: #404040;
  --color-gray-lighter: #f9f9f9;
  --color-gray-light: #bfbfbf;
  --color-gray: #8c8c8c;
  --color-gray-dark: #666666;
  --color-gray-darker: #404040;
  --color-red-lighter: #ff2f3c;
  --color-red-light: #fb0011;
  --color-red: #e1000f;
  --color-red-dark: #c8000d;
  --color-red-darker: #95000a;
  --color-soft-blue-lighter: #eff3f6;
  --color-soft-blue-light: #dee5eb;
  --color-soft-blue: #bdcdda;
  --color-soft-blue-dark: #56729f;
  --color-soft-blue-darker: #343b55;
  --color-sage-green-lighter: #f6f8f6;
  --color-sage-green-light: #e0e7df;
  --color-sage-green: #bfcfbe;
  --color-sage-green-dark: #53846a;
  --color-sage-green-darker: #1d4941;
  --color-warm-grey-lighter: #f2efef;
  --color-warm-grey-light: #efebea;
  --color-warm-grey: #ded7d6;
  --color-warm-grey-dark: #968282;
  --color-warm-grey-darker: #4d3938;
  --color-warm-gray-lighter: #f2efef;
  --color-warm-gray-light: #efebea;
  --color-warm-gray: #ded7d6;
  --color-warm-gray-dark: #968282;
  --color-warm-gray-darker: #4d3938;
  --color-correct: #62B056;
  --color-incorrect: #E1000F;
  --color-disabled: #7F7F7F;
  --color-border: #8C8C8C;

  --color-text: #3B3B3B;

  color: var(--color-text);
}






/* --------------------------------------------------------------------------------------------------------
Layout 
*/
.layout {
  --center: 0;
  --tiny: min(50%, 15.5rem);
  --narrow: minmax(0, 15.5rem);
  --content: minmax(0, 6.5rem);
  --wide: minmax(0, 7.5rem);
  --full: auto;
  display: grid;
  /* gap: 4rem 0; */
  /* -webkit-margin-after: 6rem; */
          /* margin-block-end: 6rem; */
  grid-template-columns: 
  	[full-start] var(--full) 
	  	[wide-start] var(--wide) 
		  	[content-start] var(--content) 
			  	[narrow-start] var(--narrow) 
				  	[tiny-start] var(--tiny) 
					  	[center-start] var(--center) 
					  	[center-end] var(--tiny) 
				  	[tiny-end] var(--narrow) 
			  	[narrow-end] var(--content) 
		  	[content-end] var(--wide) 
	  	[wide-end] var(--full) 
  	[full-end];

}
.layout > * {
  grid-column: content;
}






/* --------------------------------------------------------------------------------------------------------
Sections
*/
[id=nav] {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
[id=nav] a {
    display: flex;
    text-transform: uppercase;
    --font-weight: 700;
    color: var(--color-text);
    flex-shrink: 0
}

[id=nav] a.logo  {
  width: 4.5rem;
}
[id=nav] svg {
  display: block;
  width: 100%;
  height: 100%;  
}




/* --- Header --- */
[id=header] {
  grid-column: content;
}
[id=header] h1 {
  text-align: center;
  color: var(--color-brand);
  z-index: 1;
}
[id=header] .embed {
  aspect-ratio: 1280/540;
}
[id=header] .embed video {
  z-index: 1;
}
[id=header] .embed::before {
  position: absolute;
  overflow-x: hidden;
  content: "";
  width: 40%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-sage-green);
  inset-inline-end: -25%;
  inset-block-end: 18%;

 
}
@media(max-width: 50rem) {
  [id=header] .embed::before{
   display: none;
  }
}
[id=header] .embed::after {
  position: absolute;
  overflow-x: hidden;
  content: "";
  width: 24%;
  aspect-ratio: 1;
  background-color: var(--color-soft-blue-light);
  inset-inline-end: 0;
  inset-inline-end: -25%;
  inset-block-start: 5%;
}

@media (max-width: 50rem) {
  [id=header] .embed::after {
    display: none;
  }
}
[id=header] p.standfirst {
  --fs-min: 1.2rem;
  --fs-max: 1.4rem;
  --fs: 120%;
  --line-height: 1.20;
  --font-weight: 500;
  -webkit-margin-after: 1.5em;
          margin-block-end: 1.5em;
}
[id=header] .content {
  padding: 1.5rem;
  max-inline-size:40rem;
  margin: auto;
  padding-block-start: 0;
  /* -webkit-margin-before: 5%;
          margin-block-start: 5%; */
}







/* ------------------------------------------------
  Merch
*/
[id=merch] {
  grid-column: content;
  display: grid;
  gap: 1.5rem;
  background-color: var(--color-brand);
  color: var(--color-white);
  /* margin-inline: 1.5rem; */

}
@media (min-width: 50rem) {
  [id=merch] {
    grid-template-columns: 1fr 1fr;
    margin-block-start: 4rem;
    margin-block-end: 6rem;
    margin-inline: 0;
  }
}
[id=merch] h2 {
  text-transform: none;
}
[id=merch] .content {
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem;
}
[id=merch] p:last-of-type {
  -webkit-margin-after: 3rem;
          margin-block-end: 3rem;
}
[id=merch] a {
  -webkit-margin-before: auto;
          margin-block-start: auto;
  align-self: flex-start;
  display: inline-block;
  border-radius: 100vmax;
  background-color: var(--color-black);
  padding: 0.5em 1.5em;
  text-decoration: none;
  min-width: 40%;
  text-align: center;
  --font-min: 1rem;
  --font-max: 1.2rem;
  --font-weight: 700;
  transition: 300ms;
  position: static;
}
[id=merch] a:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}
[id=merch] a::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
}
[id=merch] .embed {
  display: block;
  height: 100%;
  -o-object-position: left center;
     object-position: left center;
}






/* ------------------------------------------------
  Beyond the Bond 
*/
[id=beyond-the-bond] {
  grid-column: content;
  padding: 3rem 1.5rem;
  background-color: var(--color-soft-blue-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  --col: 1;
}
@media (min-width: 50rem) {
  [id=beyond-the-bond] {
    grid-template-columns: 8fr 1fr 8fr;
    --col: 2;

  }
  [id=beyond-the-bond] > * {
    grid-row: 1;
  }
}
[id=beyond-the-bond] .content {
  grid-column: 1/span 2;
  padding-bottom: 3rem;
}
@media (min-width: 50rem) {
  [id=beyond-the-bond] .content {
    -webkit-padding-end: 3rem;
            padding-inline-end: 3rem;
  }
}
[id=beyond-the-bond] p {
  max-inline-size: 60ch;
}
[id=beyond-the-bond] h2 {
  color: var(--color-brand);
  --fs-min: 2rem;
  --fs-max: 3rem;
  --font-weight: 250;
  --font-italic: 100;
}

[id=beyond-the-bond] figure {
  grid-column: var(--col)/span 2;
  align-self: stretch;
  /* background: var(--color-warm-gray); */
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  -webkit-margin-after: -3rem;
          margin-block-end: -3rem;
  _margin-inline: -1.5rem;
  margin-inline: calc(50% - 50vw);
  z-index: -1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 50rem) {
  [id=beyond-the-bond] figure {
    background-color: inherit;
    padding: 0;
    -webkit-margin-before: -3rem;
            margin-block-start: -3rem;
    margin-inline: -1.5rem;            
  }
}
[id=beyond-the-bond] figure figcaption {
  padding: 1.5rem;
  --fs-min: .85rem;
  --fs-max: 1rem;
}
[id=beyond-the-bond] .embed {
  flex-grow: 1;
}
@media (min-width: 50rem) {
  [id=beyond-the-bond] .embed {
    -o-object-position: bottom left;
       object-position: bottom left;
  }
  [id=beyond-the-bond] .embed * {
    width: 140%;
    height: 70%;
    margin-inline-start: 2rem;
    padding-inline-start: 2rem;
    padding-block-start: 3rem;
  }
}
[id=beyond-the-bond]::after {
  content: "";
  position: absolute;
  background: inherit;
  display: block;
  inset: 0;
  margin-inline: calc(50% - 50vw);
  z-index: -2;
}





/* ------------------------------------------------
  Facts & Figures
*/
[id=figures] {
  background-color: var(--color-sage-green);
  color: var(--color-text);
  padding: 6rem;
  /* margin-block: -6rem; */
  display: grid;
  gap: 3rem 1.5rem;
  grid-template-columns: repeat(1, 1fr);
  place-content: center;
}

@media (min-width: 50rem) {
  [id=figures] {
    grid-column: full;
  }
}


[id=figures] > * {
  grid-column: 1;
}
[id=figures] h2, [id=figures] p {
  grid-column: 1/-1;
  text-align: center;
  margin-inline: auto;
  margin-block: 0;
}
[id=figures] h2 span {
  display: block;
  _text-transform: none;
  font-size: 60%;
}
[id=figures] .figure-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 10%;
}
[id=figures] figure {
  margin: 0;
  text-align: end;
}
[id=figures] figure [data-count] {
  --fs-min: 3rem;
  --fs-max: 4rem;
  --font-weight: 800;
  --line-height: 1;
  width: 100%;
  margin: 0;
  text-align: end;
  white-space: nowrap;
}
[id=figures] figure figcaption {
  text-align: end;
  --fs: .85rem;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  max-inline-size: 8rem;
}
[id=figures] figure:nth-of-type(1) {
  width: 8em;
}
[id=figures] figure:nth-of-type(2) {
  width: 15em;
}
[id=figures] figure:nth-of-type(3) {
  width: 9em;
}









/* ------------------------------------------------
  Footer 
*/
[id=footer] {
  background: var(--color-warm-gray-light);
  color: var(--color-text);
  padding: 1.5rem;
  text-align: center;
}
[id=footer] ul {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25em 1em;
  margin-inline: auto;
}
[id="footer"] button {
  appearance: none;
  border:0;
  background: none;
}
[id="footer"] button:hover {
    text-decoration: underline;
}
[id=footer] :is(a,button) {
  white-space: nowrap;
  --fs-min: .85rem;
  --fs-max: 1rem;
}
[id=footer] a:not(:hover) {
  text-decoration: none;
}
[id=footer] p {
  margin-inline: auto;
  --font-weight: 600;
  --fs-min: .85rem;
  --fs-max: 1rem;
}
[id=footer] .logo {
  display: inline-block;
  -webkit-margin-after: 1.5rem;
          margin-block-end: 1.5rem;
}
[id=footer] .logo svg {
  width: 80%;
}







/* ------------------------------------------------
Embed 
*/
.embed {
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  contain: layout;
}
.embed iframe,
.embed video,
.embed img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: inherit;
     object-fit: inherit;
  -o-object-position: inherit;
     object-position: inherit;
}




/* ------------------------------------------------
Accesibility 
*/
.a11y-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}





/* --------------------------------------------------------------------------------------------------------
  
  UNUSED

*/
/* --- Top (not used) --- 
[id=top] {
  grid-column: tiny/wide;
}
[id=top] .embed {
  aspect-ratio: 1280/540;
  width: 80%;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  -webkit-margin-after: -6rem;
          margin-block-end: -6rem;
}
[id=top] .embed::before {
  position: absolute;
  content: "";
  width: 60%;
  aspect-ratio: 4/3;
  background-color: var(--color-soft-blue-light);
  inset-inline-start: -10%;
  inset-block-end: -25%;
}
[id=top] .embed::after {
  position: absolute;
  content: "";
  width: 40%;
  aspect-ratio: 3/4;
  background-color: var(--color-sage-green);
  inset-inline-end: 25%;
  inset-block-end: -60%;
  z-index: -1;
}
*/





/* --- Header alt(not used) --- 
[id=header] {
  grid-column: content/tiny;
  padding-inline: 1.5rem;
}
[id=header] h1 {
  --line-height: 1;
  --font-weight: 800;
  white-space: nowrap;
  -webkit-margin-after: 1em;
          margin-block-end: 1em;
  color: var(--color-red);
}
[id=header] h1 span {
  display: block;
  --font-weight: 275;
}
[id=header] p.standfirst {
  --fs-min: 1.2rem;
  --fs-max: 1.4rem;
  --fs: 120%;
  --line-height: 1.20;
  --font-weight: 500;
  -webkit-margin-after: 1.5em;
          margin-block-end: 1.5em;
}
[id=header-old] .content {
  max-inline-size: 31rem;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}
*/





/* --- 5 words (not used) --- 
[id=five-words] {
  grid-column: narrow;
  background-color: var(--color-brand);
  color: var(--color-white);
  padding: 3rem;
}
[id=five-words] h2 {
  --fs-min: 1rem;
  --fs-max: 1.2rem;
  --font-weight: 400;
}
[id=five-words] h2 span {
  --font-weight: 800;
}
[id=five-words] p {
  --fs-min: 2rem;
  --fs-max: 4rem;
  --font-weight: 800;
  text-transform: uppercase;
}
*/





/* --- Our Promise (not used) --- 
[id=our-promise] {
  grid-column: content;
}
@media (min-width: 50rem) {
  [id=our-promise] {
    grid-column: narrow;
  }
}
[id=our-promise] .content {
  padding: 1.5rem;
  display: grid;
  gap: 0 1.5rem;
}
@media (min-width: 50rem) {
  [id=our-promise] .content {
    gap: 1.5rem;
    grid-template-columns: 40% 60%;
  }
}
[id=our-promise] h2, [id=our-promise] p {
  text-align: center;
  -webkit-margin-before: 0;
          margin-block-start: 0;
}
@media (min-width: 50rem) {
  [id=our-promise] h2, [id=our-promise] p {
    text-align: start;
  }
}
[id=our-promise] h2 {
  margin: 0;
}
[id=our-promise] ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-gap: 1.5rem;
  gap: 1.5rem;
  grid-column: 1/-1;
  flex-direction: column;
}
@media (min-width: 35rem) {
  [id=our-promise] ol {
    flex-direction: row;
  }
}
[id=our-promise] li::before {
  display: block;
  --fs-min: 2rem;
  --fs-max: 4rem;
  --font-weight: 800;
  --line-height: 2;
  color: var(--color-gray-light);
}
[id=our-promise] li:nth-of-type(1)::before {
  content: "1";
}
[id=our-promise] li:nth-of-type(2)::before {
  content: "2";
}
[id=our-promise] li:nth-of-type(3)::before {
  content: "3";
}
*/






/* ---  Beyond the Bond (not used)--- 
[id=beyond-the-bond] {
  grid-column: wide;
  padding: 3rem;
  text-align: center;
  background-color: var(--color-soft-blue-light);
}
[id=beyond-the-bond-old] h2 {
  -webkit-margin-before: 0;
          margin-block-start: 0;
  color: var(--color-brand);
}
[id=beyond-the-bond] h2 span {
  display: block;
}
[id=beyond-the-bond] p {
  margin-inline: auto;
}
[id=beyond-the-bond] .embed {
  aspect-ratio: 1280/540;
}
*/


/* --- e-Learning (not used) --- 
[id=e-learning] {
  grid-column: content;
  padding: 1.5rem;
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
  contain: paint;
}
[id=e-learning] h2 {
  text-align: center;
}
[id=e-learning] .embed {
  aspect-ratio: 9/16;
}
@media (min-width: 40rem) {
  [id=e-learning] .embed {
    aspect-ratio: 16/12;
  }
}
*/

