:root {
  --bg: #1e96fc;
  --footer: #1e88ff;
  --ink: #ffffff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-feature-settings:
    "liga" 1,
    "calt" 1;
}

@supports (font-variation-settings: normal) {
  :root {
    font-family:
      InterVariable,
      ui-sans-serif,
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--footer);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  background: var(--bg);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.page {
  padding: clamp(32px, 7vw, 88px) 20px;
}

.page h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.page p {
  max-width: 36ch;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

footer {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: var(--footer);
  border-top: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1;
}

footer .mark {
  display: block;
  height: 16px;
  width: auto;
  flex: none;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

footer a:hover,
footer a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

footer .home {
  display: block;
  padding: 0;
  opacity: 1;
}

.support {
  position: relative;
  display: flex;
}

.support-pop {
  position: absolute;
  right: -7px;
  bottom: calc(100% + 18px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 10px;
  white-space: nowrap;
  background: var(--footer);
  border: 1px solid var(--ink);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.15s ease-out,
    transform 0.15s ease-out,
    visibility 0s linear 0.15s;
}

.support-pop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
}

.support-pop span {
  opacity: 0.85;
}

.support-pop button {
  appearance: none;
  display: grid;
  padding: 5px 8px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: var(--footer);
  background: var(--ink);
}

.support-pop button:hover {
  opacity: 0.9;
}

.support-pop button > span {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.support-pop button > span:last-child,
.support-pop button[data-copied] > span:first-child {
  opacity: 0;
}

.support-pop button[data-copied] > span:last-child {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .support:hover .support-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

.support:has(:focus-visible) .support-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .support-pop {
    transform: none;
  }
}

@media (max-width: 640px) {
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  footer nav {
    gap: 14px;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 360px) {
  footer nav {
    gap: 10px;
  }
}
