@font-face {
  font-family: "Google Sans Flex";
  src: url("Google%20Flex/GoogleSansFlex_72pt-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("Google%20Flex/GoogleSansFlex_72pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

html {
  color-scheme: light;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: "Google Sans Flex", Arial, sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

body.is-dark {
  background: #000000;
  color: #ffffff;
}

.page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.75vw, 12px);
  transform: translateY(-2px);
}

.icon-toggle {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}

.brand-icon {
  display: block;
  width: clamp(134px, 11.34vw, 172px);
  height: auto;
}

.brand-label {
  display: block;
  width: clamp(236px, 20.7vw, 314px);
  height: auto;
}

body.is-dark .brand-icon,
body.is-dark .brand-label {
  filter: invert(1);
}

.email {
  position: absolute;
  bottom: clamp(54px, 8vh, 94px);
  left: 50%;
  padding: 0;
  border: 0;
  color: #000000;
  background: transparent;
  cursor: pointer;
  font-family: "Google Sans Flex", Arial, sans-serif;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

body.is-dark .email {
  color: #ffffff;
}

.email:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 8px;
}

.email-copied {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.email.is-copied .email-copied {
  opacity: 1;
}

@media (max-width: 560px) {
  .page {
    padding: 24px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: clamp(99px, 28.35vw, 134px);
  }

  .brand-label {
    width: clamp(190px, 54vw, 236px);
  }

  .email {
    bottom: 48px;
    font-size: clamp(22px, 6.6vw, 29px);
  }
}
