@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Plus Jakarta Sans - Premium Type System */

@font-face {
    font-family: 'Ionicons';
    src: url('/fonts/Ionicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

/* Byond display + utility faces — the same files the landing page and the
   invite pages load, so every web surface shares one type system. */
@font-face {
  font-family: 'Fraunces';
  src: url('/byond_brand/landing/fonts/Fraunces-italic-300-600.woff2') format('woff2');
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/byond_brand/landing/fonts/Figtree-normal-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/byond_brand/landing/fonts/SpaceMono-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}:root {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0);
  background-color: transparent;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Prevent browser text size adjustment */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root, html, body {
  touch-action: pan-x pan-y;
  min-height: 100%;
  /* Prevent browser text size adjustment */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Transparent — FixedEventBackground handles background color behind safe areas */
body, #root {
  background-color: transparent !important;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: transparent;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* Event description rich text rendering — tames default browser margins so
   the rendered content sits flush with the surrounding section, and matches
   the spacing of EventDescriptionRichText on the app side. */
.event-description-richtext p {
  margin: 0 0 8px 0;
}
.event-description-richtext p:last-child {
  margin-bottom: 0;
}
.event-description-richtext ul,
.event-description-richtext ol {
  margin: 4px 0;
  padding-left: 20px;
}
.event-description-richtext li {
  margin: 2px 0;
}
/* Headings — mirrors the app/editor sizing for consistency. */
.event-description-richtext h1 { font-size: 26px; line-height: 32px; font-weight: 700; margin: 12px 0 8px; }
.event-description-richtext h2 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 10px 0 6px; }
.event-description-richtext h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 8px 0 4px; }
.event-description-richtext h1:first-child,
.event-description-richtext h2:first-child,
.event-description-richtext h3:first-child { margin-top: 0; }
/* Inline size marks — selection-based sizing from the toolbar. */
.event-description-richtext .size-md { font-size: 18px; line-height: 24px; }
.event-description-richtext .size-lg { font-size: 22px; line-height: 28px; }
.event-description-richtext .size-xl { font-size: 26px; line-height: 32px; }
/* Links — match the app's brand styling. */
.event-description-richtext a {
  color: #7B61FF;
  text-decoration: underline;
}
