* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0.5rem 0 0.25rem;
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-fg-muted);
  margin: 2rem 0 0.75rem;
}

a {
  color: var(--color-accent);
}

.profile-header {
  text-align: center;
}

.profile-logo {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.profile-header a:hover .profile-logo,
.profile-header a:focus-visible .profile-logo {
  opacity: 0.85;
}

.tagline {
  color: var(--color-fg-muted);
  margin: 0;
}

.story {
  margin-top: 1.5rem;
}

.links {
  text-align: center;
}

.link-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: var(--color-fg-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.link-button:hover,
.link-button:focus-visible {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

.link-button .icon {
  display: flex;
}

.link-button .icon svg {
  height: 2.1rem;
  width: auto;
  display: block;
}

/* Venmo's glyph is wide (a cropped wordmark, see tools/icons.js's
   VIEWBOX_OVERRIDES) and overflows the default circular hit/hover area —
   give it a pill shape sized to its content instead. */
.link-button.platform-venmo {
  width: auto;
  min-width: 3.5rem;
  padding: 0 0.65rem;
  border-radius: 1.75rem;
}

.qr-section {
  text-align: center;
  margin-top: 2.5rem;
}

.qr-code {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.qr-code canvas,
.qr-code svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-fg);
  cursor: pointer;
}

.share-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.share-button .icon svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.site-footer {
  text-align: center;
  color: var(--color-fg-muted);
  font-size: 0.8rem;
  padding: 2rem 1.25rem;
}

@media print {
  .site-footer {
    display: none;
  }
}
