@font-face {
  font-family: "Anybody";
  src: url("fonts/Anybody-Variable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Variable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night-ink: #0a0a0c;
  --stage-black: #17171b;
  --paper: #f3ebdd;
  --mic-red: #f4000f;
  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --frame: clamp(0.75rem, 2vw, 1.5rem);
  --masthead-size: clamp(3.5rem, 7.5vh, 4.75rem);
  --footer-size: clamp(3.5rem, 7vh, 5rem);
  --hairline: 1px solid rgb(243 235 221 / 38%);
}

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

html {
  min-width: 20rem;
  background: var(--night-ink);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: var(--frame);
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 12%, rgb(244 0 15 / 8%), transparent 30rem),
    linear-gradient(130deg, var(--night-ink) 0 60%, var(--stage-black) 100%);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.poster {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 90rem);
  height: calc(100dvh - (2 * var(--frame)));
  margin: 0 auto;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  border: 1px solid rgb(243 235 221 / 52%);
  background: var(--night-ink);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 48%);
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--masthead-size);
  border-bottom: var(--hairline);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead p {
  margin: 0;
  padding: 0 1.25rem;
}

.masthead__place {
  color: rgb(243 235 221 / 72%);
}

.mini-mark {
  display: grid;
  width: var(--masthead-size);
  height: var(--masthead-size);
  place-items: center;
  border-right: var(--hairline);
  background: var(--mic-red);
}

.mini-mark__icon {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transform: scaleX(-1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
  border-bottom: var(--hairline);
}

.hero__type {
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 2vh, 2.25rem) clamp(1.25rem, 3vw, 3.5rem);
  flex-direction: column;
  justify-content: space-between;
}

.kicker {
  display: flex;
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.5rem);
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::before {
  width: clamp(2rem, 5vw, 5rem);
  height: 1px;
  background: var(--paper);
  content: "";
}

.kicker span {
  border-bottom: 0.28em solid var(--mic-red);
  color: var(--paper);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--hero-type-size);
  font-variation-settings: "wdth" 83, "wght" 900;
  font-weight: 900;
  letter-spacing: -0.062em;
  line-height: 0.72;
  text-transform: uppercase;
}

.hero__lockup {
  --hero-type-size: clamp(5rem, min(14.2vw, 16vh), 12rem);

  display: grid;
  width: max-content;
  max-width: 100%;
  grid-template-columns: max-content calc(var(--hero-type-size) * 1.25);
}

.title-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.title-line--open {
  color: var(--paper);
  letter-spacing: -0.055em;
}

.title-line--mic {
  display: flex;
  color: var(--mic-red);
  letter-spacing: 0;
}

.title-line--mic .title-letter {
  display: block;
}

.title-line--mic .title-letter:nth-child(2) {
  margin-left: -0.06em;
}

.title-line--mic .title-letter:nth-child(3) {
  margin-left: -0.042em;
}

.title-line--pitch {
  color: var(--paper);
}

.title-line--night {
  display: flex;
  color: var(--night-ink);
  letter-spacing: 0;
}

.title-line--night .title-letter {
  display: block;
  -webkit-text-stroke: 0.022em var(--paper);
  paint-order: stroke fill;
}

.title-line--night .title-letter:nth-child(2) {
  margin-left: -0.08em;
}

.title-line--night .title-letter:nth-child(n + 3) {
  margin-left: -0.06em;
}

.title-line--night .title-letter:nth-child(3),
.title-line--night .title-letter:nth-child(5) {
  margin-left: -0.05em;
}

.hero__mic {
  display: block;
  align-self: end;
  width: 100%;
  height: calc(var(--hero-type-size) * 2.05);
  margin-bottom: calc(var(--hero-type-size) * 0.065);
  margin-left: calc(var(--hero-type-size) * -0.57);
  object-fit: contain;
  object-position: left bottom;
  transform: scaleX(-1);
  transform-origin: bottom center;
}

.next-event {
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: var(--hairline);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 58%),
    var(--stage-black);
}

.next-event__header {
  display: flex;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--hairline);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-event__header p,
.next-event__header span,
.next-event__date p,
.next-event__details p {
  margin: 0;
}

.next-event__header p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.next-event__header p::before {
  width: 1.6rem;
  height: 0.42rem;
  background: var(--mic-red);
  content: "";
}

.next-event__header span {
  color: rgb(243 235 221 / 52%);
  font-size: 0.58rem;
}

.next-event__date {
  display: flex;
  min-height: 0;
  padding: clamp(1.25rem, min(3vw, 3vh), 2.5rem);
  flex-direction: column;
  justify-content: center;
}

.next-event h2 {
  margin: 0;
}

.next-event time {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: start;
  column-gap: clamp(0.65rem, 1.2vw, 1.25rem);
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.76;
  text-transform: uppercase;
}

.next-event__day {
  font-size: clamp(5rem, min(10vw, 14vh), 9rem);
  font-variation-settings: "wdth" 78, "wght" 900;
}

.next-event__date-meta {
  display: flex;
  align-self: center;
  align-items: flex-end;
  flex-direction: column;
  transform: translateY(-0.35rem);
}

.next-event__month {
  color: var(--mic-red);
  font-size: clamp(2rem, min(4vw, 5vh), 3.5rem);
  font-variation-settings: "wdth" 92, "wght" 850;
}

.next-event__year {
  color: rgb(243 235 221 / 58%);
  font-family: var(--font-body);
  font-size: clamp(0.82rem, min(1.15vw, 1.3vh), 1rem);
  font-weight: 650;
  letter-spacing: 0.2em;
  line-height: 1;
  text-align: right;
}

.next-event__weekday {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, min(1.8vw, 2vh), 1.4rem);
  font-variation-settings: "wdth" 92, "wght" 850;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.8;
  text-align: right;
}

.next-event__year {
  margin-top: 0.16rem;
}

.next-event__reservation {
  display: grid;
  width: fit-content;
  margin-top: clamp(1.5rem, 3vh, 2.75rem);
  gap: 0.7rem;
}

.next-event__reservation a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.next-event__reservation a:hover,
.next-event__reservation a:focus-visible {
  background: var(--paper);
  color: var(--night-ink);
}

.next-event__reservation a:focus-visible {
  outline: 3px solid var(--mic-red);
  outline-offset: 3px;
}

.next-event__reservation p {
  color: rgb(243 235 221 / 65%);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-event__details {
  display: grid;
  border-top: var(--hairline);
}

.next-event__details p:not(.next-event__venue) {
  display: grid;
  min-height: clamp(3.7rem, 7vh, 5.25rem);
  padding: clamp(0.9rem, 1.6vh, 1.35rem) 1.25rem;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  border-bottom: var(--hairline);
}

.next-event__details span,
.next-event__venue {
  color: rgb(243 235 221 / 72%);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.next-event__details strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, min(1.65vw, 2.5vh), 1.45rem);
  font-variation-settings: "wdth" 94, "wght" 720;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1;
}

.next-event__venue {
  padding: 0.9rem 1.25rem;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
}

.manifesto h2 {
  display: flex;
  margin: 0;
  padding: clamp(0.9rem, 1.8vh, 1.75rem) clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, min(3.7vw, 5.2vh), 4rem);
  font-variation-settings: "wdth" 90, "wght" 650;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.manifesto__copy {
  display: block;
}

.manifesto h2 em {
  color: var(--mic-red);
  font-style: normal;
  font-weight: 750;
}

.manifesto__wip {
  color: var(--mic-red);
}

.manifesto__bridge {
  color: var(--paper);
}

.manifesto h2 strong {
  color: var(--mic-red);
  font-weight: inherit;
}

@media (min-width: 46.01rem) {
  .manifesto__wip {
    white-space: nowrap;
  }
}

.manifesto__beats {
  display: grid;
  margin: 0;
  padding: 0;
  border-left: var(--hairline);
  background: var(--stage-black);
  list-style: none;
}

.manifesto__beats li {
  display: grid;
  margin: 0;
  padding: clamp(0.45rem, 1vh, 0.9rem) 1.5rem;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  border-bottom: var(--hairline);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.manifesto__beats li:last-child {
  border-bottom: 0;
}

.manifesto__beats span {
  display: grid;
  width: 2rem;
  height: 2rem;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  color: var(--night-ink);
  font-family: var(--font-display);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-indent: 0;
}

.manifesto__beats li:nth-child(1) span {
  background: var(--mic-red);
}

.manifesto__beats li:nth-child(2) span {
  background: var(--paper);
  color: var(--night-ink);
}

.manifesto__beats li:nth-child(3) span {
  border: 1px solid var(--paper);
  background: var(--stage-black);
  color: var(--paper);
}

.collaborators {
  display: grid;
  min-height: clamp(4.75rem, 8vh, 6.5rem);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: var(--hairline);
  background: var(--night-ink);
}

.collaborators h2 {
  display: flex;
  margin: 0;
  padding: 1rem 1.25rem;
  align-items: center;
  color: rgb(243 235 221 / 62%);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collaborators ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collaborators li {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: clamp(0.8rem, 1.5vw, 1.3rem);
  place-items: center;
  border-left: var(--hairline);
}

.collaborator-logo {
  display: block;
  width: min(82%, 10rem);
  height: clamp(2rem, 4vh, 3.2rem);
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(95%) sepia(9%) saturate(460%) hue-rotate(342deg) brightness(104%) contrast(91%);
}

.collaborator-logo--local-foundation {
  width: min(90%, 12rem);
}

.collaborator-logo--flourish-mode {
  width: min(88%, 10.5rem);
}

.collaborator-logo--ualg-cria {
  width: min(88%, 10.5rem);
}

.collaborator-logo--algarve-evolution {
  width: min(92%, 11rem);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: var(--footer-size);
  align-items: center;
  border-top: var(--hairline);
  background: var(--paper);
  color: var(--night-ink);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
  padding: 1rem 1.25rem;
}

.footer__status strong {
  border-bottom: 0.24em solid var(--mic-red);
  color: var(--night-ink);
}

.footer__message {
  border-right: 1px solid rgb(10 10 12 / 30%);
  border-left: 1px solid rgb(10 10 12 / 30%);
  font-size: clamp(0.76rem, 0.85vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
}

.footer__domain {
  text-align: right;
}

.reveal {
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal--two {
  animation-delay: 90ms;
}

.reveal--three {
  animation-delay: 170ms;
}

.reveal--four {
  animation-delay: 250ms;
}

.reveal--five {
  animation-delay: 330ms;
}

.reveal--six {
  animation-delay: 400ms;
}

@keyframes rise-in {
  from {
    transform: translateY(1rem);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 64rem) {
  .hero__lockup {
    --hero-type-size: clamp(4rem, min(13.5vw, 14vh), 8.4rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  }
}

@media (max-width: 46rem) {
  .poster {
    display: block;
    height: auto;
    min-height: calc(100dvh - (2 * var(--frame)));
  }

  .masthead {
    grid-template-columns: auto 1fr;
    min-height: 4.75rem;
  }

  .masthead__place {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__type {
    min-height: 29rem;
    padding-bottom: 3rem;
  }

  .hero__lockup {
    --hero-type-size: clamp(4.25rem, 23vw, 8.2rem);
  }

  .mini-mark {
    width: 4.75rem;
    height: 100%;
    min-height: 4.75rem;
    align-self: stretch;
  }

  .next-event {
    min-height: 27rem;
    border-top: var(--hairline);
    border-left: 0;
  }

  .next-event__day {
    font-size: clamp(6rem, 31vw, 9rem);
  }

  .next-event__month {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .next-event__date {
    align-items: center;
  }

  .next-event h2 {
    transform: translateY(4px);
  }

  .next-event time {
    justify-content: center;
  }

  .next-event__reservation {
    justify-items: center;
  }

  .next-event__reservation p {
    text-align: center;
  }

  .manifesto {
    grid-template-columns: 1fr;
  }

  .manifesto h2 {
    padding: 2rem;
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .manifesto__beats li {
    padding: 1.3rem 1.5rem;
  }

  .manifesto__beats {
    border-top: var(--hairline);
    border-left: 0;
  }

  .collaborators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaborators h2 {
    min-height: 5.75rem;
  }

  .collaborators li {
    min-height: 5.75rem;
    border-top: var(--hairline);
  }

  .collaborators li:nth-child(even) {
    border-left: 0;
  }

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

  .footer {
    grid-template-columns: 1fr 1fr;
    min-height: 5rem;
  }

  .footer__message {
    display: block;
    grid-row: 1;
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgb(10 10 12 / 30%);
    border-left: 0;
    font-size: clamp(0.74rem, 3vw, 0.86rem);
  }

  .footer__status,
  .footer__domain {
    grid-row: 2;
  }
}

@media (min-width: 46.01rem) and (max-height: 50rem) {
  .hero__lockup {
    --hero-type-size: clamp(4rem, min(12vw, 13vh), 7.5rem);
  }

  .hero__type {
    padding-bottom: 2rem;
  }

  .hero__lockup h1 {
    font-variation-settings: "wdth" 105, "wght" 900;
    line-height: 0.68;
  }

  .next-event__details p:not(.next-event__venue) {
    min-height: 3.2rem;
    padding-block: 0.65rem;
  }

  .next-event__header {
    min-height: 3rem;
    padding-block: 0.65rem;
  }

  .next-event__date {
    padding: 0.75rem 1.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .next-event__day {
    font-size: 4.25rem;
  }

  .next-event__month {
    font-size: 1.75rem;
  }

  .next-event__year {
    font-size: 0.65rem;
  }

  .next-event__reservation {
    margin-top: 0;
    gap: 0.4rem;
  }

  .next-event__reservation a {
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.6rem;
  }

  .next-event__reservation p {
    max-width: 10rem;
    font-size: 0.5rem;
  }

  .collaborators {
    min-height: 4.5rem;
  }

}

@media (max-width: 25rem) {
  .masthead p {
    padding-inline: 0.8rem;
    font-size: 0.62rem;
  }

  .hero__type {
    min-height: 26rem;
  }

  .hero__lockup {
    --hero-type-size: 23vw;
  }

  .manifesto h2 {
    font-size: 1.9rem;
  }

  .footer {
    display: block;
  }

  .footer__status,
  .footer__domain {
    text-align: center;
  }

  .footer__domain {
    border-top: 1px solid rgb(10 10 12 / 25%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    margin: 0;
  }

  body {
    padding: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .poster {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
