@font-face {
  font-family: Montserrat;
  src: url('/assets/montserrat-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('/assets/montserrat-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Montserrat, 'Avenir Next', Arial, sans-serif;
  color: #f8fbff;
  background: #071c42;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; }
p { margin: 0; }
::selection { color: #071c42; background: #9fe5e2; }

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 2.25rem clamp(1.5rem, 5.4vw, 6.5rem) 1.65rem;
  background:
    radial-gradient(ellipse at 93% 5%, #188fa52e 0, transparent 47%),
    radial-gradient(ellipse at 0% 95%, #001f778c 0, transparent 60%),
    linear-gradient(125deg, #071a38 9%, #07244c 55%, #073747 120%);
}

.page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #001f77 8%, #188fa5 56%, #99deda 100%);
}

.masthead, footer {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  position: relative;
  width: clamp(12.5rem, 18vw, 16.5rem);
  aspect-ratio: 2.72;
  overflow: hidden;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.brand-promise {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: right;
  color: #f0f5fc;
}
.brand-promise span { color: #8dd8da; }

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(4.5rem, 8vh, 8rem);
}

.announcement { width: 100%; text-align: center; }

.eyebrow {
  font-size: .875rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #9fe5e2;
  margin-bottom: 1.75rem;
}

h1 {
  max-width: 1200px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 5.7vw, 5.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.047em;
  text-wrap: balance;
}
h1 span { color: #9fe5e2; }

.description {
  max-width: 37rem;
  margin: 2rem auto 0;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.85;
  color: #c9d7e8;
  text-wrap: pretty;
}

.invitation { margin-top: 2.5rem; }
.accent-line {
  display: block;
  width: 2rem;
  height: 1px;
  margin: 0 auto 1.3rem;
  background: #76c9cf;
}
.invitation p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
}
.invitation p span { font-size: .875rem; font-weight: 400; color: #c9d7e8; }

footer {
  padding-top: 1.35rem;
  border-top: 1px solid #b2d4ed24;
  font-size: .75rem;
  line-height: 1.7;
  color: #aabed2;
}
footer p:first-child { font-size: .875rem; font-weight: 600; color: #d1dfed; }

@media (min-width: 1800px) {
  main { padding-block: 8rem; }
}

@media (max-width: 640px) {
  .page { padding: 1.5rem 1.5rem 1.3rem; }
  .masthead { align-items: center; gap: 1rem; }
  .brand { width: 10.5rem; }
  .brand-promise { font-size: .75rem; line-height: 1.65; }
  main { padding-block: 4.25rem 4rem; }
  h1 { font-size: clamp(2.15rem, 8.2vw, 3.25rem); letter-spacing: -.045em; }
  .eyebrow { font-size: .8125rem; margin-bottom: 1.35rem; letter-spacing: .19em; }
  .description { max-width: 27rem; margin-top: 1.6rem; line-height: 1.8; }
  .invitation { margin-top: 2rem; }
  footer { align-items: flex-start; gap: .5rem; flex-direction: column; }
}

@media (max-width: 360px) {
  .masthead { align-items: flex-start; flex-direction: column; }
  .brand-promise { text-align: left; margin-left: .6rem; }
  .brand-promise br { display: none; }
  .brand-promise span::before { content: ' '; }
}

@media (prefers-reduced-motion: no-preference) {
  .announcement { animation: arrive .7s ease-out both; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
