/* Inlined via index.html — paints LCP text before JS/CSS bundle; limits CLS from webfonts */
:root {
  --font-display-fallback: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-editorial-fallback: Georgia, "Times New Roman", serif;
}

html {
  font-family: var(--font-display-fallback);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: #fcfaf4;
  color: #2b2b2b;
}

#root {
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100vh;
}

.font-display,
h1,
h2,
h3 {
  font-family: var(--font-display-fallback);
}

.font-editorial {
  font-family: var(--font-editorial-fallback);
}

/* Reserve hero headline space (matches HeroSection ~3.5rem on desktop) */
#static-hero-fallback {
  box-sizing: border-box;
  max-width: 36rem;
  min-height: 2.75em;
  line-height: 1.1;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding: max(6rem, calc(env(safe-area-inset-top) + 4.5rem)) 1.5rem 1.5rem;
}

#static-hero-fallback[hidden] {
  display: none !important;
}

/* /app early LCP — fullscreen overlay so it paints before React; hidden after first frames in main.tsx */
#static-app-lcp-fallback {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  min-height: 100dvh;
  min-height: 100vh;
  background-color: #fcfaf4;
  color: #2b2b2b;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}

#static-app-lcp-fallback[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  #static-app-lcp-fallback {
    background-color: #160f12;
    color: #f7f3f4;
  }
}

.static-app-lcp-wrap {
  box-sizing: border-box;
  display: flex;
  min-height: 100dvh;
  min-height: 100vh;
  flex-direction: row;
}

.static-app-lcp-main {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

@media (min-width: 768px) {
  .static-app-lcp-main {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
  }
}

.static-app-lcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  min-height: 2.75rem;
}

.static-app-lcp-title {
  box-sizing: border-box;
  margin: 0;
  font-family: var(--font-display-fallback);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 900;
  color: #e8423f;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .static-app-lcp-title {
    font-size: 1.5rem;
  }
}
