/* ---------------------------------------------------------
   liddiard.pay — link landing page
   Palette pulled from the HL monogram: cyan #00a2c8, orange #d66e3d
   --------------------------------------------------------- */

:root {
  color-scheme: light dark;

  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6f6660;
  --border: #e8e1da;
  --border-strong: #d9cfc5;
  --focus: #00a2c8;
  --glow-cyan: rgba(0, 162, 200, 0.13);
  --glow-orange: rgba(214, 110, 61, 0.13);
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px rgba(28, 25, 23, 0.06);

  --radius: 18px;
  --max-width: 26rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --surface: #1d1a17;
    --text: #f5f1ec;
    --muted: #a89e96;
    --border: #2e2823;
    --border-strong: #40382f;
    --focus: #4cc7e6;
    --glow-cyan: rgba(0, 162, 200, 0.2);
    --glow-orange: rgba(214, 110, 61, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 8%, var(--glow-cyan), transparent 55%),
    radial-gradient(circle at 85% 92%, var(--glow-orange), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: var(--max-width);
}

/* ---------- Header ---------- */

.header {
  margin-bottom: 2rem;
  text-align: center;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.125rem;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.avatar img {
  width: 2.6rem;
  height: 2.6rem;
  display: block;
}

.name {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tagline {
  margin: 0.5rem auto 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}

/* ---------- Link cards ---------- */

.links {
  display: grid;
  gap: 0.75rem;
}

.link-card {
  --brand: var(--text);

  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow:
    0 2px 4px rgba(28, 25, 23, 0.05),
    0 14px 30px rgba(28, 25, 23, 0.1);
}

.link-card:active {
  transform: translateY(0);
}

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

/* Brand colors */

.link-card--cashapp {
  --brand: #00c244;
}
.link-card--venmo {
  --brand: #008cff;
}
.link-card--paypal {
  --brand: #002991;
}
.link-card--kofi {
  --brand: #ff6433;
}

@media (prefers-color-scheme: dark) {
  .link-card--paypal {
    --brand: #4c95f0;
  }
}

/* Icon */

.link-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
  border-radius: 13px;
}

.link-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  fill: currentColor;
}

/* Text */

.link-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.link-name {
  font-size: 0.975rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.link-detail {
  color: var(--muted);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Arrow */

.link-arrow {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  opacity: 0.75;
  transition:
    transform 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.link-card:hover .link-arrow {
  transform: translateX(2px);
  color: var(--brand);
  opacity: 1;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 2.25rem;
  text-align: center;
}

.footer a {
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.footer a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.footer a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
