/* Splash / welcome page styles */
@font-face {
  font-family: stMarthaFont;
  src: url('fonts/GillSansLight.otf');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Santini';
  src: url('fonts/Santini-Regular.otf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Santini';
  src: url('fonts/Santini-Bold.otf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --splash-bg: url('../images/splash-background.png');
  --splash-overlay: rgb(7 24 46 / 29%);
  --splash-text: #f8f4ec;
  --splash-accent: #cda642;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', 'Gill Sans Std', stMarthaFont, sans-serif;
  color: var(--splash-text);
  background-color: #1f3d63;
}

body {
  display: flex;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 0.35rem 0.75rem;
  z-index: 10;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.splash {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background-image: var(--splash-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.splash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--splash-overlay);
  pointer-events: none;
}

.splash__content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: min(388px, 100%);
  padding: 1.25rem;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  transform: translateY(-5vh);
}

.splash__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.splash h1 {
  font-family: 'Santini', 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
}

.splash__subhead {
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.splash__media {
  position: relative;
  width: 100%;
  aspect-ratio: 376 / 492.666;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.splash__flyer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.splash__close {
  position: absolute;
  top: 0.65rem;
  right: 1.65rem;
  width: 2.25rem;
  height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.75rem;
  line-height: 0;
  color: #344db0;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  outline: none;
  z-index: 3;

  transition: background 0.2s ease, transform 0.2s ease;
  transition-property: background, transform;
  transition-duration: 0.2s, 0.2s;
  transition-timing-function: ease, ease;
  transition-delay: 0s, 0s;
  transition-behavior: normal, normal;
}

.splash__close:hover,
.splash__close:focus-visible {
  color: #ffffff;
  transform: scale(1.1);
}

.splash__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: var(--splash-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: rgba(0, 0, 0, 0.15);
}

.splash__cta:hover,
.splash__cta:focus-visible {
  background: var(--splash-accent);
  border-color: var(--splash-accent);
  color: #0e1e2f;
}

.splash__cta--primary {
  width: 100%;
  font-weight: 600;
  background: var(--splash-accent);
  border-color: transparent;
  color: #0b1524;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.splash__cta--primary:hover,
.splash__cta--primary:focus-visible {
  background: #e4bd56;
  color: #050a12;
}

.noscript-message {
  text-align: center;
  margin: 1rem;
  color: var(--splash-text);
}

@media (max-width: 600px) {
  .splash__content {
    border-radius: 12px;
    padding: 1.1rem;
  }

  .splash__eyebrow {
    letter-spacing: 0.3em;
  }

  .splash__cta {
    width: 100%;
  }
}
