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

:root {
  --tree-bg: #0f1716;
  --tree-bg-image: none;
  --tree-text: #f7fbf8;
  --tree-muted: rgba(247, 251, 248, .72);
  --tree-surface: #f7fbf8;
  --tree-surface-text: #11201d;
  --tree-surface-muted: #53615d;
  --tree-border: rgba(255, 255, 255, .18);
  --tree-accent: #58c4a3;
  --tree-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tree-button-radius: 8px;
}

html {
  min-height: 100%;
  background: var(--tree-bg);
  color-scheme: dark;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 38%),
    var(--tree-bg-image),
    var(--tree-bg);
  background-attachment: scroll;
  background-position: top center, center, center;
  background-repeat: no-repeat;
  background-size: auto, cover, auto;
  color: var(--tree-text);
  font-family: var(--tree-font);
  font-size: 17px;
  line-height: 1.45;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.tree-page {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
}

.tree-profile {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 10px 0 20px;
  text-align: center;
}

.tree-profile-media {
  width: 96px;
  max-width: 34vw;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--tree-border);
  border-radius: 50%;
  background: rgba(88, 196, 163, .22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.tree-avatar {
  display: grid;
  place-items: center;
  color: var(--tree-text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.tree-avatar img,
.tree-profile-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tree-profile-video {
  width: min(100%, 420px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.tree-profile h1,
.tree-unavailable h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.tree-bio {
  width: min(100%, 44ch);
  margin: 0;
  color: var(--tree-muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.tree-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 0 0 18px;
}

.tree-socials a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--tree-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--tree-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tree-support {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--tree-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: var(--tree-text);
  text-align: center;
}

.tree-support p {
  margin: 0;
  overflow-wrap: anywhere;
}

.tree-support a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tree-accent);
  color: #08211b;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tree-links {
  display: grid;
  gap: 12px;
}

.tree-link {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--tree-border);
  border-radius: var(--tree-button-radius);
  background: var(--tree-surface);
  color: var(--tree-surface-text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  text-align: left;
  text-decoration: none;
  transform: translateZ(0);
}

.tree-link.is-text-only {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}

.tree-link:focus-visible,
.tree-socials a:focus-visible,
.tree-footer a:focus-visible {
  outline: 3px solid var(--tree-accent);
  outline-offset: 3px;
}

.tree-link-media {
  width: 52px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, .08);
}

.tree-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tree-link-copy {
  min-width: 0;
}

.tree-link strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.tree-link small {
  display: block;
  margin-top: 4px;
  color: var(--tree-surface-muted);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tree-link.is-featured {
  min-height: 76px;
  border-color: var(--tree-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

.tree-link.is-spotlight {
  background: var(--tree-accent);
  color: #08211b;
}

.tree-link.has-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--tree-accent);
  border-radius: inherit;
  opacity: .42;
  animation: tree-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.tree-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--tree-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--tree-text);
  overflow-wrap: anywhere;
}

.tree-block h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tree-block p {
  margin: 0;
  color: var(--tree-muted);
  font-size: 14px;
}

.tree-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.tree-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tree-placeholder-block a,
.tree-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--tree-border);
  border-radius: var(--tree-button-radius);
  background: var(--tree-surface);
  color: var(--tree-surface-text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.tree-form label {
  display: grid;
  gap: 5px;
  text-align: left;
}

.tree-form label span {
  color: var(--tree-muted);
  font-size: 13px;
  font-weight: 800;
}

.tree-form input,
.tree-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--tree-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  color: var(--tree-text);
  font: inherit;
}

.tree-form textarea {
  resize: vertical;
}

.tree-hp {
  position: absolute;
  left: -9999px;
}

.tree-link-header {
  padding: 16px 4px 4px;
  color: var(--tree-text);
  text-align: center;
}

.tree-link-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.tree-link-header p {
  max-width: 46ch;
  margin: 6px auto 0;
  color: var(--tree-muted);
  font-size: 14px;
}

.tree-empty {
  min-height: 64px;
  padding: 18px;
  border: 1px solid var(--tree-border);
  border-radius: 8px;
  color: var(--tree-muted);
  text-align: center;
}

.tree-footer {
  margin-top: 28px;
  color: var(--tree-muted);
  font-size: 13px;
  text-align: center;
}

.tree-footer a {
  color: var(--tree-text);
  font-weight: 800;
  text-decoration: none;
}

.tree-unavailable {
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
}

@keyframes tree-pulse {
  0% {
    opacity: .45;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.035);
  }
}

@media (hover: hover) {
  .tree-link,
  .tree-socials a {
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  }

  .tree-link:hover,
  .tree-socials a:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  .tree-page {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .tree-profile {
    padding-bottom: 24px;
  }

  .tree-profile h1,
  .tree-unavailable h1 {
    font-size: 42px;
  }

  .tree-link {
    padding: 14px 16px;
  }
}

@media (max-width: 430px) {
  .tree-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tree-profile-media {
    width: 88px;
  }

  .tree-profile h1,
  .tree-unavailable h1 {
    font-size: 31px;
  }

  .tree-link {
    min-height: 56px;
  }
}
