@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/static/Quicksand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/static/Quicksand-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/static/Quicksand-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --h2oh-cyan: #05d9ff;
  --h2oh-deep: #003449;
  --h2oh-orange: #ffa805;
  --hero-left: #20b8c1;
  --hero-right: #d8fbfb;
  --text: #000000;
  --white: #ffffff;
  --canvas-width: 1728;
  --scale: min(100vw / var(--canvas-width), 1px);
  --section-padding: clamp(64px, 5.55vw, 96px);
  --section-padding-large: clamp(72px, 6.02vw, 104px);
  --section-padding-small: clamp(52px, 4.4vw, 76px);
  --footer-padding: clamp(110px, 8.8vw, 152px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--h2oh-deep);
  color: var(--text);
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

body {
  margin: 0;
}

button {
  font: inherit;
}

.page-shell,
.footer {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  height: clamp(440px, 44.45vw, 768px);
  overflow: hidden;
  background: linear-gradient(100deg, var(--hero-left) 0%, #49cfd2 42%, var(--hero-right) 100%);
}

.hero-picture {
  position: absolute;
  left: 50%;
  top: clamp(-64px, -2.78vw, -28px);
  width: clamp(720px, 62.5vw, 1080px);
  transform: translateX(-50%);
}

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo {
  position: absolute;
  top: clamp(25px, 2.02vw, 35px);
  right: clamp(36px, 12.45vw, 215px);
  width: clamp(142px, 13.43vw, 232px);
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(15%) sepia(34%) saturate(1458%) hue-rotate(150deg) brightness(82%) contrast(103%);
}

.sticker {
  position: absolute;
  top: clamp(26px, 2.5vw, 43px);
  left: clamp(18px, 2.6vw, 45px);
  width: clamp(162px, 18.43vw, 318px);
  height: auto;
  z-index: 2;
}

.intro-section {
  padding: var(--section-padding) 0;
  background: var(--h2oh-deep);
  color: var(--white);
}

.content-column {
  width: calc(100% - 44px);
  max-width: 808px;
  margin-inline: auto;
}

.content-column--intro {
  padding-left: 0;
}

h1,
h2,
p,
ul {
  margin: 0;
}

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

h1 {
  margin-bottom: clamp(26px, 2.08vw, 36px);
  font-size: clamp(29px, 2.26vw, 39px);
  line-height: 1.08;
}

.subscript {
  display: inline-block;
  font-size: 0.645em;
  line-height: 1;
  transform: translateY(0.18em);
}

.intro-section p {
  max-width: 790px;
  font-size: clamp(19px, 1.45vw, 25px);
  line-height: 1.26;
}

.info-section {
  padding: var(--section-padding-large) 0;
  background: var(--h2oh-cyan);
}

.info-stack {
  display: grid;
  gap: clamp(64px, 5.1vw, 88px);
}

.info-stack article:first-child {
  max-width: 808px;
}

.info-stack h2,
.event-section h2 {
  max-width: 760px;
  margin-bottom: clamp(24px, 1.91vw, 33px);
  font-size: clamp(26px, 1.8vw, 31px);
  line-height: 1.18;
}

.info-stack p,
.info-stack li,
.event-section p {
  font-size: clamp(17px, 1.16vw, 20px);
  line-height: 1.28;
}

.info-stack article:first-child p,
.info-stack article:first-child ul {
  max-width: 790px;
}

.info-stack article:nth-child(2) p {
  max-width: 760px;
}

.signup-copy p {
  max-width: 780px;
}

.info-stack ul {
  margin: 12px 0 30px;
  padding-left: 32px;
}

.info-stack p + ul {
  margin-top: 12px;
}

.signup-copy {
  display: grid;
  justify-items: center;
  gap: clamp(40px, 3.25vw, 56px);
}

.signup-text {
  justify-self: stretch;
  max-width: 780px;
}

.signup-copy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(168px, 12.03vw, 208px);
  height: clamp(43px, 2.79vw, 48px);
  border: 0;
  border-radius: 999px;
  background: var(--h2oh-deep);
  color: var(--white);
  cursor: pointer;
  font-size: clamp(16px, 1.16vw, 20px);
  line-height: 1;
}

.signup-copy button:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 52, 73, 0.68);
}

.modal-backdrop[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  width: min(492px, 100%);
  padding: 42px;
  border-radius: 8px;
  background: var(--h2oh-cyan);
  color: var(--text);
  box-shadow: 0 24px 72px rgba(0, 24, 34, 0.28);
}

.signup-modal h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 1.8vw, 31px);
  line-height: 1.15;
}

.signup-modal p,
.signup-form label,
.signup-form input,
.signup-form button {
  font-size: 18px;
  line-height: 1.15;
}

.signup-modal > p {
  margin-bottom: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--h2oh-deep);
  color: var(--white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-form input {
  width: 100%;
  min-height: 48px;
  border: 3px solid var(--h2oh-deep);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
}

.signup-form input:focus,
.modal-close:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 3px;
}

.signup-form button {
  justify-self: start;
  min-width: 150px;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  background: var(--h2oh-deep);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-message {
  min-height: 21px;
  margin-top: 4px;
}

.form-message.is-error {
  color: var(--h2oh-deep);
}

.event-section {
  padding: var(--section-padding-small) 0;
  background: var(--h2oh-orange);
}

.event-section h2 {
  margin-bottom: 28px;
}

.event-section a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.event-section a:focus-visible {
  outline: 4px solid var(--h2oh-deep);
  outline-offset: 4px;
}

.footer {
  padding: var(--footer-padding) 0;
  background: var(--h2oh-deep);
}

.footer-logos {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(808px, calc(100% - 44px));
  margin-inline: auto;
}

.footer-logo {
  display: block;
  object-fit: contain;
}

.footer-logo--h2oh {
  width: clamp(97px, 8.04vw, 139px);
  height: clamp(57px, 4.75vw, 82px);
  margin-top: clamp(20px, 1.62vw, 28px);
}

.footer-logo--catta {
  width: clamp(95px, 7.87vw, 136px);
  height: clamp(92px, 7.58vw, 131px);
}

.footer-logo--wfw {
  width: clamp(56px, 4.63vw, 80px);
  height: clamp(55px, 4.51vw, 78px);
  margin-top: clamp(12px, 0.93vw, 16px);
}

.footer-logo--ost {
  width: clamp(124px, 10.24vw, 177px);
  height: clamp(57px, 4.69vw, 81px);
  margin-top: clamp(12px, 0.93vw, 16px);
}

@media (max-width: 900px) {
  .hero {
    height: clamp(390px, 68vw, 560px);
  }

  .hero-picture {
    top: 18px;
    left: 50%;
    width: clamp(560px, 74vw, 690px);
  }

  .hero-logo {
    top: 24px;
    right: 22px;
    width: clamp(108px, 21vw, 142px);
  }

  .sticker {
    width: clamp(124px, 27vw, 168px);
  }

  .intro-section {
    padding: clamp(56px, 7.78vw, 70px) 0;
  }

  .info-section {
    padding: clamp(64px, 9.11vw, 82px) 0;
  }

  .event-section {
    padding: clamp(48px, 7.11vw, 64px) 0;
  }

  .footer {
    padding: clamp(88px, 12.9vw, 116px) 0;
  }

  .info-stack {
    gap: 60px;
  }

  .footer-logos {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .content-column,
  .footer-logos {
    width: calc(100vw - 32px);
    max-width: 358px;
  }

  .content-column {
    margin-inline: auto;
  }

  .hero {
    height: clamp(500px, 140vw, 560px);
  }

  .hero-picture {
    top: 58px;
    width: min(390px, 104vw);
  }

  .hero-logo {
    top: 18px;
    right: auto;
    left: min(278px, calc(100vw - 112px));
    width: 96px;
  }

  .sticker {
    width: 112px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .info-stack h2,
  .event-section h2 {
    margin-bottom: 22px;
    font-size: 25px;
  }

  .intro-section p,
  .info-stack p,
  .info-stack li,
  .event-section p {
    font-size: 17px;
  }

  .info-stack ul {
    margin: 10px 0 26px;
    padding-left: 24px;
  }

  .signup-copy {
    justify-items: stretch;
  }

  .signup-copy button {
    width: 100%;
  }

  .footer {
    padding: 78px 0;
  }

  .footer-logos {
    width: calc(100vw - 32px);
    max-width: 358px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .footer-logo--h2oh,
  .footer-logo--wfw,
  .footer-logo--ost {
    margin-top: 0;
  }

  .footer-logo--h2oh {
    width: 68px;
    height: 40px;
  }

  .footer-logo--catta {
    width: 64px;
    height: 62px;
  }

  .footer-logo--wfw {
    width: 42px;
    height: 42px;
  }

  .footer-logo--ost {
    width: 92px;
    height: 42px;
  }

  .signup-modal {
    padding: 34px 24px 28px;
  }

  .signup-modal p,
  .signup-form label,
  .signup-form input,
  .signup-form button {
    font-size: 17px;
  }
}
