/* === Fonts (self-hosted from @fontsource-variable, SIL OFL 1.1) === */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Design Tokens (from the event poster) === */
:root {
  --color-page: #141216;
  --color-card: #2b1236;
  --color-photo: #4a2560;
  --color-text: #fff2f7;
  --color-muted: #d9b8e6;
  --color-pink: #ff4fa3;
  --color-cyan: #4fd1ff;
  --color-ink: #2b1236;
  --color-line: rgb(217 184 230 / 0.4);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --radius-card: 1.5rem;
  --radius-tile: 0.75rem;
  --radius-pill: 999px;
  --card-padding: clamp(1.5rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.4;
}

a { color: inherit; }

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

/* === Utilities === */
.text-pink { color: var(--color-pink); }
.text-cyan { color: var(--color-cyan); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 4.75rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.display em {
  font-style: normal;
  color: var(--color-pink);
}

.display--sm {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.bilingual > span { display: block; }
.bilingual__es { color: var(--color-muted); }

/* === Layout: event page grid === */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 2rem;
  }
}

/* === Component: card === */
.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: var(--card-padding);
  background: var(--color-card);
  border-radius: var(--radius-card);
}

/* === Component: poster === */
.poster__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.poster__photo {
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin: 0.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-photo);
}

.poster__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster__summary {
  margin: 0;
  text-wrap: pretty;
}

.poster__footer {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.poster__footer a { text-decoration: none; }
.poster__footer a:hover { color: var(--color-pink); }

/* === Component: pills === */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.pill--pink { background: var(--color-pink); color: var(--color-ink); }
.pill--cyan { background: var(--color-cyan); color: var(--color-ink); }

.pill--outline {
  border: 2px solid var(--color-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
}

.pill--outline a { display: block; text-decoration: none; }

.pill__line { display: block; }

.pill__line--sub {
  font-weight: 500;
  color: var(--color-muted);
}
.pill--outline:has(a:hover) { border-color: var(--color-pink); }

/* === Component: callout (link to the rules) === */
.callout {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-line);
  text-decoration: none;
}

.callout:hover .callout__title,
.callout:focus-visible .callout__title { color: var(--color-pink); }

.callout__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.callout__es {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.callout .eyebrow { font-size: 0.8rem; }

/* === Component: rules === */
.rules ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-line);
}

.rules li:first-child { border-top: 0; padding-top: 0; }

.rules li::before {
  content: counter(rule);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--color-cyan);
}

.rules li p { margin: 0; }

/* === Instagram cards page === */
.ig {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.ig__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ig__header p { margin: 0; color: var(--color-muted); }
.ig__header a { text-decoration: none; }
.ig__header a:hover { color: var(--color-pink); }

.ig__group + .ig__group { margin-top: 2.5rem; }

.ig__group-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.ig__group-title span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
}

.ig__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ig__item {
  --card-padding: 1rem;
  gap: 0.75rem;
}

.ig__item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-tile);
  outline: 1px solid var(--color-line);
}

.ig__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ig__actions .pill {
  padding: 0.4rem 1rem;
  font-size: 1rem;
  text-decoration: none;
}

/* === Temporary homepage redirect === */
.redirect {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}
