/* Table of contents
 *
 * 01 – Theme Setup
 * 02 – CSS Reset
 * 03 – font-face
 * 04 – base styles
 * 05 – Header styles
 * 06 – Main styles
 * 07 – Footer styles
 */

/* roboto-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/roboto-mono-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/montserrat-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/montserrat-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* 01 – Theme Setup */
:root {
  --color-primary: #2E2D2C;
  --color-secondary: #003a66;
  --color-grey-0: hsl(0, 0%, 100%);
  --color-grey-400: hsl(0, 0%, 89%);
  --color-grey-700: hsl(60, 1%, 23%);
  --color-grey-900: hsl(0, 0%, 0%);

  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-secondary: 'Roboto Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  /* Generated via https://www.fluid-type-scale.com/ */
  --font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
  --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
  --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
  --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
  --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
  --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);

  --logo-min-height: 2.5rem;
  --logo-max-height: 3.5625rem;

  --btn-bg-color: var(--color-primary);
  --btn-text-color: var(--color-primary);
  --btn-padding-x: 2.5rem;
  --btn-padding-y: 1rem;
}

/* 02 – CSS Reset */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 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;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, 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;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* 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 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 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.
   */

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type='checkbox'],
[type='radio'] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type='number']::-webkit-inner-spin-button,
[type='number']::-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.
   */

[type='search']::-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 Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

/* 03 – font face */

/* 04 – base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-grey-0);
  color: var(--color-grey-900);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-base);
  text-align: center;
}

/* Typography */
p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary)
}

h1 {
  font-size: var(--font-size-xxl);
  font-weight: 350;
  margin-bottom: 1.5rem;
}

p {
  max-width: 60ch;
}

p:not(:last-child) {
  margin-bottom: 2rem;
}

/* Button Styling */
a.btn {
  border: none;
  background-color: var(--btn-bg-color, transparent);
  color: var(--btn-text-color, #000);
  font-family: inherit;
  text-decoration: none;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-group {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn.btn--secondary {
  border: 1px solid var(--color-secondary);
  color: #f9efe4;
  background-color: var(--color-secondary);
  transition: background-color 0.2s linear;
}

.btn.btn--secondary:hover {
  border: 1px solid #f9efe4;
  background-color: #f9efe4;
  color: var(--color-secondary);
}

.btn.btn--outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
  transition: background-color 0.2s linear;
}

.btn.btn--outline:hover {
  background-color: var(--color-grey-0);
}

.btn.btn--info {
  display: inline-flex;
  border-radius: 50%;
  padding: 0;
  width: 100px;
  height: 100px;
  font-size: var(--font-size-xl);
  font-family: var(--font-secondary);
}

/* Layout grid styling */
.wrapper {
  display: flex;
  flex-direction: column;
  width: min(100vw - calc(32px * 2), 1140px);
  margin-inline: auto;
}

.page-navbar {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.page-subtitle {
  font-weight: 350;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.page-title {
  color: var(--color-secondary);
  text-transform: uppercase;
  font-size: var(--font-size-xl);
}

/* 05 – header styles */
.site-header {
  position: absolute;
  right: 0;
  bottom: 60px;
  left: 0;
}

@media (min-width: 1200px) {
  .site-header {
    bottom: 154px;
  }
}

.primary-nav {
  background-color: transparent;
}

.primary-nav__list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav__list-item {
  list-style: none;
}

.primary-nav__list-item__link {
}

.site-header img {
  width: 320px;
  filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
}

/* 06 – Main Styles */
.site-content {
  color: var(--color-primary);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  padding-top: 120px;
}

.site-content .wrapper {
  align-items: center;
}

.site-content .wrapper > *:not(:last-child) {
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .site-content .wrapper > *:not(:last-child) {
    margin-bottom: 3.5rem;
  }
}

.background-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.background-image img {
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background-color {
  content: '';
  background: var(--color-grey-900);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: -1;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: 1.5rem;
  width: 100%;
}

.countdown-item {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-right: -0.75rem;
}

.countdown-item:nth-child(odd) {
  border-right: 1px solid var(--color-grey-0);
}

@media (min-width: 992px) {
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .countdown-item:not(:last-child) {
    border-right: 1px solid var(--color-grey-0);
  }
}

.countdown-item .countdown-item__number {
  font-family: 'space mono';
  font-size: var(--font-size-xl);
  color: var(--color-primary);
}

/* 07 – Footer Styles */
.site-footer {
  position: absolute;
  right: 0;
  bottom: -8rem;
  left: 0;
  background-color: var(--color-grey-0);
  padding-block: .75rem;
}

.footer-nav {
  align-items: center;
  gap: 2rem;
}

.footer-nav__list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav__list-item {
  list-style: none;
}

.footer-nav__list-item__link {
  color: var(--color-grey-900);
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.footer-nav__list:hover .footer-nav__list-item__link {
  opacity: 0.6;
}

.footer-nav__list:hover .footer-nav__list-item__link:hover {
  opacity: 1;
  color: var(--color-primary);
}

#cgf-logo {
  width: 8rem;
}

@media (min-width: 1200px) {
  .footer-nav {
    align-items: unset;
    gap: unset;
  }

  #cgf-logo {
    display: block;
    position: absolute;
    right: 4rem;
    bottom: 4rem;
  }

  .site-footer {
    bottom: 0;
  }
}

.c-infoIcon {
  max-width: 100px;
  display: inline-block;
}

.c-infoIcon__image {
  display: block;
  width: 100%;
  height: auto;
}

.c-infoIcon__image .st0,
.c-infoIcon__image .st1 {
  transition: all 0.5s ease-in-out;
}

.c-infoIcon:hover .c-infoIcon__image .st0 {
  fill: #f9efe4;
}

.c-infoIcon:hover .c-infoIcon__image .st1 {
  stroke: #f9efe4;
}

.c-instagramIcon {
  max-width: 100px;
  display: inline-block;
}

.c-instagramIcon svg {
  display: block;
  width: 100%;
  height: auto;
}

.c-instagramIcon svg {
  fill: var(--color-secondary);
  transition: all 0.5s ease-in-out;
}

.c-instagramIcon:hover svg {
  fill: #f9efe4;
}