:root {
  color-scheme: light dark;
  --bg: #f3f2ef;
  --ink: #191919;
  --accent: #0a66c2;
  --accent-hover: #004182;
  --card: #ffffff;
  --card-hover: #f9fafb;
  --border: #d6d9dc;
  --shadow: rgba(0, 0, 0, 0.08);
  --link-hover: rgba(10, 102, 194, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1f23;
    --ink: #e8e6df;
    --accent: #70b5f9;
    --accent-hover: #9acafc;
    --card: #283035;
    --card-hover: #323b42;
    --border: #3e4a52;
    --shadow: rgba(0, 0, 0, 0.32);
    --link-hover: rgba(112, 181, 249, 0.08);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  padding: 32px 16px;
}

.card {
  max-width: 680px;
  padding: 40px 48px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px var(--shadow);
  animation: fadeUp 400ms ease both;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  .subtitle {
    color: #a0a0a0;
  }
}

h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: none;
}

.link-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: none;
  box-shadow: 0 0 0 1px var(--accent);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.link-content strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.link-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .link-content p {
    color: #9ba3aa;
  }
}

.boost-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.info-section {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
}

.info-section summary {
  color: #666;
  font-size: 0.9rem;
  transition: color 150ms;
}

.info-section summary:hover {
  color: var(--accent);
}

.info-section ul {
  color: #666;
}

@media (prefers-color-scheme: dark) {
  .info-section summary,
  .info-section ul {
    color: #9ba3aa;
  }
}

.info-section code {
  background: var(--link-hover);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.84rem;
}

.copy-btn {
  border-radius: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .card {
    padding: 28px 24px;
  }
  h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px 16px;
  }
  h1 {
    font-size: 1.4rem;
  }
  .link-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .link-icon {
    width: 32px;
    height: 32px;
  }
}
