@font-face {
  font-family: Manrope;
  src: url("/selah-v37/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Selah Storybook;
  src: url("/brand/fonts/IMFellEnglish-Regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --selah-bg: #080b0a;
  --selah-ivory: #fff4df;
  --selah-gold: #f0cb82;
  --selah-muted: #b9c7b9;
  --selah-moss: #a2c695;
  --selah-sans: Manrope, ui-sans-serif, system-ui, sans-serif;
  --selah-serif: "Selah Storybook", Georgia, serif;
  --selah-settle: cubic-bezier(.22, 1, .36, 1);
  --invite-line: #b4c3b332;
  background: var(--selah-bg);
  color: var(--selah-ivory);
  font: 400 1rem/1.55 var(--selah-sans);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
:is(a, button, summary, input):focus-visible { outline: 2px solid var(--selah-gold); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 6; top: 10px; left: 12px; padding: 10px 16px; background: #162019; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Same masthead geometry, colors and responsive breakpoints as Home. */
.selah-width {
  --selah-gutter: clamp(32px, 6vw, 88px);
  width: min(1160px, calc(100% - var(--selah-gutter) * 2));
  margin-inline: auto;
}
.selah-masthead { position: sticky; z-index: 5; top: 0; background: #0d1110; }
.selah-masthead-row {
  position: relative;
  display: grid;
  min-height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
}
.selah-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: start;
  gap: 8px;
  color: var(--selah-ivory);
  white-space: nowrap;
  font: 800 1.17rem/1 var(--selah-sans);
  letter-spacing: -.03em;
}
.selah-brand-mark { display: grid; flex: none; width: 38px; height: 38px; place-items: center; }
.selah-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.selah-brand-mc { color: #c4d3b6; }
.selah-masthead-nav { display: flex; align-items: center; gap: clamp(6px, 1.1vw, 16px); }
.selah-masthead-nav a, .selah-mobile-nav nav a {
  display: flex;
  min-height: 37px;
  align-items: center;
  padding: 0 clamp(9px, .9vw, 13px);
  border-radius: 7px;
  color: #b1bcb3;
  font-size: .88rem;
  font-weight: 675;
  white-space: nowrap;
  transition: background-color .16s, color .16s;
}
.selah-masthead :is(nav a):hover { color: var(--selah-ivory); background: #18251e; }
.selah-masthead .invite-settings-link, .selah-masthead:has([data-profile-state="signed-in"]) .invite-signup-link { display: none; }
.selah-masthead:has([data-profile-state="signed-in"]) .invite-settings-link { display: flex; }
.selah-mobile-nav { display: none; }
.selah-masthead-server {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border-block: 1px solid #b8c8b319;
  background: #0b100e;
}
.selah-masthead-server a {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 9px;
  padding-inline: 11px;
  color: var(--selah-muted);
  font-size: .77rem;
}
.selah-masthead-server svg { color: var(--selah-moss); }
.selah-masthead-server strong { color: #d9e0d2; font-weight: 700; }
.selah-masthead-join-label { border-left: 1px solid #b8c8b33a; padding-left: 9px; }
.selah-masthead-server a:hover, .selah-masthead-server a:hover strong { color: var(--selah-gold); }

#invite-main { position: relative; display: grid; flex: 1; align-items: center; isolation: isolate; }
#invite-main:focus { outline: 0; }
.invite-surface { position: relative; z-index: 1; padding-block: clamp(3rem, 9vh, 6.7rem); }
.share-page .invite-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(2rem, 8.5vw, 9rem);
}
.invite-page .invite-surface { display: grid; width: min(38rem, calc(100% - 2rem)); gap: 1.75rem; }
.invite-landscape { display: none; }
.share-page .invite-landscape {
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}
.invite-landscape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 53% 46%; filter: brightness(1.16); }
.invite-landscape::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #080b0a 0%, #080b0a16 22%, #080b0a34 65%, #080b0a 99%),
    linear-gradient(90deg, #080b0ae6 0%, #080b0a9c 31%, #080b0a13 63%, #080b0a40 100%);
  content: "";
}
.selah-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
}
h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--selah-ivory);
  font: 400 clamp(3.35rem, 6vw, 5.6rem)/.96 var(--selah-serif);
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 3px 24px #020503b0;
}
.intro p { max-width: 43ch; margin: 1rem 0 0; color: var(--selah-muted); font-size: 1rem; line-height: 1.6; }
.detail {
  min-width: 0;
  padding: clamp(1.12rem, 2.15vw, 1.7rem);
  border: 1px solid var(--invite-line);
  border-radius: 16px;
  background: #151a18;
  box-shadow: inset 0 1px #fff8dc08, 0 15px 50px #0004;
}
.detail:empty { display: none; }
.share-control > label { display: block; margin-bottom: .55rem; color: #e2e8dc; font-size: .82rem; font-weight: 760; }
.share-row, .actions { display: flex; gap: .47rem; }
.link-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: .4rem;
  padding: .25rem .25rem .25rem .65rem;
  border: 1px solid var(--invite-line);
  border-radius: 9px;
  background: #0d1210;
}
.link-field:focus-within { border-color: #e9cb8a82; }
.link-field > svg, button svg { width: 16px; height: 16px; flex: none; }
.link-field > svg { color: #a2bca3; }
.link-field input {
  width: 0;
  min-height: 2.45rem;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e3eadf;
  font-size: .8rem;
  font-weight: 670;
  text-overflow: ellipsis;
}
.link-field input:focus-visible { outline-offset: 1px; text-overflow: clip; }
button, .primary, .secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding: .54rem .7rem;
  border: 1px solid #b8c8b32e;
  border-radius: 7px;
  background: #1d2821;
  color: #e6eadf;
  font-size: .8rem;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s;
}
.primary, .copy-button { border-color: #f0dcaf; background: #ecd8af; color: #241d10; }
.primary:hover, .copy-button:hover { background: #f6e6c2; }
.copy-button[data-copied] { border-color: #b3caa9; background: #b9d1b4; color: #1b2c1f; }
.secondary:hover, .system-share:hover { background: #293a2f; }
.system-share { min-width: 45px; padding-inline: 0; color: #eddaaf; }
#share-status { min-height: 1.16rem; margin: .4rem 0 0; color: #c1d7b6; font-size: .74rem; }
.actions { flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.share-page .actions { gap: .3rem .95rem; margin-top: .33rem; padding-top: .53rem; border-top: 1px solid var(--invite-line); }
.share-page .actions a { min-height: 42px; padding-inline: 0; border: 0; background: none; color: #c5d2c2; }
.share-page .actions .primary { color: #f6dfaf; }
.share-page .actions a:hover { color: var(--selah-ivory); text-decoration: underline; text-underline-offset: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 0; margin: .28rem 0 .8rem; padding-block: .73rem; border-block: 1px solid var(--invite-line); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .27rem; min-width: 0; padding-inline: .65rem; }
.stats > div + div { border-left: 1px solid var(--invite-line); }
.stats > div:first-child { padding-inline-start: 0; }
.stats dt { color: var(--selah-muted); font-size: .72rem; font-weight: 640; line-height: 1.25; }
.stats dd { margin: 0; color: var(--selah-ivory); font-size: 1.18rem; font-weight: 790; line-height: 1.13; }
.milestones { color: var(--selah-muted); font-size: .75rem; }
.milestones p { margin: .38rem 0 0; }
.milestones strong { color: #eedcb6; }
.milestones p span { margin-inline: .18rem; }
progress { display: block; width: 100%; height: .36rem; margin-block: .3rem .55rem; accent-color: #e2bf7b; }
footer.selah-width {
  display: flex;
  min-height: 4rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--invite-line);
  color: var(--selah-muted);
  font-size: .79rem;
}
footer a:hover { color: var(--selah-gold); }

@media (max-width: 1020px) { .selah-width { --selah-gutter: 32px; } }
@media (max-width: 860px) {
  .selah-masthead-row { min-height: 64px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .selah-masthead-nav { display: none; }
  .selah-mobile-nav { display: block; justify-self: end; }
  .selah-mobile-nav summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #aac39935;
    border-radius: 7px;
    background: #152019;
    cursor: pointer;
    list-style: none;
  }
  .selah-mobile-nav summary::-webkit-details-marker { display: none; }
  .selah-mobile-nav:not([open]) summary svg:last-child, .selah-mobile-nav[open] summary svg:first-child { display: none; }
  .selah-mobile-nav nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 5px);
    right: 0;
    display: grid;
    width: min(255px, 100%);
    gap: 3px;
    padding: 8px;
    border: 1px solid #adbb935e;
    border-radius: 12px;
    background: #152017;
    box-shadow: 0 18px 35px #000a;
  }
  .selah-mobile-nav nav a { min-height: 44px; }
}
@media (max-width: 768px) {
  .selah-width { --selah-gutter: 22px; }
  .share-page #invite-main { align-items: start; }
  .share-page .invite-surface { width: min(34rem, calc(100% - var(--selah-gutter) * 2)); grid-template-columns: minmax(0, 1fr); gap: 1.55rem; padding-block: clamp(3rem, 8svh, 5rem) 3.5rem; }
  .invite-landscape img { object-position: 62% 52%; }
  .invite-landscape::after {
    background: linear-gradient(180deg, #080b0a 0%, #080b0a50 36%, #080b0a9e 64%, #080b0a 100%),
      linear-gradient(90deg, #080b0acb, #080b0a12);
  }
  h1 { font-size: clamp(2.65rem, 10vw, 4.75rem); }
  .intro p { max-width: 40ch; margin-top: .75rem; font-size: .91rem; }
}
@media (max-width: 420px) {
  .selah-brand { font-size: 1.15rem; }
  .selah-brand-mark { width: 36px; height: 36px; }
  .selah-masthead-server { min-height: 33px; }
  .selah-masthead-server a { min-height: 31px; gap: 6px; padding-inline: 8px; }
  .selah-masthead-join-label { padding-left: 6px; }
  .link-field > svg { display: none; }
  .link-field { padding-inline-start: .53rem; }
  .link-field input { font-size: .76rem; }
  .copy-button { padding-inline: .46rem; }
}
@media (max-width: 370px) {
  .selah-width { --selah-gutter: 17px; }
  .detail { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce), print {
  .selah-atmosphere { display: none; }
  button, a { transition: none; }
}
