:root {
  color-scheme: light;
  --background: #f7f5f0;
  --foreground: #171513;
  --muted: #6d6860;
  --rule: #d9d4ca;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--background);
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    "Geist",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.42;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.manis-document,
.manis-body {
  overflow: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--muted);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.page {
  display: grid;
  height: 100vh;
  height: 100svh;
  align-items: start;
  padding: clamp(7rem, 26vh, 12rem) clamp(2rem, 8vw, 6rem)
    clamp(2rem, 8vw, 6rem);
  overflow: hidden;
}

.intro {
  width: min(100%, 38rem);
}

.intro p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 400;
  letter-spacing: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.65rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.links a {
  display: inline;
}

.manis-page {
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  place-items: center;
  padding-block: clamp(2.5rem, 7vh, 5rem);
  text-align: center;
}

.manis-content {
  display: grid;
  justify-items: center;
  width: min(100%, 34rem);
}

.qr-link {
  display: block;
  width: min(100%, clamp(15rem, 48vw, 23rem));
  padding: clamp(0.7rem, 2vw, 1rem);
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 1.1rem 2.75rem rgb(23 21 19 / 0.08);
  line-height: 0;
  text-decoration: none;
}

.qr-code {
  display: block;
  width: 100%;
  height: auto;
}

.form-link {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 42rem) {
  .page {
    padding-block: 9rem 2.25rem;
  }

  .manis-page {
    padding-block: 2.25rem;
  }
}
