/* States of Midwifery — coming soon
   Palette: clean solid plum with gold quilt-star accents. Fonts: Fraunces + Nunito Sans. */
:root {
  --plum-800: #3E1D3A;
  --cream: #FBF4EA;
  --gold: #C99A45;
  --gold-soft: #E9CD8F;
  --lede: #F3E6DA;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--plum-800);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

main {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: var(--plum-800);
  padding:
    max(3rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(3rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  margin-inline: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem;
  color: var(--gold-soft);
  border: 0.1rem dashed color-mix(in srgb, var(--gold-soft) 70%, transparent);
}

.logo {
  width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.lede {
  margin: 0;
  max-width: 28ch;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--lede);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1.25rem;
  color: var(--gold-soft);
}

.qdiv-line {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.qdiv-star {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.coming {
  margin: 0;
  max-width: 28ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--lede);
}

.coming em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

/* Large fine-line quilt: desktop accent only, never behind phone text */
.hero-quilt {
  display: none;
}

@media (min-width: 54em) {
  main {
    padding-inline: max(3rem, env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px));
  }

  .wrap {
    margin-inline: clamp(2rem, 8vw, 8rem);
    width: min(36rem, calc(100% - 22rem));
  }

  h1 { font-size: 3.25rem; }

  .lede,
  .coming { font-size: 1.25rem; }

  .hero-quilt {
    display: block;
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(24.375rem, 32vw);
    height: auto;
    color: var(--gold-soft);
    opacity: 0.9;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
