:root {
  --link-tree-bg: #f3f7f1;
  --link-tree-panel: #ffffff;
  --link-tree-text: #27312b;
  --link-tree-muted: #66736b;
  --link-tree-line: #dfe8df;
  --link-tree-accent: #2f9b5f;
  --link-tree-accent-soft: #e4f5ea;
  --link-tree-gold: #f2c94c;
  --link-tree-shadow: 0 24px 70px rgba(31, 52, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--link-tree-text);
  background:
    radial-gradient(circle at top left, rgba(47, 155, 95, 0.16), transparent 34rem),
    linear-gradient(145deg, #f9fbf8 0%, var(--link-tree-bg) 58%, #fff8df 100%);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.link-tree {
  display: grid;
  min-height: 100svh;
  padding: 32px 18px;
  place-items: center;
}

.link-tree__panel {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(47, 155, 95, 0.12);
  border-radius: 24px;
  background: color-mix(in srgb, var(--link-tree-panel), transparent 4%);
  box-shadow: var(--link-tree-shadow);
}

.link-tree__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.link-tree__logo {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--link-tree-line);
  border-radius: 18px;
  background: #fff;
  place-items: center;
}

.link-tree__logo img {
  width: 100%;
  max-width: 52px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.link-tree__school {
  margin: 0;
  color: var(--link-tree-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.link-tree__intro {
  margin-bottom: 24px;
}

.link-tree__intro h1 {
  margin: 0 0 10px;
  color: var(--link-tree-text);
  font-family: "Raleway", system-ui, sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.link-tree__intro p {
  margin: 0;
  color: var(--link-tree-muted);
  font-size: 16px;
  line-height: 1.65;
}

.link-tree__links {
  display: grid;
  gap: 12px;
}

.link-tree__link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--link-tree-line);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.link-tree__link:hover {
  border-color: color-mix(in srgb, var(--link-tree-accent), transparent 35%);
  box-shadow: 0 14px 34px rgba(47, 155, 95, 0.16);
  transform: translateY(-2px);
}

.link-tree__link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--link-tree-gold), transparent 20%);
  outline-offset: 4px;
}

.link-tree__icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--link-tree-accent);
  background: var(--link-tree-accent-soft);
  font-size: 20px;
  place-items: center;
}

.link-tree__copy {
  min-width: 0;
  padding: 0 12px;
}

.link-tree__label,
.link-tree__description {
  display: block;
}

.link-tree__label {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.link-tree__description {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--link-tree-muted);
  font-size: 13px;
  line-height: 1.35;
}

.link-tree__arrow {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--link-tree-accent);
  font-size: 15px;
  place-items: center;
}

.link-tree__empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px dashed var(--link-tree-line);
  border-radius: 18px;
  color: var(--link-tree-muted);
  text-align: center;
}

.link-tree__empty i {
  color: var(--link-tree-accent);
  font-size: 26px;
}

.link-tree__empty p {
  margin: 0;
}

@media (max-width: 520px) {
  .link-tree {
    align-items: stretch;
    padding: 18px 12px;
  }

  .link-tree__panel {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .link-tree__brand {
    align-items: flex-start;
  }

  .link-tree__intro h1 {
    font-size: 34px;
  }

  .link-tree__link {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    padding: 12px;
  }

  .link-tree__copy {
    padding: 0 10px;
  }
}
