/* Spirit Filled High Desert Church — coming soon */

:root {
  --night: #142036;
  --mist: #f3f5f8;
  --mist-deep: #e3e7ed;
  --ink: #142036;
  --ink-soft: #37415a;
  --muted: #5a6378;
  --line: #c6cdd8;
  --silver: #c3cad4;
  --silver-light: #e6e9ee;
  --accent: #2f4a7a;
  --on-night: rgba(234, 238, 243, 0.82);
  --on-night-line: rgba(234, 238, 243, 0.2);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --content: 74rem;
  --sun: clamp(15rem, 38vw, 32rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 460 560;
  font-display: swap;
  src: url("../assets/fonts/fraunces-roman.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 460 540;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-roman.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
dl,
dd,
address {
  margin: 0;
}

address {
  font-style: normal;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, text-decoration-color 0.2s ease;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--silver-light);
}

main:focus,
.contact:focus {
  outline: none;
}

::selection {
  background: var(--silver);
  color: var(--night);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--mist);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.label,
.badge,
.brand__place,
.topbar__link,
.themes__list {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--mist);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1.1rem, env(safe-area-inset-top));
  padding-bottom: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  text-decoration: none;
}

.brand__abbr {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--on-night-line);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand__place {
  color: var(--on-night);
}

.brand:hover .brand__abbr {
  border-color: var(--silver);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--on-night-line);
}

.topbar__link:hover {
  color: var(--silver-light);
  text-decoration-color: currentColor;
}

.hero__sky {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(2rem, 6vh, 4.5rem);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--on-night-line);
  border-radius: 999px;
  color: var(--silver-light);
}

.badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--silver);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero h1 {
  max-width: 13ch;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.4vw, 6.25rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__identity {
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
  color: var(--silver);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36rem;
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
  color: var(--on-night);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--silver);
  border-radius: 2px;
  background: var(--silver);
  color: var(--night);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--silver-light);
  background: var(--silver-light);
}

.button--ghost {
  border-color: rgba(234, 238, 243, 0.5);
  background: transparent;
  color: var(--mist);
}

.button--ghost:hover {
  border-color: var(--mist);
  background: var(--mist);
  color: var(--night);
}

.horizon {
  position: relative;
  flex-shrink: 0;
  height: calc(var(--sun) / 2 + 1.5rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  border-bottom: 1px solid var(--silver);
}

.horizon::before,
.horizon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(195, 202, 212, 0.28);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.horizon::before {
  width: calc(var(--sun) * 1.45);
}

.horizon::after {
  width: calc(var(--sun) * 1.95);
  border-color: rgba(195, 202, 212, 0.14);
}

.horizon__sun {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--sun);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--silver-light), var(--silver) 70%);
  transform: translateX(-50%);
  animation: sunrise 2.2s var(--ease) 0.3s both;
}

/* Themes */

.themes {
  background: var(--mist-deep);
  border-bottom: 1px solid var(--line);
}

.themes__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0;
  padding-block: 1.35rem;
  color: var(--ink);
}

.themes__list li {
  display: inline-flex;
  align-items: center;
}

.themes__list li + li::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-inline: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact */

.contact {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

.label {
  color: var(--accent);
}

.contact__intro h2 {
  max-width: 16ch;
  margin-top: 0.8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.contact__intro > p:last-child {
  max-width: 30rem;
  margin-top: 1rem;
  text-wrap: pretty;
}

.details {
  border-top: 2px solid var(--ink);
}

.details__row {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.details dd {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.details dd > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(47, 74, 122, 0.45);
}

.details dd > a:hover,
.details__map:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.details__map {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.2rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* Footer */

.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding-top: clamp(2.75rem, 6vw, 3.75rem);
  padding-bottom: calc(clamp(2.25rem, 5vw, 3rem) + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer__name {
  color: var(--mist);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 520;
  line-height: 1.2;
}

.site-footer__identity {
  margin-top: 0.4rem;
  color: var(--silver);
  font-family: var(--serif);
  font-style: italic;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--on-night-line);
  font-size: 0.92rem;
}

/* Motion */

.reveal {
  animation: reveal 0.9s var(--ease) both;
  animation-delay: calc(var(--delay, 0) * 90ms + 80ms);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sunrise {
  from { transform: translate(-50%, 60%); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Layout */

@media (min-width: 40rem) and (min-aspect-ratio: 5 / 4) {
  :root {
    --sun: min(clamp(15rem, 38vw, 32rem), 44svh);
  }

  .hero {
    min-height: 100svh;
  }

  .horizon {
    margin-top: clamp(1.25rem, 3vh, 2.5rem);
  }
}

@media (min-width: 56rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
  }
}

@media (max-width: 39.99rem) {
  :root {
    --sun: min(72vw, 17rem);
  }

  .brand__place {
    display: none;
  }

  .actions {
    display: grid;
    justify-content: stretch;
    width: min(100%, 22rem);
  }

  .themes__list {
    padding-block: 1.1rem;
  }

  .themes__list li + li::before {
    margin-inline: 0.7rem;
  }

  .site-footer__meta {
    flex-direction: column;
  }
}

@media (max-width: 23rem) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .badge {
    padding-inline: 0.8rem;
    letter-spacing: 0.12em;
  }

  .button {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .badge {
    border: 1px solid CanvasText;
  }

  .horizon__sun,
  .badge__dot {
    background: CanvasText;
  }
}

@media print {
  .skip-link,
  .horizon,
  .topbar__link {
    display: none;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    animation: none !important;
  }
}
