/* American Ethnic Ministries splash page
   Palette drawn from the logo: maroon (American), gold (ethnic), olive (Ministries) */

:root {
  --maroon: #570103;
  --gold: #be9727;
  --olive: #466415;

  --sky-top: #eef0e2;
  --sky-low: #fbfaf4;
  --ink: #2b2418;
  --muted: #5f5a47;
  --butte-far: #d3d6bd;
  --butte-near: #a9b088;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* The logo's maroon needs a light ground, so the page stays light */
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Main block */
.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 9rem;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Logo stands in for the page heading */
.splash__brand {
  margin: 0;
  line-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.splash__logo {
  display: block;
  width: clamp(280px, 82vw, 720px);
  max-width: 100%;
  height: auto;
}

.splash__place {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--muted);
  margin: 1.75rem 0 0;
}

/* Short gold rule separating identity from details */
.splash__place::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

.splash__status {
  margin: 1.5rem 0 0;
  max-width: 34ch;
}

/* Contact */
.contact {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.contact__email {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

.contact__email:hover { text-decoration-color: var(--maroon); }

.contact__copy {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--olive);
  background: transparent;
  border: 1.5px solid var(--olive);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.contact__copy:hover {
  background: var(--olive);
  color: #fff;
}

.contact__note {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--olive);
}

.splash__soon {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sutter Buttes horizon */
.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(110px, 22vh, 220px);
  z-index: 0;
  pointer-events: none;
}

.horizon__far  { fill: var(--butte-far); }
.horizon__near { fill: var(--butte-near); }

/* Footer sits on the near hills */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.875rem;
  color: var(--ink);
}

.footer p { margin: 0; }

/* One load sequence: hills rise, then the content settles in */
@media (prefers-reduced-motion: no-preference) {
  .horizon {
    transform: translateY(30%);
    animation: rise 1.4s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .splash {
    opacity: 0;
    animation: appear 1s ease-out 0.5s forwards;
  }
}

@keyframes rise   { to { transform: translateY(0); } }
@keyframes appear { to { opacity: 1; } }

/* Short screens (landscape phones) */
@media (max-height: 560px) {
  .splash { padding-top: 1.5rem; padding-bottom: 6rem; }
  .splash__place { margin-top: 1rem; }
}