/*
 * The layout of the holding page. The look of every component is in
 * /design/components.css. Every colour, size and duration here is a token
 * from /design/tokens.css; the width in a media query is the one literal,
 * since a custom property cannot be used there.
 */

/* The page fills the window, with the footer at the bottom. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.holding-head {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
}

.theme-switch {
  display: flex;
  gap: var(--space-2);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-6) var(--space-8);
  text-align: center;
  overflow-wrap: break-word;
}

/* The mark is sized in ems; this sets it at about 115 pixels. */
main > .mark {
  font-size: calc(var(--text-5xl) * 1.5);
}

h1 {
  margin: var(--space-6) 0 0;
  font-size: var(--text-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h1 span {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-style: italic;
  letter-spacing: normal;
}

.holding-note {
  max-width: var(--measure);
  margin: var(--space-6) 0 0;
  line-height: var(--leading-body);
}

/* Support: the address to send bitcoin to. */

.donation {
  width: 100%;
  max-width: var(--measure);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-rule);
}

.donation > p {
  margin: 0 0 var(--space-5);
  line-height: var(--leading-body);
}

.donation-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.donation-qr {
  display: block;
  width: calc(var(--space-9) + var(--space-5));
  height: auto;
  padding: var(--space-2);
  border: var(--border-rule);
  background: var(--color-panel);
}

.donation-address-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
}

.donation-address {
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-edge);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: all;
}

.donation-address:hover,
.donation-address[data-state="copied"] {
  border-color: var(--color-ink);
}

.donation-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-6);
  border-top: var(--border-rule);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

@media (max-width: 48rem) {
  .holding-head {
    justify-content: center;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}
