/* Ivy Howard — Coming Soon
   Shared stylesheet. Hosted on Cloudflare Pages and loaded by Squarespace
   via Code Injection (Header). EVERYTHING is scoped under .ih-cs so this file
   is safe to load site-wide without leaking into the Squarespace theme.
   Do not add bare html/body/section rules here. */

.ih-cs {
  /* Brand tokens (midnight theme) */
  --ih-midnight: #1E1B3A;
  --ih-gold: #C9A84C;
  --ih-warm-white: #F5F0E8;
  --ih-body: rgba(245, 240, 232, 0.85);
  --ih-muted: rgba(245, 240, 232, 0.5);
  --ih-rule: rgba(245, 240, 232, 0.28);

  --ih-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --ih-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;

  width: 100%;
  max-width: 100%;
  min-height: 100svh;            /* mobile-safe viewport height */
  min-height: 100vh;             /* fallback for browsers without svh */
  margin: 0;
  padding: clamp(32px, 8vw, 96px) clamp(20px, 6vw, 64px);

  background: var(--ih-midnight);
  color: var(--ih-body);
  font-family: var(--ih-sans);
  text-align: center;
  overflow-x: hidden;            /* guard against any sub-pixel overflow */
  -webkit-font-smoothing: antialiased;
}

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

.ih-cs__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px;
}

/* Signature mark */
.ih-cs__signature {
  width: clamp(180px, 42vw, 320px);
  max-width: 100%;
  height: auto;
  display: block;
}

/* Still-point rule: hairline — gold dot — hairline */
.ih-cs__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(32px, 6vh, 56px) 0;
}

.ih-cs__rule-line {
  display: block;
  width: clamp(40px, 12vw, 56px);
  height: 1px;
  background: var(--ih-rule);
}

.ih-cs__rule-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ih-gold);
  margin: 0 6px;
}

/* Tagline */
.ih-cs__tagline {
  margin: 0;
  width: min(40ch, 100%);
  font-family: var(--ih-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 3.2vw, 26px);
  line-height: 1.55;
  color: var(--ih-gold);
  text-wrap: balance;
}

/* Body copy */
.ih-cs__body {
  margin: clamp(28px, 5vh, 44px) 0 0;
  width: min(46ch, 100%);        /* THE FIX: constrain to container, not raw 46ch */
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.7;
  color: var(--ih-body);
  text-wrap: pretty;
}

/* Status eyebrow */
.ih-cs__status {
  margin: clamp(24px, 4vh, 36px) 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ih-muted);
}

/* Footer */
.ih-cs__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: clamp(40px, 8vh, 72px);
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ih-muted);
}

.ih-cs__footer a {
  color: var(--ih-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.ih-cs__footer a:hover {
  color: var(--ih-warm-white);
}

/* Visible focus states (accessibility) */
.ih-cs a:focus-visible {
  outline: 2px solid var(--ih-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.ih-cs__footer-sep {
  opacity: 0.5;
}

/* Narrow mobile: tighten rhythm so nothing gets pushed off a short screen */
@media (max-width: 400px) {
  .ih-cs {
    padding: clamp(28px, 9vw, 40px) 20px;
    justify-content: flex-start;   /* let content flow + scroll instead of clipping */
  }
  .ih-cs__inner {
    justify-content: flex-start;
    padding-top: clamp(24px, 8vh, 56px);
  }
  .ih-cs__footer {
    flex-direction: column;
    gap: 6px;
  }
  .ih-cs__footer-sep {
    display: none;                 /* stack cleanly, drop the middot */
  }
}

@media (prefers-reduced-motion: reduce) {
  .ih-cs__footer a {
    transition: none;
  }
}
