@font-face {
  font-family: "Univers Next for HSBC";
  src: url("fonts/UniversNextforHSBCW01-Th.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Univers Next for HSBC";
  src: url("fonts/UniversNextforHSBCW01-UltLt.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Univers Next for HSBC";
  src: url("fonts/UniversNextforHSBCW01-Lt.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Univers Next for HSBC";
  src: url("fonts/UniversNextforHSBCW01-Rg.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Univers Next for HSBC";
  src: url("fonts/UniversNextforHSBCW01-Md.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Univers Next for HSBC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
  color: #101820;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

.site-header {
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 clamp(24px, 4.2vw, 68px);
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(570px, calc(100svh - 76px));
  margin: 0 4px 4px;
  overflow: hidden;
  align-items: center;
  border-radius: 4px;
  background-color: #19496b;
  background-image: url("img/hero.webp");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(4 23 40 / 35%) 0%,
    rgb(4 23 40 / 12%) 56%,
    rgb(4 23 40 / 0%) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: clamp(36px, 5vw, 82px);
  padding: 48px clamp(32px, 4.7vw, 76px);
}

.event-copy {
  align-self: start;
  max-width: 700px;
  margin-top: -50px;
  margin-left: 25px;
  text-shadow: 0 1px 10px rgb(0 0 0 / 18%);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.12;
}

.event-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(31px, 2.55vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.event-copy h1 strong {
  font-weight: 500;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
}

.registration-card {
  width: 100%;
  padding: 20px 22px 22px;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(0 0 0 / 12%);
  color: #171717;
  text-shadow: none;
}

.registration-card h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.form-intro {
  margin: 2px 0 10px;
  font-size: 13px;
}

#registration-form {
  display: grid;
  gap: 6px;
}

#registration-form input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  color: #101820;
  font: inherit;
  font-size: 11px;
}

#registration-form input::placeholder {
  color: #999;
  opacity: 1;
}

#registration-form input:focus-visible {
  border-color: #101820;
  outline: 2px solid rgb(16 24 32 / 20%);
  outline-offset: 1px;
}

#registration-form button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 24px;
  background: #101820;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background-color 160ms ease, transform 160ms ease;
}

#registration-form button:hover {
  transform: translateY(-1px);
  background: #293945;
}

#registration-form button:focus-visible {
  outline: 3px solid #db0011;
  outline-offset: 3px;
}

.button-arrow {
  font-size: 20px;
  line-height: 1;
}

.form-message {
  margin: 2px 0 0;
  color: #245b3a;
  font-size: 12px;
  line-height: 1.4;
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  color: #b3000f;
}

#registration-form button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 1500px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 7vw;
  }

  .registration-card {
    padding: 22px 24px 24px;
  }

  #registration-form input {
    height: 38px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 64px;
  }

  .hero {
    min-height: calc(100svh - 68px);
    background-position: 43% center;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgb(4 23 40 / 36%) 0%,
      rgb(4 23 40 / 12%) 52%,
      rgb(4 23 40 / 28%) 100%
    );
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 24px;
  }

  .event-copy {
    align-self: auto;
    margin: 0;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .event-copy h1 {
    font-size: clamp(29px, 7vw, 38px);
  }

  .event-details {
    gap: 0 12px;
    margin-top: 14px;
    font-size: 15px;
  }

  .registration-card {
    width: min(100%, 390px);
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .hero-content {
    padding: 34px 18px;
  }

  .registration-card {
    padding: 18px;
  }

  .event-details {
    gap: 0 9px;
  }
}
