/* Reset, body, typography roles and a few utilities. Sizes follow the app's
   Tailwind scale (xs 12/16 · sm 14/20 · base 16/24 · lg 18/28 · xl 20/28 ·
   3xl 30/36 · 4xl 36/40). Weights top out at semibold. */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
  margin: 0;
  padding: 0;
}

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

html,
body {
  min-height: 100%;
  background-color: var(--background);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  letter-spacing: inherit;
}

button,
[role='button'] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: inherit;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Squircles wherever the browser supports corner-shape, as the app does. */
@supports (corner-shape: squircle) {
  .squircle,
  .btn,
  .panel,
  .cover,
  .card,
  .chip,
  .tile {
    corner-shape: squircle;
  }
}

/* ---------------------------------------------------------------------------
   The theme's heading typeface. `--event-heading-font` comes from the theme
   (js/theme/engine.js buildThemeFont), so a heading picks the font up from
   any themed ancestor and falls back to the app's sans everywhere else.
   `font-synthesis-weight: none` stops a faux bold on single-weight faces.
   ------------------------------------------------------------------------- */
.event-heading-font {
  font-family: var(--event-heading-font, var(--font-sans));
  font-synthesis-weight: none;
}

.event-prose-headings :is(h2, h3) {
  font-family: var(--event-heading-font, var(--font-sans));
  font-synthesis-weight: none;
}

/* ---------------------------------------------------------------------------
   Text roles
   ------------------------------------------------------------------------- */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.muted {
  color: var(--muted-foreground);
}
.fg {
  color: var(--foreground);
}
.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* The public event page's section label (Luma pattern): small muted text over
   a hairline. */
.section-label {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.text-link {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--foreground) 40%, transparent);
  text-underline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}
.i4 {
  width: 1rem;
  height: 1rem;
}
.i5 {
  width: 1.25rem;
  height: 1.25rem;
}
.min-w-0 {
  min-width: 0;
}
.block {
  display: block;
}

.separator {
  height: 1px;
  width: 100%;
  background: var(--border);
}

/* ---------------------------------------------------------------------------
   Prose — the essentials of @tailwindcss/typography's `prose` (not prose-sm),
   coloured from the tokens so it follows any theme. Only the event
   description uses it; its line height is tighter than the app's 1.75.
   ------------------------------------------------------------------------- */
.prose {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: none;
}
.prose > * + * {
  margin-top: 1.25em;
}
.prose h2 {
  font-size: 1.5em;
  line-height: 1.333;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2em;
  margin-bottom: 1em;
}
.prose h3 {
  font-size: 1.25em;
  line-height: 1.6;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0;
}
.prose > :first-child {
  margin-top: 0;
}
.prose strong {
  font-weight: 600;
  color: var(--foreground);
}
.prose a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: underline;
}
.prose ul,
.prose ol {
  padding-left: 1.625em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin: 0.5em 0;
  padding-left: 0.375em;
}
.prose li::marker {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}
.prose blockquote {
  font-style: italic;
  color: var(--foreground);
  border-left: 0.25rem solid var(--border);
  padding-left: 1em;
}
.prose hr {
  border-top: 1px solid var(--border);
  margin: 3em 0;
}
