/* ==========================================================
   First Presbyterian Church · Edenton, NC
   "Coming soon" landing page
   ========================================================== */

:root {
  --ink: #0b1424;
  --ivory: #f6f1e7;
  --ivory-soft: rgba(246, 241, 231, 0.82);
  --ivory-faint: rgba(246, 241, 231, 0.18);
  --gold: #d6b56d;
  --gold-soft: rgba(214, 181, 109, 0.55);

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

html {
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ivory); /* no background here, or it would cover the photo */
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Photo backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}

.backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
  filter: blur(2px) saturate(0.85);
  transform: scale(1.04); /* hides the soft edge the blur leaves */
}

/* Darkest on the left where the text sits; lets the steeple show on the right */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(11, 20, 36, 0.93) 0%,
      rgba(11, 20, 36, 0.84) 38%,
      rgba(11, 20, 36, 0.40) 72%,
      rgba(11, 20, 36, 0.22) 100%),
    linear-gradient(0deg,
      rgba(11, 20, 36, 0.60) 0%,
      rgba(11, 20, 36, 0) 40%);
}

/* ---------- Layout ---------- */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 4rem var(--gutter) 2.5rem;
}

.content {
  max-width: 42rem;
}

/* ---------- Heading ---------- */

.seal {
  display: block;
  width: 2.75rem;
  height: auto;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  max-width: 10em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rule {
  width: 4.5rem;
  height: 1px;
  margin: 2.25rem 0;
  border: 0;
  background: var(--gold);
}

/* ---------- Message ---------- */

.announce {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}

.invite {
  max-width: 35rem;
  margin: 0;
  color: var(--ivory-soft);
  text-wrap: pretty;
}

/* ---------- Worship time / address / phone ---------- */

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ivory-faint);
}

.details div {
  padding-right: 2.25rem;
  margin-right: 2.25rem;
  border-right: 1px solid var(--ivory-faint);
}

.details div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.details dt {
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
}

.details a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.details a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter) 1.75rem;
  color: rgba(246, 241, 231, 0.6);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.footer p {
  margin: 0;
}

/* ---------- Gentle entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .content > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .content > :nth-child(2) { animation-delay: 0.08s; }
  .content > :nth-child(3) { animation-delay: 0.16s; }
  .content > :nth-child(4) { animation-delay: 0.24s; }
  .content > :nth-child(5) { animation-delay: 0.32s; }
  .content > :nth-child(6) { animation-delay: 0.40s; }
  .content > :nth-child(7) { animation-delay: 0.48s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .backdrop img {
    object-position: 75% center;
  }

  .backdrop::after {
    background: linear-gradient(180deg,
      rgba(11, 20, 36, 0.70) 0%,
      rgba(11, 20, 36, 0.86) 50%,
      rgba(11, 20, 36, 0.94) 100%);
  }

  .page {
    align-items: flex-start;
    padding-top: 2.75rem;
    padding-bottom: 2rem;
  }

  .seal {
    width: 2.25rem;
    margin-bottom: 1.4rem;
  }

  .rule {
    margin: 1.5rem 0;
  }

  .details {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
  }

  .details dt {
    margin-bottom: 0.2rem;
  }

  .details div {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }
}
