@font-face {
  font-family: "Proxima Nova";
  src: url("./assets/proximanova_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("./assets/proximanova_bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #252d65;
  font: 400 1rem "Proxima Nova", sans-serif;
  font-synthesis: none;
}

h1, p, figure, ul {
  margin: 0;
}

img {
  display: block;
}

.site {
  --navy: #252d65;
  --blue: #0080c7;
  --unit: calc(100cqw / 1280);
  width: 100%;
  border-block-end: 32px solid #fff;
  container-type: inline-size;
}

.top {
  display: flex;
  min-height: calc(126.81 * var(--unit));
  padding-inline: calc(60 * var(--unit));
  justify-content: space-between;
  align-items: center;
}

.station {
  display: flex;
  align-items: center;
  gap: calc(39 * var(--unit));
}

.station__name {
  font-size: calc(33.295 * var(--unit));
  font-weight: 700;
  line-height: calc(41 * var(--unit));
  text-transform: uppercase;
  white-space: nowrap;
}

.top__logo {
  width: calc(64.093 * var(--unit));
  height: auto;
}

.radio__button {
  position: relative;
  display: grid;
  width: calc(65.577 * var(--unit));
  min-width: 44px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.radio__button img {
  width: calc(65.577 * var(--unit));
  min-width: 44px;
  height: auto;
}

.radio__button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.radio__stop {
  position: absolute;
  width: 43%;
  aspect-ratio: 1;
  border-radius: 7%;
  background: currentColor;
  visibility: hidden;
}

.radio__button[data-state="playing"] img,
.radio__button[data-state="connecting"] img {
  visibility: hidden;
}

.radio__button[data-state="playing"] .radio__stop {
  visibility: visible;
}

.radio__button[data-state="connecting"]::after {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid rgb(255 255 255 / 38%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: connect 0.9s linear infinite;
  content: "";
}

@keyframes connect {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .radio__button[data-state="connecting"]::after {
    animation: none;
  }
}

.event {
  display: grid;
  grid-template-columns: minmax(0, 660fr) minmax(0, 620fr);
}

.announcement {
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(413.94 * var(--unit));
  padding: calc(46.69 * var(--unit)) calc(60 * var(--unit));
  background: var(--blue);
  color: #fff;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: calc(55 * var(--unit));
  font-weight: 700;
  line-height: calc(67 * var(--unit));
  text-transform: uppercase;
}

.hero__pattern {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(253 * var(--unit));
  height: auto;
}

.details {
  --bottom-trim: calc(15.25 * var(--unit));
  display: flex;
  min-height: calc(180.231 * var(--unit) - var(--bottom-trim));
  padding: calc(9 * var(--unit) + var(--bottom-trim)) calc(40 * var(--unit)) 0 calc(59 * var(--unit));
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: #fff;
}

.details__logo {
  width: calc(201 * var(--unit));
  height: auto;
}

.event-time {
  display: grid;
  grid-template-columns: calc(56 * var(--unit)) calc(84 * var(--unit)) 1fr calc(115 * var(--unit));
  align-items: center;
  gap: calc(5.33 * var(--unit));
  width: calc(288.51 * var(--unit));
  font-weight: 700;
  white-space: nowrap;
}

.event-time__number {
  font-size: calc(45.422 * var(--unit));
  line-height: calc(55 * var(--unit));
}

.event-time__calendar {
  display: grid;
}

.event-time__month {
  font-size: calc(21.3 * var(--unit));
  line-height: calc(21.22 * var(--unit));
}

.event-time__year {
  font-size: calc(17.204 * var(--unit));
  line-height: calc(21 * var(--unit));
}

.event-time__divider {
  position: relative;
  justify-self: center;
  width: calc(2.348 * var(--unit));
  height: calc(43.78 * var(--unit));
}

.event-time__divider img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(43.78 * var(--unit));
  height: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}

.participants {
  padding: calc(18.65 * var(--unit)) calc(71 * var(--unit)) calc(15.25 * var(--unit)) calc(19.2 * var(--unit));
}

.speakers {
  display: grid;
  grid-template-columns: repeat(8, calc(66.325 * var(--unit)));
  grid-auto-rows: calc(166 * var(--unit));
  row-gap: calc(35.7 * var(--unit));
  justify-content: center;
  padding: 0;
  list-style: none;
}

.speaker {
  grid-column: span 2;
  text-align: center;
}

.speaker:nth-child(5) {
  grid-column: 2 / span 2;
}

.speaker:nth-child(n + 5) {
  position: relative;
  left: calc(-4.3 * var(--unit));
}

.speaker img {
  width: calc(106.822 * var(--unit));
  height: auto;
  margin-inline: auto;
}

.speaker__name {
  margin-top: calc(6.3 * var(--unit));
  color: var(--blue);
  font-size: calc(14.012 * var(--unit));
  font-weight: 700;
  line-height: calc(15.62 * var(--unit));
}

.speaker__name span {
  text-transform: uppercase;
}

.speaker__role {
  margin-top: calc(3.69 * var(--unit));
  font-size: calc(7.225 * var(--unit));
  line-height: calc(9 * var(--unit));
}

.speaker--host .speaker__role {
  margin-top: calc(8.7 * var(--unit));
}

.codes {
  position: relative;
  left: calc(-4.3 * var(--unit));
  display: flex;
  justify-content: center;
  gap: calc(29.858 * var(--unit));
  margin-top: calc(35.38 * var(--unit));
  text-align: center;
}

.code {
  width: calc(160 * var(--unit));
  font-size: calc(14 * var(--unit));
  font-weight: 700;
  line-height: 1.2;
}

.code img {
  position: relative;
  left: calc(-0.75 * var(--unit));
  width: calc(111.436 * var(--unit));
  height: auto;
  margin: 0 auto calc(6.69 * var(--unit));
}

@media (max-width: 1024px) {
  .site {
    --unit: min(calc(100cqw / 660), 1.2px);
    border-block-end-width: 36px;
  }

  .top {
    min-height: clamp(88px, 13vw, 125px);
    padding-inline: clamp(16px, 5vw, 60px);
  }

  .station {
    gap: clamp(12px, 3vw, 39px);
  }

  .station__name {
    font-size: max(clamp(1rem, 6.5vw, 1.3rem), calc(30 * var(--unit)));
  }

  .top__logo {
    min-width: 43px;
  }

  .event {
    display: block;
  }

  .hero {
    padding-inline: clamp(16px, 8vw, 72px);
  }

  .details {
    --bottom-trim: 0px;
    padding-inline: clamp(16px, 7vw, 72px);
  }

  .participants {
    padding: calc(28 * var(--unit)) 16px calc(19 * var(--unit));
  }

  .speaker__role {
    font-size: max(0.625rem, calc(8 * var(--unit)));
    line-height: 1.2;
  }

  .code {
    font-size: max(0.9375rem, calc(14 * var(--unit)));
  }
}

@media (max-width: 600px) {
  .speakers {
    grid-template-columns: repeat(2, minmax(0, 166px));
    grid-auto-rows: auto;
    gap: 20px 10px;
    padding-top: 12px;
  }

  .speaker,
  .speaker:nth-child(5) {
    grid-column: auto;
  }

  .speaker:nth-child(n + 5),
  .codes,
  .code img {
    left: 0;
  }

  .speaker:last-child {
    grid-column: 1 / -1;
  }

  .speaker img {
    width: clamp(92px, 26vw, 128px);
  }

  .speaker__name {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .codes {
    gap: 12px;
    margin-top: 28px;
  }

  .code {
    width: 172px;
    font-size: clamp(0.875rem, 4vw, 1rem);
  }

  .code img {
    width: 102px;
    margin-bottom: 6px;
  }
}
