html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

body > .container {
  flex: 1 0 auto;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem #258cfb;
}

.footer {
  margin-top: auto;
  width: 100%;
  padding: 1.25rem 0;
  background: var(--bs-tertiary-bg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 193, 7, 0.22), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(13, 202, 240, 0.16), transparent 38%),
    linear-gradient(135deg, var(--bs-tertiary-bg), var(--bs-body-bg));
  box-shadow: 0 1.5rem 4rem rgba(11, 47, 58, 0.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(115deg, transparent 25%, black);
  opacity: 0.35;
}

.home-hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  box-shadow: 0 1.25rem 3rem rgba(7, 30, 38, 0.28);
}

.home-feature {
  border-color: var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-feature:hover {
  transform: translateY(-3px);
  border-color: var(--bs-primary-border-subtle);
}

.home-feature-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-gallery-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-tertiary-bg);
}

.home-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-gallery-card:hover img {
  transform: scale(1.025);
}

.home-gallery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem 1.15rem;
}

.home-gallery-card figcaption span {
  color: var(--bs-secondary-color);
  font-size: 0.925rem;
}

.home-privacy {
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background:
    linear-gradient(120deg, var(--bs-primary-bg-subtle), var(--bs-tertiary-bg) 60%);
}

@media (prefers-reduced-motion: reduce) {
  .home-feature,
  .home-gallery-card img {
    transition: none;
  }

  .home-feature:hover {
    transform: none;
  }

  .home-gallery-card:hover img {
    transform: none;
  }
}

.mod-card {
  overflow: hidden;
}

.mod-logo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bs-secondary-bg);
}

.mod-logo-large {
  width: 112px;
  height: 112px;
}

.mod-logo-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
}

.min-w-0 {
  min-width: 0;
}

.preserve-lines {
  white-space: pre-line;
}
