/* Replaces Bootstrap 5: only the pieces this site uses. */

:root {
  --gray: #6c757d;
  --green: #29ba74;
  --light: rgb(235, 235, 235);
  --dark: rgb(20, 20, 20);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

p,
ol,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol,
ul {
  padding-left: 2rem;
}

strong {
  font-weight: bolder;
}

a {
  color: #0d6efd;
}

img,
svg {
  vertical-align: middle;
}

button {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  text-transform: none;
}

button:not(:disabled) {
  cursor: pointer;
}

/* Layout */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container,
.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.content {
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 992px) {
  .content {
    width: 66.66666667%;
  }
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.bg-black {
  background-color: var(--dark);
  color: var(--light);
}

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

/* Icons (inline SVG, sized like Font Awesome) */
.icon {
  display: inline-block;
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.navbar > .container-fluid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  border-bottom: 1px solid var(--gray);
  background-color: var(--dark);
  transition-duration: 1s;
}

.navbar-brand {
  padding: 0.3125rem 0;
  margin-right: 1rem;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

.navbar-toggler svg {
  width: 1.5em;
  height: 1.5em;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 0 0.5rem;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.navbar-nav a:hover,
.navbar-nav a:focus {
  color: rgba(255, 255, 255, 0.75);
}

.navbar-collapse {
  display: none;
  flex-basis: 100%;
}

.navbar-toggler[aria-expanded="true"] + .navbar-collapse {
  display: block;
}

@media (min-width: 768px) {
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse,
  .navbar-toggler[aria-expanded="true"] + .navbar-collapse {
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
  }

  .navbar-nav {
    flex-direction: row;
    margin: 0 auto 0 0;
  }

  .navbar-nav a {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* Cover photo */
.cover {
  position: relative;
  height: 100vh;
  min-height: 25rem;
  overflow: hidden;
  background-color: var(--dark);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 1.5s ease-in;
}

.cover img.scrolled {
  filter: none;
}

/* Photos between sections */
.img-div {
  display: block;
  object-fit: cover;
  height: 40vh;
  width: 100%;
  transition: filter 0.75s ease-in;
}

.img-about {
  height: 120px;
  width: 120px;
  margin: 1rem;
  border-radius: 50%;
  transition: filter 0.75s ease-in;
}

.grayscale {
  filter: grayscale(100%);
  transition-duration: 1.5s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--green);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.3rem;
}

.btn-outline {
  border-color: var(--green);
}

.btn-outline:hover,
.btn-outline:active,
.btn-outline:focus-visible {
  color: var(--light);
  background-color: var(--green);
  outline: none;
}

.btn-outline:disabled {
  color: var(--gray);
  border-color: var(--gray);
  pointer-events: none;
  opacity: 0.65;
}

.mx-2 {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.btn-group {
  display: inline-flex;
}

.btn-group > .btn + .btn {
  margin-left: -1px;
}

.btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

footer {
  margin-top: auto;
  padding: 1rem 0;
}
