/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4
 * Hallmark · macrostructure: Photographic · theme: Ivory & Gold · nav: N1 · footer: Ft2
 * church public home — brand-first full-bleed sanctuary hero
 */

@import url("bright-tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.hm-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- nav N1 ---------- */

.hm-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: var(--shell);
  width: 100%;
  margin-inline: auto;
  padding: max(var(--space-sm), env(safe-area-inset-top)) var(--gutter) 0;
}

.hm-bar__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-ivory-on-dark);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hm-bar__dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-gold);
  transform: rotate(45deg);
  flex: none;
}

.hm-bar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-xs);
}

.hm-bar__link {
  color: var(--color-ivory-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur-short) var(--ease-out);
}

.hm-bar__link:hover {
  color: var(--color-ivory-on-dark);
}

.hm-bar__link:focus-visible,
.hm-bar__mark:focus-visible,
.hm-cta:focus-visible,
.hm-path:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---------- hero (Photographic, brand-first) ---------- */

.hm-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--color-ivory-on-dark);
  isolation: isolate;
  overflow: clip;
}

.hm-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hm- ken 18s var(--ease-in-out) infinite alternate;
}

@keyframes hm-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(0, -1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero__media img {
    animation: none;
    transform: none;
  }
}

.hm-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(22% 0.03 165 / 0.55) 0%, oklch(22% 0.03 165 / 0.28) 38%, oklch(22% 0.03 165 / 0.78) 100%),
    radial-gradient(60% 50% at 80% 10%, oklch(70% 0.095 80 / 0.18), transparent 70%);
}

.hm-hero__inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 7.5rem var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.hm-brand {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  min-width: 0;
  opacity: 0;
  transform: translateY(1rem);
  animation: hm-rise 900ms var(--ease-out) 120ms forwards;
}

.hm-headline {
  margin: 0 0 var(--space-xs);
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--color-ivory-on-dark);
  opacity: 0;
  transform: translateY(0.85rem);
  animation: hm-rise 900ms var(--ease-out) 260ms forwards;
}

.hm-lead {
  margin: 0 0 var(--space-md);
  max-width: 28ch;
  color: var(--color-ivory-muted);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(0.85rem);
  animation: hm-rise 900ms var(--ease-out) 400ms forwards;
}

.hm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(0.85rem);
  animation: hm-rise 900ms var(--ease-out) 520ms forwards;
}

@keyframes hm-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-press);
}

.hm-cta:active {
  transform: translateY(1px);
}

.hm-cta--solid {
  background: var(--color-gold);
  color: var(--color-forest-2);
  box-shadow: 0 12px 28px -18px oklch(22% 0.03 165 / 0.7);
}

.hm-cta--solid:hover {
  background: var(--color-gold-soft);
}

.hm-cta--ghost {
  border: 1px solid oklch(96% 0.015 85 / 0.45);
  color: var(--color-ivory-on-dark);
  background: oklch(22% 0.03 165 / 0.2);
}

.hm-cta--ghost:hover {
  border-color: var(--color-gold);
  background: oklch(70% 0.095 80 / 0.16);
}

/* ---------- below: invitation ---------- */

.hm-shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hm-invite {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.hm-invite__rule {
  width: min(8rem, 30vw);
  height: 1px;
  margin: 0 0 var(--space-lg);
  border: 0;
  background: linear-gradient(to right, var(--color-gold-deep), transparent);
}

.hm-invite__title {
  margin: 0 0 var(--space-sm);
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--color-forest);
}

.hm-invite__body {
  margin: 0;
  max-width: 36ch;
  color: var(--color-ink-2);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- pathways (typographic, not cards) ---------- */

.hm-paths {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.hm-paths__label {
  margin: 0 0 var(--space-md);
  color: var(--color-ink-2);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hm-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: end;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-rule);
  text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out);
}

.hm-path:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.hm-path:hover {
  background: color-mix(in oklab, var(--color-gold-soft) 35%, transparent);
}

.hm-path__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-ink);
}

.hm-path__desc {
  margin: var(--space-2xs) 0 0;
  max-width: 34ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.55;
}

.hm-path__go {
  color: var(--color-gold-deep);
  font-size: var(--text-sm);
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(0);
  transition: transform var(--dur-short) var(--ease-out);
}

.hm-path:hover .hm-path__go {
  transform: translateX(0.35rem);
}

/* ---------- footer Ft2 ---------- */

.hm-foot {
  padding: var(--space-xl) var(--gutter) max(var(--space-xl), env(safe-area-inset-bottom));
  background: var(--color-forest);
  color: var(--color-ivory-muted);
}

.hm-foot__inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.hm-foot__brand {
  margin: 0;
  color: var(--color-ivory-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-foot__note {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hm-bar__nav {
    gap: var(--space-2xs) var(--space-xs);
  }

  .hm-path {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }

  .hm-path__go {
    justify-self: start;
  }

  .hm-cta {
    width: 100%;
  }
}
