/* Keep the existing font URLs in sync with client/index.html's font preloads. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_s06GnM.ttf")
    format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_iE9GnM.ttf")
    format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/cormorantgaramond/v21/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd5wDDOjw.ttf")
    format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/cormorantgaramond/v21/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd5LDfOjw.ttf")
    format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf")
    format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf")
    format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf")
    format("truetype");
}

/* Red fallback prevents a white flash before the app/styles hydrate. */
html {
  background: #8c1d26;
  color: #f7f2e8;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #8c1d26;
  color: #f7f2e8;
  font-family: Inter, Arial, sans-serif;
  font-size-adjust: 0.52;
}

#root {
  min-height: 100svh;
  background: #8c1d26;
}

.ssr-shell {
  box-sizing: border-box;
  min-height: 480px;
  padding: 100px max(32px, calc((100% - 1160px) / 2));
  background: linear-gradient(118deg, #b12932 0%, #8c1d26 100%);
  color: #f7f2e8;
}

.ssr-shell .eyebrow {
  margin: 0 0 14px;
  color: #f7f2e8;
  font:
    600 12px/1.5 Inter,
    Arial,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ssr-shell h1 {
  max-width: 760px;
  margin: 0;
  color: #f7f2e8;
  font:
    500 clamp(60px, 5.6vw, 76px) / 1.05 "Cormorant Garamond",
    Georgia,
    serif;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.ssr-shell p:not(.eyebrow) {
  max-width: 68ch;
  margin: 22px 0 0;
  color: #f7f2e8;
  font:
    400 17px/1.7 Inter,
    Arial,
    sans-serif;
}

.ssr-shell a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 13px 20px;
  border: 1px solid #e3cf91;
  border-radius: 3px;
  color: #f7f2e8;
  font:
    600 14px/1.35 Inter,
    Arial,
    sans-serif;
  letter-spacing: 0;
  text-decoration: none;
}

.ssr-shell a:focus-visible {
  outline: 3px solid #e3cf91;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .ssr-shell {
    min-height: 430px;
    padding: 64px 20px;
  }

  .ssr-shell h1 {
    font-size: clamp(48px, 8.8vw, 56px);
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
