:root {
  --home-track: 1220px;
}

body.homepage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(75, 46, 131, 0.1), transparent 22%),
    linear-gradient(180deg, #fcfaf6 0%, #f6f0e6 100%);
  color: #1f1b18;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.site-masthead {
  
  display: grid;
  gap: 22px;
  width: min(100%, var(--home-track));
  max-width: var(--home-track);
  padding: 92px 0 30px;
  justify-items: stretch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  z-index: 1;
}

.site-masthead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

body:not(.homepage) .site-masthead {
  position: relative;
  margin-bottom: 0;
  gap: 0;
  padding-bottom: 0;
}

body:not(.homepage) .site-masthead::before {
  display: none;
}

body:not(.homepage) .maincontent {
  margin-top: 0;
  padding-top: 18px;
}

body:not(.homepage) .sidebar {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 34px;
}

body:not(.homepage) .masthead-bar::before {
  display: none;
}

.masthead-bar {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

.masthead-bar::before {
  content: "";
  position: absolute;
  top: -92px;
  bottom: -22px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: rgba(255, 255, 255, 0.42);
}

.masthead-brand {
  display: contents;
  color: #4b2e83 !important;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
  overflow: visible;
}

.masthead-brand img {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-text strong {
  font-size: clamp(3.1rem, 4.9vw, 4.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.95;
  white-space: nowrap;
}

.brand-text span {
  color: #665f58;
  font-size: clamp(1.38rem, 2.2vw, 1.82rem);
  font-weight: 600;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: min(calc(100vw - 40px), 980px);
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 251, 247, 0.82);
  border: 1px solid rgba(75, 46, 131, 0.14);
  border-radius: 999px;
  box-shadow:
    0 20px 44px rgba(45, 28, 75, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: rgba(31, 27, 24, 0.88) !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: #4b2e83 !important;
  border-color: rgba(75, 46, 131, 0.08);
  background: linear-gradient(135deg, rgba(75, 46, 131, 0.12), rgba(183, 165, 122, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.masthead-copy {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.masthead-copy > * {
  width: 100%;
  max-width: none;
  margin: 0;
}

.masthead-copy h3,
.masthead-copy p,
.masthead-copy .masthead-lead {
  max-width: none;
}

.masthead-copy .eyebrow {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.masthead-copy h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  line-height: 1.12;
}

.masthead-copy p {
  font-size: 1.18rem;
  line-height: 1.65;
}

.masthead-copy .masthead-lead {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.72;
}

.masthead-copy .masthead-subline {
  font-size: 1.14rem;
}

.frontpage {
  width: 100%;
  max-width: none;
  margin: 36px auto 58px;
}

.homepage .pagecontent {
  width: min(100%, var(--home-track));
  max-width: var(--home-track);
  margin: 0 auto;
}

.homepage .maincontent {
  width: min(100%, var(--home-track));
  max-width: var(--home-track);
  margin: 0 auto;
}

.home-band {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 34px 0;
}

.home-band--canvas {
  --band-background: rgba(255, 255, 255, 0.3);
}

.home-band--gold {
  --band-background: rgba(183, 165, 122, 0.11);
}

.home-band--lavender {
  --band-background: rgba(75, 46, 131, 0.06);
}

.home-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: var(--band-background);
}

.frontpage.home-band {
  padding-top: 26px;
  padding-bottom: 30px;
}

.home-divider {
  display: none;
}

.home-carousel {
  width: 100%;
  margin: 0;
}

.home-carousel-shell {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 0;
  margin: 0;
}

.home-carousel-frame,
.home-carousel-frame:visited {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.home-carousel-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 0;
}

.home-carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 27, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 27, 24, 0.06);
}

.home-carousel-control img {
  width: 18px;
  height: 18px;
}

.home-carousel-meta {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: #665f58;
}

.home-carousel-kicker {
  display: block;
  margin: 0;
  color: #8a7f74;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-carousel-title {
  display: block;
  color: #2b2723;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-carousel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.94rem;
}

.home-carousel-links a {
  color: #5b544d;
  text-decoration: none;
}

.home-carousel-links a:hover,
.home-carousel-links a:focus-visible {
  color: #1f1b18;
}

.home-carousel-links span {
  color: rgba(31, 27, 24, 0.22);
}

.home-footer {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 22px 0 22px;
  color: #5d544d;
  font-size: 0.96rem;
}

.home-footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  background: rgba(75, 46, 131, 0.06);
}

.home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  width: min(100%, var(--home-track));
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(75, 46, 131, 0.14);
}

.home-footer-links,
.home-footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-footer a {
  color: #4b2e83 !important;
  text-decoration: none;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  text-decoration: underline;
}

.home-footer span {
  color: rgba(31, 27, 24, 0.28);
}

@media (max-width: 980px) {
  .site-nav {
    top: 12px;
    width: min(calc(100vw - 24px), 760px);
    border-radius: 28px;
  }

  .site-masthead {
    padding: 110px 0 24px;
  }

  .masthead-bar::before {
    top: -110px;
  }

  .frontpage,
  .home-carousel {
    width: 100%;
  }

  .home-band {
    padding: 26px 0;
  }
}

@media (max-width: 600px) {
  .masthead-bar {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .masthead-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

  .masthead-brand img {
    width: 100%;
    max-width: 100%;
  }

  .brand-mark {
    width: 132px;
    height: 132px;
    padding: 0;
    border-radius: 0;
  }

  .brand-text strong {
    white-space: normal;
    text-align: center;
  }

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

  .site-nav {
    gap: 8px;
    left: 8px;
    right: 8px;
    transform: none;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 10px;
  }

  .site-nav-link {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .home-footer {
    padding: 18px 0 20px;
  }

  .home-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
