/* Shared palette: intentionally aligned with the Demo site's neutral visual system. */
:root {
  color-scheme: light;
  --text-primary: #374151;
  --text-body: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-hover: #f8fbff;
  --link-hover: #2563eb;
  --focus-ring: #2563eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Page shell */
body {
  margin: 0;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-body);
  background: #fff;
}

main {
  width: min(100%, 900px);
  margin-inline: auto;
}

header {
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.subtitle {
  margin: .55rem 0 0;
  color: var(--text-body);
  max-width: 62ch;
  font-size: 1rem;
}

/* Destination-card grid and interaction */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 4px rgb(31 41 55 / 4%);
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.link-card:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgb(31 41 55 / 8%);
  transform: translateY(-1px);
}

.link-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.card-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 700;
}

.card-description,
.card-url {
  margin: 0;
}

.card-description {
  color: var(--text-body);
}

.card-url {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9ca3af;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

.link-card:hover .card-url {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}


/* Shared footer treatment. The link/version subgroup stays together when the footer wraps. */
/* Collapse the two-column card grid to one column on narrow screens. */
@media (max-width: 700px) {
  body {
    padding: 1.25rem .9rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}

/* Respect visitors who request less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card {
    transition: none;
  }
}
