:root {
  color-scheme: dark;
  --background: #0b1220;
  --surface: #152238;
  --text: #f1f5f9;
  --muted: #aab8cc;
  --accent: #38bdf8;
  --border: #2a3b54;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 44rem 28rem at 50% 0%, #112d44 0%, transparent 100%), var(--background);
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--background);
  background: #7dd3fc;
}

.shell {
  width: min(560px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(36px, 7vh, 76px) 34px;
}

.hero {
  text-align: center;
}

.brand-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 19px;
  filter: drop-shadow(0 6px 19px #38bdf820);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6.7vw, 2.5rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9375rem;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-block: 32px 24px;
}

.link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy arrow"
    "icon destination arrow";
  gap: 3px 12px;
  align-items: center;
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}

.link-card--primary {
  border-color: #36799c;
  background: linear-gradient(105deg, #123953 0%, transparent 76%), #142b44;
}

.link-card--disabled,
.link-card[aria-disabled="true"] {
  background: #111c2f;
}

.card-icon {
  display: grid;
  grid-area: icon;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #334e6a;
  border-radius: 12px;
  background: #1a2e49;
  color: #a6d8f8;
}

.link-card--primary .card-icon {
  border-color: #3a7697;
  background: #19445f;
  color: #7dd3fc;
}

.card-icon svg,
.card-arrow,
.copy-button svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.card-copy {
  grid-area: copy;
  align-self: end;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.card-description,
.card-destination {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}

.card-destination {
  grid-area: destination;
  align-self: start;
  margin-top: 0;
  color: #99c8e5;
  font-size: .75rem;
}

.card-tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #3b5774;
  border-radius: 6px;
  color: #b8d4ea;
  background: #1c314d;
  font-size: .6875rem;
  line-height: 1.5;
  vertical-align: 2px;
  white-space: nowrap;
}

.link-card--primary .card-tag {
  border-color: #3a7697;
  color: #b6e6ff;
  background: #19445f;
}

.card-arrow {
  grid-area: arrow;
  color: #a4b9cf;
}

.link-card--primary .card-arrow {
  color: #7dd3fc;
}

.copy-panel {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.copy-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #39516c;
  border-radius: 12px;
  background: #111f32;
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.copy-button svg {
  width: 17px;
  height: 17px;
  color: #7dd3fc;
}

.copy-status,
.copy-fallback {
  margin: 0;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

.copy-status:empty {
  margin-top: -9px;
}

.copy-fallback {
  display: grid;
  gap: 6px;
  width: 100%;
}

.copy-fallback input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #39516c;
  border-radius: 9px;
  background: #121f32;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: .8125rem;
}

.disclosure,
.footer-note {
  margin: 0;
}

.footer-note {
  margin-top: 5px;
}

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 4px;
}

@media (min-width: 480px) {
  .shell {
    width: min(560px, calc(100% - 40px));
  }

  .link-card {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "icon copy destination arrow";
    gap: 16px;
    padding-inline: 18px;
  }

  .card-copy,
  .card-destination {
    align-self: center;
  }
}

@media (hover: hover) {
  a.link-card:hover,
  .copy-button:hover {
    border-color: #6dbadf;
    background-color: #1b314d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .copy-button {
    transition: none;
  }
}
