:root {
  --rose: #E01B5D;
  --purple: #750E92;
  --deep: #05002C;
  --navy: #14174C;
  --grey: #6B6E85;
  --ground: #F8F7F5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--ground);

  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  display: flex;
  flex-direction: column;

  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;
  position: relative;
}

/* --------------------------------------------------
   Background glow
-------------------------------------------------- */

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow .a {
  width: 60vmax;
  height: 60vmax;
  left: -20vmax;
  top: -25vmax;
  background: var(--navy);
  opacity: .09;
}

.glow .b {
  width: 55vmax;
  height: 55vmax;
  right: -22vmax;
  bottom: -28vmax;
  background: var(--purple);
  animation-delay: -9s;
  opacity: .13;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4vmax, 3vmax, 0) scale(1.08);
  }
}

/* --------------------------------------------------
   Main content
-------------------------------------------------- */

main {
  position: relative;
  z-index: 1;

  flex: 1 1 auto;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 20px 24px 10px;

  overflow: hidden;
}

.logo {
  width: min(62vw, 300px);
  max-height: 34vh;
  height: auto;

  display: block;

  margin: 0 auto clamp(22px, 4vh, 40px);

  flex-shrink: 1;
}

.rule {
  width: 56px;
  height: 3px;
  flex-shrink: 0;

  border-radius: 3px;

  background: linear-gradient(
    90deg,
    var(--rose),
    var(--purple)
  );

  margin: 0 auto 22px;
}

h1 {
  font-weight: 700;

  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;

  margin: 0 0 14px;

  max-width: 18ch;

  flex-shrink: 0;
}

h1 em {
  font-style: normal;
  white-space: nowrap;

  background: linear-gradient(
    90deg,
    var(--rose),
    var(--purple)
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p.lede {
  color: var(--grey);

  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;

  margin: 0 0 28px;

  max-width: 34ch;

  flex-shrink: 0;
}

/* --------------------------------------------------
   Contact buttons
-------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  align-items: center;

  gap: 8px 14px;

  font-size: 15px;
  font-weight: 500;

  flex-shrink: 0;
}

.contact a {
  color: var(--navy);
  text-decoration: none;

  padding: 9px 17px;

  border-radius: 999px;

  border: 1.5px solid rgba(20, 23, 76, .16);

  background: rgba(255, 255, 255, .55);

  transition:
    border-color .2s,
    background .2s,
    transform .2s;

  -webkit-tap-highlight-color: transparent;
}

.contact a:hover,
.contact a:focus-visible {
  border-color: var(--purple);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.contact a.primary {
  color: #fff;
  border-color: transparent;
  background: var(--navy);
}

.contact a.primary:hover,
.contact a.primary:focus-visible {
  background: var(--deep);
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

footer {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;

  padding: 12px 20px 18px;

  color: var(--grey);

  font-size: 12px;
  line-height: 1.5;

  text-align: center;

  flex-shrink: 0;
}

footer small {
  font-size: inherit;
}

footer .sep {
  margin: 0 .5em;
  opacity: .6;
}

/* --------------------------------------------------
   Reduced motion
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .glow span {
    animation: none;
  }

  .contact a {
    transition: none;
  }
}

/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 480px) {

  main {
    padding: 12px 18px 6px;
  }

  .logo {
    width: min(66vw, 245px);
    max-height: 30vh;

    margin-bottom: 20px;
  }

  .rule {
    width: 50px;
    height: 3px;

    margin-bottom: 17px;
  }

  h1 {
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.1;

    margin-bottom: 10px;

    max-width: 18ch;
  }

  p.lede {
    font-size: 15px;
    line-height: 1.4;

    margin-bottom: 20px;

    max-width: 31ch;
  }

  .contact {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .contact a {
    width: 100%;
    max-width: 320px;

    text-align: center;

    padding: 8px 16px;
  }

  footer {
    padding: 9px 14px 13px;

    font-size: 10.5px;
    line-height: 1.4;
  }

  footer .sep {
    margin: 0 .35em;
  }
}

/* --------------------------------------------------
   Small phones
   e.g. iPhone SE / smaller Android screens
-------------------------------------------------- */

@media (max-width: 480px) and (max-height: 750px) {

  main {
    padding-top: 8px;
  }

  .logo {
    width: min(58vw, 215px);
    max-height: 27vh;

    margin-bottom: 15px;
  }

  .rule {
    margin-bottom: 13px;
  }

  h1 {
    font-size: 27px;
    margin-bottom: 8px;
  }

  p.lede {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .contact {
    gap: 5px;
  }

  .contact a {
    padding: 7px 15px;
  }

  footer {
    padding-top: 7px;
    padding-bottom: 9px;

    font-size: 10px;
  }
}

/* --------------------------------------------------
   Very short screens
   -------------------------------------------------- */

@media (max-height: 620px) {

  main {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .logo {
    width: min(45vw, 175px);
    max-height: 23vh;

    margin-bottom: 10px;
  }

  .rule {
    width: 44px;
    margin-bottom: 10px;
  }

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

  p.lede {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .contact {
    gap: 4px;
  }

  .contact a {
    padding: 6px 14px;
  }

  footer {
    padding-top: 5px;
    padding-bottom: 7px;
    font-size: 9px;
  }
}

/* --------------------------------------------------
   Landscape phones
-------------------------------------------------- */

@media (max-width: 900px) and (max-height: 500px) {

  main {
    padding: 8px 20px 4px;
  }

  .logo {
    width: 150px;
    max-height: 25vh;
    margin-bottom: 8px;
  }

  .rule {
    width: 42px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: 23px;
    margin-bottom: 5px;
  }

  p.lede {
    font-size: 13px;
    margin-bottom: 9px;
  }

  .contact {
    flex-direction: row;
    gap: 5px 8px;
  }

  .contact a {
    padding: 6px 12px;
  }

  footer {
    padding: 5px 12px 6px;
    font-size: 9px;
  }
}