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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Montserrat, system-ui, "Segoe UI", sans-serif;
  color: #faf8f5;
  background-color: #5a6d7a;
  position: relative;
}

.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bg-photo--hq {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bg-photo--hq.is-ready {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
      165deg,
      rgba(8, 28, 48, 0.18) 0%,
      rgba(12, 40, 64, 0.1) 42%,
      rgba(4, 14, 28, 0.22) 100%
    ),
    radial-gradient(
      ellipse 85% 65% at 50% 38%,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.22) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-shell--center {
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-header {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  text-align: center;
}

.site-header--compact {
  padding-top: 1.5rem;
}

.brand {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.45), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  opacity: 0.92;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #faf8f5;
  text-decoration: none;
  border: 1px solid rgba(250, 248, 245, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 480px) {
  .site-nav__link {
    font-size: 0.875rem;
    padding: 0.5625rem 1.125rem;
  }
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(250, 248, 245, 0.55);
}

.site-nav__link--active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(250, 248, 245, 0.65);
  font-weight: 500;
}

.page-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  text-align: left;
  flex: 1;
}

.page-content__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.prose {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(250, 248, 245, 0.92);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.prose h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose ol li {
  margin-bottom: 0.625rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(250, 248, 245, 0.2);
  margin: 1.5rem 0;
}

.prose-meta {
  opacity: 0.85;
}

.prose-callout {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid rgba(250, 248, 245, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.prose-callout__label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.prose-link {
  color: #faf8f5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-link:hover {
  opacity: 0.9;
}

.prose-placeholder {
  color: rgba(250, 248, 245, 0.65);
  font-style: italic;
}

.home-about {
  width: 100%;
  max-width: 960px;
  margin: 2.25rem auto 0;
  text-align: left;
}

.home-about p {
  margin-bottom: 1rem;
}

.home-about p:last-child {
  margin-bottom: 0;
}

.page-shell--center .home-main {
  width: 100%;
  max-width: 960px;
}

.home-main {
  animation: fadeUp 1.2s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
