/* Minimal site core replacing the Bootstrap payload on Playfolio pages. */

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

html {
  min-height: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text, #171717);
  background: var(--color-bg, #f7f4ec);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

main {
  display: block;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.h-100 {
  height: 100% !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.align-items-center {
  align-items: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.mt-auto {
  margin-top: auto !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.px-5 {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
}

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

.text-muted {
  color: var(--color-text-secondary, #6d6a61) !important;
}

.container {
  width: min(100% - 2rem, 1140px);
  margin-right: auto;
  margin-left: auto;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

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

.navbar-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-link {
  display: block;
  padding: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-text, #171717);
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--pf-line, rgba(23, 23, 23, 0.16));
  border-radius: 10px;
  background: transparent;
  color: inherit;
}

.navbar-toggler:focus-visible {
  outline: 2px solid var(--pf-accent-3, #40b898);
  outline-offset: 3px;
}

.navbar-toggler-icon {
  position: relative;
  display: block;
  width: 1.55rem;
  height: 1.1rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
}

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.24s ease;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}

.h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  content: "";
  display: block;
}

.ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9::before {
  padding-top: 56.25%;
}

@media (min-width: 992px) {
  .flex-lg-row {
    flex-direction: row !important;
  }

  .mb-lg-0 {
    margin-bottom: 0 !important;
  }

  .text-lg-start {
    text-align: left !important;
  }

  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, 1140px);
  }

  .px-5 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}
