@font-face {
  font-family: "Hintown";
  src: url('../fonts/Hintown.otf') format('opentype');
}

@font-face {
  font-family: "Shree";
  font-weight: normal;
  src: url('../fonts/ShreeDev.ttf');
}

@font-face {
  font-family: "Shree";
  font-weight: bold;
  src: url('../fonts/ShreeDev-Bold.ttf');
}

:root {
  --color-primary: #ffffff;
  --color-primary-opaque: #ffffffdd;
  --color-primary-shade: #eeeeee;
  --color-primary-contrast-1: #1a1a1a;
  --color-primary-contrast-1-shade: #0e0e0e;
  --color-primary-contrast-2: #999999;
  --color-secondary: #7A9DC4;
  --color-secondary-contrast: #ffffffaa;
  /* --color-secondary-contrast: #92B9E6; */
  --color-secondary-contrast-text: #ffffffaa;
  --color-secondary-shade: #122C48;
  font-size: 16px;
}

html, body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  margin: 0;
  font-family: "Shree";
  font-weight: bold;
  position: relative;
  box-sizing: border-box;
  padding: 0;
  letter-spacing: .1rem;
  word-spacing: .1rem;
  line-height: 2rem;
}

/* common elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

input:not([type=radio]), textarea {
  padding: .5rem 1rem;
  background-color: var(--color-primary-shade);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
}

input[type=submit] {
  margin-top: 2rem;
  padding: .5rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-secondary-contrast-text);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 1px 4px var(--color-secondary-shade);
  cursor: pointer;
  transition: all .2s ease-in-out;
}
input[type=submit]:hover {
  opacity: .7;
  transform: scale(1.03);
}

label {
  font-size: .8em;
}

form p {
  margin-bottom: 0;
}

form div {
  margin-bottom: 0;
}

a {
  display: block;
  text-decoration: none;
  color: var(--color-primary-contrast-2);
  transition: all .2s;
}
a:hover {
  opacity: .7;
}

p:has(a):has(:only-child) {
  transition: all .2s;
  cursor: pointer;
}
p:has(a):has(:only-child):hover {
  opacity: .7;
  transform: scale(1.03);
}
p:has(a):has(:only-child):not(.text-center) {
  width: max-content;
}
p:has(a):has(:only-child):hover a {
  opacity: 1 !important;
}

h1, h2, h3, h4 {
  font-family: "Hintown";
}

.hidden {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
}

br.sm-only {
  display: none;
}
span.lg-only {
  display: inline;
}

.flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.flex-mobile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.between {
  justify-content: space-between;
}

.around {
  justify-content: space-around;
}

.center {
  justify-content: center;
}

.middle {
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-sm {
  font-size: .8rem;
}

/* layout */
.full-page {
  min-height: 100%;
}

.full-page-important {
  min-height: 100% !important;
}

/* components */
#landing {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

#nav-btn {
  z-index: 20;
  position: fixed;
  pointer-events: all;
  cursor: default;
  border-radius: 100%;
  padding: 5px;
  padding-bottom: 6px;
  overflow: visible;
}

#nav-btn svg {
  width: 100%;
  height: 100%;
}

#nav {
  pointer-events: all;
  padding: 5rem 2rem 5rem;
  height: 100%;
  color: var(--color-primary-contrast-1);
  background: var(--color-primary);
  font-weight: bold;
  box-sizing: border-box;
  z-index: 30;
  transition: opacity .2s ease-in-out;
  background: transparent;
  font-family: "Hintown";
}

.nav-section {
  margin: 3rem 0 3rem;
  align-items: flex-start;
}
.nav-section p {
  margin: 1.5rem 0 1.5rem;
  background-color: var(--color-secondary);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 1px 4px var(--color-secondary-shade);
  transform: scale(1);
  transition: all .1s ease-in-out;
  cursor: pointer;
}
.nav-section p:hover {
  transform: scale(1.03);
}
.nav-section a {
  display: inline-block;
  padding: 5px 10px 2px;
  color: var(--color-secondary-contrast-text);
}
.nav-section a:hover {
  opacity: 1 !important;
}
.nav-section p:has(a) {
  opacity: 1 !important;
}

.logo-placeholder {
  height: 5rem;
}

#parallax {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  perspective: 200px;
}

#background {
  transform: translateY(80vh) translateX(-200px) translateZ(-250px) scale(2.3);
  object-fit: cover;
}
#background img {
  min-width: 100%;
  min-height: 100%;
}

#foreground {
  transform: translateZ(0px);
}

#background,
#foreground {
  position: absolute;
  width: 100%;
  height: 100%;
}

.section {
  padding: 6rem 3rem 6rem;
  color: var(--color-primary-contrast-1);
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  row-gap: 2rem;
}
.section > div {
  max-width: 600px;
  margin: 0 auto 0;
  width: 100%;
}
.section:has(:only-child) {
  justify-content: space-around;
}

.section div:not(.flex) p ~ .section div:not(.flex) p {
  margin-block-start: 2rem;
}

.section div:not(.flex) h1 ~ .section div:not(.flex) p {
  margin-block-start: 5rem;
}

.section div:not(.flex) p ~ .section div:not(.flex) h1 {
  margin-block-start: 5rem;
}

.section-spacer {
  background-color: transparent;
  height: 70%;
  width: 100%;
}

.section:last-child {
  padding-bottom: 8rem;
}

@media screen and (max-width: 1100px) {
  br.sm-only {
    display: block;
  }
  span.lg-only {
    display: none;
  }

  .section > div {
    max-width: 450px;
    margin: 0 auto 0 23vw;
  }
}

@media screen and (max-width: 700px) {
  .flex-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #landing {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
  }

  #parallax {
    padding-left: unset;
  }

  .section {
    padding: 6rem 2rem 6rem;
  }

  .section div {
    max-width: 600px;
    margin: 0 auto 0;
  }

  #nav {
    padding: 0;
    height: unset;
    max-height: 0;
    position: absolute;
    bottom: 5rem;
    right: 2rem;
    opacity: 0;
    transition: max-height .2s ease-in, opacity .2s ease-in-out;
  }

  #nav-btn {
    cursor: pointer;
  }

  .nav-section {
    align-items: flex-end;
  }

  #nav.open {
    opacity: 1;
    max-height: max-content;
  }
}

@media screen and (max-height: 700px) {
  :root {
    font-size: 14px;
  }

  .section {
    padding: 2rem 2rem 2rem;
    row-gap: 1rem;
  }

  #background {
    transform: translateY(30vh) translateX(-50%) translateZ(-250px) scale(1.8) !important;
  }
}

@supports (hanging-punctuation: first)
and (font: -apple-system-body)
and (-webkit-appearance: none) {
  #background {
    transform: translateY(30vh) translateX(-50%) translateZ(-250px) scale(2.2);
  }
}