@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --paper: #faf9f5;
  --panel: #43423c;
  --ink: #141413;
  --ash: #74736d;
  --cream: #f7f6f1;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 15px/21px Manrope,
    system-ui,
    sans-serif;
  overflow: hidden;
}
/* The page is the intro itself: the name settles, then the words and the one action come up under it. */
.ground {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.copy {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  padding-inline: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 900ms ease;
}
.copy.up {
  opacity: 1;
}
/* The line comes with the name; the button rises into place a beat later, the note after it. */
.copy .act,
.copy .small {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 500ms ease 350ms,
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms;
}
.copy .small {
  transition-delay: 550ms;
}
.copy.up .act,
.copy.up .small {
  opacity: 1;
  transform: none;
}
.line {
  margin: 0;
  font:
    300 22px/28px Fraunces,
    Georgia,
    serif;
  text-wrap: balance;
  max-width: 22ch;
}
/* The action at its own width on the app's control shape: charcoal, a medium label, a hairline of light along its top edge, a soft shadow on the paper; it deepens and lifts under the pointer and settles under the press. */
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  background: var(--panel);
  color: var(--cream);
  font:
    500 15px/20px Manrope,
    system-ui,
    sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(20, 20, 19, 0.14),
    0 6px 14px rgba(20, 20, 19, 0.08);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.act:hover,
.act[aria-expanded='true'] {
  background: #4a4942;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(20, 20, 19, 0.14),
    0 10px 20px rgba(20, 20, 19, 0.1);
}
.act:active {
  background: #3b3a35;
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(20, 20, 19, 0.14);
}
.act:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.small,
.hint {
  margin: 0;
  font:
    400 13px/18px Manrope,
    system-ui,
    sans-serif;
  color: var(--ash);
}
/* On a computer the action lets the link fade in under it as a code drawn in ink dots on the paper: no box, no frame. */
.code {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.code > .card {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 420ms ease 80ms,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.open .code {
  grid-template-rows: 1fr;
}
.open .code > .card {
  opacity: 1;
  transform: none;
  padding-top: 6px;
}
.qr {
  width: 112px;
  height: 112px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .copy {
    top: 54%;
  }
  .line {
    font-size: 26px;
    line-height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .copy,
  .copy .act,
  .copy .small,
  .code,
  .code > .card,
  .act {
    transition: none;
    transform: none;
  }
}
